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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
tobymao__sqlglot-3899 | 3,899 | tobymao/sqlglot | null | 6f1527fd3ebd16f49edb351f050a1db687824530 | 2024-08-12T21:17:38Z | diff --git a/sqlglot/dialects/dialect.py b/sqlglot/dialects/dialect.py
index b3df9a71ca..0aefb7eb64 100644
--- a/sqlglot/dialects/dialect.py
+++ b/sqlglot/dialects/dialect.py
@@ -1605,9 +1605,9 @@ def sha256_sql(self: Generator, expression: exp.SHA2) -> str:
return self.func(f"SHA{expression.text('length') or '256... | diff --git a/tests/dialects/test_dialect.py b/tests/dialects/test_dialect.py
index 522c42cd6f..e1f944cbf1 100644
--- a/tests/dialects/test_dialect.py
+++ b/tests/dialects/test_dialect.py
@@ -2603,3 +2603,21 @@ def test_string_functions(self):
"trino": f"SELECT {pad_func}('bar', 5, ' ')",
... | [] | [
"tests/dialects/test_dialect.py::TestDialect::test_generate_date_array"
] | [
"tests/dialects/test_dialect.py::TestDialect::test_alias",
"tests/dialects/test_dialect.py::TestDialect::test_array",
"tests/dialects/test_dialect.py::TestDialect::test_array_any",
"tests/dialects/test_dialect.py::TestDialect::test_cast",
"tests/dialects/test_dialect.py::TestDialect::test_cast_to_user_defin... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Feat!: transpile Unnest(GenerateDateArray(...)) to various dialects
xref: https://github.com/TobikoData/sqlmesh/pull/2990
The motivation here is to make it easier to generate a date spine across se... | ceb42fabad60312699e4b15936aeebac00e22e4d | ||
astropy__astropy-16812 | 16,812 | astropy/astropy | v5.3 | c241103c11954d3c1cfe3c1840b1ece72479c522 | 2024-08-09T12:23:08Z | diff --git a/astropy/modeling/core.py b/astropy/modeling/core.py
index 1226f8cdf021..0e2393b6a895 100644
--- a/astropy/modeling/core.py
+++ b/astropy/modeling/core.py
@@ -2529,6 +2529,17 @@ def _initialize_constraints(self, kwargs):
values = kwargs.pop(constraint, [])
self._mconstraints[constr... | diff --git a/astropy/modeling/tests/test_core.py b/astropy/modeling/tests/test_core.py
index 097a35cd60d2..3f4c460b243f 100644
--- a/astropy/modeling/tests/test_core.py
+++ b/astropy/modeling/tests/test_core.py
@@ -26,7 +26,7 @@
custom_model,
fix_inputs,
)
-from astropy.modeling.parameters import Parameter
+... | [
{
"components": [
{
"doc": "Reset parameters on the models to those specified.\n\nParameters can be specified either as positional arguments or keyword\narguments, as in the model initializer. Any parameters not specified\nwill be reset to their default values.",
"lines": [
2532,... | [
"astropy/modeling/tests/test_core.py::test_reset_parameters_simple",
"astropy/modeling/tests/test_core.py::test_reset_parameters_compound"
] | [
"astropy/modeling/tests/test_core.py::test_Model_instance_repr_and_str",
"astropy/modeling/tests/test_core.py::test_Model_array_parameter",
"astropy/modeling/tests/test_core.py::test_inputless_model",
"astropy/modeling/tests/test_core.py::test_ParametericModel",
"astropy/modeling/tests/test_core.py::test_cu... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Provide a way to reinitialize the parameter values of a model
This provides a (simple) public method to reinitialize parameters in a model either to default values, or to specific values in the same w... | Here is the discussion in the issues of the pull request.
<issues>
Provide a way to make a copy of a model with different parameter values, or be more flexible with parameter shape
GIven a model with scalar or array parameters, I would like to be able to easily make another model which has different parameter values (e... | 2d281019494aaebf522f6626c0dae37510c16688 | |
joke2k__faker-2081 | 2,081 | joke2k/faker | null | 5f05544cb49a355462726237e21babc534793878 | 2024-08-07T08:20:38Z | diff --git a/faker/providers/address/en_MS/__init__.py b/faker/providers/address/en_MS/__init__.py
new file mode 100644
index 0000000000..f614c3c018
--- /dev/null
+++ b/faker/providers/address/en_MS/__init__.py
@@ -0,0 +1,490 @@
+from collections import OrderedDict
+from typing import Optional
+
+from ... import Elemen... | diff --git a/tests/providers/test_address.py b/tests/providers/test_address.py
index 45607994cf..518c59fd88 100644
--- a/tests/providers/test_address.py
+++ b/tests/providers/test_address.py
@@ -19,6 +19,7 @@
from faker.providers.address.en_GB import Provider as EnGbAddressProvider
from faker.providers.address.en_IE ... | [
{
"components": [
{
"doc": "",
"lines": [
10,
490
],
"name": "Provider",
"signature": "class Provider(AddressProvider):",
"type": "class"
},
{
"doc": "",
"lines": [
207,
208
],
... | [
"tests/providers/test_address.py::TestBaseProvider::test_alpha_2_country_codes",
"tests/providers/test_address.py::TestBaseProvider::test_alpha_2_country_codes_as_default",
"tests/providers/test_address.py::TestBaseProvider::test_alpha_3_country_codes",
"tests/providers/test_address.py::TestBaseProvider::test... | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Add en_MS Malaysian provider
### What does this change
Add the en_MS provider just for addresses. This is pretty much a straight port from [PHP Faker](https://github.com/fzaninotto/Faker/blob/mast... | 6edfdbf6ae90b0153309e3bf066aa3b2d16494a7 | ||
tobymao__sqlglot-3883 | 3,883 | tobymao/sqlglot | null | 3e4fcf7e8f6a322c14470de6c5dbba152bc9b2fe | 2024-08-07T08:18:11Z | diff --git a/sqlglot/dialects/mysql.py b/sqlglot/dialects/mysql.py
index 2fa355e58f..145a7d1cb2 100644
--- a/sqlglot/dialects/mysql.py
+++ b/sqlglot/dialects/mysql.py
@@ -302,6 +302,9 @@ class Parser(parser.Parser):
FUNCTIONS = {
**parser.Parser.FUNCTIONS,
+ "CONVERT_TZ": lambda args:... | diff --git a/tests/dialects/test_redshift.py b/tests/dialects/test_redshift.py
index 9e672ec1f1..22d8f624ab 100644
--- a/tests/dialects/test_redshift.py
+++ b/tests/dialects/test_redshift.py
@@ -433,6 +433,11 @@ def test_identity(self):
self.validate_identity("SELECT ARRAY(1, 2, 3)")
self.validate_ide... | [] | [
"tests/dialects/test_redshift.py::TestRedshift::test_identity",
"tests/dialects/test_snowflake.py::TestSnowflake::test_snowflake"
] | [
"tests/dialects/test_redshift.py::TestRedshift::test_alter_table",
"tests/dialects/test_redshift.py::TestRedshift::test_column_unnesting",
"tests/dialects/test_redshift.py::TestRedshift::test_create_table_like",
"tests/dialects/test_redshift.py::TestRedshift::test_join_markers",
"tests/dialects/test_redshif... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
feat(duckdb): Transpile Snowflake's CONVERT_TIMEZONE 3-arg version
Fixes #3875
This PR attempts to transpile Snowflake's `CONVERT_TIMEZONE(source_tz, target_tz, timestamp_ntz)` 3-arg version to Duc... | Here is the discussion in the issues of the pull request.
<issues>
transpile from snowflake to duckdb with convert timezone is not working
**Fully reproducible code snippet**
The following snowflake query is transpile into a duckdb and fails
```
SELECT date_trunc('month', CONVERT_TIMEZONE('UTC', 'Europe/Berlin', a... | ceb42fabad60312699e4b15936aeebac00e22e4d | |
boto__botocore-3233 | 3,233 | boto/botocore | null | b3fb4d01d35cabd896b64f66afbd013b245069d8 | 2024-08-06T15:22:16Z | diff --git a/.changes/next-release/enhancement-signing-83434.json b/.changes/next-release/enhancement-signing-83434.json
new file mode 100644
index 0000000000..a90654a772
--- /dev/null
+++ b/.changes/next-release/enhancement-signing-83434.json
@@ -0,0 +1,5 @@
+{
+ "type": "feature",
+ "category": "signing",
+ "descr... | diff --git a/tests/functional/test_auth_config.py b/tests/functional/test_auth_config.py
new file mode 100644
index 0000000000..7fe096d338
--- /dev/null
+++ b/tests/functional/test_auth_config.py
@@ -0,0 +1,77 @@
+# Copyright 2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.
+#
+# Licensed under the Apache ... | diff --git a/.changes/next-release/enhancement-signing-83434.json b/.changes/next-release/enhancement-signing-83434.json
new file mode 100644
index 0000000000..a90654a772
--- /dev/null
+++ b/.changes/next-release/enhancement-signing-83434.json
@@ -0,0 +1,5 @@
+{
+ "type": "feature",
+ "category": "signing",
+ "descr... | [
{
"components": [
{
"doc": "",
"lines": [
1140,
1150
],
"name": "resolve_auth_type",
"signature": "def resolve_auth_type(auth_trait):",
"type": "function"
}
],
"file": "botocore/auth.py"
},
{
"components": [
{
... | [
"tests/functional/test_auth_config.py::test_all_requirements_match_for_service[acm-auth_config0]",
"tests/functional/test_auth_config.py::test_all_requirements_match_for_service[acm-pca-auth_config1]",
"tests/functional/test_auth_config.py::test_all_requirements_match_for_service[apigateway-auth_config2]",
"t... | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Multi-auth trait support
Adds support for the new 'auth' trait on our models that will allow a priority list of auth types for a service or operation
----------
</request>
There are several new func... | 5e4b564dd0f9aab16a404251ebd3e675c9681492 | |
boto__botocore-3232 | 3,232 | boto/botocore | null | 98899c002f9f5ee9238555a9461e1a252140462a | 2024-08-06T14:31:48Z | diff --git a/.changes/next-release/enhancement-s3-94466.json b/.changes/next-release/enhancement-s3-94466.json
new file mode 100644
index 0000000000..5fc2e636ec
--- /dev/null
+++ b/.changes/next-release/enhancement-s3-94466.json
@@ -0,0 +1,5 @@
+{
+ "type": "enhancement",
+ "category": "``s3``",
+ "description": "Ad... | diff --git a/tests/functional/test_s3.py b/tests/functional/test_s3.py
index 0c04f858e0..f58488fc6e 100644
--- a/tests/functional/test_s3.py
+++ b/tests/functional/test_s3.py
@@ -15,6 +15,7 @@
import re
import pytest
+from dateutil.tz import tzutc
import botocore.session
from botocore import UNSIGNED
@@ -1340,6... | diff --git a/.changes/next-release/enhancement-s3-94466.json b/.changes/next-release/enhancement-s3-94466.json
new file mode 100644
index 0000000000..5fc2e636ec
--- /dev/null
+++ b/.changes/next-release/enhancement-s3-94466.json
@@ -0,0 +1,5 @@
+{
+ "type": "enhancement",
+ "category": "``s3``",
+ "description": "Ad... | [
{
"components": [
{
"doc": "",
"lines": [
217,
218
],
"name": "DocumentStructure.has_section",
"signature": "def has_section(self, name):",
"type": "function"
}
],
"file": "botocore/docs/bcdoc/restdoc.py"
},
{
"compo... | [
"tests/functional/test_s3.py::TestS3ExpiresHeaderResponse::test_invalid_expires_value_in_response",
"tests/functional/test_s3.py::TestS3ExpiresHeaderResponse::test_valid_expires_value_in_response",
"tests/unit/test_endpoint.py::TestRetryInterface::test_retry_attempts_added_to_response_metadata",
"tests/unit/t... | [
"tests/functional/test_s3.py::TestS3BucketValidation::test_invalid_bucket_name_raises_error",
"tests/functional/test_s3.py::TestS3ClientConfigResolution::test_client_config_us_east_1_regional_overrides_config_var",
"tests/functional/test_s3.py::TestS3ClientConfigResolution::test_client_config_us_east_1_regional... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
s3 expires implementation
This PR customizes the S3 `Expires` shape in preparation for model changes. Instead of throwing an error, operations will now complete with fallback behavior and a warning.
... | 5e4b564dd0f9aab16a404251ebd3e675c9681492 | |
RDFLib__rdflib-2877 | 2,877 | RDFLib/rdflib | null | 0c11debb5178157baeac27b735e49a757916d2a6 | 2024-08-06T04:52:24Z | diff --git a/docs/plugin_serializers.rst b/docs/plugin_serializers.rst
index 39d00df7f..3721bb9f8 100644
--- a/docs/plugin_serializers.rst
+++ b/docs/plugin_serializers.rst
@@ -21,6 +21,7 @@ n3 :class:`~rdflib.plugins.serializers.n3.N3Serializer`
nquads :class:`~rdflib.plugins.serializers.nquads.NQuadsSeri... | diff --git a/test/test_serializers/test_serializer_patch.py b/test/test_serializers/test_serializer_patch.py
new file mode 100644
index 000000000..6d8a05055
--- /dev/null
+++ b/test/test_serializers/test_serializer_patch.py
@@ -0,0 +1,178 @@
+from rdflib import Dataset, Graph, Literal, URIRef
+
+
+def test_add_quad():
... | diff --git a/docs/plugin_serializers.rst b/docs/plugin_serializers.rst
index 39d00df7f..3721bb9f8 100644
--- a/docs/plugin_serializers.rst
+++ b/docs/plugin_serializers.rst
@@ -21,6 +21,7 @@ n3 :class:`~rdflib.plugins.serializers.n3.N3Serializer`
nquads :class:`~rdflib.plugins.serializers.nquads.NQuadsSeri... | [
{
"components": [
{
"doc": "",
"lines": [
4,
60
],
"name": "main",
"signature": "def main():",
"type": "function"
}
],
"file": "examples/patch_serializer_example.py"
},
{
"components": [
{
"doc": "Creat... | [
"test/test_serializers/test_serializer_patch.py::test_add_quad",
"test/test_serializers/test_serializer_patch.py::test_delete_quad",
"test/test_serializers/test_serializer_patch.py::test_diff_quad",
"test/test_serializers/test_serializer_patch.py::test_add_triple",
"test/test_serializers/test_serializer_pat... | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Implement RDF Patch serializer
Supports serialization from Dataset instances only; triples and quads within a Dataset are supported.
# Summary of changes
Three methods to create RDF Patches from... | 0c11debb5178157baeac27b735e49a757916d2a6 | |
conan-io__conan-16789 | 16,789 | conan-io/conan | null | 369a3d0751b20cdb19abf7547b8b98e8cbd6dec9 | 2024-08-05T11:17:38Z | diff --git a/conan/tools/gnu/pkgconfigdeps.py b/conan/tools/gnu/pkgconfigdeps.py
index 4e2160989cc..3e743678788 100644
--- a/conan/tools/gnu/pkgconfigdeps.py
+++ b/conan/tools/gnu/pkgconfigdeps.py
@@ -350,6 +350,7 @@ def __init__(self, conanfile):
# Issue: https://github.com/conan-io/conan/issues/14935
... | diff --git a/test/integration/toolchains/gnu/test_pkgconfigdeps.py b/test/integration/toolchains/gnu/test_pkgconfigdeps.py
index 467d4f1f48c..1ccc91d90f2 100644
--- a/test/integration/toolchains/gnu/test_pkgconfigdeps.py
+++ b/test/integration/toolchains/gnu/test_pkgconfigdeps.py
@@ -1023,6 +1023,59 @@ def package_info... | [
{
"components": [
{
"doc": "Using this method you can overwrite the :ref:`property<PkgConfigDeps Properties>` values set by\nthe Conan recipes from the consumer. This can be done for `pkg_config_name`,\n`pkg_config_aliases` and `pkg_config_custom_content` properties.\n\n:param dep: Name of the dep... | [
"test/integration/toolchains/gnu/test_pkgconfigdeps.py::test_pkg_config_deps_set_property"
] | [
"test/integration/toolchains/gnu/test_pkgconfigdeps.py::test_pkg_config_dirs",
"test/integration/toolchains/gnu/test_pkgconfigdeps.py::test_empty_dirs",
"test/integration/toolchains/gnu/test_pkgconfigdeps.py::test_system_libs",
"test/integration/toolchains/gnu/test_pkgconfigdeps.py::test_multiple_include",
... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Add `set_property` for PkgConfigDeps
Changelog: Feature: Add `set_property` for PkgConfigDeps to set properties for requirements from consumer recipes.
Docs: Omit
close: #13076
----------
</requ... | 4a5b19a75db9225316c8cb022a2dfb9705a2af34 | ||
tobymao__sqlglot-3865 | 3,865 | tobymao/sqlglot | null | e53e7cc02a224563d0a61b0a39298d606b9bac80 | 2024-08-02T12:17:24Z | diff --git a/sqlglot/dialects/duckdb.py b/sqlglot/dialects/duckdb.py
index ffc3cecf14..7fdc96c8fe 100644
--- a/sqlglot/dialects/duckdb.py
+++ b/sqlglot/dialects/duckdb.py
@@ -209,10 +209,11 @@ def _arrow_json_extract_sql(self: DuckDB.Generator, expression: JSON_EXTRACT_TYP
return arrow_sql
-def _date_diff_sql(... | diff --git a/tests/dialects/test_bigquery.py b/tests/dialects/test_bigquery.py
index 2e0b6a8e09..c3fc9ff873 100644
--- a/tests/dialects/test_bigquery.py
+++ b/tests/dialects/test_bigquery.py
@@ -1431,6 +1431,20 @@ def test_bigquery(self):
"trino": "CONCAT(ARRAY[1, 2], ARRAY[3, 4], ARRAY[5, 6])",
... | [] | [
"tests/dialects/test_bigquery.py::TestBigQuery::test_bigquery"
] | [
"tests/dialects/test_bigquery.py::TestBigQuery::test_errors",
"tests/dialects/test_bigquery.py::TestBigQuery::test_gap_fill",
"tests/dialects/test_bigquery.py::TestBigQuery::test_group_concat",
"tests/dialects/test_bigquery.py::TestBigQuery::test_inline_constructor",
"tests/dialects/test_bigquery.py::TestBi... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
feat(duckdb)!: Support for BQ's exp.GenerateDateArray generation
Generate BigQuery's `GENERATE_DATE_ARRAY(start, stop, interval)` to DuckDB's `GENERATE_SERIES(start, stop, interval)`
Docs
--------... | ceb42fabad60312699e4b15936aeebac00e22e4d | ||
conan-io__conan-16762 | 16,762 | conan-io/conan | null | e1063a152b8a969383f35c122a8b26eca58a0820 | 2024-08-01T14:08:04Z | diff --git a/conan/tools/cmake/presets.py b/conan/tools/cmake/presets.py
index b7e616150e2..43739a955ca 100644
--- a/conan/tools/cmake/presets.py
+++ b/conan/tools/cmake/presets.py
@@ -5,7 +5,7 @@
from conan.api.output import ConanOutput, Color
from conan.tools.cmake.layout import get_build_folder_custom_vars
-from... | diff --git a/test/integration/toolchains/cmake/test_cmaketoolchain.py b/test/integration/toolchains/cmake/test_cmaketoolchain.py
index 38ac9049b82..c174193ece6 100644
--- a/test/integration/toolchains/cmake/test_cmaketoolchain.py
+++ b/test/integration/toolchains/cmake/test_cmaketoolchain.py
@@ -1046,6 +1046,30 @@ def ... | [
{
"components": [
{
"doc": "",
"lines": [
858,
872
],
"name": "CompilersBlock.get_compilers",
"signature": "def get_compilers(conanfile):",
"type": "function"
}
],
"file": "conan/tools/cmake/toolchain/blocks.py"
}
] | [
"test/integration/toolchains/cmake/test_cmaketoolchain.py::test_cmake_presets_compiler"
] | [
"test/integration/toolchains/cmake/test_cmaketoolchain.py::test_cross_build",
"test/integration/toolchains/cmake/test_cmaketoolchain.py::test_cross_build_linux_to_macos",
"test/integration/toolchains/cmake/test_cmaketoolchain.py::test_cross_build_user_toolchain",
"test/integration/toolchains/cmake/test_cmaket... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Define compiler variables in CMakePresets.json
Changelog: Feature: Define `CMAKE_<LANG>_COMPILER` variables in CMakePresets.json.
Docs: Omit
Fixes #13136
The compiler variables are set to the sam... | Here is the discussion in the issues of the pull request.
<issues>
[feature] CMakePresets support for msvc toolset version
### What is your suggestion?
## Suggestion
Would it be possible for the Conan generated CMakePresets.json to include `msvc.toolset` version details (i.e. `v143`, `v142`, etc.) when populating... | 4a5b19a75db9225316c8cb022a2dfb9705a2af34 | |
aws-cloudformation__cfn-lint-3546 | 3,546 | aws-cloudformation/cfn-lint | null | 4d2355dda2ecb981e70f117c7d597a51ac443715 | 2024-07-30T22:47:28Z | diff --git a/src/cfnlint/rules/resources/ecs/ServiceFargate.py b/src/cfnlint/rules/resources/ecs/ServiceFargate.py
new file mode 100644
index 0000000000..1d03742e68
--- /dev/null
+++ b/src/cfnlint/rules/resources/ecs/ServiceFargate.py
@@ -0,0 +1,138 @@
+"""
+Copyright Amazon.com, Inc. or its affiliates. All Rights Rese... | diff --git a/test/unit/rules/resources/ecs/test_service_fargate.py b/test/unit/rules/resources/ecs/test_service_fargate.py
new file mode 100644
index 0000000000..5ea578ccde
--- /dev/null
+++ b/test/unit/rules/resources/ecs/test_service_fargate.py
@@ -0,0 +1,326 @@
+"""
+Copyright Amazon.com, Inc. or its affiliates. All... | [
{
"components": [
{
"doc": "",
"lines": [
18,
137
],
"name": "ServiceFargate",
"signature": "class ServiceFargate(CfnLintKeyword):",
"type": "class"
},
{
"doc": "",
"lines": [
30,
32
... | [
"test/unit/rules/resources/ecs/test_service_fargate.py::test_validate[template0-start_path0-expected0]",
"test/unit/rules/resources/ecs/test_service_fargate.py::test_validate[template1-start_path1-expected1]",
"test/unit/rules/resources/ecs/test_service_fargate.py::test_validate[template2-start_path2-expected2]... | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Add 3 new rules to validate ECS configs
*Issue #, if available:*
fix #1547
*Description of changes:*
- Add 3 new rules to validate ECS configs
By submitting this pull request, I confirm that yo... | Here is the discussion in the issues of the pull request.
<issues>
New Fargate Rules
*cfn-lint version: (`cfn-lint --version`)*: 0.32.1
*Description of issue.* New Rule Suggestions for ECS Fargate
Having just tried to deploy a new task alongside some existing tasks in Fargate, I ran across quite a few deployment ... | 4b214774e419d871b7b498fb5256e2ed09393795 | |
deepset-ai__haystack-8122 | 8,122 | deepset-ai/haystack | null | 3d1ad10385e5545abef14b811d72a405c2f5c967 | 2024-07-30T09:49:23Z | diff --git a/docs/pydoc/config/joiners_api.yml b/docs/pydoc/config/joiners_api.yml
index ad6e89a52a..6b7d422166 100644
--- a/docs/pydoc/config/joiners_api.yml
+++ b/docs/pydoc/config/joiners_api.yml
@@ -1,7 +1,7 @@
loaders:
- type: haystack_pydoc_tools.loaders.CustomPythonLoader
search_path: [../../../haystack... | diff --git a/test/components/joiners/test_answer_joiner.py b/test/components/joiners/test_answer_joiner.py
new file mode 100644
index 0000000000..b7ba764ec2
--- /dev/null
+++ b/test/components/joiners/test_answer_joiner.py
@@ -0,0 +1,141 @@
+# SPDX-FileCopyrightText: 2022-present deepset GmbH <info@deepset.ai>
+#
+# SP... | diff --git a/docs/pydoc/config/joiners_api.yml b/docs/pydoc/config/joiners_api.yml
index ad6e89a52a..6b7d422166 100644
--- a/docs/pydoc/config/joiners_api.yml
+++ b/docs/pydoc/config/joiners_api.yml
@@ -1,7 +1,7 @@
loaders:
- type: haystack_pydoc_tools.loaders.CustomPythonLoader
search_path: [../../../haystack... | [
{
"components": [
{
"doc": "Enum for AnswerJoiner join modes.",
"lines": [
19,
39
],
"name": "JoinMode",
"signature": "class JoinMode(Enum):",
"type": "class"
},
{
"doc": "",
"lines": [
26,
... | [
"test/components/joiners/test_answer_joiner.py::TestAnswerJoiner::test_init",
"test/components/joiners/test_answer_joiner.py::TestAnswerJoiner::test_init_with_custom_parameters",
"test/components/joiners/test_answer_joiner.py::TestAnswerJoiner::test_to_dict",
"test/components/joiners/test_answer_joiner.py::Te... | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
feat: Add `AnswerJoiner` new component
### Why:
Adds an `AnswerJoiner` to merge multiple lists of answers using various join modes, addressing the need for simplified answer aggregation.
### What:... | f4d9c2bb917be0ffe132dffcc2ad4f1b0fcc5967 | |
deepset-ai__haystack-8103 | 8,103 | deepset-ai/haystack | null | e17d0c41926849975166e70ec46411f402c8098e | 2024-07-29T04:06:24Z | diff --git a/haystack/components/preprocessors/document_cleaner.py b/haystack/components/preprocessors/document_cleaner.py
index 233dfed50a..282728ea74 100644
--- a/haystack/components/preprocessors/document_cleaner.py
+++ b/haystack/components/preprocessors/document_cleaner.py
@@ -6,7 +6,8 @@
from copy import deepcop... | diff --git a/test/components/preprocessors/test_document_cleaner.py b/test/components/preprocessors/test_document_cleaner.py
index 0acd9e8e8c..9bd5df549e 100644
--- a/test/components/preprocessors/test_document_cleaner.py
+++ b/test/components/preprocessors/test_document_cleaner.py
@@ -139,3 +139,68 @@ def test_keep_id... | diff --git a/releasenotes/notes/add-unicode-normalization-and-ascii-mode-to-document-cleaner-ba536b46e499663c.yaml b/releasenotes/notes/add-unicode-normalization-and-ascii-mode-to-document-cleaner-ba536b46e499663c.yaml
new file mode 100644
index 0000000000..d4d28ee47b
--- /dev/null
+++ b/releasenotes/notes/add-unicode-... | [
{
"components": [
{
"doc": "Validate the parameters of the DocumentCleaner.\n\n:param unicode_normalization: Unicode normalization form to apply to the text.\n:raises ValueError: if the parameters are not valid.",
"lines": [
82,
90
],
"name": "DocumentCl... | [
"test/components/preprocessors/test_document_cleaner.py::TestDocumentCleaner::test_unicode_normalization",
"test/components/preprocessors/test_document_cleaner.py::TestDocumentCleaner::test_ascii_only"
] | [
"[",
"test/components/preprocessors/test_document_cleaner.py::TestDocumentCleaner::test_init",
"test/components/preprocessors/test_document_cleaner.py::TestDocumentCleaner::test_non_text_document",
"test/components/preprocessors/test_document_cleaner.py::TestDocumentCleaner::test_single_document",
"test/com... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
feat: add unicode normalization & ascii_only mode for DocumentCleaner
### Proposed Changes:
Added two new parameters to the `DocumentCleaner` Component, `unicode_normalization` and `ascii_only`.
... | f4d9c2bb917be0ffe132dffcc2ad4f1b0fcc5967 | |
conan-io__conan-16742 | 16,742 | conan-io/conan | null | e1063a152b8a969383f35c122a8b26eca58a0820 | 2024-07-28T14:42:58Z | diff --git a/conan/internal/api/install/generators.py b/conan/internal/api/install/generators.py
index fb7322ca651..c385820a770 100644
--- a/conan/internal/api/install/generators.py
+++ b/conan/internal/api/install/generators.py
@@ -30,7 +30,8 @@
"PremakeDeps": "conan.tools.premake",
"Ma... | diff --git a/test/functional/toolchains/qbs/test_qbsprofile.py b/test/functional/toolchains/qbs/test_qbsprofile.py
new file mode 100644
index 00000000000..93841cafc37
--- /dev/null
+++ b/test/functional/toolchains/qbs/test_qbsprofile.py
@@ -0,0 +1,51 @@
+import textwrap
+import pytest
+
+from conan.test.utils.tools imp... | [
{
"components": [
{
"doc": "",
"lines": [
281,
313
],
"name": "_vcvars_versions",
"signature": "def _vcvars_versions(conanfile):",
"type": "function"
}
],
"file": "conan/tools/microsoft/visual.py"
},
{
"components": ... | [
"test/integration/toolchains/qbs/test_qbsprofile.py::test_toolchain_from_path[gcc-13-Linux]",
"test/integration/toolchains/qbs/test_qbsprofile.py::test_toolchain_from_path[clang-15-Linux]",
"test/integration/toolchains/qbs/test_qbsprofile.py::test_toolchain_from_conf[gcc-13-Linux-gcc-g++]",
"test/integration/... | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Rework QbsProfile
The original QbsProfile class created a Qbs project file that should be imported in the project's source code. This was done that way for better compatibility with the QtCreator IDE ... | Here is the discussion in the issues of the pull request.
<issues>
[feature] Make Qbs Generators ready for conan 2.0
The Qbs generators should be on par with CMake. Transparent integration should be possible.
For this multiple things have to get changed:
* [ ] QbsProfile generator should _not_ delete the settings ... | 4a5b19a75db9225316c8cb022a2dfb9705a2af34 | |
tobymao__sqlglot-3798 | 3,798 | tobymao/sqlglot | null | 44d650637d5d7a662b57ec1d8ca74dffe0f7ad73 | 2024-07-23T08:57:29Z | diff --git a/sqlglot/dialects/dialect.py b/sqlglot/dialects/dialect.py
index a6409f862d..e08f8bae0e 100644
--- a/sqlglot/dialects/dialect.py
+++ b/sqlglot/dialects/dialect.py
@@ -1588,3 +1588,24 @@ def build_timestamp_from_parts(args: t.List) -> exp.Func:
def sha256_sql(self: Generator, expression: exp.SHA2) -> str:... | diff --git a/tests/dialects/test_postgres.py b/tests/dialects/test_postgres.py
index b89cd940ca..7aa279881f 100644
--- a/tests/dialects/test_postgres.py
+++ b/tests/dialects/test_postgres.py
@@ -565,24 +565,33 @@ def test_postgres(self):
"postgres": "GENERATE_SERIES(CAST('2019-01-01' AS TIMESTAMP), CUR... | [] | [
"tests/dialects/test_postgres.py::TestPostgres::test_postgres"
] | [
"tests/dialects/test_postgres.py::TestPostgres::test_array_offset",
"tests/dialects/test_postgres.py::TestPostgres::test_bool_or",
"tests/dialects/test_postgres.py::TestPostgres::test_ddl",
"tests/dialects/test_postgres.py::TestPostgres::test_operator",
"tests/dialects/test_postgres.py::TestPostgres::test_r... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
feat(hive, spark, db): Support for exp.GenerateSeries
Fixes #3793
This PR adds support for the `SEQUENCE()` function across the Hive hierarchy. The generation is similar to the existing Presto/Trin... | Here is the discussion in the issues of the pull request.
<issues>
generate_series() is not transpiled to sequence() when going from duckdb to spark sql
**Fully reproducible code snippet**
```python
from sqlglot import transpile
# duckdb query
sql_query = """
WITH date_table AS (
SELECT
UNNEST(... | ceb42fabad60312699e4b15936aeebac00e22e4d | |
pvlib__pvlib-python-2140 | 2,140 | pvlib/pvlib-python | 0.10 | 5e43be7a7a924f8161181a49e93053aa4a80f54d | 2024-07-20T20:42:11Z | diff --git a/docs/sphinx/source/reference/effects_on_pv_system_output/spectrum.rst b/docs/sphinx/source/reference/effects_on_pv_system_output/spectrum.rst
index 15fd1d09b8..23b5f5bb6d 100644
--- a/docs/sphinx/source/reference/effects_on_pv_system_output/spectrum.rst
+++ b/docs/sphinx/source/reference/effects_on_pv_syst... | diff --git a/pvlib/tests/spectrum/test_irradiance.py b/pvlib/tests/spectrum/test_irradiance.py
index dd6740a02f..63b0bc95d2 100644
--- a/pvlib/tests/spectrum/test_irradiance.py
+++ b/pvlib/tests/spectrum/test_irradiance.py
@@ -72,3 +72,67 @@ def test_get_reference_spectra_invalid_reference():
# test that an invali... | diff --git a/docs/sphinx/source/reference/effects_on_pv_system_output/spectrum.rst b/docs/sphinx/source/reference/effects_on_pv_system_output/spectrum.rst
index 15fd1d09b8..23b5f5bb6d 100644
--- a/docs/sphinx/source/reference/effects_on_pv_system_output/spectrum.rst
+++ b/docs/sphinx/source/reference/effects_on_pv_syst... | [
{
"components": [
{
"doc": "Calculate the average photon energy of one or more spectral irradiance\ndistributions.\n\nParameters\n----------\nspectra : pandas.Series or pandas.DataFrame\n\n Spectral irradiance, must be positive. [Wm⁻²nm⁻¹]\n\n A single spectrum must be a :py:class:`pandas.Se... | [
"pvlib/tests/spectrum/test_irradiance.py::test_average_photon_energy_series",
"pvlib/tests/spectrum/test_irradiance.py::test_average_photon_energy_dataframe",
"pvlib/tests/spectrum/test_irradiance.py::test_average_photon_energy_invalid_type",
"pvlib/tests/spectrum/test_irradiance.py::test_average_photon_energ... | [
"pvlib/tests/spectrum/test_irradiance.py::test_get_am15g",
"pvlib/tests/spectrum/test_irradiance.py::test_get_reference_spectra[ASTM",
"pvlib/tests/spectrum/test_irradiance.py::test_get_reference_spectra_custom_wavelengths",
"pvlib/tests/spectrum/test_irradiance.py::test_get_reference_spectra_invalid_referenc... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Create function to calculate average photon energy
- [X] Closes #2135
- [X] I am familiar with the [contributing guidelines](https://pvlib-python.readthedocs.io/en/latest/contributing.html)
- [x]... | Here is the discussion in the issues of the pull request.
<issues>
Create calculate_avg_photon_energy function
I think a function to calculate the average photon energy (APE) using spectral irradiance data as an input would be a useful feature in pvlib.
**Additional context**
This would support PR #2126. While ther... | 6af80da35a7c96059c534ee38be9123bcfc7f50f |
aws-cloudformation__cfn-lint-3523 | 3,523 | aws-cloudformation/cfn-lint | null | c6b81489c4cee413d458dcd264fe72f477a54aa0 | 2024-07-19T02:15:21Z | diff --git a/src/cfnlint/rules/resources/lmbd/PermissionSourceAccount.py b/src/cfnlint/rules/resources/lmbd/PermissionSourceAccount.py
new file mode 100644
index 0000000000..f1137c7ba7
--- /dev/null
+++ b/src/cfnlint/rules/resources/lmbd/PermissionSourceAccount.py
@@ -0,0 +1,99 @@
+"""
+Copyright Amazon.com, Inc. or it... | diff --git a/test/unit/rules/resources/lmbd/test_permission_source_account.py b/test/unit/rules/resources/lmbd/test_permission_source_account.py
new file mode 100644
index 0000000000..3135a86ff1
--- /dev/null
+++ b/test/unit/rules/resources/lmbd/test_permission_source_account.py
@@ -0,0 +1,193 @@
+"""
+Copyright Amazon... | [
{
"components": [
{
"doc": "",
"lines": [
18,
98
],
"name": "PermissionSourceAccount",
"signature": "class PermissionSourceAccount(CfnLintKeyword):",
"type": "class"
},
{
"doc": "",
"lines": [
30,
... | [
"test/unit/rules/resources/lmbd/test_permission_source_account.py::test_validate[instance0-expected0]",
"test/unit/rules/resources/lmbd/test_permission_source_account.py::test_validate[instance1-expected1]",
"test/unit/rules/resources/lmbd/test_permission_source_account.py::test_validate[instance2-expected2]",
... | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Create rule W3663 to validate lmbd permission account
*Issue #, if available:*
fix #2155
*Description of changes:*
- Create rule W3663 to validate lmbd permission account
By submitting this pul... | Here is the discussion in the issues of the pull request.
<issues>
[RFE] Warn when AWS::Lambda::Permission.SouceAccount is missing for S3 SourceArns
*cfn-lint version: (`cfn-lint --version`)*
>$ cfn-lint --version
>cfn-lint 0.54.3
*Feature Request - Warn when AWS::Lambda::Permission.SouceAccount is missing*
When... | 4b214774e419d871b7b498fb5256e2ed09393795 | |
deepset-ai__haystack-8042 | 8,042 | deepset-ai/haystack | null | 031b0bfbd836f128736220589917a62c43c9c512 | 2024-07-18T09:14:08Z | diff --git a/haystack/document_stores/types/__init__.py b/haystack/document_stores/types/__init__.py
index df2032f79c..ed6becf8b4 100644
--- a/haystack/document_stores/types/__init__.py
+++ b/haystack/document_stores/types/__init__.py
@@ -2,8 +2,8 @@
#
# SPDX-License-Identifier: Apache-2.0
-from .filter_policy impo... | diff --git a/test/document_stores/test_filter_policy.py b/test/document_stores/test_filter_policy.py
index b7efcd0672..d775ee356e 100644
--- a/test/document_stores/test_filter_policy.py
+++ b/test/document_stores/test_filter_policy.py
@@ -3,43 +3,178 @@
# SPDX-License-Identifier: Apache-2.0
import pytest
-from typi... | diff --git a/releasenotes/notes/implement-merge-filter-logic-99e6785a78f80ae9.yaml b/releasenotes/notes/implement-merge-filter-logic-99e6785a78f80ae9.yaml
new file mode 100644
index 0000000000..c90479c2c6
--- /dev/null
+++ b/releasenotes/notes/implement-merge-filter-logic-99e6785a78f80ae9.yaml
@@ -0,0 +1,4 @@
+---
+enh... | [
{
"components": [
{
"doc": "Check if the given filter is a comparison filter.\n\n:param filter_item: The filter to check.\n:returns: True if the filter is a comparison filter, False otherwise.",
"lines": [
43,
50
],
"name": "is_comparison_filter",
... | [
"[",
"test/document_stores/test_filter_policy.py::test_merge_two_comparison_filters",
"test/document_stores/test_filter_policy.py::test_merge_init_comparison_and_runtime_logical_filters",
"test/document_stores/test_filter_policy.py::test_merge_runtime_comparison_and_init_logical_filters_with_string_operators"... | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
feat: Implement apply_filter_policy and FilterPolicy.MERGE for the new filters
### Why:
Implements proper merging of new filters.
- fixes: https://github.com/deepset-ai/haystack/issues/7995
###... | f4d9c2bb917be0ffe132dffcc2ad4f1b0fcc5967 | |
aws-cloudformation__cfn-lint-3513 | 3,513 | aws-cloudformation/cfn-lint | null | fbdd7fa73f13dd78e252b87c6c9fb9872bee7bae | 2024-07-17T18:20:09Z | diff --git a/src/cfnlint/conditions/conditions.py b/src/cfnlint/conditions/conditions.py
index da42ee8918..915932361c 100644
--- a/src/cfnlint/conditions/conditions.py
+++ b/src/cfnlint/conditions/conditions.py
@@ -240,6 +240,22 @@ def build_scenarios(
# formatting or just the wrong condition name
... | diff --git a/test/unit/module/cfn_yaml/test_yaml.py b/test/unit/module/cfn_yaml/test_yaml.py
index b4668a19b8..4e5b5afc80 100644
--- a/test/unit/module/cfn_yaml/test_yaml.py
+++ b/test/unit/module/cfn_yaml/test_yaml.py
@@ -27,7 +27,7 @@ def setUp(self):
},
"generic_bad": {
"fi... | [
{
"components": [
{
"doc": "",
"lines": [
243,
257
],
"name": "Conditions._build_cfn_implies",
"signature": "def _build_cfn_implies(self, scenarios) -> And:",
"type": "function"
}
],
"file": "src/cfnlint/conditions/condition... | [
"test/unit/module/cfn_yaml/test_yaml.py::TestYamlParse::test_map_failure",
"test/unit/module/cfn_yaml/test_yaml.py::TestYamlParse::test_success_parse",
"test/unit/module/cfn_yaml/test_yaml.py::TestYamlParse::test_success_parse_stdin",
"test/unit/module/conditions/test_conditions.py::TestConditions::test_bad_c... | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Create relationship rule and validate ImageId on Instance
*Issue #, if available:*
fix #3473
fix #817
*Description of changes:*
- Create relationship rule and validate ImageId on Instance
- Crea... | Here is the discussion in the issues of the pull request.
<issues>
The task definition is configured to use a dynamic host port, but the target group has a health check port specified
*cfn-lint version: (`cfn-lint --version`)*
```
pip install cfn-lint
Collecting cfn-lint
Downloading https://files.pythonhosted.org... | 4b214774e419d871b7b498fb5256e2ed09393795 | |
google-deepmind__optax-1015 | 1,015 | google-deepmind/optax | null | f21430a07de801957ee0083bd51b721b1243065e | 2024-07-17T07:07:35Z | diff --git a/optax/transforms/_masking.py b/optax/transforms/_masking.py
index 1e0648a55..f35001bea 100644
--- a/optax/transforms/_masking.py
+++ b/optax/transforms/_masking.py
@@ -36,6 +36,13 @@ class MaskedNode(NamedTuple):
"""
+def _mask_callable(
+ mask: Union[base.PyTree, Callable[[base.Params], base.PyT... | diff --git a/optax/transforms/_masking_test.py b/optax/transforms/_masking_test.py
index 9bba78eaf..d23e46b51 100644
--- a/optax/transforms/_masking_test.py
+++ b/optax/transforms/_masking_test.py
@@ -15,14 +15,16 @@
"""Tests for optax.transforms._masking."""
import copy
+import dataclasses
from typing import cast... | [
{
"components": [
{
"doc": "",
"lines": [
39,
43
],
"name": "_mask_callable",
"signature": "def _mask_callable( mask: Union[base.PyTree, Callable[[base.Params], base.PyTree]] ):",
"type": "function"
}
],
"file": "optax/trans... | [
"optax/transforms/_masking_test.py::MaskedTest::test_mask_compatible_callable_pytree"
] | [
"optax/transforms/_masking_test.py::MaskedTest::test_empty0",
"optax/transforms/_masking_test.py::MaskedTest::test_empty1",
"optax/transforms/_masking_test.py::MaskedTest::test_empty2",
"optax/transforms/_masking_test.py::MaskedTest::test_mask_fn__with_device",
"optax/transforms/_masking_test.py::MaskedTest... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Make masking compatible with callable pytrees a la Equinox
Make masking compatible with callable pytrees a la Equinox
----------
</request>
There are several new functions or classes that need to b... | 1e08bccf195ac54e7d9d766eb5e69345bf0e3230 | ||
aws-cloudformation__cfn-lint-3505 | 3,505 | aws-cloudformation/cfn-lint | null | 33acafd3d1739b85daf7d49eb6729b0239561add | 2024-07-16T16:46:05Z | diff --git a/src/cfnlint/data/schemas/extensions/aws_lambda_function/environment_variable_keys.json b/src/cfnlint/data/schemas/extensions/aws_lambda_function/environment_variable_keys.json
new file mode 100644
index 0000000000..6c3897baea
--- /dev/null
+++ b/src/cfnlint/data/schemas/extensions/aws_lambda_function/envir... | diff --git a/test/unit/rules/resources/lmbd/test_function_environment_keys.py b/test/unit/rules/resources/lmbd/test_function_environment_keys.py
new file mode 100644
index 0000000000..bad7695b21
--- /dev/null
+++ b/test/unit/rules/resources/lmbd/test_function_environment_keys.py
@@ -0,0 +1,109 @@
+"""
+Copyright Amazon... | diff --git a/src/cfnlint/data/schemas/extensions/aws_lambda_function/environment_variable_keys.json b/src/cfnlint/data/schemas/extensions/aws_lambda_function/environment_variable_keys.json
new file mode 100644
index 0000000000..6c3897baea
--- /dev/null
+++ b/src/cfnlint/data/schemas/extensions/aws_lambda_function/envir... | [
{
"components": [
{
"doc": "",
"lines": [
16,
51
],
"name": "FunctionEnvironmentKeys",
"signature": "class FunctionEnvironmentKeys(CfnLintJsonSchema):",
"type": "class"
},
{
"doc": "Init",
"lines": [
... | [
"test/unit/rules/resources/lmbd/test_function_environment_keys.py::test_validate[instance0-expected0]",
"test/unit/rules/resources/lmbd/test_function_environment_keys.py::test_validate[instance1-expected1]",
"test/unit/rules/resources/lmbd/test_function_environment_keys.py::test_validate[instance2-expected2]"
] | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Add rule E3663 to validate lambda fn env vars
*Issue #, if available:*
*Description of changes:*
- Add rule E3663 to validate lambda fn env vars
By submitting this pull request, I confirm that ... | 4b214774e419d871b7b498fb5256e2ed09393795 | |
Textualize__textual-4739 | 4,739 | Textualize/textual | null | 7c8450887d3e9850898130270a5e0e4b34de2fd2 | 2024-07-14T17:07:05Z | diff --git a/CHANGELOG.md b/CHANGELOG.md
index c530fcf562..fbb4b8a577 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -10,6 +10,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
### Added
- `TextArea.line_number_start` reactive attribute https://github.com/Textualize/textual/pull/4471
+- A... | diff --git a/tests/test_color.py b/tests/test_color.py
index bdae7a7cbb..127d24d716 100644
--- a/tests/test_color.py
+++ b/tests/test_color.py
@@ -245,8 +245,9 @@ def test_gradient_errors():
def test_gradient():
gradient = Gradient(
(0, Color(255, 0, 0)),
- (0.5, Color(0, 0, 255)),
+ (0.5, ... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index c530fcf562..fbb4b8a577 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -10,6 +10,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
### Added
- `TextArea.line_number_start` reactive attribute https://github.com/Textualize/textual/pull/4471
+- A... | [
{
"components": [
{
"doc": "A list of colors in the gradient.",
"lines": [
595,
614
],
"name": "Gradient.colors",
"signature": "def colors(self) -> list[Color]:",
"type": "function"
},
{
"doc": "A list of colors in the... | [
"tests/test_color.py::test_gradient"
] | [
"tests/test_color.py::test_rich_color",
"tests/test_color.py::test_normalized",
"tests/test_color.py::test_clamped",
"tests/test_color.py::test_css",
"tests/test_color.py::test_monochrome",
"tests/test_color.py::test_rgb",
"tests/test_color.py::test_hsl",
"tests/test_color.py::test_color_brightness",
... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
faster gradients
Optimized linear color gradients, with some precalculation.
In the future gradients will become more of a first class feature.
----------
</request>
There are several new functio... | 86e93536b991014e0ea4bf993068202b446bb698 | |
astronomer__astronomer-cosmos-1091 | 1,091 | astronomer/astronomer-cosmos | null | 1f276384da7c165f943ef5df32a550a48dff61a5 | 2024-07-13T20:17:34Z | diff --git a/cosmos/profiles/__init__.py b/cosmos/profiles/__init__.py
index 392b4f78b..00b934881 100644
--- a/cosmos/profiles/__init__.py
+++ b/cosmos/profiles/__init__.py
@@ -10,6 +10,7 @@
from .bigquery.service_account_file import GoogleCloudServiceAccountFileProfileMapping
from .bigquery.service_account_keyfile_d... | diff --git a/tests/profiles/databricks/test_dbr_oauth.py b/tests/profiles/databricks/test_dbr_oauth.py
new file mode 100644
index 000000000..96228c4bb
--- /dev/null
+++ b/tests/profiles/databricks/test_dbr_oauth.py
@@ -0,0 +1,71 @@
+"""Tests for the databricks OAuth profile."""
+
+from unittest.mock import patch
+
+imp... | [
{
"components": [
{
"doc": "Maps Airflow Databricks connections with the client auth to dbt profiles.\n\nhttps://docs.getdbt.com/reference/warehouse-setups/databricks-setup\nhttps://airflow.apache.org/docs/apache-airflow-providers-databricks/stable/connections/databricks.html",
"lines": [
... | [
"tests/profiles/databricks/test_dbr_oauth.py::test_connection_claiming"
] | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
add DatabricksOauthProfileMapping profile
## Description
As of now, Token-based auth is the only possible way to access databricks from cosmos, even though dbt-databricks support OAuth-based access... | Here is the discussion in the issues of the pull request.
<issues>
[Feature] Databricks - Allow each dbt node to run in its own configurable cluster
### Description
I am currently working in a company that is using an in-house solution to run dbt-like transformations on databricks and I am trying to switch to dbt & co... | c5edba07d2265d5185eaba149a639e8a0740e498 | |
tobymao__sqlglot-3757 | 3,757 | tobymao/sqlglot | null | 15ca924ac6e8a72396a882c394856e466cae9ac3 | 2024-07-11T11:02:22Z | diff --git a/sqlglot/dialects/duckdb.py b/sqlglot/dialects/duckdb.py
index c8313054fd..0aaf69c6da 100644
--- a/sqlglot/dialects/duckdb.py
+++ b/sqlglot/dialects/duckdb.py
@@ -381,6 +381,7 @@ class Generator(generator.Generator):
SUPPORTS_TO_NUMBER = False
COPY_HAS_INTO_KEYWORD = False
STAR_EX... | diff --git a/tests/dialects/test_dialect.py b/tests/dialects/test_dialect.py
index c0afb2f467..54cbb4975d 100644
--- a/tests/dialects/test_dialect.py
+++ b/tests/dialects/test_dialect.py
@@ -2566,3 +2566,33 @@ def test_reserved_keywords(self):
"""SELECT partition.d FROM t PARTITION (d)""",
"""... | [] | [
"tests/dialects/test_dialect.py::TestDialect::test_string_functions"
] | [
"tests/dialects/test_dialect.py::TestDialect::test_alias",
"tests/dialects/test_dialect.py::TestDialect::test_array",
"tests/dialects/test_dialect.py::TestDialect::test_array_any",
"tests/dialects/test_dialect.py::TestDialect::test_cast",
"tests/dialects/test_dialect.py::TestDialect::test_cast_to_user_defin... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
feat: Support for RPAD & LPAD functions
Introduce `exp.Pad` which supports the string padding functions `LPAD()`, `RPAD()`; The joint node is used because these 2 functions share the same signature bu... | ceb42fabad60312699e4b15936aeebac00e22e4d | ||
pvlib__pvlib-python-2124 | 2,124 | pvlib/pvlib-python | 0.10 | 899b10c2f327aecb4603c36d33ac6e1561c694c3 | 2024-07-10T16:00:30Z | diff --git a/docs/sphinx/source/reference/airmass_atmospheric.rst b/docs/sphinx/source/reference/airmass_atmospheric.rst
index fbd33a5f28..384c345aec 100644
--- a/docs/sphinx/source/reference/airmass_atmospheric.rst
+++ b/docs/sphinx/source/reference/airmass_atmospheric.rst
@@ -17,3 +17,4 @@ Airmass and atmospheric mod... | diff --git a/pvlib/tests/test_atmosphere.py b/pvlib/tests/test_atmosphere.py
index 46db622ee5..e12a41dc6d 100644
--- a/pvlib/tests/test_atmosphere.py
+++ b/pvlib/tests/test_atmosphere.py
@@ -131,3 +131,74 @@ def test_bird_hulstrom80_aod_bb():
aod380, aod500 = 0.22072480948195175, 0.1614279181106312
bird_hulst... | diff --git a/docs/sphinx/source/reference/airmass_atmospheric.rst b/docs/sphinx/source/reference/airmass_atmospheric.rst
index fbd33a5f28..384c345aec 100644
--- a/docs/sphinx/source/reference/airmass_atmospheric.rst
+++ b/docs/sphinx/source/reference/airmass_atmospheric.rst
@@ -17,3 +17,4 @@ Airmass and atmospheric mod... | [
{
"components": [
{
"doc": "Estimate wind speed for different heights.\n\nThe model is based on the power law equation by Hellmann [1]_ [2]_.\n\nParameters\n----------\nwind_speed_reference : numeric\n Measured wind speed. [m/s]\n\nheight_reference : float\n The height above ground at which ... | [
"pvlib/tests/test_atmosphere.py::test_windspeed_powerlaw_ndarray",
"pvlib/tests/test_atmosphere.py::test_windspeed_powerlaw_series",
"pvlib/tests/test_atmosphere.py::test_windspeed_powerlaw_invalid"
] | [
"pvlib/tests/test_atmosphere.py::test_pres2alt",
"pvlib/tests/test_atmosphere.py::test_alt2pres",
"pvlib/tests/test_atmosphere.py::test_airmass[simple-expected0]",
"pvlib/tests/test_atmosphere.py::test_airmass[kasten1966-expected1]",
"pvlib/tests/test_atmosphere.py::test_airmass[youngirvine1967-expected2]",... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Function to estimate wind speed at different heights
- [X] Closes #2118
- [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>
Expression for calculating wind speed at different heights
Most times, the wind speed provided in weather files is measured at a height of 10 m. However, in many cases it is required to estimate the wind speed at panel height. Which equation should be u... | 6af80da35a7c96059c534ee38be9123bcfc7f50f |
roboflow__supervision-1340 | 1,340 | roboflow/supervision | null | de896189b83a1f9434c0a37dd9192ee00d2a1283 | 2024-07-10T10:14:46Z | diff --git a/docs/detection/utils.md b/docs/detection/utils.md
index ea98c8683..85fcacda5 100644
--- a/docs/detection/utils.md
+++ b/docs/detection/utils.md
@@ -80,6 +80,18 @@ comments: true
<h2><a href="#supervision.detection.utils.contains_holes">contains_holes</a></h2>
</div>
+:::supervision.detection.utils.xy... | diff --git a/test/detection/test_utils.py b/test/detection/test_utils.py
index 20c818e61..9224c6760 100644
--- a/test/detection/test_utils.py
+++ b/test/detection/test_utils.py
@@ -17,6 +17,8 @@
move_boxes,
process_roboflow_result,
scale_boxes,
+ xcycwh_to_xyxy,
+ xywh_to_xyxy,
)
TEST_MASK = np... | diff --git a/docs/detection/utils.md b/docs/detection/utils.md
index ea98c8683..85fcacda5 100644
--- a/docs/detection/utils.md
+++ b/docs/detection/utils.md
@@ -80,6 +80,18 @@ comments: true
<h2><a href="#supervision.detection.utils.contains_holes">contains_holes</a></h2>
</div>
+:::supervision.detection.utils.xy... | [
{
"components": [
{
"doc": "Converts bounding box coordinates from `(center_x, center_y, width, height)`\nformat to `(x_min, y_min, x_max, y_max)` format.\n\nArgs:\n xcycwh (np.ndarray): A numpy array of shape `(N, 4)` where each row\n corresponds to a bounding box in the format `(center... | [
"test/detection/test_utils.py::test_clip_boxes[xyxy0-resolution_wh0-expected_result0]",
"test/detection/test_utils.py::test_clip_boxes[xyxy1-resolution_wh1-expected_result1]",
"test/detection/test_utils.py::test_clip_boxes[xyxy2-resolution_wh2-expected_result2]",
"test/detection/test_utils.py::test_clip_boxes... | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
`xywh_to_xyxy` and `xcycwh_to_xyxy` box utils
# Description
Updated `xywh_to_xyxy` and added `xcycwh_to_xyxy` box utils.
## Type of change
Please delete options that are not relevant.
- ... | 3eb5c0b024e3e46877b7fe4fd66e6177d1308ba0 | |
pgmpy__pgmpy-1797 | 1,797 | pgmpy/pgmpy | null | 336c144b95aa21718e1898930934eb63474d1caf | 2024-07-05T15:20:32Z | diff --git a/pgmpy/utils/__init__.py b/pgmpy/utils/__init__.py
index adf8bb667..22d901b77 100644
--- a/pgmpy/utils/__init__.py
+++ b/pgmpy/utils/__init__.py
@@ -2,7 +2,7 @@
from .mathext import cartesian, sample_discrete
from .optimizer import optimize, pinverse
from .state_name import StateNameMixin
-from .utils im... | diff --git a/pgmpy/tests/test_utils/test_utils.py b/pgmpy/tests/test_utils/test_utils.py
index 1ab6e78a0..38b1041dd 100644
--- a/pgmpy/tests/test_utils/test_utils.py
+++ b/pgmpy/tests/test_utils/test_utils.py
@@ -1,11 +1,13 @@
+import os
import random
import unittest
import numpy as np
import pandas as pd
+import... | diff --git a/requirements/runtime.txt b/requirements/runtime.txt
index c91b5f241..b4f6f5af6 100644
--- a/requirements/runtime.txt
+++ b/requirements/runtime.txt
@@ -10,3 +10,4 @@ tqdm>=4.64
joblib>=1.2
opt_einsum>=3.3
xgboost>=2.0.3
+google-generativeai>=0.7.1
| [
{
"components": [
{
"doc": "Asks a Large Language Model (LLM) for the orientation of an edge between `x` and `y`.\n\nParameters\n----------\nx: str\n The first variable's name\n\ny: str\n The second variable's name\n\ndescription: dict\n A dict of the form {variable: description} containi... | [
"pgmpy/tests/test_utils/test_utils.py::TestDAGCreation::test_get_example_model",
"pgmpy/tests/test_utils/test_utils.py::TestDiscretization::test_rounding_disc"
] | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Adds an LLM based pairwise orientation method
### Your checklist for this pull request
Please review the [guidelines for contributing](CONTRIBUTING.md) to this repository.
- [ ] Make sure you are ... | cf8d0f12e2e5be62b01ff8fded85f3f64eab1e84 | |
astropy__astropy-16677 | 16,677 | astropy/astropy | v5.3 | f5126c765a6a8db8abc7504275d9c2e90ffbd526 | 2024-07-04T20:45:35Z | diff --git a/astropy/modeling/core.py b/astropy/modeling/core.py
index b469f32cdf72..f0fd3619f2d4 100644
--- a/astropy/modeling/core.py
+++ b/astropy/modeling/core.py
@@ -747,6 +747,10 @@ def __init__(self, *args, meta=None, name=None, **kwargs):
self._initialize_slices()
self._initialize_unit_support... | diff --git a/astropy/modeling/tests/test_core.py b/astropy/modeling/tests/test_core.py
index d1dbe011a61e..097a35cd60d2 100644
--- a/astropy/modeling/tests/test_core.py
+++ b/astropy/modeling/tests/test_core.py
@@ -1505,3 +1505,68 @@ def test_model_string_indexing():
assert compound["Model1"] == gauss
asser... | diff --git a/docs/changes/modeling/16677.feature.rst b/docs/changes/modeling/16677.feature.rst
new file mode 100644
index 000000000000..8c7d14e8555d
--- /dev/null
+++ b/docs/changes/modeling/16677.feature.rst
@@ -0,0 +1,3 @@
+Added ``Model.has_tied``, ``Model.has_fixed``, and ``Model.has_bounds`` attributes to make
+it... | [
{
"components": [
{
"doc": "Whether the model has any fixed constraints.",
"lines": [
1345,
1351
],
"name": "Model.has_fixed",
"signature": "def has_fixed(self):",
"type": "function"
},
{
"doc": "Whether the model has ... | [
"astropy/modeling/tests/test_core.py::test_has_constraints",
"astropy/modeling/tests/test_core.py::test_has_constraints_with_sync_constraints"
] | [
"astropy/modeling/tests/test_core.py::test_Model_instance_repr_and_str",
"astropy/modeling/tests/test_core.py::test_Model_array_parameter",
"astropy/modeling/tests/test_core.py::test_inputless_model",
"astropy/modeling/tests/test_core.py::test_ParametericModel",
"astropy/modeling/tests/test_core.py::test_cu... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Add ``has_tied``, ``has_fixed`` and ``has_bounds`` properties to ``Model``
*This has been split out from #16673 for ease of review*
Models include ``tied``, ``fixed``, and ``bounds`` properties tha... | 2d281019494aaebf522f6626c0dae37510c16688 | |
conan-io__conan-16613 | 16,613 | conan-io/conan | null | 3c72e2a83b468bb0d18e958c7e160fbb324b146e | 2024-07-04T20:02:53Z | diff --git a/conan/tools/gnu/makedeps.py b/conan/tools/gnu/makedeps.py
index c3d0017b988..d02cc353404 100644
--- a/conan/tools/gnu/makedeps.py
+++ b/conan/tools/gnu/makedeps.py
@@ -30,7 +30,9 @@
import textwrap
from jinja2 import Template, StrictUndefined
+from typing import Optional
+from conan.api.output import... | diff --git a/test/integration/toolchains/gnu/test_makedeps.py b/test/integration/toolchains/gnu/test_makedeps.py
index 948174280b1..31fd5d3a6fd 100644
--- a/test/integration/toolchains/gnu/test_makedeps.py
+++ b/test/integration/toolchains/gnu/test_makedeps.py
@@ -30,6 +30,8 @@ def package_info(self):
... | [
{
"components": [
{
"doc": "Convert property dictionary keys to Make-variable-friendly syntax\n:param properties: The property dictionary to be converted (None is also accepted)\n:return: Modified property dictionary with keys not including bad characters that are not parsed correctly",
"l... | [
"test/integration/toolchains/gnu/test_makedeps.py::test_make_dirs_with_abs_path",
"test/integration/toolchains/gnu/test_makedeps.py::test_make_with_public_deps_and_component_requires"
] | [
"test/integration/toolchains/gnu/test_makedeps.py::test_make_empty_dirs",
"test/integration/toolchains/gnu/test_makedeps.py::test_libs_and_system_libs",
"test/integration/toolchains/gnu/test_makedeps.py::test_multiple_include_and_lib_dirs",
"test/integration/toolchains/gnu/test_makedeps.py::test_make_with_pub... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Add properties to MakeDeps generator
Changelog: Feature: MakeDeps generator generates make variables for dependencies and their components.
Docs: https://github.com/conan-io/docs/pull/3794
Fixes #... | Here is the discussion in the issues of the pull request.
<issues>
[feature] Add properties to MakeDeps generator
### What is your suggestion?
I would like to access custom properties from GNU Make files generated by the MakeDeps generator. If the receipt defines custom properties in the `package_info()` method then t... | 4a5b19a75db9225316c8cb022a2dfb9705a2af34 | |
aws-cloudformation__cfn-lint-3464 | 3,464 | aws-cloudformation/cfn-lint | null | ee6271f76b681e64a97f02e28af4c514e1006a41 | 2024-07-04T17:00:21Z | diff --git a/src/cfnlint/data/schemas/extensions/aws_ecs_taskdefinition/fargate_cpu_memory.json b/src/cfnlint/data/schemas/extensions/aws_ecs_taskdefinition/fargate_cpu_memory.json
new file mode 100644
index 0000000000..3fc18efad7
--- /dev/null
+++ b/src/cfnlint/data/schemas/extensions/aws_ecs_taskdefinition/fargate_cp... | diff --git a/test/unit/rules/resources/ecs/test_ecs_fargate_cpu_memory.py b/test/unit/rules/resources/ecs/test_ecs_fargate_cpu_memory.py
new file mode 100644
index 0000000000..7aacac0af5
--- /dev/null
+++ b/test/unit/rules/resources/ecs/test_ecs_fargate_cpu_memory.py
@@ -0,0 +1,132 @@
+"""
+Copyright Amazon.com, Inc. o... | diff --git a/src/cfnlint/data/schemas/extensions/aws_ecs_taskdefinition/fargate_cpu_memory.json b/src/cfnlint/data/schemas/extensions/aws_ecs_taskdefinition/fargate_cpu_memory.json
new file mode 100644
index 0000000000..3fc18efad7
--- /dev/null
+++ b/src/cfnlint/data/schemas/extensions/aws_ecs_taskdefinition/fargate_cp... | [
{
"components": [
{
"doc": "",
"lines": [
15,
40
],
"name": "FargateCpuMemory",
"signature": "class FargateCpuMemory(CfnLintJsonSchema):",
"type": "class"
},
{
"doc": "",
"lines": [
27,
32
... | [
"test/unit/rules/resources/ecs/test_ecs_fargate_cpu_memory.py::test_validate[instance0-expected0]",
"test/unit/rules/resources/ecs/test_ecs_fargate_cpu_memory.py::test_validate[instance1-expected1]",
"test/unit/rules/resources/ecs/test_ecs_fargate_cpu_memory.py::test_validate[instance2-expected2]",
"test/unit... | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Add two new rules to validate fargate tasks
*Issue #, if available:*
#3453
*Description of changes:*
- Add rule E3047 to validate ECS Fargate cpu/memory on a task definition
- Add rule E3048 to... | 4b214774e419d871b7b498fb5256e2ed09393795 | |
conan-io__conan-16596 | 16,596 | conan-io/conan | null | a474e3d67c1a0acfc4f8fa7db2f71de4bd089466 | 2024-07-03T11:09:49Z | diff --git a/conan/tools/gnu/gnutoolchain.py b/conan/tools/gnu/gnutoolchain.py
index 9848e18fce5..d154f1cfbf7 100644
--- a/conan/tools/gnu/gnutoolchain.py
+++ b/conan/tools/gnu/gnutoolchain.py
@@ -1,3 +1,5 @@
+import os
+
from conan.internal import check_duplicated_generator
from conan.internal.internal_tools import ... | diff --git a/test/functional/toolchains/gnu/autotools/test_android.py b/test/functional/toolchains/gnu/autotools/test_android.py
index dc0fc430800..665ece68406 100644
--- a/test/functional/toolchains/gnu/autotools/test_android.py
+++ b/test/functional/toolchains/gnu/autotools/test_android.py
@@ -4,7 +4,6 @@
import p... | [
{
"components": [
{
"doc": "",
"lines": [
124,
170
],
"name": "GnuToolchain._resolve_android_cross_compilation",
"signature": "def _resolve_android_cross_compilation(self):",
"type": "function"
},
{
"doc": "",
... | [
"test/integration/toolchains/gnu/test_gnutoolchain.py::test_extra_flags_via_conf[Macos]",
"test/integration/toolchains/gnu/test_gnutoolchain.py::test_extra_flags_via_conf[Linux]",
"test/integration/toolchains/gnu/test_gnutoolchain.py::test_extra_flags_via_conf[Windows]",
"test/integration/toolchains/gnu/test_... | [
"test/integration/toolchains/gnu/test_gnutoolchain.py::test_not_none_values",
"test/integration/toolchains/gnu/test_gnutoolchain.py::test_set_prefix",
"test/integration/toolchains/gnu/test_gnutoolchain.py::test_unknown_compiler",
"test/integration/toolchains/gnu/test_gnutoolchain.py::test_autotools_crossbuild... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
[GnuToolchain] Update extra env flags (Android + `CC|CXX_FOR_BUILD`)
Changelog: Feature: Added `XXX_FOR_BUILD` flags and Android extra ones to `extra_env` attribute in `GnuToolchain`.
Docs: omit
L... | 4a5b19a75db9225316c8cb022a2dfb9705a2af34 | ||
tobymao__sqlglot-3725 | 3,725 | tobymao/sqlglot | null | f4a28721fd33edb3178c1d99746209dadfbba487 | 2024-07-02T10:34:36Z | diff --git a/sqlglot/dialects/databricks.py b/sqlglot/dialects/databricks.py
index e2628dc957..00f6353253 100644
--- a/sqlglot/dialects/databricks.py
+++ b/sqlglot/dialects/databricks.py
@@ -43,7 +43,7 @@ class JSONPathTokenizer(jsonpath.JSONPathTokenizer):
class Parser(Spark.Parser):
LOG_DEFAULTS_TO_LN =... | diff --git a/tests/dialects/test_dialect.py b/tests/dialects/test_dialect.py
index be262d4aed..c0afb2f467 100644
--- a/tests/dialects/test_dialect.py
+++ b/tests/dialects/test_dialect.py
@@ -102,14 +102,10 @@ def test_get_or_raise(self):
lowercase_mysql = Dialect.get_or_raise("mysql, normalization_strategy = l... | [] | [
"tests/dialects/test_dialect.py::TestDialect::test_get_or_raise",
"tests/dialects/test_presto.py::TestPresto::test_json_vs_row_extract"
] | [
"tests/dialects/test_dialect.py::TestDialect::test_alias",
"tests/dialects/test_dialect.py::TestDialect::test_array",
"tests/dialects/test_dialect.py::TestDialect::test_array_any",
"tests/dialects/test_dialect.py::TestDialect::test_cast",
"tests/dialects/test_dialect.py::TestDialect::test_cast_to_user_defin... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
feat(presto, trino): Configurable transpilation of Snowflake VARIANT
Fixes #3713
Both Snowflake and Databricks have a `VARIANT` type with similar extract notation e.g. `col:x.y` which can be used t... | Here is the discussion in the issues of the pull request.
<issues>
Snowflake nested fields are incorrectly translated using `JSON_EXTRACT`
**Before you file an issue**
- Make sure you specify the "read" dialect eg. `parse_one(sql, read="spark")`
- Make sure you specify the "write" dialect eg. `ast.sql(dialect="duckdb... | ceb42fabad60312699e4b15936aeebac00e22e4d | |
sphinx-doc__sphinx-12492 | 12,492 | sphinx-doc/sphinx | 7.4 | f0c51781760bdb5f28428412d09f63dd1d3d1037 | 2024-06-28T23:51:45Z | diff --git a/CHANGES.rst b/CHANGES.rst
index be3293da1e6..a59acdfdbce 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -34,6 +34,18 @@ Features added
Patch by James Addison.
* #12319: ``sphinx.ext.extlinks``: Add ``extlink-{name}`` CSS class to links.
Patch by Hugo van Kemenade.
+* Add helper methods for parsing re... | diff --git a/tests/test_util/test_util_docutils_sphinx_directive.py b/tests/test_util/test_util_docutils_sphinx_directive.py
new file mode 100644
index 00000000000..281f61f6b9a
--- /dev/null
+++ b/tests/test_util/test_util_docutils_sphinx_directive.py
@@ -0,0 +1,139 @@
+from __future__ import annotations
+
+from types ... | diff --git a/CHANGES.rst b/CHANGES.rst
index be3293da1e6..a59acdfdbce 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -34,6 +34,18 @@ Features added
Patch by James Addison.
* #12319: ``sphinx.ext.extlinks``: Add ``extlink-{name}`` CSS class to links.
Patch by Hugo van Kemenade.
+* Add helper methods for parsing re... | [
{
"components": [
{
"doc": "Parse the directive's content into nodes.",
"lines": [
430,
432
],
"name": "SphinxDirective.parse_content_to_nodes",
"signature": "def parse_content_to_nodes(self) -> list[Node]:",
"type": "function"
},
... | [
"tests/test_util/test_util_docutils_sphinx_directive.py::test_sphinx_directive_parse_content_to_nodes",
"tests/test_util/test_util_docutils_sphinx_directive.py::test_sphinx_directive_parse_text_to_nodes",
"tests/test_util/test_util_docutils_sphinx_directive.py::test_sphinx_directive_parse_inline"
] | [
"tests/test_util/test_util_docutils_sphinx_directive.py::test_sphinx_directive_env",
"tests/test_util/test_util_docutils_sphinx_directive.py::test_sphinx_directive_config",
"tests/test_util/test_util_docutils_sphinx_directive.py::test_sphinx_directive_get_source_info",
"tests/test_util/test_util_docutils_sphi... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Add reStructuredText parsing functions to ``SphinxDirective``
As was colourfully espoused in #8039, it is harder than it ought to be to parse reStructuredText into nodes in a sphinx directive.
This... | 35e7bfc347f845deff50787f0cd0340ea2ea0a5d | |
joke2k__faker-2068 | 2,068 | joke2k/faker | null | 554d1aa1ce75ff26cf36e35fa9aafb9f03d1e5f4 | 2024-06-28T19:05:15Z | diff --git a/faker/providers/person/sw/__init__.py b/faker/providers/person/sw/__init__.py
new file mode 100644
index 0000000000..6557496cb6
--- /dev/null
+++ b/faker/providers/person/sw/__init__.py
@@ -0,0 +1,409 @@
+from .. import Provider as PersonProvider
+
+
+class Provider(PersonProvider):
+ """
+ A Faker p... | diff --git a/tests/providers/test_person.py b/tests/providers/test_person.py
index ee5ac15720..5cece79ef7 100644
--- a/tests/providers/test_person.py
+++ b/tests/providers/test_person.py
@@ -32,6 +32,7 @@
from faker.providers.person.ru_RU import translit
from faker.providers.person.sk_SK import Provider as SkSKProvid... | [
{
"components": [
{
"doc": "A Faker provider for generating fake Swahili.",
"lines": [
4,
408
],
"name": "Provider",
"signature": "class Provider(PersonProvider):",
"type": "class"
}
],
"file": "faker/providers/person/sw/__i... | [
"tests/providers/test_person.py::TestAr::test_first_name",
"tests/providers/test_person.py::TestAr::test_last_name",
"tests/providers/test_person.py::TestAzAz::test_first_name",
"tests/providers/test_person.py::TestAzAz::test_last_name",
"tests/providers/test_person.py::TestNlBE::test_first_name",
"tests/... | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
feat: Add Swahili provider for generating Swahili names.
{}
----------
</request>
There are several new functions or classes that need to be implemented, using the definitions below:
<<NEW DEFINITI... | 6edfdbf6ae90b0153309e3bf066aa3b2d16494a7 | ||
tobymao__sqlglot-3708 | 3,708 | tobymao/sqlglot | null | adf3039e5b5f6c63a8e32312724a21c0cda307df | 2024-06-27T10:49:09Z | diff --git a/sqlglot/dialects/bigquery.py b/sqlglot/dialects/bigquery.py
index ca7011398c..3422c13b6f 100644
--- a/sqlglot/dialects/bigquery.py
+++ b/sqlglot/dialects/bigquery.py
@@ -346,6 +346,7 @@ class Parser(parser.Parser):
"JSON_EXTRACT_SCALAR": lambda args: exp.JSONExtractScalar(
thi... | diff --git a/tests/dialects/test_bigquery.py b/tests/dialects/test_bigquery.py
index d3307b8804..b8bc01f76c 100644
--- a/tests/dialects/test_bigquery.py
+++ b/tests/dialects/test_bigquery.py
@@ -1375,6 +1375,18 @@ def test_bigquery(self):
"bigquery": "SELECT DATETIME('2020-01-01', 'America/Los_Angeles'... | [] | [
"tests/dialects/test_bigquery.py::TestBigQuery::test_bigquery"
] | [
"tests/dialects/test_bigquery.py::TestBigQuery::test_errors",
"tests/dialects/test_bigquery.py::TestBigQuery::test_gap_fill",
"tests/dialects/test_bigquery.py::TestBigQuery::test_group_concat",
"tests/dialects/test_bigquery.py::TestBigQuery::test_json_object",
"tests/dialects/test_bigquery.py::TestBigQuery:... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
feat(duckdb): Transpile exp.Length from other dialects
Add generation for `exp.Length` in DuckDB.
Dialects like Snowflake and BigQuery also use `LENGTH() / LEN()` for binary values, so this PR wil... | ceb42fabad60312699e4b15936aeebac00e22e4d | ||
astropy__astropy-16620 | 16,620 | astropy/astropy | v5.3 | 9a7002fcf4de719116a6bf3b9752fcb41f5a44f2 | 2024-06-26T19:47:33Z | diff --git a/astropy/units/format/base.py b/astropy/units/format/base.py
index 1c417d92cd00..5644f115811a 100644
--- a/astropy/units/format/base.py
+++ b/astropy/units/format/base.py
@@ -4,10 +4,12 @@
from typing import TYPE_CHECKING
+from astropy.utils import classproperty
+
from . import utils
if TYPE_CHECKI... | diff --git a/astropy/units/tests/test_format.py b/astropy/units/tests/test_format.py
index fef2c74ade3c..9434cf6084bb 100644
--- a/astropy/units/tests/test_format.py
+++ b/astropy/units/tests/test_format.py
@@ -569,17 +569,26 @@ def test_format_styles_non_default_fraction(format_spec, fraction, string, decom
@pytest.m... | [
{
"components": [
{
"doc": "",
"lines": [
48,
51
],
"name": "Base._fraction_formatters",
"signature": "def _fraction_formatters(cls) -> dict[bool | str, Callable[[str, str, str], str]]:",
"type": "function"
},
{
"doc":... | [
"astropy/units/tests/test_format.py::test_no_multiline_fraction[generic]",
"astropy/units/tests/test_format.py::test_no_multiline_fraction[cds]",
"astropy/units/tests/test_format.py::test_no_multiline_fraction[fits]",
"astropy/units/tests/test_format.py::test_no_multiline_fraction[ogip]",
"astropy/units/tes... | [
"astropy/units/tests/test_format.py::test_unit_grammar[m",
"astropy/units/tests/test_format.py::test_unit_grammar[m*s]",
"astropy/units/tests/test_format.py::test_unit_grammar[m.s]",
"astropy/units/tests/test_format.py::test_unit_grammar[m/s]",
"astropy/units/tests/test_format.py::test_unit_grammar[m*s**-1]... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Refactor unit formatter `to_string()` workings
Currently `Base.to_string()` converts units to strings if there are no fractions to worry about and calls `cls._format_fraction()` to handle inline and o... | Here is the discussion in the issues of the pull request.
<issues>
Possible speed-ups for `get_grouped_by_powers`
This function uses `.append`. It looks like with a simple helper function (defined externally to this function) we could use a list comprehension instead. I wonder if that would be faster — `append` versus ... | 2d281019494aaebf522f6626c0dae37510c16688 | |
deepset-ai__haystack-7933 | 7,933 | deepset-ai/haystack | null | 8b9eddcd948e972c844e03000c2802e85e462c2a | 2024-06-26T08:47:37Z | diff --git a/haystack/components/preprocessors/document_splitter.py b/haystack/components/preprocessors/document_splitter.py
index f5e048db6e..200fa8aa92 100644
--- a/haystack/components/preprocessors/document_splitter.py
+++ b/haystack/components/preprocessors/document_splitter.py
@@ -90,38 +90,38 @@ def run(self, doc... | diff --git a/test/components/preprocessors/test_document_splitter.py b/test/components/preprocessors/test_document_splitter.py
index 4351457f79..d6fcaa9d1c 100644
--- a/test/components/preprocessors/test_document_splitter.py
+++ b/test/components/preprocessors/test_document_splitter.py
@@ -7,6 +7,28 @@
from haystack.c... | diff --git a/releasenotes/notes/add-split_id_and_overlap_to_DocumentSplitter-8180ad8f13495741.yaml b/releasenotes/notes/add-split_id_and_overlap_to_DocumentSplitter-8180ad8f13495741.yaml
new file mode 100644
index 0000000000..e3eba2d57b
--- /dev/null
+++ b/releasenotes/notes/add-split_id_and_overlap_to_DocumentSplitter... | [
{
"components": [
{
"doc": "Adds split overlap information to the current and previous Document's meta.\n\n:param current_doc: The Document that is being split.\n:param current_doc_start_idx: The starting index of the current Document.\n:param previous_doc: The Document that was split before the c... | [
"test/components/preprocessors/test_document_splitter.py::TestDocumentSplitter::test_add_split_overlap_information"
] | [
"test/components/preprocessors/test_document_splitter.py::TestDocumentSplitter::test_non_text_document",
"test/components/preprocessors/test_document_splitter.py::TestDocumentSplitter::test_single_doc",
"test/components/preprocessors/test_document_splitter.py::TestDocumentSplitter::test_empty_list",
"test/com... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
feat : adding `split_id` and `split_overlap` to `DocumentSplitter`
### Related Issues
- fixes [#7389](https://github.com/deepset-ai/haystack/issues/7389)
### Proposed Changes:
When a `split_o... | f4d9c2bb917be0ffe132dffcc2ad4f1b0fcc5967 | |
joke2k__faker-2066 | 2,066 | joke2k/faker | null | 8cee450e10463c0360e50e2b56da4ecfea1dd513 | 2024-06-26T04:42:53Z | diff --git a/faker/providers/passport/ru_RU/__init__.py b/faker/providers/passport/ru_RU/__init__.py
new file mode 100644
index 0000000000..e29ecad8fc
--- /dev/null
+++ b/faker/providers/passport/ru_RU/__init__.py
@@ -0,0 +1,11 @@
+from typing import Tuple
+
+from faker.typing import SexLiteral
+
+from .. import Provid... | diff --git a/tests/providers/test_person.py b/tests/providers/test_person.py
index a8b1b4d07e..16bf309ecf 100644
--- a/tests/providers/test_person.py
+++ b/tests/providers/test_person.py
@@ -332,7 +332,6 @@ def test_last_name(self):
class TestEnPk(unittest.TestCase):
-
def setUp(self):
"""Set up the ... | [
{
"components": [
{
"doc": "",
"lines": [
8,
11
],
"name": "Provider",
"signature": "class Provider(PassportProvider):",
"type": "class"
},
{
"doc": "",
"lines": [
9,
11
],
"... | [
"tests/providers/test_person.py::TestRuRU::test_passport_owner"
] | [
"tests/providers/test_person.py::TestAr::test_first_name",
"tests/providers/test_person.py::TestAr::test_last_name",
"tests/providers/test_person.py::TestAzAz::test_first_name",
"tests/providers/test_person.py::TestAzAz::test_last_name",
"tests/providers/test_person.py::TestCsCZ::test_name_female",
"tests... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Added passport provider for ru_RU language
### What does this change
Added new passport provider for ru_RU language
### What was wrong
It looks like based on an issue https://github.com/joke2... | 6edfdbf6ae90b0153309e3bf066aa3b2d16494a7 | ||
pydicom__pydicom-2082 | 2,082 | pydicom/pydicom | 2.4 | 0f4ed1e86315c9cd84c21ce42b47fb2d5a9bfa77 | 2024-06-25T23:41:03Z | diff --git a/doc/reference/pixels.rst b/doc/reference/pixels.rst
index 27811dbf8d..7e6bf7d426 100644
--- a/doc/reference/pixels.rst
+++ b/doc/reference/pixels.rst
@@ -34,6 +34,7 @@ Utility functions
iter_pixels
pack_bits
pixel_array
+ set_pixel_data
unpack_bits
diff --git a/doc/reference/pixels.ut... | diff --git a/tests/pixels/test_utils.py b/tests/pixels/test_utils.py
index c1faf6298c..9841ebbb7c 100644
--- a/tests/pixels/test_utils.py
+++ b/tests/pixels/test_utils.py
@@ -34,6 +34,7 @@
get_j2k_parameters,
get_nr_frames,
pack_bits,
+ set_pixel_data,
unpack_bits,
expand_ybr422,
compre... | diff --git a/doc/reference/pixels.rst b/doc/reference/pixels.rst
index 27811dbf8d..7e6bf7d426 100644
--- a/doc/reference/pixels.rst
+++ b/doc/reference/pixels.rst
@@ -34,6 +34,7 @@ Utility functions
iter_pixels
pack_bits
pixel_array
+ set_pixel_data
unpack_bits
diff --git a/doc/reference/pixels.ut... | [
{
"components": [
{
"doc": "Use an :class:`~numpy.ndarray` to set the *Pixel Data* and related\nImage Pixel module elements.\n\n.. versionadded:: 3.0\n\nThe following :dcm:`Image Pixel<part03/sect_C.7.6.3.3.html#table_C.7-11c>`\nmodule elements values will be added, updated or removed as necessary... | [
"tests/pixels/test_utils.py::TestPixelArray::test_src",
"tests/pixels/test_utils.py::TestPixelArray::test_ds_out",
"tests/pixels/test_utils.py::TestPixelArray::test_specific_tags",
"tests/pixels/test_utils.py::TestPixelArray::test_index",
"tests/pixels/test_utils.py::TestPixelArray::test_raw",
"tests/pixe... | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
[MRG] Add Dataset method and function to set Image Pixel elements using an ndarray
#### Describe the changes
* Adds `set_pixel_data()` which sets the Image Pixel module elements using an `ndarray`
*... | Here is the discussion in the issues of the pull request.
<issues>
Harmonize pixel data representations
_From [darcymason@gmail.com](https://code.google.com/u/darcymason@gmail.com/) on May 27, 2009 22:58:02_
A pydicom "gotcha" comes from disconnect between Dataset.pixel_array
property and Dataset.PixelData. The latte... | f57c7aceaeda48b60ef3d66fdb875db61e5b49a8 |
pydicom__pydicom-2080 | 2,080 | pydicom/pydicom | 2.4 | e91ef37213b023b80bfa7327eaac78df2a3509e7 | 2024-06-25T01:20:02Z | diff --git a/doc/reference/pixels.processing.rst b/doc/reference/pixels.processing.rst
index a5411a1b85..0797a3ebc3 100644
--- a/doc/reference/pixels.processing.rst
+++ b/doc/reference/pixels.processing.rst
@@ -13,6 +13,7 @@ Functions for applying image processing to pixel data.
apply_color_lut
apply_modality... | diff --git a/tests/pixels/test_processing.py b/tests/pixels/test_processing.py
index 6556dc792a..e48f87e3c4 100644
--- a/tests/pixels/test_processing.py
+++ b/tests/pixels/test_processing.py
@@ -24,6 +24,7 @@
apply_voi_lut,
apply_voi,
apply_windowing,
+ apply_presentation_lut,
)
from pydicom.uid imp... | diff --git a/doc/reference/pixels.processing.rst b/doc/reference/pixels.processing.rst
index a5411a1b85..0797a3ebc3 100644
--- a/doc/reference/pixels.processing.rst
+++ b/doc/reference/pixels.processing.rst
@@ -13,6 +13,7 @@ Functions for applying image processing to pixel data.
apply_color_lut
apply_modality... | [
{
"components": [
{
"doc": "Apply a Presentation LUT to `arr` and return the P-values.\n\nParameters\n----------\narr : numpy.ndarray\n The :class:`~numpy.ndarray` to apply the presentation LUT operation to.\nds : dataset.Dataset\n A dataset containing :dcm:`Presentation LUT Module\n <par... | [
"tests/pixels/test_processing.py::TestConvertColourSpace::test_unknown_current_raises",
"tests/pixels/test_processing.py::TestConvertColourSpace::test_unknown_desired_raises",
"tests/pixels/test_processing.py::TestConvertColourSpace::test_current_is_desired[RGB-RGB]",
"tests/pixels/test_processing.py::TestCon... | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
[MRG] Add function to apply presentation LUT
#### Describe the changes
* Adds a function for applying a Presentation LUT: `pixels.processing.apply_presentation_lut()`
* Closes #1265
#### Referenc... | Here is the discussion in the issues of the pull request.
<issues>
Support for applying Presentation LUT and/or Presentation LUT Shape?
Hi all,
in pixel handlers util there's functionality to apply modality and voi transforms, but there isn't anything yet for handling final presentation transforms. That (as far as ... | f57c7aceaeda48b60ef3d66fdb875db61e5b49a8 |
deepset-ai__haystack-7920 | 7,920 | deepset-ai/haystack | null | c51f8ffb865db54f39103a202d2b6ba81fc68fb9 | 2024-06-24T14:22:50Z | diff --git a/haystack/components/fetchers/link_content.py b/haystack/components/fetchers/link_content.py
index b658ff2450..ccc698f613 100644
--- a/haystack/components/fetchers/link_content.py
+++ b/haystack/components/fetchers/link_content.py
@@ -4,6 +4,7 @@
from collections import defaultdict
from concurrent.futur... | diff --git a/test/components/fetchers/test_link_content_fetcher.py b/test/components/fetchers/test_link_content_fetcher.py
index ac99bc4cfa..c6a4d5c55f 100644
--- a/test/components/fetchers/test_link_content_fetcher.py
+++ b/test/components/fetchers/test_link_content_fetcher.py
@@ -46,10 +46,12 @@ def test_init(self):
... | diff --git a/releasenotes/notes/link-content-fetcher-enhancements-49babe1c60888043.yaml b/releasenotes/notes/link-content-fetcher-enhancements-49babe1c60888043.yaml
new file mode 100644
index 0000000000..d6a7d24285
--- /dev/null
+++ b/releasenotes/notes/link-content-fetcher-enhancements-49babe1c60888043.yaml
@@ -0,0 +1... | [
{
"components": [
{
"doc": "Resolves the handler for the given content type.\n\nFirst, it tries to find a direct match for the content type in the handlers dictionary.\nIf no direct match is found, it tries to find a pattern match using the fnmatch function.\nIf no pattern match is found, it retur... | [
"test/components/fetchers/test_link_content_fetcher.py::TestLinkContentFetcher::test_init"
] | [
"[",
"test/components/fetchers/test_link_content_fetcher.py::TestLinkContentFetcher::test_init_with_params",
"test/components/fetchers/test_link_content_fetcher.py::TestLinkContentFetcher::test_run_text",
"test/components/fetchers/test_link_content_fetcher.py::TestLinkContentFetcher::test_run_html",
"test/c... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
feat: Improve LinkContentFetcher content type handling
### Why:
Enhances `LinkContentFetcher` to broaden its content handling capabilities. The primary motivation behind these changes is to allow mor... | f4d9c2bb917be0ffe132dffcc2ad4f1b0fcc5967 | |
tobymao__sqlglot-3696 | 3,696 | tobymao/sqlglot | null | 442c61defe05f4c168a7909d0a5fc5c043a2d2b4 | 2024-06-24T14:14:36Z | diff --git a/sqlglot/dialects/duckdb.py b/sqlglot/dialects/duckdb.py
index 102f3e3ac8..4db30b14ca 100644
--- a/sqlglot/dialects/duckdb.py
+++ b/sqlglot/dialects/duckdb.py
@@ -432,7 +432,6 @@ class Generator(generator.Generator):
exp.cast(e.expression, exp.DataType.Type.TIMESTAMP, copy=True),
... | diff --git a/tests/dialects/test_duckdb.py b/tests/dialects/test_duckdb.py
index 2bde478482..01a01167f1 100644
--- a/tests/dialects/test_duckdb.py
+++ b/tests/dialects/test_duckdb.py
@@ -18,6 +18,13 @@ def test_duckdb(self):
"WITH _data AS (SELECT [STRUCT(1 AS a, 2 AS b), STRUCT(2 AS a, 3 AS b)] AS col) SE... | [] | [
"tests/dialects/test_duckdb.py::TestDuckDB::test_duckdb"
] | [
"tests/dialects/test_duckdb.py::TestDuckDB::test_array",
"tests/dialects/test_duckdb.py::TestDuckDB::test_array_index",
"tests/dialects/test_duckdb.py::TestDuckDB::test_cast",
"tests/dialects/test_duckdb.py::TestDuckDB::test_encode_decode",
"tests/dialects/test_duckdb.py::TestDuckDB::test_isinf",
"tests/d... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Feat: transpile TRY_PARSE_JSON Snowflake -> DuckDB
Fixes #3690
References:
- https://docs.snowflake.com/en/sql-reference/functions/try_parse_json
- https://duckdb.org/docs/extensions/json.html
--... | Here is the discussion in the issues of the pull request.
<issues>
Support for try_parse_json
**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
I'm using sqlglot through sqlmesh and I have to use a macro fo... | ceb42fabad60312699e4b15936aeebac00e22e4d | |
pydicom__pydicom-2079 | 2,079 | pydicom/pydicom | 2.4 | 974d4151299c5936078cd15a93b788d769794ceb | 2024-06-23T23:37:23Z | diff --git a/doc/reference/index.rst b/doc/reference/index.rst
index c1fd39db81..3fe27c4017 100644
--- a/doc/reference/index.rst
+++ b/doc/reference/index.rst
@@ -30,5 +30,6 @@ This API reference guide details the functions, modules and objects included in
misc
overlays
pixels
+ sr
waveforms
uid
d... | diff --git a/tests/test_codes.py b/tests/test_codes.py
index 53254a68d1..a9c6a14eb0 100644
--- a/tests/test_codes.py
+++ b/tests/test_codes.py
@@ -6,7 +6,11 @@
)
from pydicom.sr._concepts_dict import concepts as CONCEPTS
from pydicom.sr.coding import Code
-from pydicom.sr.codedict import codes, _CID_Dict, _CodesDict... | diff --git a/doc/reference/index.rst b/doc/reference/index.rst
index c1fd39db81..3fe27c4017 100644
--- a/doc/reference/index.rst
+++ b/doc/reference/index.rst
@@ -30,5 +30,6 @@ This API reference guide details the functions, modules and objects included in
misc
overlays
pixels
+ sr
waveforms
uid
d... | [
{
"components": [
{
"doc": "Interface for a collection of concepts, such as SNOMED-CT, or a DICOM CID.\n\n.. versionadded:: 3.0",
"lines": [
51,
292
],
"name": "Collection",
"signature": "class Collection:",
"type": "class"
},
... | [
"tests/test_codes.py::TestCode::test_construction_kwargs",
"tests/test_codes.py::TestCode::test_use_as_dictionary_key",
"tests/test_codes.py::TestCode::test_construction_kwargs_optional",
"tests/test_codes.py::TestCode::test_construction_args",
"tests/test_codes.py::TestCode::test_construction_args_optional... | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
[MRG] Refactor concepts interface
#### Describe the changes
* Refactors the `pydicom.sr` interface to simplify the access types and to make public
* Adds `sr` module to reference API docs
Closes ... | Here is the discussion in the issues of the pull request.
<issues>
Mypy: Item "Code" of "Union[_CodesDict, _CID_Dict, Code]" has no attribute "XXX"
When running *mypy* on the codes provided via `pydicom.sr.codedict.codes`, I get the following error:
```None
mypy -c 'from pydicom.sr.codedict import codes; codes.SCT.... | f57c7aceaeda48b60ef3d66fdb875db61e5b49a8 |
deepset-ai__haystack-7915 | 7,915 | deepset-ai/haystack | null | fc011d7b04109c0ae4563b4db639cc63c78ebcf7 | 2024-06-23T15:38:27Z | diff --git a/haystack/components/joiners/document_joiner.py b/haystack/components/joiners/document_joiner.py
index 6c02c1ffa9..6e1e5a803b 100644
--- a/haystack/components/joiners/document_joiner.py
+++ b/haystack/components/joiners/document_joiner.py
@@ -22,6 +22,7 @@ class DocumentJoiner:
- concatenate: Keeps the... | diff --git a/test/components/joiners/test_document_joiner.py b/test/components/joiners/test_document_joiner.py
index 48fa5b2302..41fe275541 100644
--- a/test/components/joiners/test_document_joiner.py
+++ b/test/components/joiners/test_document_joiner.py
@@ -115,6 +115,36 @@ def test_run_with_reciprocal_rank_fusion_joi... | diff --git a/releasenotes/notes/add-distribution-based-rank-fusion-mode-JoinDocuments-6fca30b82fd535ce.yaml b/releasenotes/notes/add-distribution-based-rank-fusion-mode-JoinDocuments-6fca30b82fd535ce.yaml
new file mode 100644
index 0000000000..e7bb46a8a5
--- /dev/null
+++ b/releasenotes/notes/add-distribution-based-ran... | [
{
"components": [
{
"doc": "Merge multiple lists of Documents and assign scores based on Distribution-Based Score Fusion.\n\n(https://medium.com/plain-simple-software/distribution-based-score-fusion-dbsf-a-new-approach-to-vector-search-ranking-f87c37488b18)\nIf a Document is in more than one retri... | [
"test/components/joiners/test_document_joiner.py::TestDocumentJoiner::test_run_with_distribution_based_rank_fusion_join_mode"
] | [
"[",
"test/components/joiners/test_document_joiner.py::TestDocumentJoiner::test_init",
"test/components/joiners/test_document_joiner.py::TestDocumentJoiner::test_init_with_custom_parameters",
"test/components/joiners/test_document_joiner.py::TestDocumentJoiner::test_empty_list",
"test/components/joiners/tes... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Add Distribution based rank fusion mode
### Related Issues
- fixes #7914
### Proposed Changes:
How it works:
```
from haystack import Document
from haystack.components.joiners.document_jo... | Here is the discussion in the issues of the pull request.
<issues>
Add Distribution-based rank fusion in JoinDocuments
**Is your feature request related to a problem? Please describe.**
Add [Distribution-based rank fusion](https://medium.com/plain-simple-software/distribution-based-score-fusion-dbsf-a-new-approach-to-... | f4d9c2bb917be0ffe132dffcc2ad4f1b0fcc5967 |
googleapis__python-aiplatform-3982 | 3,982 | googleapis/python-aiplatform | null | a90ee8da161f95aa489aa4f09309a3fa34320a4c | 2024-06-21T03:56:54Z | diff --git a/samples/model-builder/feature_store/create_feature_view_from_bq_source_with_embedding_management.py b/samples/model-builder/feature_store/create_feature_view_from_bq_source_with_embedding_management.py
new file mode 100644
index 0000000000..ae92ca5855
--- /dev/null
+++ b/samples/model-builder/feature_store... | diff --git a/samples/model-builder/feature_store/create_feature_view_from_bq_source_with_embedding_management_test.py b/samples/model-builder/feature_store/create_feature_view_from_bq_source_with_embedding_management_test.py
new file mode 100644
index 0000000000..71565bcbdd
--- /dev/null
+++ b/samples/model-builder/fea... | [
{
"components": [
{
"doc": "",
"lines": [
22,
50
],
"name": "create_feature_view_from_bq_source_with_embedding_management",
"signature": "def create_feature_view_from_bq_source_with_embedding_management( project: str, location: str, existing_feat... | [
"samples/model-builder/feature_store/create_feature_view_from_bq_source_with_embedding_management_test.py::test_create_feature_view_from_bq_source_with_embedding_management"
] | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
chore: feature store code sample - feature view from BQ source w/embedding management
chore: feature store code sample - feature view from BQ source w/embedding management
----------
</request>
The... | 67358fa6a830eb842f6b52d09061af4a41b54af6 | ||
googleapis__python-aiplatform-3979 | 3,979 | googleapis/python-aiplatform | null | 3e3671fca1d456661019038caf9e74ad1d68c3d3 | 2024-06-20T21:47:46Z | diff --git a/samples/model-builder/feature_store/create_feature_view_from_bq_source.py b/samples/model-builder/feature_store/create_feature_view_from_bq_source.py
new file mode 100644
index 0000000000..55122c6ec4
--- /dev/null
+++ b/samples/model-builder/feature_store/create_feature_view_from_bq_source.py
@@ -0,0 +1,41... | diff --git a/samples/model-builder/conftest.py b/samples/model-builder/conftest.py
index 55facdb363..c49a76a491 100644
--- a/samples/model-builder/conftest.py
+++ b/samples/model-builder/conftest.py
@@ -740,6 +740,15 @@ def mock_create_optimized_private_online_store(mock_feature_online_store):
yield mock_creat... | [
{
"components": [
{
"doc": "",
"lines": [
22,
38
],
"name": "create_feature_view_from_bq_source",
"signature": "def create_feature_view_from_bq_source( project: str, location: str, existing_feature_online_store_id: str, feature_view_id: str, bq_t... | [
"samples/model-builder/feature_store/create_feature_view_from_bq_source_test.py::test_create_feature_view_from_bq_source_sample"
] | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
chore: feature store code sample - feature view from BQ source
chore: feature store code sample - feature view from BQ source
----------
</request>
There are several new functions or classes that n... | 67358fa6a830eb842f6b52d09061af4a41b54af6 | ||
conan-io__conan-16511 | 16,511 | conan-io/conan | null | fed5f7f4ff8d0b003f76a161d9f9931cb3199f2e | 2024-06-20T19:06:58Z | diff --git a/conan/api/subapi/lockfile.py b/conan/api/subapi/lockfile.py
index e2d51c1f985..1d193bbcd79 100644
--- a/conan/api/subapi/lockfile.py
+++ b/conan/api/subapi/lockfile.py
@@ -64,11 +64,13 @@ def update_lockfile_export(self, lockfile, conanfile, ref, is_build_require=Fals
else:
python_req... | diff --git a/test/integration/lockfile/test_user_overrides.py b/test/integration/lockfile/test_user_overrides.py
index 2f3c3c32523..601f365d519 100644
--- a/test/integration/lockfile/test_user_overrides.py
+++ b/test/integration/lockfile/test_user_overrides.py
@@ -327,3 +327,36 @@ def test_lock_remove_user_channel(self... | [
{
"components": [
{
"doc": "Update requires, build-requires or python-requires from an existing lockfile.\nReferences that matches the arguments package names will be replaced by the arguments.\nReferences can be supplied with and without revisions like \"--requires=pkg/version\",",
"lines... | [
"test/integration/lockfile/test_user_overrides.py::TestLockUpdate::test_lock_update[requires-math/1.0-math/1.1]",
"test/integration/lockfile/test_user_overrides.py::TestLockUpdate::test_lock_update[build-requires-cmake/1.0-cmake/1.1]",
"test/integration/lockfile/test_user_overrides.py::TestLockUpdate::test_lock... | [
"test/integration/lockfile/test_user_overrides.py::test_user_overrides",
"test/integration/lockfile/test_user_overrides.py::test_user_build_overrides",
"test/integration/lockfile/test_user_overrides.py::test_user_python_overrides",
"test/integration/lockfile/test_user_overrides.py::test_config_overrides",
"... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
new lock update subcommand
Changelog: Feature: New ``conan lock update`` subcommand to remove + add a reference in the same command.
Docs: https://github.com/conan-io/docs/pull/3784
Close https://... | 4a5b19a75db9225316c8cb022a2dfb9705a2af34 | ||
RDFLib__rdflib-2804 | 2,804 | RDFLib/rdflib | null | bb170723b21c1cfb5b90f05b541d02be53867574 | 2024-06-20T16:33:13Z | diff --git a/rdflib/plugins/parsers/jsonld.py b/rdflib/plugins/parsers/jsonld.py
index 6a5bc1103..09ef977d6 100644
--- a/rdflib/plugins/parsers/jsonld.py
+++ b/rdflib/plugins/parsers/jsonld.py
@@ -80,21 +80,61 @@ def __init__(self):
super(JsonLDParser, self).__init__()
def parse(
- self, source: ... | diff --git a/test/jsonld/runner.py b/test/jsonld/runner.py
index e07dc46b6..a8237fd95 100644
--- a/test/jsonld/runner.py
+++ b/test/jsonld/runner.py
@@ -22,6 +22,9 @@ def _preserving_nodeid(self, bnode_context=None):
def make_fake_urlinputsource(input_uri, format=None, suite_base=None, options={}):
local_url = ... | [
{
"components": [
{
"doc": "",
"lines": [
156,
217
],
"name": "HTMLJSONParser",
"signature": "class HTMLJSONParser(HTMLParser):",
"type": "class"
},
{
"doc": "",
"lines": [
157,
169
... | [
"test/jsonld/test_context.py::test_loading_contexts",
"test/jsonld/test_context.py::test_ignore_base_remote_context",
"test/jsonld/test_context.py::test_recursive_context_inclusion_error",
"test/jsonld/test_onedotone.py::test_suite[https://w3c.github.io/json-ld-api/tests/html-manifest#te001-do_test_html-https... | [
"test/jsonld/test_context.py::test_create_context",
"test/jsonld/test_context.py::test_select_term_based_on_value_characteristics",
"test/jsonld/test_context.py::test_getting_keyword_values_from_nodes",
"test/jsonld/test_context.py::test_parsing_a_context_expands_prefixes",
"test/jsonld/test_context.py::tes... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Add JSON-LD extraction from HTML
Implementation of issue #2692.
See also https://w3c.github.io/json-ld-syntax/#embedding-json-ld-in-html-documents and https://www.w3.org/TR/json-ld11-api/#html-cont... | 0c11debb5178157baeac27b735e49a757916d2a6 | ||
roboflow__supervision-1296 | 1,296 | roboflow/supervision | null | fbce6e45d427fbbc2f610dfe1adf24bdf608d914 | 2024-06-20T12:01:50Z | diff --git a/supervision/detection/core.py b/supervision/detection/core.py
index 37dde1534..4d913e1bc 100644
--- a/supervision/detection/core.py
+++ b/supervision/detection/core.py
@@ -7,7 +7,12 @@
import numpy as np
from supervision.config import CLASS_NAME_DATA_FIELD, ORIENTED_BOX_COORDINATES
-from supervision.de... | diff --git a/test/detection/test_lmm_florence_2.py b/test/detection/test_lmm_florence_2.py
new file mode 100644
index 000000000..9ffec2a1e
--- /dev/null
+++ b/test/detection/test_lmm_florence_2.py
@@ -0,0 +1,291 @@
+from contextlib import ExitStack as DoesNotRaise
+from typing import Optional, Tuple
+
+import numpy as ... | [
{
"components": [
{
"doc": "",
"lines": [
41,
67
],
"name": "validate_lmm_parameters",
"signature": "def validate_lmm_parameters( lmm: Union[LMM, str], result: Any, kwargs: Dict[str, Any] ) -> LMM:",
"type": "function"
},
{
... | [
"test/detection/test_lmm_florence_2.py::test_florence_2[florence_result0-resolution_wh0-expected_results0-exception0]",
"test/detection/test_lmm_florence_2.py::test_florence_2[florence_result1-resolution_wh1-expected_results1-exception1]",
"test/detection/test_lmm_florence_2.py::test_florence_2[florence_result2... | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Add Florence 2 support
# Description
This PR adds [Florence 2](https://huggingface.co/microsoft/Florence-2-large) support for supervision.
Run it with `transfomers` and parse with `from_lmm(sv.L... | 3eb5c0b024e3e46877b7fe4fd66e6177d1308ba0 | ||
deepset-ai__haystack-7902 | 7,902 | deepset-ai/haystack | null | 57c1d47c7d55caf1385e8315e18bab2bfe1ce2f6 | 2024-06-20T11:21:56Z | diff --git a/haystack/document_stores/types/filter_policy.py b/haystack/document_stores/types/filter_policy.py
index b30b9d3352..a2be576d20 100644
--- a/haystack/document_stores/types/filter_policy.py
+++ b/haystack/document_stores/types/filter_policy.py
@@ -3,6 +3,7 @@
# SPDX-License-Identifier: Apache-2.0
from en... | diff --git a/test/document_stores/test_filter_policy.py b/test/document_stores/test_filter_policy.py
new file mode 100644
index 0000000000..b7efcd0672
--- /dev/null
+++ b/test/document_stores/test_filter_policy.py
@@ -0,0 +1,45 @@
+# SPDX-FileCopyrightText: 2022-present deepset GmbH <info@deepset.ai>
+#
+# SPDX-License... | diff --git a/releasenotes/notes/add-apply_filter_policy-function-ae3152e6afe0ca57.yaml b/releasenotes/notes/add-apply_filter_policy-function-ae3152e6afe0ca57.yaml
new file mode 100644
index 0000000000..c890a44297
--- /dev/null
+++ b/releasenotes/notes/add-apply_filter_policy-function-ae3152e6afe0ca57.yaml
@@ -0,0 +1,4 ... | [
{
"components": [
{
"doc": "Apply the filter policy to the given initial and runtime filters to determine the final set of filters used.\n\nThe function combines or replaces the initial and runtime filters based on the specified filter policy.\n\n:param filter_policy: The policy to apply when hand... | [
"test/document_stores/test_filter_policy.py::test_replace_policy_with_both_filters",
"test/document_stores/test_filter_policy.py::test_merge_policy_with_both_filters",
"test/document_stores/test_filter_policy.py::test_replace_policy_with_only_init_filters",
"test/document_stores/test_filter_policy.py::test_me... | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
feat: Add apply_filter_policy function
Added the apply_filter_policy function to standardize the application of filter policies across all document store-specific retrievers, allowing for consistent h... | f4d9c2bb917be0ffe132dffcc2ad4f1b0fcc5967 | |
tobymao__sqlglot-3678 | 3,678 | tobymao/sqlglot | null | ac0e89c4401f2f278d32c3e956670b262ab21ce7 | 2024-06-19T09:58:57Z | diff --git a/sqlglot/dialects/databricks.py b/sqlglot/dialects/databricks.py
index deddb6e138..fc1772d5c6 100644
--- a/sqlglot/dialects/databricks.py
+++ b/sqlglot/dialects/databricks.py
@@ -1,6 +1,8 @@
from __future__ import annotations
-from sqlglot import exp, transforms
+import typing as t
+
+from sqlglot import... | diff --git a/tests/dialects/test_databricks.py b/tests/dialects/test_databricks.py
index 9ef3b86e18..c88679dc5c 100644
--- a/tests/dialects/test_databricks.py
+++ b/tests/dialects/test_databricks.py
@@ -96,33 +96,30 @@ def test_databricks(self):
# https://docs.databricks.com/sql/language-manual/functions/colonsi... | [] | [
"tests/dialects/test_databricks.py::TestDatabricks::test_json",
"tests/dialects/test_redshift.py::TestRedshift::test_redshift",
"tests/dialects/test_snowflake.py::TestSnowflake::test_snowflake"
] | [
"tests/dialects/test_databricks.py::TestDatabricks::test_add_date",
"tests/dialects/test_databricks.py::TestDatabricks::test_databricks",
"tests/dialects/test_databricks.py::TestDatabricks::test_datediff",
"tests/dialects/test_databricks.py::TestDatabricks::test_without_as",
"tests/dialects/test_redshift.py... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
feat(databricks)!: Preserve JSON/VARIANT path with operators
Fixes #3673
This PR aims to preserve the JSON/Variant access in Databricks using operators instead of JSON functions + JSONPath by:
- A... | Here is the discussion in the issues of the pull request.
<issues>
Sqlglot does not preserve new Databricks's Variant Syntax
The newest Databricks Runtime (15.3) does support a number of fancy syntax for their new Variant Type.
Docs: https://docs.databricks.com/en/semi-structured/variant.html
Those do not get prese... | ceb42fabad60312699e4b15936aeebac00e22e4d | |
conan-io__conan-16496 | 16,496 | conan-io/conan | null | 0a15ae21ccbe4a45957bd1cf236e0deaf89f187c | 2024-06-18T23:33:51Z | diff --git a/conan/tools/cmake/toolchain/blocks.py b/conan/tools/cmake/toolchain/blocks.py
index ae023a00906..5d1f340518d 100644
--- a/conan/tools/cmake/toolchain/blocks.py
+++ b/conan/tools/cmake/toolchain/blocks.py
@@ -23,11 +23,12 @@
from conans.util.files import load
-class Block(object):
- def __init__(sel... | diff --git a/test/unittests/tools/cmake/test_cmaketoolchain.py b/test/unittests/tools/cmake/test_cmaketoolchain.py
index 3d66adadaa6..8ba5ff7f03b 100644
--- a/test/unittests/tools/cmake/test_cmaketoolchain.py
+++ b/test/unittests/tools/cmake/test_cmaketoolchain.py
@@ -58,10 +58,16 @@ def test_remove(conanfile):
as... | [
{
"components": [
{
"doc": "",
"lines": [
1208,
1245
],
"name": "VariablesBlock",
"signature": "class VariablesBlock(Block): @property",
"type": "class"
},
{
"doc": "",
"lines": [
1210,
1211... | [
"test/unittests/tools/cmake/test_cmaketoolchain.py::test_select_blocks"
] | [
"test/unittests/tools/cmake/test_cmaketoolchain.py::test_cmake_toolchain",
"test/unittests/tools/cmake/test_cmaketoolchain.py::test_remove",
"test/unittests/tools/cmake/test_cmaketoolchain.py::test_dict_keys",
"test/unittests/tools/cmake/test_cmaketoolchain.py::test_template_remove",
"test/unittests/tools/c... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
CMakeToolchain refactor
Changelog: Omit
Docs: Omit
This had some level of risk of breaking:
- If users are ``select()`` selecting blocks, but count on the variables + preprocessor definitions to ... | 4a5b19a75db9225316c8cb022a2dfb9705a2af34 | ||
googleapis__python-aiplatform-3970 | 3,970 | googleapis/python-aiplatform | null | 380c9d973480961c82ad22b4b298ce31c965272b | 2024-06-18T20:48:25Z | diff --git a/samples/model-builder/feature_store/create_feature_sample.py b/samples/model-builder/feature_store/create_feature_sample.py
new file mode 100644
index 0000000000..a7198876bd
--- /dev/null
+++ b/samples/model-builder/feature_store/create_feature_sample.py
@@ -0,0 +1,35 @@
+# Copyright 2024 Google LLC
+#
+# ... | diff --git a/samples/model-builder/conftest.py b/samples/model-builder/conftest.py
index c49a76a491..6c4b7db84c 100644
--- a/samples/model-builder/conftest.py
+++ b/samples/model-builder/conftest.py
@@ -731,6 +731,21 @@ def mock_create_feature_group(mock_feature_group):
yield mock_create_feature_group
+@py... | [
{
"components": [
{
"doc": "",
"lines": [
21,
32
],
"name": "create_feature_sample",
"signature": "def create_feature_sample( project: str, location: str, feature_group_id: str, feature_id: str, ):",
"type": "function"
}
],
... | [
"samples/model-builder/feature_store/create_registry_feature_sample_test.py::test_create_feature_sample"
] | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
feat: sample code for Vertex AI Feature Store
feat: sample code for Vertex AI Feature Store
----------
</request>
There are several new functions or classes that need to be implemented, using the d... | 67358fa6a830eb842f6b52d09061af4a41b54af6 | ||
deepset-ai__haystack-7888 | 7,888 | deepset-ai/haystack | null | 28902c4c65b30b10ccf19de64ddf34145fed18d8 | 2024-06-18T18:24:20Z | diff --git a/haystack/document_stores/in_memory/document_store.py b/haystack/document_stores/in_memory/document_store.py
index 5ff6cb1fe6..4fd10e1cd1 100644
--- a/haystack/document_stores/in_memory/document_store.py
+++ b/haystack/document_stores/in_memory/document_store.py
@@ -2,11 +2,13 @@
#
# SPDX-License-Identifi... | diff --git a/test/document_stores/test_in_memory.py b/test/document_stores/test_in_memory.py
index 2a8679502b..8b8ed0e5fa 100644
--- a/test/document_stores/test_in_memory.py
+++ b/test/document_stores/test_in_memory.py
@@ -6,6 +6,7 @@
import pandas as pd
import pytest
+import tempfile
from haystack import Docume... | diff --git a/releasenotes/notes/add-serialization-to-inmemorydocumentstore-2aa4d9ac85b961c5.yaml b/releasenotes/notes/add-serialization-to-inmemorydocumentstore-2aa4d9ac85b961c5.yaml
new file mode 100644
index 0000000000..48e3c8e427
--- /dev/null
+++ b/releasenotes/notes/add-serialization-to-inmemorydocumentstore-2aa4d... | [
{
"components": [
{
"doc": "Write the database and its' data to disk as a JSON file.\n\n:param path: The path to the JSON file.",
"lines": [
344,
353
],
"name": "InMemoryDocumentStore.save_to_disk",
"signature": "def save_to_disk(self, path: str)... | [
"test/document_stores/test_in_memory.py::TestMemoryDocumentStore::test_save_to_disk_and_load_from_disk"
] | [
"[",
"test/document_stores/test_in_memory.py::TestMemoryDocumentStore::test_no_filters",
"test/document_stores/test_in_memory.py::TestMemoryDocumentStore::test_comparison_equal",
"test/document_stores/test_in_memory.py::TestMemoryDocumentStore::test_comparison_equal_with_dataframe",
"test/document_stores/te... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
feat: InMemoryDocumentStore serialization
### Related Issues
- fixes #7887
### Proposed Changes:
<!--- In case of a bug: Describe what caused the issue and how you solved it -->
<!--- In ... | Here is the discussion in the issues of the pull request.
<issues>
feat: implement serialization for `InMemoryDocumentStore`
**Is your feature request related to a problem? Please describe.**
`InMemoryDocumentStore` is really nice for showcasing demos and it is relatively easy to implement a `to_disk` and `from_disk` ... | f4d9c2bb917be0ffe132dffcc2ad4f1b0fcc5967 |
prometheus__client_python-1040 | 1,040 | prometheus/client_python | null | 09a5ae30602a7a81f6174dae4ba08b93ee7feed2 | 2024-06-18T15:59:01Z | diff --git a/prometheus_client/core.py b/prometheus_client/core.py
index ad3a4542..60f93ce1 100644
--- a/prometheus_client/core.py
+++ b/prometheus_client/core.py
@@ -5,9 +5,10 @@
SummaryMetricFamily, UnknownMetricFamily, UntypedMetricFamily,
)
from .registry import CollectorRegistry, REGISTRY
-from .samples imp... | diff --git a/tests/openmetrics/test_parser.py b/tests/openmetrics/test_parser.py
index 937aef5c..dc5e9916 100644
--- a/tests/openmetrics/test_parser.py
+++ b/tests/openmetrics/test_parser.py
@@ -2,9 +2,9 @@
import unittest
from prometheus_client.core import (
- CollectorRegistry, CounterMetricFamily, Exemplar,
+... | [
{
"components": [
{
"doc": "",
"lines": [
367,
396
],
"name": "_parse_nh_sample",
"signature": "def _parse_nh_sample(text, suffixes):",
"type": "function"
},
{
"doc": "",
"lines": [
399,
456... | [
"tests/openmetrics/test_parser.py::TestParse::test_counter_exemplars",
"tests/openmetrics/test_parser.py::TestParse::test_counter_exemplars_empty_brackets",
"tests/openmetrics/test_parser.py::TestParse::test_duplicate_timestamps",
"tests/openmetrics/test_parser.py::TestParse::test_empty_brackets",
"tests/op... | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Add support for native histograms in OM parser
This PR adds an OM parser for native histograms, as a first step towards the implementation of the following proposal https://github.com/prometheus/propo... | 09a5ae30602a7a81f6174dae4ba08b93ee7feed2 | ||
googleapis__python-aiplatform-3962 | 3,962 | googleapis/python-aiplatform | null | f6b6deed2a3973ed684898d30e209af4291b8f3a | 2024-06-17T23:22:56Z | diff --git a/samples/model-builder/feature_store/create_feature_group_sample.py b/samples/model-builder/feature_store/create_feature_group_sample.py
new file mode 100644
index 0000000000..7365b60cff
--- /dev/null
+++ b/samples/model-builder/feature_store/create_feature_group_sample.py
@@ -0,0 +1,33 @@
+# Copyright 2024... | diff --git a/samples/model-builder/conftest.py b/samples/model-builder/conftest.py
index 16d9057046..55facdb363 100644
--- a/samples/model-builder/conftest.py
+++ b/samples/model-builder/conftest.py
@@ -716,6 +716,21 @@ def mock_create_optimized_public_online_store(mock_feature_online_store):
yield mock_create... | [
{
"components": [
{
"doc": "",
"lines": [
21,
30
],
"name": "create_feature_group_sample",
"signature": "def create_feature_group_sample( project: str, location: str, feature_group_id: str, ):",
"type": "function"
}
],
"file... | [
"samples/model-builder/feature_store/create_feature_group_sample_test.py::test_create_feature_group_sample"
] | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
feat: sample code for Vertex AI Feature Store
feat: sample code for Vertex AI Feature Store
----------
</request>
There are several new functions or classes that need to be implemented, using the d... | 67358fa6a830eb842f6b52d09061af4a41b54af6 | ||
tobymao__sqlglot-3666 | 3,666 | tobymao/sqlglot | null | 468123e4b7612287e128529de62f3a88f4e1d579 | 2024-06-17T15:22:29Z | diff --git a/sqlglot/dialects/bigquery.py b/sqlglot/dialects/bigquery.py
index 9ceeacc5a5..cc3e5150ce 100644
--- a/sqlglot/dialects/bigquery.py
+++ b/sqlglot/dialects/bigquery.py
@@ -13,7 +13,6 @@
date_add_interval_sql,
datestrtodate_sql,
build_formatted_time,
- build_timestamp_from_parts,
filter... | diff --git a/tests/dialects/test_bigquery.py b/tests/dialects/test_bigquery.py
index ae8ed166f9..42cb27f75d 100644
--- a/tests/dialects/test_bigquery.py
+++ b/tests/dialects/test_bigquery.py
@@ -1345,6 +1345,34 @@ def test_bigquery(self):
"bigquery": "SELECT CAST(x AS DATETIME)",
},
... | [] | [
"tests/dialects/test_bigquery.py::TestBigQuery::test_bigquery"
] | [
"tests/dialects/test_bigquery.py::TestBigQuery::test_errors",
"tests/dialects/test_bigquery.py::TestBigQuery::test_gap_fill",
"tests/dialects/test_bigquery.py::TestBigQuery::test_group_concat",
"tests/dialects/test_bigquery.py::TestBigQuery::test_json_object",
"tests/dialects/test_bigquery.py::TestBigQuery:... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
feat(bigquery)!: Time/Datetime/Timestamp function additions
The aim of this PR is to extend support for the following time functions in BigQuery and enable transpilation towards DuckDB:
`TIME`:
- ... | ceb42fabad60312699e4b15936aeebac00e22e4d | ||
pvlib__pvlib-python-2088 | 2,088 | pvlib/pvlib-python | 0.10 | 1eecaa38e8cf07a013a6bf00ea7378c9b23ba65e | 2024-06-15T09:59:50Z | diff --git a/docs/sphinx/source/reference/effects_on_pv_system_output/spectrum.rst b/docs/sphinx/source/reference/effects_on_pv_system_output/spectrum.rst
index 8dd74444a2..15fd1d09b8 100644
--- a/docs/sphinx/source/reference/effects_on_pv_system_output/spectrum.rst
+++ b/docs/sphinx/source/reference/effects_on_pv_syst... | diff --git a/pvlib/tests/test_spectrum.py b/pvlib/tests/test_spectrum.py
index 5c89078bc1..969fb819b8 100644
--- a/pvlib/tests/test_spectrum.py
+++ b/pvlib/tests/test_spectrum.py
@@ -426,6 +426,54 @@ def test_spectral_factor_pvspec_supplied_ambiguous():
coefficients=None)
+@... | diff --git a/docs/sphinx/source/reference/effects_on_pv_system_output/spectrum.rst b/docs/sphinx/source/reference/effects_on_pv_system_output/spectrum.rst
index 8dd74444a2..15fd1d09b8 100644
--- a/docs/sphinx/source/reference/effects_on_pv_system_output/spectrum.rst
+++ b/docs/sphinx/source/reference/effects_on_pv_syst... | [
{
"components": [
{
"doc": "Estimate a technology-specific spectral mismatch modifier from\nairmass and clear sky index using the JRC model.\n\nThe JRC spectral mismatch model includes the effects of cloud cover on\nthe irradiance spectrum. Model coefficients are derived using measurements\nof irr... | [
"pvlib/tests/test_spectrum.py::test_spectral_factor_jrc[multisi-expected0]",
"pvlib/tests/test_spectrum.py::test_spectral_factor_jrc[cdte-expected1]",
"pvlib/tests/test_spectrum.py::test_spectral_factor_jrc_series[multisi-expected0]",
"pvlib/tests/test_spectrum.py::test_spectral_factor_jrc_series[cdte-expecte... | [
"pvlib/tests/test_spectrum.py::test_spectrl2",
"pvlib/tests/test_spectrum.py::test_spectrl2_array",
"pvlib/tests/test_spectrum.py::test_spectrl2_series",
"pvlib/tests/test_spectrum.py::test_dayofyear_missing",
"pvlib/tests/test_spectrum.py::test_aoi_gt_90",
"pvlib/tests/test_spectrum.py::test_get_example_... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Add JRC spectral factor correction
<!-- Thank you for your contribution! The following items must be addressed before the code can be merged. Please don't hesitate to ask for help if you're unsure of ... | Here is the discussion in the issues of the pull request.
<issues>
add JRC spectral factor model
**Is your feature request related to a problem? Please describe.**
The PVSPEC model for the spectral mismatch factor was recently merged (#2072) but an alternative parameterisation of the mismatch factor as a function of a... | 6af80da35a7c96059c534ee38be9123bcfc7f50f |
scikit-learn__scikit-learn-29260 | 29,260 | scikit-learn/scikit-learn | 1.6 | 156ef1b7fe9bc0ee5b281634cfd56b9c54e83277 | 2024-06-14T12:13:12Z | diff --git a/doc/metadata_routing.rst b/doc/metadata_routing.rst
index 31dae6813bda5..fec2cf610c02f 100644
--- a/doc/metadata_routing.rst
+++ b/doc/metadata_routing.rst
@@ -285,6 +285,7 @@ Meta-estimators and functions supporting metadata routing:
- :class:`sklearn.ensemble.BaggingClassifier`
- :class:`sklearn.ensemb... | diff --git a/sklearn/feature_selection/tests/test_sequential.py b/sklearn/feature_selection/tests/test_sequential.py
index 82d65c55a0195..c6fa9b15dc80a 100644
--- a/sklearn/feature_selection/tests/test_sequential.py
+++ b/sklearn/feature_selection/tests/test_sequential.py
@@ -321,3 +321,12 @@ def test_cv_generator_supp... | diff --git a/doc/metadata_routing.rst b/doc/metadata_routing.rst
index 31dae6813bda5..fec2cf610c02f 100644
--- a/doc/metadata_routing.rst
+++ b/doc/metadata_routing.rst
@@ -285,6 +285,7 @@ Meta-estimators and functions supporting metadata routing:
- :class:`sklearn.ensemble.BaggingClassifier`
- :class:`sklearn.ensemb... | [
{
"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.6\n\nReturns\n-------\nrouting : MetadataRouter\n A :class:`~sklearn.utils.metadata_routing.MetadataRouter` encapsula... | [
"sklearn/feature_selection/tests/test_sequential.py::test_fit_rejects_params_with_no_routing_enabled",
"sklearn/tests/test_metaestimators_metadata_routing.py::test_default_request[SequentialFeatureSelector]",
"sklearn/tests/test_metaestimators_metadata_routing.py::test_error_on_missing_requests_for_sub_estimato... | [
"sklearn/feature_selection/tests/test_sequential.py::test_bad_n_features_to_select",
"sklearn/feature_selection/tests/test_sequential.py::test_n_features_to_select[1-forward]",
"sklearn/feature_selection/tests/test_sequential.py::test_n_features_to_select[1-backward]",
"sklearn/feature_selection/tests/test_se... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
FEA Add metadata routing for SequentialFeatureSelector
<!--
Thanks for contributing a pull request! Please ensure you have taken a look at
the contribution guidelines: https://github.com/scikit-lear... | 18dc8630a7cbe1b591c12774949058b12157a39a | |
scikit-learn__scikit-learn-29210 | 29,210 | scikit-learn/scikit-learn | 1.6 | 51c8e0e19d042a2dbbc1f9477557c07c8a34ab96 | 2024-06-07T10:08:06Z | diff --git a/doc/modules/model_evaluation.rst b/doc/modules/model_evaluation.rst
index eff6684458deb..080ed0c63a58c 100644
--- a/doc/modules/model_evaluation.rst
+++ b/doc/modules/model_evaluation.rst
@@ -605,7 +605,7 @@ The function :func:`cohen_kappa_score` computes `Cohen's kappa
This measure is intended to compare... | diff --git a/sklearn/metrics/tests/test_classification.py b/sklearn/metrics/tests/test_classification.py
index b87e76ba2fb42..aa612f73ef5c7 100644
--- a/sklearn/metrics/tests/test_classification.py
+++ b/sklearn/metrics/tests/test_classification.py
@@ -810,6 +810,7 @@ def test_matthews_corrcoef_nan():
partial(... | diff --git a/doc/modules/model_evaluation.rst b/doc/modules/model_evaluation.rst
index eff6684458deb..080ed0c63a58c 100644
--- a/doc/modules/model_evaluation.rst
+++ b/doc/modules/model_evaluation.rst
@@ -605,7 +605,7 @@ The function :func:`cohen_kappa_score` computes `Cohen's kappa
This measure is intended to compare... | [
{
"components": [
{
"doc": "Helper to handle zero-division.\n\nParameters\n----------\nnumerator : numbers.Real\n The numerator of the division.\ndenominator : numbers.Real\n The denominator of the division.\nmetric : str\n Name of the caller metric function.\nzero_division : {0.0, 1.0, \... | [
"sklearn/metrics/tests/test_classification.py::test_zero_division_nan_no_warning[metric4-y_true0-y_pred0-0]",
"sklearn/metrics/tests/test_classification.py::test_zero_division_nan_no_warning[metric4-y_true0-y_pred0-1]",
"sklearn/metrics/tests/test_classification.py::test_zero_division_nan_no_warning[metric4-y_t... | [
"sklearn/metrics/tests/test_classification.py::test_classification_report_dictionary_output",
"sklearn/metrics/tests/test_classification.py::test_classification_report_output_dict_empty_input",
"sklearn/metrics/tests/test_classification.py::test_classification_report_zero_division_warning[warn]",
"sklearn/met... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
ENH Add zero_division param to `cohen_kappa_score`
#### Reference Issues/PRs
towards #29048
#### What does this implement/fix? Explain your changes.
Extracts the part for adding a `zero_division`... | 18dc8630a7cbe1b591c12774949058b12157a39a | |
pvlib__pvlib-python-2079 | 2,079 | pvlib/pvlib-python | 0.10 | 1f361607037a1c9883de01d559ddfbf870f578bf | 2024-06-06T10:18:25Z | diff --git a/docs/sphinx/source/reference/irradiance/albedo.rst b/docs/sphinx/source/reference/irradiance/albedo.rst
new file mode 100644
index 0000000000..868a065d1a
--- /dev/null
+++ b/docs/sphinx/source/reference/irradiance/albedo.rst
@@ -0,0 +1,9 @@
+.. currentmodule:: pvlib
+
+Albedo
+------
+
+.. autosummary::
+ ... | diff --git a/pvlib/tests/test_albedo.py b/pvlib/tests/test_albedo.py
new file mode 100644
index 0000000000..5e4c35258a
--- /dev/null
+++ b/pvlib/tests/test_albedo.py
@@ -0,0 +1,84 @@
+import numpy as np
+import pandas as pd
+import pytest
+from pvlib import albedo
+
+from .conftest import assert_series_equal
+from nump... | diff --git a/docs/sphinx/source/reference/irradiance/albedo.rst b/docs/sphinx/source/reference/irradiance/albedo.rst
new file mode 100644
index 0000000000..868a065d1a
--- /dev/null
+++ b/docs/sphinx/source/reference/irradiance/albedo.rst
@@ -0,0 +1,9 @@
+.. currentmodule:: pvlib
+
+Albedo
+------
+
+.. autosummary::
+ ... | [
{
"components": [
{
"doc": "Estimation of albedo for inland water bodies.\n\nThe available surface conditions are for inland water bodies, e.g., lakes\nand ponds. For ocean/open sea, see\n:const:`pvlib.irradiance.SURFACE_ALBEDOS`.\n\nParameters\n----------\nsolar_elevation : numeric\n Sun eleva... | [
"pvlib/tests/test_albedo.py::test_inland_water_dvoracek_default",
"pvlib/tests/test_albedo.py::test_inland_water_dvoracek_negative_elevation",
"pvlib/tests/test_albedo.py::test_inland_water_dvoracek_string_surface_condition",
"pvlib/tests/test_albedo.py::test_inland_water_dvoracek_ndarray",
"pvlib/tests/tes... | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Add albedo function for inland water bodies
- [X] Part of #2068
- [X] I am familiar with the [contributing guidelines](https://pvlib-python.readthedocs.io/en/latest/contributing.html)
- [X] Tests... | 6af80da35a7c96059c534ee38be9123bcfc7f50f | |
tobymao__sqlglot-3602 | 3,602 | tobymao/sqlglot | null | f920014709c2d3ccb7ec18fb622ecd6b6ee0afcd | 2024-06-05T13:00:58Z | diff --git a/sqlglot/dialects/postgres.py b/sqlglot/dialects/postgres.py
index 25a02b0dcb..7ad1f90e02 100644
--- a/sqlglot/dialects/postgres.py
+++ b/sqlglot/dialects/postgres.py
@@ -8,6 +8,7 @@
Dialect,
JSON_EXTRACT_TYPE,
any_value_to_max_sql,
+ binary_from_function,
bool_xor_sql,
datestrto... | diff --git a/tests/dialects/test_postgres.py b/tests/dialects/test_postgres.py
index 74753beb61..50ba605351 100644
--- a/tests/dialects/test_postgres.py
+++ b/tests/dialects/test_postgres.py
@@ -724,6 +724,28 @@ def test_postgres(self):
self.validate_identity("cast(a as FLOAT8)", "CAST(a AS DOUBLE PRECISION)")... | [] | [
"tests/dialects/test_postgres.py::TestPostgres::test_postgres"
] | [
"tests/dialects/test_postgres.py::TestPostgres::test_array_offset",
"tests/dialects/test_postgres.py::TestPostgres::test_bool_or",
"tests/dialects/test_postgres.py::TestPostgres::test_ddl",
"tests/dialects/test_postgres.py::TestPostgres::test_operator",
"tests/dialects/test_postgres.py::TestPostgres::test_r... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
feat(postgres): Support DIV() func for integer division
Fixes #3601
This PR introduces support for Postgres's `DIV()` function which performs integer division. It mirrors the BigQuery implementati... | Here is the discussion in the issues of the pull request.
<issues>
parsing div() for postgresql throws error
**Summary**
Trying to parse a sql statement using the DIV() method but encountering an error.
**Sample Code**
```python
from sqlglot import parse_one
parsed_content = parse_one('select div(9,4)', re... | ceb42fabad60312699e4b15936aeebac00e22e4d | |
googleapis__python-aiplatform-3863 | 3,863 | googleapis/python-aiplatform | null | 831c8e45ee88f70efcdaba7dfed1856837074357 | 2024-06-04T18:17:31Z | diff --git a/samples/model-builder/feature_store/create_optimized_private_feature_online_store_sample.py b/samples/model-builder/feature_store/create_optimized_private_feature_online_store_sample.py
new file mode 100644
index 0000000000..46165e8943
--- /dev/null
+++ b/samples/model-builder/feature_store/create_optimize... | diff --git a/samples/model-builder/conftest.py b/samples/model-builder/conftest.py
index 9350bec29b..16d9057046 100644
--- a/samples/model-builder/conftest.py
+++ b/samples/model-builder/conftest.py
@@ -716,6 +716,15 @@ def mock_create_optimized_public_online_store(mock_feature_online_store):
yield mock_create... | [
{
"components": [
{
"doc": "",
"lines": [
23,
35
],
"name": "create_optimized_private_feature_online_store_sample",
"signature": "def create_optimized_private_feature_online_store_sample( project: str, location: str, feature_online_store_id: str,... | [
"samples/model-builder/feature_store/create_optimized_private_feature_online_store_sample_test.py::test_create_optimized_feature_online_store_sample"
] | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
feat: Add sample code show how to create an optimized private online store in Vertex AI Feature Store.
feat: Add sample code show how to create an optimized private online store in Vertex AI Feature S... | 67358fa6a830eb842f6b52d09061af4a41b54af6 | ||
huggingface__huggingface_hub-2314 | 2,314 | huggingface/huggingface_hub | null | e43874a754e32eb1e3cc4c569f6471be12e7cd61 | 2024-06-04T16:00:46Z | diff --git a/docs/source/en/package_reference/serialization.md b/docs/source/en/package_reference/serialization.md
index f63d4e343a..c2a7388091 100644
--- a/docs/source/en/package_reference/serialization.md
+++ b/docs/source/en/package_reference/serialization.md
@@ -4,15 +4,17 @@ rendered properly in your Markdown view... | diff --git a/tests/test_serialization.py b/tests/test_serialization.py
index 47a78d5e2e..9af9256389 100644
--- a/tests/test_serialization.py
+++ b/tests/test_serialization.py
@@ -1,21 +1,19 @@
+import json
+from pathlib import Path
+from typing import TYPE_CHECKING, Dict, List
+
import pytest
-from huggingface_hub.s... | diff --git a/docs/source/en/package_reference/serialization.md b/docs/source/en/package_reference/serialization.md
index f63d4e343a..c2a7388091 100644
--- a/docs/source/en/package_reference/serialization.md
+++ b/docs/source/en/package_reference/serialization.md
@@ -4,15 +4,17 @@ rendered properly in your Markdown view... | [
{
"components": [
{
"doc": "Save a model state dictionary to the disk.\n\nThe model state dictionary is split into shards so that each shard is smaller than a given size. The shards are\nsaved in the `save_directory` with the given `filename_pattern`. If the model is too big to fit in a single sha... | [
"tests/test_serialization.py::test_single_shard",
"tests/test_serialization.py::test_multiple_shards",
"tests/test_serialization.py::test_tensor_same_storage",
"tests/test_serialization.py::test_parse_size_to_int"
] | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Serialization: support saving torch state dict to disk
Implement `save_torch_state_dict` to save a torch state dictionary to disk (first part of https://github.com/huggingface/huggingface_hub/issues/2... | 4058e1f97ebe256b2f3006d4bc31be275c66df6b | |
deepset-ai__haystack-7795 | 7,795 | deepset-ai/haystack | null | 74df8ed9371d24dd788c4290f5b68348cc1a8896 | 2024-06-04T06:52:54Z | diff --git a/haystack/components/retrievers/in_memory/bm25_retriever.py b/haystack/components/retrievers/in_memory/bm25_retriever.py
index f94186085f..bfbef60e79 100644
--- a/haystack/components/retrievers/in_memory/bm25_retriever.py
+++ b/haystack/components/retrievers/in_memory/bm25_retriever.py
@@ -6,6 +6,7 @@
fr... | diff --git a/test/components/retrievers/test_in_memory_bm25_retriever.py b/test/components/retrievers/test_in_memory_bm25_retriever.py
index 59a88a8e88..ed1ba1887c 100644
--- a/test/components/retrievers/test_in_memory_bm25_retriever.py
+++ b/test/components/retrievers/test_in_memory_bm25_retriever.py
@@ -6,6 +6,7 @@
... | diff --git a/releasenotes/notes/add-pdfminer-converter-f08f68e38ef82f4a.yaml b/releasenotes/notes/add-pdfminer-converter-f08f68e38ef82f4a.yaml
index 540c959446..7eb656a571 100644
--- a/releasenotes/notes/add-pdfminer-converter-f08f68e38ef82f4a.yaml
+++ b/releasenotes/notes/add-pdfminer-converter-f08f68e38ef82f4a.yaml
@... | [
{
"components": [
{
"doc": "Policy to determine how filters are applied in retrievers interacting with document stores.",
"lines": [
8,
35
],
"name": "FilterPolicy",
"signature": "class FilterPolicy(Enum):",
"type": "class"
},
... | [
"test/components/retrievers/test_in_memory_bm25_retriever.py::TestMemoryBM25Retriever::test_init_default",
"test/components/retrievers/test_in_memory_bm25_retriever.py::TestMemoryBM25Retriever::test_init_with_parameters",
"test/components/retrievers/test_in_memory_bm25_retriever.py::TestMemoryBM25Retriever::tes... | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
feat: Add filter_policy init parameter to in memory retrievers
A companion PR for https://github.com/deepset-ai/haystack-core-integrations/pull/781 adding `filter_policy` parameter with options replac... | f4d9c2bb917be0ffe132dffcc2ad4f1b0fcc5967 | |
astronomer__astronomer-cosmos-1016 | 1,016 | astronomer/astronomer-cosmos | null | 0e4ca97ec7860fb843d227134692899df72a4272 | 2024-06-03T16:24:18Z | diff --git a/cosmos/profiles/__init__.py b/cosmos/profiles/__init__.py
index fa8e5c370..5cc3109cc 100644
--- a/cosmos/profiles/__init__.py
+++ b/cosmos/profiles/__init__.py
@@ -9,6 +9,7 @@
from .bigquery.oauth import GoogleCloudOauthProfileMapping
from .bigquery.service_account_file import GoogleCloudServiceAccountFi... | diff --git a/tests/profiles/clickhouse/__init__.py b/tests/profiles/clickhouse/__init__.py
new file mode 100644
index 000000000..e69de29bb
diff --git a/tests/profiles/clickhouse/test_clickhouse_userpass.py b/tests/profiles/clickhouse/test_clickhouse_userpass.py
new file mode 100644
index 000000000..1f623c803
--- /dev/n... | diff --git a/pyproject.toml b/pyproject.toml
index 238b877e4..ea97a9c0c 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -43,6 +43,7 @@ dependencies = [
dbt-all = [
"dbt-athena",
"dbt-bigquery",
+ "dbt-clickhouse",
"dbt-databricks",
"dbt-exasol",
"dbt-postgres",
@@ -53,6 +54,7 @@ dbt-all... | [
{
"components": [
{
"doc": "Maps Airflow generic connections using user + password authentication to dbt Clickhouse profiles.\nhttps://docs.getdbt.com/docs/core/connect-data-platform/clickhouse-setup",
"lines": [
10,
70
],
"name": "ClickhouseUserPassword... | [
"tests/profiles/clickhouse/test_clickhouse_userpass.py::test_connection_claiming1",
"tests/profiles/clickhouse/test_clickhouse_userpass.py::test_profile_mapping_selected",
"tests/profiles/clickhouse/test_clickhouse_userpass.py::test_profile_args",
"tests/profiles/clickhouse/test_clickhouse_userpass.py::test_m... | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Add Clickhouse profile mapping
## Description
This PR adds Clickhouse profile mapping using a `generic` connection type. To prevent cosmos from attaching all generic connections, it uses a required... | Here is the discussion in the issues of the pull request.
<issues>
Add support for dbt-clickhouse adapter
Requested via LinkedIn comment.
- See dbt docs [here](https://docs.getdbt.com/reference/warehouse-setups/clickhouse-setup)
- See clickhouse home page [here](https://clickhouse.com/)
----------
Hi, is anyone solvin... | c5edba07d2265d5185eaba149a639e8a0740e498 |
tobymao__sqlglot-3577 | 3,577 | tobymao/sqlglot | null | 13009ca5c14d81b7a07311a38f329b967f909926 | 2024-05-31T21:23:44Z | diff --git a/sqlglot/dialects/__init__.py b/sqlglot/dialects/__init__.py
index 29c6580012..0c5e6110da 100644
--- a/sqlglot/dialects/__init__.py
+++ b/sqlglot/dialects/__init__.py
@@ -70,6 +70,7 @@ class Generator(Generator):
from sqlglot.dialects.drill import Drill
from sqlglot.dialects.duckdb import DuckDB
from sql... | diff --git a/tests/dialects/test_dialect.py b/tests/dialects/test_dialect.py
index 9888a5d66a..55753e5139 100644
--- a/tests/dialects/test_dialect.py
+++ b/tests/dialects/test_dialect.py
@@ -155,6 +155,7 @@ def test_cast(self):
"clickhouse": "CAST(a AS String)",
"drill": "CAST(a AS VAR... | [] | [
"tests/dialects/test_dialect.py::TestDialect::test_cast",
"tests/dialects/test_dialect.py::TestDialect::test_time",
"tests/dialects/test_materialize.py::TestMaterialize::test_materialize"
] | [
"tests/dialects/test_dialect.py::TestDialect::test_alias",
"tests/dialects/test_dialect.py::TestDialect::test_array",
"tests/dialects/test_dialect.py::TestDialect::test_array_any",
"tests/dialects/test_dialect.py::TestDialect::test_cast_to_user_defined_type",
"tests/dialects/test_dialect.py::TestDialect::te... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Add Materialize dialect (WIP)
This is an attempt to add initial support for a [Materialize](https://materialize.com/docs/) dialect.
Any feedback is welcome! I'm planning to add more features soon.
... | ceb42fabad60312699e4b15936aeebac00e22e4d | ||
astropy__astropy-16516 | 16,516 | astropy/astropy | v5.3 | fb4ff546ebca64c4d92a573e400873aeba1f5766 | 2024-05-30T15:25:34Z | diff --git a/astropy/units/equivalencies.py b/astropy/units/equivalencies.py
index f77b195df97d..b6968fc701ea 100644
--- a/astropy/units/equivalencies.py
+++ b/astropy/units/equivalencies.py
@@ -34,6 +34,7 @@
"molar_mass_amu",
"pixel_scale",
"plate_scale",
+ "magnetic_flux_field",
"Equivalency",
... | diff --git a/astropy/units/tests/test_equivalencies.py b/astropy/units/tests/test_equivalencies.py
index bd13257194eb..7aab96eb16cd 100644
--- a/astropy/units/tests/test_equivalencies.py
+++ b/astropy/units/tests/test_equivalencies.py
@@ -1013,3 +1013,17 @@ def test_spectral_density_factor_deprecation():
u... | diff --git a/docs/changes/units/16516.feature.rst b/docs/changes/units/16516.feature.rst
new file mode 100644
index 000000000000..4fa419d8579b
--- /dev/null
+++ b/docs/changes/units/16516.feature.rst
@@ -0,0 +1,2 @@
+Add ``magnetic_flux_field`` equivalency to convert magnetic field between
+magnetic field strength (H) ... | [
{
"components": [
{
"doc": "Convert magnetic field between magnetic field strength :math:`(\\mathbf{H})` and\nmagnetic flux density :math:`(\\mathbf{B})` using the relationship:\n\n.. math::\n\n \\mathbf{B} = \\mu_r \\mu_0 \\mathbf{H}\n\nwhere:\n - :math:`\\mu_0` is the vacuum permeability, ... | [
"astropy/units/tests/test_equivalencies.py::test_magnetic_flux_field"
] | [
"astropy/units/tests/test_equivalencies.py::test_find_equivalent_units",
"astropy/units/tests/test_equivalencies.py::test_dimensionless_angles",
"astropy/units/tests/test_equivalencies.py::test_logarithmic[log_unit0]",
"astropy/units/tests/test_equivalencies.py::test_logarithmic[log_unit1]",
"astropy/units/... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Magnetic flux field equivalency
<!-- 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... | 2d281019494aaebf522f6626c0dae37510c16688 | |
embeddings-benchmark__mteb-854 | 854 | embeddings-benchmark/mteb | null | 4bded5a653a806d9068cfb9f246c86d75c3e4c55 | 2024-05-30T11:37:43Z | diff --git a/.gitignore b/.gitignore
index 119770cdb8..dd9c7ea386 100644
--- a/.gitignore
+++ b/.gitignore
@@ -137,3 +137,6 @@ error_logs.txt
# tests
tests/results
tmp.py
+
+# sandbox
+sb.ipynb
\ No newline at end of file
diff --git a/docs/mmteb/points.md b/docs/mmteb/points.md
index 7f4af0226a..d8a3a3e09a 100644
--... | diff --git a/tests/test_RerankingEvaluator.py b/tests/test_RerankingEvaluator.py
index 5c0cb20584..94e43695f8 100644
--- a/tests/test_RerankingEvaluator.py
+++ b/tests/test_RerankingEvaluator.py
@@ -36,3 +36,21 @@ def test_map(self):
assert self.evaluator.ap_score(is_relevant, pred_scores) == pytest.approx(
... | diff --git a/.gitignore b/.gitignore
index 119770cdb8..dd9c7ea386 100644
--- a/.gitignore
+++ b/.gitignore
@@ -137,3 +137,6 @@ error_logs.txt
# tests
tests/results
tmp.py
+
+# sandbox
+sb.ipynb
\ No newline at end of file
diff --git a/docs/mmteb/points.md b/docs/mmteb/points.md
index 7f4af0226a..d8a3a3e09a 100644
--... | [
{
"components": [
{
"doc": "Computes similarity scores for a single instance = (query, positives, negatives)\n\nArgs:\n query_emb: Query embedding, with shape `(num_queries, hidden_size)`\n if `num_queries` > 0: we take the closest document to any of the queries\n docs_emb: Candidates... | [
"tests/test_RerankingEvaluator.py::TestRerankingEvaluator::test_nAUC",
"tests/test_RetrievalEvaluator.py::TestRetrievalEvaluator::test_metrics_at_k",
"tests/test_RetrievalEvaluator.py::TestRetrievalEvaluator::test_nAUC"
] | [
"tests/test_RerankingEvaluator.py::TestRerankingEvaluator::test_mrr_at_k",
"tests/test_RerankingEvaluator.py::TestRerankingEvaluator::test_map"
] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Add abstention metrics to retrieval and reranking tasks
Hi @KennethEnevoldsen,
As discussed in PR [https://github.com/embeddings-benchmark/mteb/pull/841](https://github.com/embeddings-benchmark/mteb/... | b580b95fc91a7e7e675d27c3ae9a9df64ddad169 | |
deepset-ai__haystack-7765 | 7,765 | deepset-ai/haystack | null | 5c468feecf580099fe6e6703d8d7b2c047d0887d | 2024-05-30T10:06:07Z | diff --git a/docs/pydoc/config/joiners_api.yml b/docs/pydoc/config/joiners_api.yml
index 9cbf2b161c..ad6e89a52a 100644
--- a/docs/pydoc/config/joiners_api.yml
+++ b/docs/pydoc/config/joiners_api.yml
@@ -1,7 +1,7 @@
loaders:
- type: haystack_pydoc_tools.loaders.CustomPythonLoader
search_path: [../../../haystack... | diff --git a/test/components/joiners/test_branch_joiner.py b/test/components/joiners/test_branch_joiner.py
new file mode 100644
index 0000000000..05d30ad6d3
--- /dev/null
+++ b/test/components/joiners/test_branch_joiner.py
@@ -0,0 +1,35 @@
+# SPDX-FileCopyrightText: 2022-present deepset GmbH <info@deepset.ai>
+#
+# SPD... | diff --git a/docs/pydoc/config/joiners_api.yml b/docs/pydoc/config/joiners_api.yml
index 9cbf2b161c..ad6e89a52a 100644
--- a/docs/pydoc/config/joiners_api.yml
+++ b/docs/pydoc/config/joiners_api.yml
@@ -1,7 +1,7 @@
loaders:
- type: haystack_pydoc_tools.loaders.CustomPythonLoader
search_path: [../../../haystack... | [
{
"components": [
{
"doc": "A component to join different branches of a pipeline into one single output.\n\n`BranchJoiner` receives multiple data connections of the same type from other components and passes the first\nvalue coming to its single output, possibly distributing it to various other co... | [
"test/components/joiners/test_branch_joiner.py::TestBranchJoiner::test_one_value",
"test/components/joiners/test_branch_joiner.py::TestBranchJoiner::test_one_value_of_wrong_type",
"test/components/joiners/test_branch_joiner.py::TestBranchJoiner::test_one_value_of_none_type",
"test/components/joiners/test_bran... | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Add BranchJoiner and deprecate Multiplexer
### Related Issues
- fixes n/a
### Proposed Changes:
Introduce `BranchJoiner` and deprecate the `Mulitplexer`
### How did you test it?
<!-- un... | f4d9c2bb917be0ffe132dffcc2ad4f1b0fcc5967 | |
scikit-learn__scikit-learn-29136 | 29,136 | scikit-learn/scikit-learn | 1.6 | 65c00c72507b48ae2f57ed2328560748db8b01f0 | 2024-05-30T10:01:41Z | diff --git a/doc/metadata_routing.rst b/doc/metadata_routing.rst
index 27000a192ab21..d8a47927512e4 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/tests/test_metaestimators_metadata_routing.py b/sklearn/tests/test_metaestimators_metadata_routing.py
index 8bfb7b0663c18..a1cc807bd2a7e 100644
--- a/sklearn/tests/test_metaestimators_metadata_routing.py
+++ b/sklearn/tests/test_metaestimators_metadata_routing.py
@@ -382,6 +382,14 @@ def enable_sle... | diff --git a/doc/metadata_routing.rst b/doc/metadata_routing.rst
index 27000a192ab21..d8a47927512e4 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.6\n\nReturns\n-------\nrouting : MetadataRouter\n A :class:`~sklearn.utils.metadata_routing.MetadataRouter` encapsula... | [
"sklearn/tests/test_metaestimators_metadata_routing.py::test_default_request[TransformedTargetRegressor]",
"sklearn/tests/test_metaestimators_metadata_routing.py::test_error_on_missing_requests_for_sub_estimator[TransformedTargetRegressor]",
"sklearn/tests/test_metaestimators_metadata_routing.py::test_setting_r... | [
"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>
FEA Add metadata routing for TransformedTargetRegressor
<!--
Thanks for contributing a pull request! Please ensure you have taken a look at
the contribution guidelines: https://github.com/scikit-lea... | 18dc8630a7cbe1b591c12774949058b12157a39a | |
googleapis__python-aiplatform-3840 | 3,840 | googleapis/python-aiplatform | null | 71fbc81df8fa0d7c863233abc3ed6d40666c1623 | 2024-05-28T21:42:18Z | diff --git a/google/cloud/aiplatform/persistent_resource.py b/google/cloud/aiplatform/persistent_resource.py
index 0bd6dbe404..f0944a5bb4 100644
--- a/google/cloud/aiplatform/persistent_resource.py
+++ b/google/cloud/aiplatform/persistent_resource.py
@@ -420,3 +420,34 @@ def list(
location=location,
... | diff --git a/tests/unit/aiplatform/test_persistent_resource.py b/tests/unit/aiplatform/test_persistent_resource.py
index 14421e9066..55c460b113 100644
--- a/tests/unit/aiplatform/test_persistent_resource.py
+++ b/tests/unit/aiplatform/test_persistent_resource.py
@@ -153,6 +153,20 @@ def delete_persistent_resource_mock(... | [
{
"components": [
{
"doc": "Reboots this Persistent Resource.\n\nArgs:\n name (str):\n Required. The name of the PersistentResource resource.\n Name should be in the following format:\n ``projects/{project_id_or_number}/locations/{location_id}/persistentResources/{persisten... | [
"tests/unit/aiplatform/test_persistent_resource.py::TestPersistentResource::test_reboot_persistent_resource[True]",
"tests/unit/aiplatform/test_persistent_resource.py::TestPersistentResource::test_reboot_persistent_resource[False]"
] | [
"tests/unit/aiplatform/test_persistent_resource.py::TestPersistentResource::test_create_persistent_resource[True]",
"tests/unit/aiplatform/test_persistent_resource.py::TestPersistentResource::test_create_persistent_resource[False]",
"tests/unit/aiplatform/test_persistent_resource.py::TestPersistentResource::tes... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
feat: Added reboot command for PersistentResource
feat: Added reboot command for PersistentResource
----------
</request>
There are several new functions or classes that need to be implemented, usi... | 67358fa6a830eb842f6b52d09061af4a41b54af6 | ||
pvlib__pvlib-python-2072 | 2,072 | pvlib/pvlib-python | 0.10 | 1f361607037a1c9883de01d559ddfbf870f578bf | 2024-05-28T21:29:44Z | diff --git a/docs/sphinx/source/reference/effects_on_pv_system_output/spectrum.rst b/docs/sphinx/source/reference/effects_on_pv_system_output/spectrum.rst
index fde3b170a9..56d7a6df15 100644
--- a/docs/sphinx/source/reference/effects_on_pv_system_output/spectrum.rst
+++ b/docs/sphinx/source/reference/effects_on_pv_syst... | diff --git a/pvlib/tests/test_spectrum.py b/pvlib/tests/test_spectrum.py
index 7b86cb713e..6b1dcd4506 100644
--- a/pvlib/tests/test_spectrum.py
+++ b/pvlib/tests/test_spectrum.py
@@ -8,6 +8,7 @@
SPECTRL2_TEST_DATA = DATA_DIR / 'spectrl2_example_spectra.csv'
+
@pytest.fixture
def spectrl2_data():
# reference... | diff --git a/docs/sphinx/source/reference/effects_on_pv_system_output/spectrum.rst b/docs/sphinx/source/reference/effects_on_pv_system_output/spectrum.rst
index fde3b170a9..56d7a6df15 100644
--- a/docs/sphinx/source/reference/effects_on_pv_system_output/spectrum.rst
+++ b/docs/sphinx/source/reference/effects_on_pv_syst... | [
{
"components": [
{
"doc": "Estimate a technology-specific spectral mismatch modifier from absolute\nairmass and clear sky index using the PVSPEC model.\n\nThe PVSPEC spectral mismatch model includes the effects of cloud cover on\nthe irradiance spectrum. Model coefficients are derived using spect... | [
"pvlib/tests/test_spectrum.py::test_spectral_factor_pvspec[asi-expected0]",
"pvlib/tests/test_spectrum.py::test_spectral_factor_pvspec[fs-2-expected1]",
"pvlib/tests/test_spectrum.py::test_spectral_factor_pvspec[fs-4-expected2]",
"pvlib/tests/test_spectrum.py::test_spectral_factor_pvspec[multisi-expected3]",
... | [
"pvlib/tests/test_spectrum.py::test_spectrl2",
"pvlib/tests/test_spectrum.py::test_spectrl2_array",
"pvlib/tests/test_spectrum.py::test_spectrl2_series",
"pvlib/tests/test_spectrum.py::test_dayofyear_missing",
"pvlib/tests/test_spectrum.py::test_aoi_gt_90",
"pvlib/tests/test_spectrum.py::test_get_example_... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Add PVSPEC spectral correction factor model
- [X] Closes (partially addresses #1950 and #2065)
- [X] I am familiar with the [contributing guidelines](https://pvlib-python.readthedocs.io/en/latest/c... | 6af80da35a7c96059c534ee38be9123bcfc7f50f | |
tobymao__sqlglot-3560 | 3,560 | tobymao/sqlglot | null | eae3c5165c16b61c7b524a55776bdb1127005c7d | 2024-05-28T17:15:28Z | diff --git a/sqlglot/schema.py b/sqlglot/schema.py
index cb3fd00b24..50646c868e 100644
--- a/sqlglot/schema.py
+++ b/sqlglot/schema.py
@@ -155,13 +155,16 @@ def table_parts(self, table: exp.Table) -> t.List[str]:
return [table.this.name]
return [table.text(part) for part in exp.TABLE_PARTS if tabl... | diff --git a/tests/test_schema.py b/tests/test_schema.py
index 5b5086738d..21b59fd3e5 100644
--- a/tests/test_schema.py
+++ b/tests/test_schema.py
@@ -303,3 +303,10 @@ def test_has_column(self):
schema = MappingSchema({"x": {"c": "int"}})
self.assertTrue(schema.has_column("x", exp.column("c")))
... | [] | [
"tests/test_schema.py::TestSchema::test_find"
] | [
"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... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Feat: add option in schema's find method to ensure types are DataTypes
The motivation behind this is that in SQLMesh we have a mapping schema where types are stored as strings, but [we need them](http... | ceb42fabad60312699e4b15936aeebac00e22e4d | ||
roboflow__supervision-1237 | 1,237 | roboflow/supervision | null | 9bc2907c4907714da5b469fdfee7800f4cf9f09e | 2024-05-28T07:42:20Z | diff --git a/supervision/detection/core.py b/supervision/detection/core.py
index be6104820..f93aed1c4 100644
--- a/supervision/detection/core.py
+++ b/supervision/detection/core.py
@@ -23,7 +23,7 @@
xywh_to_xyxy,
)
from supervision.geometry.core import Position
-from supervision.utils.internal import deprecated
... | diff --git a/test/utils/test_internal.py b/test/utils/test_internal.py
new file mode 100644
index 000000000..eee614e6c
--- /dev/null
+++ b/test/utils/test_internal.py
@@ -0,0 +1,193 @@
+from contextlib import ExitStack as DoesNotRaise
+from dataclasses import dataclass, field
+from typing import Any, Set
+
+import nump... | [
{
"components": [
{
"doc": "Get the public variables of a class instance.\n\nArgs:\n instance (Any): The instance of a class\n include_properties (bool): Whether to include properties in the result\n\nUsage:\n ```python\n detections = Detections(xyxy=np.array([1,2,3,4]))\n variables... | [
"test/utils/test_internal.py::test_get_instance_variables[MockClass-False-None-exception0]",
"test/utils/test_internal.py::test_get_instance_variables[input_instance1-False-expected1-exception1]",
"test/utils/test_internal.py::test_get_instance_variables[input_instance2-True-expected2-exception2]",
"test/util... | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Dynamically select Detections member variables
# Description
When checking if both fields are `None` or defined in two detection to be merged, we'd hardcode the fields.
This change allows gettin... | 3eb5c0b024e3e46877b7fe4fd66e6177d1308ba0 | ||
roboflow__supervision-1236 | 1,236 | roboflow/supervision | null | 9bc2907c4907714da5b469fdfee7800f4cf9f09e | 2024-05-28T06:56:15Z | diff --git a/docs/detection/double_detection_filter.md b/docs/detection/double_detection_filter.md
new file mode 100644
index 000000000..1631852f4
--- /dev/null
+++ b/docs/detection/double_detection_filter.md
@@ -0,0 +1,30 @@
+---
+comments: true
+status: new
+---
+
+# Double Detection Filter
+
+<div class="md-typeset"... | diff --git a/test/detection/test_overlap_filter.py b/test/detection/test_overlap_filter.py
new file mode 100644
index 000000000..f628c30f9
--- /dev/null
+++ b/test/detection/test_overlap_filter.py
@@ -0,0 +1,449 @@
+from contextlib import ExitStack as DoesNotRaise
+from typing import List, Optional
+
+import numpy as n... | diff --git a/docs/detection/double_detection_filter.md b/docs/detection/double_detection_filter.md
new file mode 100644
index 000000000..1631852f4
--- /dev/null
+++ b/docs/detection/double_detection_filter.md
@@ -0,0 +1,30 @@
+---
+comments: true
+status: new
+---
+
+# Double Detection Filter
+
+<div class="md-typeset"... | [
{
"components": [
{
"doc": "Resize all masks in the array to have a maximum dimension of max_dimension,\nmaintaining aspect ratio.\n\nArgs:\n masks (np.ndarray): 3D array of binary masks with shape (N, H, W).\n max_dimension (int): The maximum dimension for the resized masks.\n\nReturns:\n ... | [
"test/detection/test_overlap_filter.py::test_group_overlapping_boxes[predictions0-0.5-expected_result0-exception0]",
"test/detection/test_overlap_filter.py::test_group_overlapping_boxes[predictions1-0.5-expected_result1-exception1]",
"test/detection/test_overlap_filter.py::test_group_overlapping_boxes[predictio... | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Select overlap filtering strategy
# Description
A new enum is defined, allowing InferenceSlicer to select whether to use non-max suppression, non-max merge or simply return `Detections.merge`.
#... | 3eb5c0b024e3e46877b7fe4fd66e6177d1308ba0 | |
pgmpy__pgmpy-1770 | 1,770 | pgmpy/pgmpy | null | 9d74e8f957c40f80b8d169ed652d90fbc9289666 | 2024-05-28T04:37:12Z | diff --git a/pgmpy/factors/continuous/LinearGaussianCPD.py b/pgmpy/factors/continuous/LinearGaussianCPD.py
index 32e91ccb8..c7abaf6f2 100644
--- a/pgmpy/factors/continuous/LinearGaussianCPD.py
+++ b/pgmpy/factors/continuous/LinearGaussianCPD.py
@@ -74,7 +74,7 @@ def __init__(
"""
self.variable = var... | diff --git a/pgmpy/tests/test_factors/test_continuous/test_Linear_Gaussian_CPD.py b/pgmpy/tests/test_factors/test_continuous/test_Linear_Gaussian_CPD.py
index dc26b18c0..d3d698ea5 100644
--- a/pgmpy/tests/test_factors/test_continuous/test_Linear_Gaussian_CPD.py
+++ b/pgmpy/tests/test_factors/test_continuous/test_Linear... | [
{
"components": [
{
"doc": "",
"lines": [
244,
246
],
"name": "LinearGaussianCPD.__repr__",
"signature": "def __repr__(self):",
"type": "function"
}
],
"file": "pgmpy/factors/continuous/LinearGaussianCPD.py"
},
{
"co... | [
"pgmpy/tests/test_factors/test_continuous/test_Linear_Gaussian_CPD.py::TestLGCPD::test_str"
] | [
"pgmpy/tests/test_factors/test_continuous/test_Linear_Gaussian_CPD.py::TestLGCPD::test_class_init",
"pgmpy/tests/test_factors/test_continuous/test_Linear_Gaussian_CPD.py::TestLGCPD::test_maximum_likelihood_estimator",
"pgmpy/tests/test_models/test_LinearGaussianBayesianNetwork.py::TestLGBNMethods::test_add_cpds... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Adds method to generate random Linear Gaussian CPDs for a given model
### Your checklist for this pull request
Please review the [guidelines for contributing](CONTRIBUTING.md) to this repository.
... | cf8d0f12e2e5be62b01ff8fded85f3f64eab1e84 | ||
pgmpy__pgmpy-1768 | 1,768 | pgmpy/pgmpy | null | 8975b88969b8f0e9b0677fa9555c39ac94f94b20 | 2024-05-26T19:49:05Z | diff --git a/pgmpy/models/LinearGaussianBayesianNetwork.py b/pgmpy/models/LinearGaussianBayesianNetwork.py
index 4d4e88cdf..2e1f30f88 100644
--- a/pgmpy/models/LinearGaussianBayesianNetwork.py
+++ b/pgmpy/models/LinearGaussianBayesianNetwork.py
@@ -1,5 +1,6 @@
import networkx as nx
import numpy as np
+import pandas a... | diff --git a/pgmpy/tests/test_factors/test_continuous/test_Linear_Gaussian_CPD.py b/pgmpy/tests/test_factors/test_continuous/test_Linear_Gaussian_CPD.py
index ed125a0b8..dc26b18c0 100644
--- a/pgmpy/tests/test_factors/test_continuous/test_Linear_Gaussian_CPD.py
+++ b/pgmpy/tests/test_factors/test_continuous/test_Linear... | [
{
"components": [
{
"doc": "Simulates data from the given model.\n\nParameters\n----------\nn: int\n The number of samples to draw from the model.\n\nseed: int (default: None)\n Seed for the random number generator.\n\nReturns\n-------\npandas.DataFrame: generated samples\n A pandas data ... | [
"pgmpy/tests/test_models/test_LinearGaussianBayesianNetwork.py::TestLGBNMethods::test_simulate",
"pgmpy/tests/test_models/test_LinearGaussianBayesianNetwork.py::TestLGBNMethods::test_to_joint_gaussian"
] | [
"pgmpy/tests/test_factors/test_continuous/test_Linear_Gaussian_CPD.py::TestLGCPD::test_class_init",
"pgmpy/tests/test_factors/test_continuous/test_Linear_Gaussian_CPD.py::TestLGCPD::test_maximum_likelihood_estimator",
"pgmpy/tests/test_factors/test_continuous/test_Linear_Gaussian_CPD.py::TestLGCPD::test_str",
... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Adds simulation method to Linear Gaussian BN
### Your checklist for this pull request
Please review the [guidelines for contributing](CONTRIBUTING.md) to this repository.
- [ ] Make sure you are r... | cf8d0f12e2e5be62b01ff8fded85f3f64eab1e84 | ||
googleapis__python-aiplatform-3834 | 3,834 | googleapis/python-aiplatform | null | 9d3561738d577129cb222417bf208166825d8043 | 2024-05-24T22:07:36Z | diff --git a/google/cloud/aiplatform/initializer.py b/google/cloud/aiplatform/initializer.py
index a615baa4bb..34b53fc26f 100644
--- a/google/cloud/aiplatform/initializer.py
+++ b/google/cloud/aiplatform/initializer.py
@@ -17,11 +17,12 @@
from concurrent import futures
+import functools
import inspect
import log... | diff --git a/tests/system/vertexai/test_generative_models.py b/tests/system/vertexai/test_generative_models.py
index 1282e99c26..292f8a0dfa 100644
--- a/tests/system/vertexai/test_generative_models.py
+++ b/tests/system/vertexai/test_generative_models.py
@@ -429,3 +429,12 @@ def test_chat_automatic_function_calling(sel... | [
{
"components": [
{
"doc": "A client wrapper that dynamically wraps methods to add default metadata.",
"lines": [
559,
571
],
"name": "_ClientWrapperThatAddsDefaultMetadata",
"signature": "class _ClientWrapperThatAddsDefaultMetadata:",
"t... | [
"tests/unit/aiplatform/test_initializer.py::TestInit::test_create_client_with_request_metadata_model_service",
"tests/unit/aiplatform/test_initializer.py::TestInit::test_create_client_with_request_metadata_prediction_service"
] | [
"tests/unit/aiplatform/test_initializer.py::TestInit::test_init_project_sets_project",
"tests/unit/aiplatform/test_initializer.py::TestInit::test_not_init_project_gets_default_project",
"tests/unit/aiplatform/test_initializer.py::TestInit::test_infer_project_id",
"tests/unit/aiplatform/test_initializer.py::Te... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
feat: Added support for adding request metadata
feat: Added support for adding request metadata
When using the HTTP transport, this metadata is sent as HTTP headers.
Usage:
```
vertexai.init(
r... | 67358fa6a830eb842f6b52d09061af4a41b54af6 | ||
slackapi__bolt-python-1085 | 1,085 | slackapi/bolt-python | null | dbe2333046b582c087fd19d6812c8a523835f53c | 2024-05-24T19:15:23Z | diff --git a/examples/wsgi/app.py b/examples/wsgi/app.py
new file mode 100644
index 000000000..d994ffbf9
--- /dev/null
+++ b/examples/wsgi/app.py
@@ -0,0 +1,19 @@
+from slack_bolt import App
+from slack_bolt.adapter.wsgi import SlackRequestHandler
+
+app = App()
+
+
+@app.event("app_mention")
+def handle_app_mentions(b... | diff --git a/tests/adapter_tests/wsgi/__init__.py b/tests/adapter_tests/wsgi/__init__.py
new file mode 100644
index 000000000..e69de29bb
diff --git a/tests/adapter_tests/wsgi/test_wsgi_http.py b/tests/adapter_tests/wsgi/test_wsgi_http.py
new file mode 100644
index 000000000..63ac62627
--- /dev/null
+++ b/tests/adapter_... | diff --git a/examples/wsgi/requirements.txt b/examples/wsgi/requirements.txt
new file mode 100644
index 000000000..5c3ac5752
--- /dev/null
+++ b/examples/wsgi/requirements.txt
@@ -0,0 +1,1 @@
+gunicorn<23
| [
{
"components": [
{
"doc": "",
"lines": [
8,
10
],
"name": "handle_app_mentions",
"signature": "def handle_app_mentions(body, say, logger):",
"type": "function"
}
],
"file": "examples/wsgi/app.py"
},
{
"components": ... | [
"tests/adapter_tests/wsgi/test_wsgi_http.py::TestWsgiHttp::test_commands",
"tests/adapter_tests/wsgi/test_wsgi_http.py::TestWsgiHttp::test_events",
"tests/adapter_tests/wsgi/test_wsgi_http.py::TestWsgiHttp::test_shortcuts",
"tests/adapter_tests/wsgi/test_wsgi_http.py::TestWsgiHttp::test_oauth",
"tests/adapt... | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
feat: add WSGI adapter
This PR introduced a WSGI adapter to bolt python, this will allow Bolt to be deployed in production without the need for an other WSGI compatible Web Framework like Flask
# T... | dbe2333046b582c087fd19d6812c8a523835f53c | |
embeddings-benchmark__mteb-807 | 807 | embeddings-benchmark/mteb | null | 0ca3bc1219981af0c901b4918e78658453f3949b | 2024-05-24T10:25:59Z | diff --git a/docs/mmteb/points/807.jsonl b/docs/mmteb/points/807.jsonl
new file mode 100644
index 0000000000..ae60e6d5f0
--- /dev/null
+++ b/docs/mmteb/points/807.jsonl
@@ -0,0 +1,3 @@
+{"GitHub": "isaac-chung", "Review PR": 2}
+{"GitHub": "Muennighoff", "Review PR": 2}
+{"GitHub": "KennethEnevoldsen", "Bug fixes": 5... | diff --git a/tests/test_reproducible_workflow.py b/tests/test_reproducible_workflow.py
new file mode 100644
index 0000000000..ddc3dace57
--- /dev/null
+++ b/tests/test_reproducible_workflow.py
@@ -0,0 +1,29 @@
+from __future__ import annotations
+
+import logging
+
+import pytest
+
+import mteb
+from mteb import MTEB
+... | diff --git a/docs/mmteb/points/807.jsonl b/docs/mmteb/points/807.jsonl
new file mode 100644
index 0000000000..ae60e6d5f0
--- /dev/null
+++ b/docs/mmteb/points/807.jsonl
@@ -0,0 +1,3 @@
+{"GitHub": "isaac-chung", "Review PR": 2}
+{"GitHub": "Muennighoff", "Review PR": 2}
+{"GitHub": "KennethEnevoldsen", "Bug fixes": 5... | [
{
"components": [
{
"doc": "",
"lines": [
23,
24
],
"name": "sentence_transformers_loader",
"signature": "def sentence_transformers_loader(model_name: str, revision: str) -> SentenceTransformer:",
"type": "function"
},
{
... | [
"tests/test_reproducible_workflow.py::test_reproducibility_workflow[sentence-transformers/all-MiniLM-L6-v2-BornholmBitextMining]"
] | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
add model meta to create reproducible workflow
- Add outline for model meta object
- Added a single model as a an example
- Added test for the reproducible workflow
The intention is that a reprod... | b580b95fc91a7e7e675d27c3ae9a9df64ddad169 | |
googleapis__python-aiplatform-3831 | 3,831 | googleapis/python-aiplatform | null | 09b3e028cb2c075d4a12e8cdbb9c1616c10c63ed | 2024-05-23T23:25:46Z | diff --git a/.release-please-manifest.json b/.release-please-manifest.json
index 542bbbea25..bb358f0808 100644
--- a/.release-please-manifest.json
+++ b/.release-please-manifest.json
@@ -1,3 +1,3 @@
{
- ".": "1.56.0"
+ ".": "1.55.0"
}
diff --git a/CHANGELOG.md b/CHANGELOG.md
index b8b06132ad..1fdeacfff5 100644
... | diff --git a/tests/unit/aiplatform/test_endpoints.py b/tests/unit/aiplatform/test_endpoints.py
index 5b725d8728..4185594440 100644
--- a/tests/unit/aiplatform/test_endpoints.py
+++ b/tests/unit/aiplatform/test_endpoints.py
@@ -95,6 +95,11 @@
_TEST_METADATA = {"foo": "bar"}
_TEST_PREDICTION = test_constants.EndpointCo... | diff --git a/.release-please-manifest.json b/.release-please-manifest.json
index 542bbbea25..bb358f0808 100644
--- a/.release-please-manifest.json
+++ b/.release-please-manifest.json
@@ -1,3 +1,3 @@
{
- ".": "1.56.0"
+ ".": "1.55.0"
}
diff --git a/CHANGELOG.md b/CHANGELOG.md
index b8b06132ad..1fdeacfff5 100644
... | [
{
"components": [
{
"doc": "Makes a streaming prediction request using arbitrary headers.\n\nExample usage:\n ```\n my_endpoint = aiplatform.Endpoint(ENDPOINT_ID)\n for stream_response in my_endpoint.stream_raw_predict(\n body = b'{\"instances\":[{\"feat_1\":val_1, \"feat_2\":val_2... | [
"tests/unit/aiplatform/test_endpoints.py::TestEndpoint::test_direct_predict",
"tests/unit/aiplatform/test_endpoints.py::TestEndpoint::test_direct_predict_with_parameters",
"tests/unit/aiplatform/test_endpoints.py::TestEndpoint::test_direct_predict_with_timeout",
"tests/unit/aiplatform/test_endpoints.py::TestE... | [
"tests/unit/aiplatform/test_endpoints.py::TestEndpoint::test_constructor",
"tests/unit/aiplatform/test_endpoints.py::TestEndpoint::test_lazy_constructor_with_endpoint_id",
"tests/unit/aiplatform/test_endpoints.py::TestEndpoint::test_lazy_constructor_with_endpoint_name",
"tests/unit/aiplatform/test_endpoints.p... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
feat: Endpoint.stream_raw_predict
feat: Endpoint.stream_raw_predict
feat: Endpoint.direct_predict
feat: Endpoint.direct_predict_async
feat: Endpoint.stream_direct_predict
feat: Endpoint.direct_raw_pre... | 67358fa6a830eb842f6b52d09061af4a41b54af6 | |
google-deepmind__optax-971 | 971 | google-deepmind/optax | null | ae0de8f30a170ebb3061ee18c206368b2524a003 | 2024-05-23T16:33:11Z | diff --git a/docs/api/losses.rst b/docs/api/losses.rst
index bcc9cd38a..698bbb87d 100644
--- a/docs/api/losses.rst
+++ b/docs/api/losses.rst
@@ -14,13 +14,18 @@ Losses
kl_divergence
l2_loss
log_cosh
+ multiclass_hinge_loss
+ multiclass_perceptron_loss
+ multiclass_sparsemax_loss
ntxent
+ ... | diff --git a/optax/losses/_classification_test.py b/optax/losses/_classification_test.py
index b87d520ea..473633319 100644
--- a/optax/losses/_classification_test.py
+++ b/optax/losses/_classification_test.py
@@ -23,6 +23,8 @@
import jax.numpy as jnp
import jax.test_util as jaxtest
import numpy as np
+
+from optax i... | diff --git a/docs/api/losses.rst b/docs/api/losses.rst
index bcc9cd38a..698bbb87d 100644
--- a/docs/api/losses.rst
+++ b/docs/api/losses.rst
@@ -14,13 +14,18 @@ Losses
kl_divergence
l2_loss
log_cosh
+ multiclass_hinge_loss
+ multiclass_perceptron_loss
+ multiclass_sparsemax_loss
ntxent
+ ... | [
{
"components": [
{
"doc": "",
"lines": [
686,
695
],
"name": "_multiclass_sparsemax_loss",
"signature": "def _multiclass_sparsemax_loss( scores: chex.Array, label: chex.Array ) -> chex.Array:",
"type": "function"
},
{
... | [
"optax/losses/_classification_test.py::SparsemaxTest::test_multi_class_gradient",
"optax/losses/_classification_test.py::SparsemaxTest::test_multi_class_zero_loss"
] | [
"optax/losses/_classification_test.py::SoftmaxCrossEntropyTest::test_batched__with_device",
"optax/losses/_classification_test.py::SoftmaxCrossEntropyTest::test_batched__with_jit",
"optax/losses/_classification_test.py::SoftmaxCrossEntropyTest::test_batched__without_device",
"optax/losses/_classification_test... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Add multiclass_sparsemax_loss.
Add multiclass_sparsemax_loss.
----------
</request>
There are several new functions or classes that need to be implemented, using the definitions below:
<<NEW DEFIN... | 1e08bccf195ac54e7d9d766eb5e69345bf0e3230 | |
pvlib__pvlib-python-2053 | 2,053 | pvlib/pvlib-python | 0.10 | 19c9598355b8243038bdeb1253d219e0371f71af | 2024-05-17T23:39:44Z | diff --git a/docs/sphinx/source/reference/index.rst b/docs/sphinx/source/reference/index.rst
index 9083f85bdd..8a990ac923 100644
--- a/docs/sphinx/source/reference/index.rst
+++ b/docs/sphinx/source/reference/index.rst
@@ -20,3 +20,4 @@ API reference
bifacial
scaling
location
+ transformer
diff --git a/do... | diff --git a/pvlib/tests/test_transformer.py b/pvlib/tests/test_transformer.py
new file mode 100644
index 0000000000..0739a9e95a
--- /dev/null
+++ b/pvlib/tests/test_transformer.py
@@ -0,0 +1,60 @@
+import pandas as pd
+
+from numpy.testing import assert_allclose
+
+from pvlib import transformer
+
+
+def test_simple_ef... | diff --git a/docs/sphinx/source/reference/index.rst b/docs/sphinx/source/reference/index.rst
index 9083f85bdd..8a990ac923 100644
--- a/docs/sphinx/source/reference/index.rst
+++ b/docs/sphinx/source/reference/index.rst
@@ -20,3 +20,4 @@ API reference
bifacial
scaling
location
+ transformer
diff --git a/do... | [
{
"components": [
{
"doc": "Calculate the power at the output terminal of the transformer\nafter taking into account efficiency using a simple calculation.\n\nThe equation used in this function can be derived from [1]_.\n\nFor a zero input power, the output power will be negative.\nThis means the ... | [
"pvlib/tests/test_transformer.py::test_simple_efficiency",
"pvlib/tests/test_transformer.py::test_simple_efficiency_known_values"
] | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Add a simple transformer effficiency model to pvlib
<!-- Thank you for your contribution! The following items must be addressed before the code can be merged. Please don't hesitate to ask for help if ... | Here is the discussion in the issues of the pull request.
<issues>
Transformers
**problem**
As an energy analyst, I need to know energy at point of interconnect, and that includes detailed transformer efficiency and losses, as well as ac collection losses and curtailment
**solution**
A transformer load / no-load... | 6af80da35a7c96059c534ee38be9123bcfc7f50f |
tobymao__sqlglot-3489 | 3,489 | tobymao/sqlglot | null | 5b64475bfd2d6a0ddcb3d0adb60d06dca62421a0 | 2024-05-16T04:15:34Z | diff --git a/sqlglot/dialects/clickhouse.py b/sqlglot/dialects/clickhouse.py
index 3dfdd84753..7615203bfb 100644
--- a/sqlglot/dialects/clickhouse.py
+++ b/sqlglot/dialects/clickhouse.py
@@ -15,6 +15,7 @@
build_json_extract_path,
rename_func,
var_map_sql,
+ timestamptrunc_sql,
)
from sqlglot.helper ... | diff --git a/tests/dialects/test_dialect.py b/tests/dialects/test_dialect.py
index 66251114bb..7bd892e542 100644
--- a/tests/dialects/test_dialect.py
+++ b/tests/dialects/test_dialect.py
@@ -1019,6 +1019,19 @@ def test_time(self):
},
)
+ self.validate_all(
+ "TIMESTAMP_TRUNC(x,... | [] | [
"tests/dialects/test_dialect.py::TestDialect::test_time",
"tests/dialects/test_duckdb.py::TestDuckDB::test_duckdb"
] | [
"tests/dialects/test_dialect.py::TestDialect::test_alias",
"tests/dialects/test_dialect.py::TestDialect::test_array",
"tests/dialects/test_dialect.py::TestDialect::test_array_any",
"tests/dialects/test_dialect.py::TestDialect::test_cast",
"tests/dialects/test_dialect.py::TestDialect::test_cast_to_user_defin... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
feat(clickhouse): support generate TimestampTrunc, Variance, Stddev
References:
* https://clickhouse.com/docs/en/sql-reference/functions/date-time-functions#date_trunc
* https://clickhouse.com/doc... | ceb42fabad60312699e4b15936aeebac00e22e4d | ||
googleapis__python-bigquery-1919 | 1,919 | googleapis/python-bigquery | null | 32b2c35d7ea5312b0da344518f56985a967ddd0b | 2024-05-15T18:43:00Z | diff --git a/google/cloud/bigquery/format_options.py b/google/cloud/bigquery/format_options.py
index 1208565a9..ad5591b1c 100644
--- a/google/cloud/bigquery/format_options.py
+++ b/google/cloud/bigquery/format_options.py
@@ -105,6 +105,21 @@ def enable_list_inference(self) -> bool:
def enable_list_inference(self, ... | diff --git a/tests/unit/test_format_options.py b/tests/unit/test_format_options.py
index c8fecbfa6..94a01570f 100644
--- a/tests/unit/test_format_options.py
+++ b/tests/unit/test_format_options.py
@@ -54,11 +54,17 @@ def test_from_api_repr(self):
)
assert not config.enum_as_string
assert conf... | [
{
"components": [
{
"doc": "Sets the map target type.\n\nArgs:\n value: The map target type (eg ARRAY_OF_STRUCT).",
"lines": [
115,
121
],
"name": "ParquetOptions.map_target_type",
"signature": "def map_target_type(self, value: str) -> None:",
... | [
"tests/unit/test_format_options.py::TestParquetOptions::test_from_api_repr",
"tests/unit/test_format_options.py::TestParquetOptions::test_to_api_repr"
] | [
"tests/unit/test_format_options.py::TestAvroOptions::test_ctor",
"tests/unit/test_format_options.py::TestAvroOptions::test_from_api_repr",
"tests/unit/test_format_options.py::TestAvroOptions::test_to_api_repr",
"tests/unit/test_format_options.py::TestParquetOptions::test_ctor"
] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
feat: add support for map target type in Parquet options
The map target type creates a schema without the added key_value repeated field.
----------
</request>
There are several new functions or... | 3359ef37b90243bea2d9e68bb996fe5d736f304c | ||
tobymao__sqlglot-3485 | 3,485 | tobymao/sqlglot | null | 6e7f37af86a4f36ec47ea4ef3519e5c97376e090 | 2024-05-15T14:29:44Z | diff --git a/sqlglot/dialects/athena.py b/sqlglot/dialects/athena.py
index f2deec8820..5fc7e52422 100644
--- a/sqlglot/dialects/athena.py
+++ b/sqlglot/dialects/athena.py
@@ -13,6 +13,8 @@ class Parser(Trino.Parser):
}
class Generator(Trino.Generator):
+ WITH_PROPERTIES_PREFIX = "TBLPROPERTIES"
+... | diff --git a/tests/dialects/test_postgres.py b/tests/dialects/test_postgres.py
index 6b6117eac5..245994629e 100644
--- a/tests/dialects/test_postgres.py
+++ b/tests/dialects/test_postgres.py
@@ -733,6 +733,13 @@ def test_ddl(self):
self.validate_identity("TRUNCATE TABLE t1 RESTRICT")
self.validate_ide... | [] | [
"tests/dialects/test_snowflake.py::TestSnowflake::test_alter_set_unset",
"tests/dialects/test_tsql.py::TestTSQL::test_tsql"
] | [
"tests/dialects/test_postgres.py::TestPostgres::test_array_offset",
"tests/dialects/test_postgres.py::TestPostgres::test_bool_or",
"tests/dialects/test_postgres.py::TestPostgres::test_ddl",
"tests/dialects/test_postgres.py::TestPostgres::test_operator",
"tests/dialects/test_postgres.py::TestPostgres::test_p... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
feat!: Add ALTER TABLE SET
Introduce support for `ALTER TABLE ... SET ...` across first class dialects.
Design notes:
----------------
- Create an `exp.AlterSet` node belonging in `ALTER_PARSERS`... | ceb42fabad60312699e4b15936aeebac00e22e4d | ||
pydicom__pydicom-2056 | 2,056 | pydicom/pydicom | 2.4 | 81940957fe08f4124318edfc9309c989d76ab811 | 2024-05-14T00:06:13Z | diff --git a/doc/guides/decoding/decoder_options.rst b/doc/guides/decoding/decoder_options.rst
index 0caa0b58e6..7dbd9badc6 100644
--- a/doc/guides/decoding/decoder_options.rst
+++ b/doc/guides/decoding/decoder_options.rst
@@ -7,14 +7,15 @@ Pixel Data Decoder Options
.. currentmodule:: pydicom.pixels.decoders.base
... | diff --git a/tests/pixels/test_encoder_pyjpegls.py b/tests/pixels/test_encoder_pyjpegls.py
index 4f1a262a79..98b9f9b675 100644
--- a/tests/pixels/test_encoder_pyjpegls.py
+++ b/tests/pixels/test_encoder_pyjpegls.py
@@ -1325,13 +1325,3 @@ def test_buffer_i2_spp1(self):
assert not np.array_equal(out,... | diff --git a/doc/guides/decoding/decoder_options.rst b/doc/guides/decoding/decoder_options.rst
index 0caa0b58e6..7dbd9badc6 100644
--- a/doc/guides/decoding/decoder_options.rst
+++ b/doc/guides/decoding/decoder_options.rst
@@ -7,14 +7,15 @@ Pixel Data Decoder Options
.. currentmodule:: pydicom.pixels.decoders.base
... | [
{
"components": [
{
"doc": "Compress uncompressed pixel data and update `ds` in-place with the\nresulting :dcm:`encapsulated<part05/sect_A.4.html>` codestream.\n\n.. versionadded:: 3.0\n\nThe dataset `ds` must already have the following\n:dcm:`Image Pixel<part03/sect_C.7.6.3.html>` module elements... | [
"tests/pixels/test_encoder_pylibjpeg.py::test_is_available_unknown_uid",
"tests/pixels/test_utils.py::TestPixelArray::test_src",
"tests/pixels/test_utils.py::TestPixelArray::test_ds_out",
"tests/pixels/test_utils.py::TestPixelArray::test_specific_tags",
"tests/pixels/test_utils.py::TestPixelArray::test_inde... | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
[MRG] Add dataset compress() and decompress() functions
#### Describe the changes
Adds `pixels.utils.compress()` and `pixels.utils.decompress()`
#### Tasks
- [x] Unit tests added that reproduce t... | f57c7aceaeda48b60ef3d66fdb875db61e5b49a8 | |
tobymao__sqlglot-3465 | 3,465 | tobymao/sqlglot | null | 58d5f2bece42acdda5f8c08d30e6f61a5e538d4c | 2024-05-13T08:10:34Z | diff --git a/sqlglot/dialects/clickhouse.py b/sqlglot/dialects/clickhouse.py
index 362ccde351..de385dd82b 100644
--- a/sqlglot/dialects/clickhouse.py
+++ b/sqlglot/dialects/clickhouse.py
@@ -611,6 +611,19 @@ def _parse_alter_table_replace(self) -> t.Optional[exp.Expression]:
exp.ReplacePartition, expre... | diff --git a/tests/dialects/test_clickhouse.py b/tests/dialects/test_clickhouse.py
index 1bce7f5cd5..15adda8a87 100644
--- a/tests/dialects/test_clickhouse.py
+++ b/tests/dialects/test_clickhouse.py
@@ -844,6 +844,9 @@ def test_ddl(self):
self.validate_identity(
"CREATE TABLE t1 (a String EPHEMERA... | [] | [
"tests/dialects/test_clickhouse.py::TestClickhouse::test_ddl"
] | [
"tests/dialects/test_clickhouse.py::TestClickhouse::test_agg_functions",
"tests/dialects/test_clickhouse.py::TestClickhouse::test_clickhouse",
"tests/dialects/test_clickhouse.py::TestClickhouse::test_cte",
"tests/dialects/test_clickhouse.py::TestClickhouse::test_drop_on_cluster",
"tests/dialects/test_clickh... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
feat(clickhouse): add support for PROJECTION in CREATE TABLE statement
Added support for defining `PROJECTION` in `CREATE TABLE` statement for ClickHouse dialect
Documentation reference:
https://c... | ceb42fabad60312699e4b15936aeebac00e22e4d | ||
Textualize__textual-4508 | 4,508 | Textualize/textual | null | 9fdb3792075347851921add7befc31a0ee4f6814 | 2024-05-12T16:27:27Z | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 68cd1546ea..170a8189e8 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -11,6 +11,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
- Fixed auto width not working for option lists https://github.com/Textualize/textual/pull/4507
+### Added
+
+... | diff --git a/tests/test_query.py b/tests/test_query.py
index 19aac12dbe..07f608824a 100644
--- a/tests/test_query.py
+++ b/tests/test_query.py
@@ -56,6 +56,11 @@ class App(Widget):
# repeat tests to account for caching
for repeat in range(3):
+ assert list(app.query_children()) == [main_view, help_vi... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 68cd1546ea..170a8189e8 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -11,6 +11,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
- Fixed auto width not working for option lists https://github.com/Textualize/textual/pull/4507
+### Added
+
+... | [
{
"components": [
{
"doc": "Query the DOM for the immediate children that match a selector or widget type.\n\nNote that this will not return child widgets more than a single level deep.\nIf you want to a query to potentially match all children in the widget tree,\nsee [query][textual.dom.DOMNode.q... | [
"tests/test_query.py::test_query"
] | [
"tests/test_query.py::test_query_classes",
"tests/test_query.py::test_invalid_query"
] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
query children
Adds a `query_children` method. Which is virtually the same as `query`, but only finds immediate children.
----------
</request>
There are several new functions or classes that need t... | 86e93536b991014e0ea4bf993068202b446bb698 | |
tobymao__sqlglot-3463 | 3,463 | tobymao/sqlglot | null | 58d5f2bece42acdda5f8c08d30e6f61a5e538d4c | 2024-05-12T05:01:57Z | diff --git a/sqlglot/dialects/bigquery.py b/sqlglot/dialects/bigquery.py
index 0d2cfc1a6b..d38452551f 100644
--- a/sqlglot/dialects/bigquery.py
+++ b/sqlglot/dialects/bigquery.py
@@ -156,7 +156,7 @@ def _build_date(args: t.List) -> exp.Date | exp.DateFromParts:
def _build_to_hex(args: t.List) -> exp.Hex | exp.MD5:
... | diff --git a/tests/dialects/test_bigquery.py b/tests/dialects/test_bigquery.py
index 9df897c18b..c5a7bad3f6 100644
--- a/tests/dialects/test_bigquery.py
+++ b/tests/dialects/test_bigquery.py
@@ -631,6 +631,58 @@ def test_bigquery(self):
"mysql": "SELECT DATE_SUB(TIMESTAMP('2008-12-25 15:30:00+00'), INT... | [] | [
"tests/dialects/test_bigquery.py::TestBigQuery::test_bigquery",
"tests/test_expressions.py::TestExpressions::test_functions"
] | [
"tests/dialects/test_bigquery.py::TestBigQuery::test_errors",
"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::te... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
feat(transpiler): handle different hex behavior for dialects
Fixes https://github.com/tobymao/sqlglot/issues/3460
- Default hex function of all dialects, including `SQLGlot` dialect, to uppercase.
... | ceb42fabad60312699e4b15936aeebac00e22e4d | ||
pvlib__pvlib-python-2048 | 2,048 | pvlib/pvlib-python | 0.10 | 1eecaa38e8cf07a013a6bf00ea7378c9b23ba65e | 2024-05-12T00:16:30Z | diff --git a/docs/examples/agrivoltaics/README.rst b/docs/examples/agrivoltaics/README.rst
new file mode 100644
index 0000000000..9c3c2ad045
--- /dev/null
+++ b/docs/examples/agrivoltaics/README.rst
@@ -0,0 +1,2 @@
+Agrivoltaic Systems Modelling
+-----------------------------
diff --git a/docs/examples/agrivoltaics/plo... | diff --git a/pvlib/tests/test_irradiance.py b/pvlib/tests/test_irradiance.py
index 19ce0790ee..8e9f99f11f 100644
--- a/pvlib/tests/test_irradiance.py
+++ b/pvlib/tests/test_irradiance.py
@@ -1419,3 +1419,23 @@ def test_SURFACE_ALBEDOS_deprecated():
@pytest.mark.filterwarnings("ignore:SURFACE_ALBEDOS")
def test_SURFAC... | diff --git a/docs/examples/agrivoltaics/README.rst b/docs/examples/agrivoltaics/README.rst
new file mode 100644
index 0000000000..9c3c2ad045
--- /dev/null
+++ b/docs/examples/agrivoltaics/README.rst
@@ -0,0 +1,2 @@
+Agrivoltaic Systems Modelling
+-----------------------------
diff --git a/docs/sphinx/source/reference/i... | [
{
"components": [
{
"doc": "Derive daily diffuse fraction of Photosynthetically Active Radiation (PAR)\nfrom daily average solar zenith and diffuse fraction of daily insolation.\n\nThe relationship is based on the work of Spitters et al. (1986) [1]_. The\nresulting value is the fraction of daily P... | [
"pvlib/tests/test_irradiance.py::test_diffuse_par_spitters"
] | [
"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>
Agrivoltaics - PAR diffuse fraction model
- [x] Closes #2047
- [x] I am familiar with the [contributing guidelines](https://pvlib-python.readthedocs.io/en/latest/contributing.html)
- [x] Tests a... | Here is the discussion in the issues of the pull request.
<issues>
Photosynthetically active radiation decomposition model
Following my GSoC proposal, there are two models I plan to contribute regarding Photosynthetically Active Radiation, PAR. This is of great importance in the design of AgriVoltaic systems, since PAR... | 6af80da35a7c96059c534ee38be9123bcfc7f50f |
tobymao__sqlglot-3462 | 3,462 | tobymao/sqlglot | null | 2c29bf3b7a163b88754c4593996bbba9b3c791b6 | 2024-05-11T15:53:48Z | diff --git a/sqlglot/dialects/tsql.py b/sqlglot/dialects/tsql.py
index baed638e2b..7bfefccab5 100644
--- a/sqlglot/dialects/tsql.py
+++ b/sqlglot/dialects/tsql.py
@@ -3,6 +3,7 @@
import datetime
import re
import typing as t
+from functools import partial
from sqlglot import exp, generator, parser, tokens, transfo... | diff --git a/tests/dialects/test_tsql.py b/tests/dialects/test_tsql.py
index 4cd4d0b37f..4d6f1bf34e 100644
--- a/tests/dialects/test_tsql.py
+++ b/tests/dialects/test_tsql.py
@@ -1,5 +1,4 @@
from sqlglot import exp, parse, parse_one
-from sqlglot.parser import logger as parser_logger
from tests.dialects.test_dialect ... | [] | [
"tests/dialects/test_tsql.py::TestTSQL::test_declare",
"tests/dialects/test_tsql.py::TestTSQL::test_fullproc"
] | [
"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",
"tests/dialects/test_tsql... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
feat: Add T-SQL DECLARE statement parsing
This PR adds DECLARE statement parsing to the TSQL dialect of SQLGlot. I haven't implemented any sql generation functionality for the new Declare and DeclareI... | ceb42fabad60312699e4b15936aeebac00e22e4d | ||
tobymao__sqlglot-3457 | 3,457 | tobymao/sqlglot | null | b76dfda7b4122a59c52bcbb445cffc6617e68b8c | 2024-05-10T23:24:28Z | diff --git a/sqlglot/dialects/duckdb.py b/sqlglot/dialects/duckdb.py
index c11315f594..17de6768e4 100644
--- a/sqlglot/dialects/duckdb.py
+++ b/sqlglot/dialects/duckdb.py
@@ -304,6 +304,17 @@ class Parser(parser.Parser):
),
}
+ def _parse_table_sample(self, as_modifier: bool = False) -> t... | diff --git a/tests/dialects/test_duckdb.py b/tests/dialects/test_duckdb.py
index f736264c4b..29a2308e91 100644
--- a/tests/dialects/test_duckdb.py
+++ b/tests/dialects/test_duckdb.py
@@ -892,11 +892,11 @@ def test_time(self):
def test_sample(self):
self.validate_identity(
"SELECT * FROM tbl U... | [] | [
"tests/dialects/test_duckdb.py::TestDuckDB::test_sample",
"tests/dialects/test_snowflake.py::TestSnowflake::test_sample"
] | [
"tests/dialects/test_duckdb.py::TestDuckDB::test_array",
"tests/dialects/test_duckdb.py::TestDuckDB::test_array_index",
"tests/dialects/test_duckdb.py::TestDuckDB::test_bool_or",
"tests/dialects/test_duckdb.py::TestDuckDB::test_cast",
"tests/dialects/test_duckdb.py::TestDuckDB::test_duckdb",
"tests/dialec... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Feat!: improve transpilation of TABLESAMPLE clause
Fixes #3456
References:
- https://duckdb.org/docs/sql/samples.html
- https://docs.snowflake.com/en/sql-reference/constructs/sample
- https://ww... | Here is the discussion in the issues of the pull request.
<issues>
Rendering of `TABLESAMPLE` yields invalid `PERCENT` keyword for Postgres dialect
Hi folks,
big kudos for the quick turnaround on some of the issues I've recently filed, really appreciated! 🙌 🚀
Looks like we've just hit have another small one -... | ceb42fabad60312699e4b15936aeebac00e22e4d | |
pvlib__pvlib-python-2046 | 2,046 | pvlib/pvlib-python | 0.10 | 55e0a36fac1e3931b92f5f11508f6c09d903e0cc | 2024-05-10T21:14:40Z | diff --git a/docs/examples/bifacial/plot_irradiance_nonuniformity_loss.py b/docs/examples/bifacial/plot_irradiance_nonuniformity_loss.py
new file mode 100644
index 0000000000..8b19ebeb79
--- /dev/null
+++ b/docs/examples/bifacial/plot_irradiance_nonuniformity_loss.py
@@ -0,0 +1,129 @@
+"""
+Plot Irradiance Non-uniformi... | diff --git a/pvlib/tests/bifacial/test_losses_models.py b/pvlib/tests/bifacial/test_losses_models.py
new file mode 100644
index 0000000000..72dd050928
--- /dev/null
+++ b/pvlib/tests/bifacial/test_losses_models.py
@@ -0,0 +1,54 @@
+from pvlib import bifacial
+
+import pandas as pd
+import numpy as np
+from numpy.testin... | diff --git a/docs/sphinx/source/reference/bifacial.rst b/docs/sphinx/source/reference/bifacial.rst
index 6405fe4afc..a107062fd2 100644
--- a/docs/sphinx/source/reference/bifacial.rst
+++ b/docs/sphinx/source/reference/bifacial.rst
@@ -12,6 +12,13 @@ Functions for calculating front and back surface irradiance
bifaci... | [
{
"components": [
{
"doc": "Relative Mean Absolute Difference. Output is [Unitless].\nhttps://stackoverflow.com/a/19472336/19371110",
"lines": [
102,
109
],
"name": "rmad",
"signature": "def rmad(data, axis=None):",
"type": "function"
... | [
"pvlib/tests/bifacial/test_losses_models.py::test_power_mismatch_deline"
] | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
NREL non-uniform irradiance mismatch loss for bifacial modules
- [x] Closes #1541
- [x] I am familiar with the [contributing guidelines](https://pvlib-python.readthedocs.io/en/latest/contributing.h... | Here is the discussion in the issues of the pull request.
<issues>
Reduced order electrical mismatch model
**Is your feature request related to a problem? Please describe.**
Electrical mismatch loss due to cell-to-cell irradiance nonuniformity is relevant for bifacial system performance, but pvlib does not offer any t... | 6af80da35a7c96059c534ee38be9123bcfc7f50f |
conan-io__conan-16231 | 16,231 | conan-io/conan | null | 80fee05d5811608511bbb30a965afd66bdc13311 | 2024-05-09T12:29:23Z | diff --git a/conan/tools/cmake/cmakedeps/templates/__init__.py b/conan/tools/cmake/cmakedeps/templates/__init__.py
index 64e90955bf1..f1cd8ba1b49 100644
--- a/conan/tools/cmake/cmakedeps/templates/__init__.py
+++ b/conan/tools/cmake/cmakedeps/templates/__init__.py
@@ -24,6 +24,12 @@ def root_target_name(self):
def... | diff --git a/conans/test/integration/toolchains/cmake/cmakedeps/test_cmakedeps.py b/conans/test/integration/toolchains/cmake/cmakedeps/test_cmakedeps.py
index f8a7eddf5b1..53dee803222 100644
--- a/conans/test/integration/toolchains/cmake/cmakedeps/test_cmakedeps.py
+++ b/conans/test/integration/toolchains/cmake/cmakede... | [
{
"components": [
{
"doc": "",
"lines": [
28,
31
],
"name": "CMakeDepsFileTemplate.additional_variables_prefixes",
"signature": "def additional_variables_prefixes(self):",
"type": "function"
}
],
"file": "conan/tools/cmake/c... | [
"conans/test/integration/toolchains/cmake/cmakedeps/test_cmakedeps.py::test_cmakedeps_set_legacy_variable_name"
] | [
"conans/test/integration/toolchains/cmake/cmakedeps/test_cmakedeps.py::test_package_from_system",
"conans/test/integration/toolchains/cmake/cmakedeps/test_cmakedeps.py::test_test_package",
"conans/test/integration/toolchains/cmake/cmakedeps/test_cmakedeps.py::test_components_error",
"conans/test/integration/t... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Add property to change the CMake variable names generated with CMakeDeps
Changelog: Feature: Add `cmake_additional_variables_prefixes` variable to CMakeDeps generator to allow adding extra names for d... | 4a5b19a75db9225316c8cb022a2dfb9705a2af34 | ||
deepset-ai__haystack-7663 | 7,663 | deepset-ai/haystack | null | 6d27de0b406a586a2376031246f9f10eaa452888 | 2024-05-07T16:38:08Z | diff --git a/haystack/components/builders/chat_prompt_builder.py b/haystack/components/builders/chat_prompt_builder.py
new file mode 100644
index 0000000000..b49509d9c9
--- /dev/null
+++ b/haystack/components/builders/chat_prompt_builder.py
@@ -0,0 +1,223 @@
+# SPDX-FileCopyrightText: 2022-present deepset GmbH <info@de... | diff --git a/test/components/builders/test_chat_prompt_builder.py b/test/components/builders/test_chat_prompt_builder.py
new file mode 100644
index 0000000000..406e40b739
--- /dev/null
+++ b/test/components/builders/test_chat_prompt_builder.py
@@ -0,0 +1,496 @@
+from typing import Any, Dict, List, Optional
+from jinja2... | diff --git a/releasenotes/notes/add-chatpromptbuilder-19acd18a6486909d.yaml b/releasenotes/notes/add-chatpromptbuilder-19acd18a6486909d.yaml
new file mode 100644
index 0000000000..8d80cb47d1
--- /dev/null
+++ b/releasenotes/notes/add-chatpromptbuilder-19acd18a6486909d.yaml
@@ -0,0 +1,7 @@
+---
+enhancements:
+ - |
+ ... | [
{
"components": [
{
"doc": " ChatPromptBuilder is a component that renders a chat prompt from a template string using Jinja2 templates.\n\n It is designed to construct prompts for the pipeline using static or dynamic templates: Users can change\n the prompt template at runtime by providin... | [
"test/components/builders/test_chat_prompt_builder.py::TestChatPromptBuilder::test_init",
"test/components/builders/test_chat_prompt_builder.py::TestChatPromptBuilder::test_init_without_template",
"test/components/builders/test_chat_prompt_builder.py::TestChatPromptBuilder::test_init_with_required_variables",
... | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
feat: add ChatPromptBuilder, deprecate DynamicChatPromptBuilder
### Related Issues
- follow up from https://github.com/deepset-ai/haystack/pull/7655 regarding `ChatPromptBuilder`
### Proposed Ch... | f4d9c2bb917be0ffe132dffcc2ad4f1b0fcc5967 | |
pvlib__pvlib-python-2041 | 2,041 | pvlib/pvlib-python | 0.9 | d53f97e984bfdd268aa92f8bf482ced0edda0110 | 2024-05-06T22:25:16Z | diff --git a/docs/sphinx/source/reference/effects_on_pv_system_output/spectrum.rst b/docs/sphinx/source/reference/effects_on_pv_system_output/spectrum.rst
index 8041d8f49b..fde3b170a9 100644
--- a/docs/sphinx/source/reference/effects_on_pv_system_output/spectrum.rst
+++ b/docs/sphinx/source/reference/effects_on_pv_syst... | diff --git a/pvlib/tests/test_spectrum.py b/pvlib/tests/test_spectrum.py
index 793eaacfdf..7b86cb713e 100644
--- a/pvlib/tests/test_spectrum.py
+++ b/pvlib/tests/test_spectrum.py
@@ -140,7 +140,7 @@ def test_get_am15g():
def test_calc_spectral_mismatch_field(spectrl2_data):
# test that the mismatch is calculate... | diff --git a/docs/sphinx/source/reference/effects_on_pv_system_output/spectrum.rst b/docs/sphinx/source/reference/effects_on_pv_system_output/spectrum.rst
index 8041d8f49b..fde3b170a9 100644
--- a/docs/sphinx/source/reference/effects_on_pv_system_output/spectrum.rst
+++ b/docs/sphinx/source/reference/effects_on_pv_syst... | [
{
"components": [
{
"doc": "Convert spectral responsivities to quantum efficiencies.\nIf ``wavelength`` is not provided, the spectral responsivity ``sr`` must be\na :py:class:`pandas.Series` or :py:class:`pandas.DataFrame`, with the\nwavelengths in the index.\n\nProvide wavelengths in nanometers, ... | [
"pvlib/tests/test_spectrum.py::test_sr_to_qe",
"pvlib/tests/test_spectrum.py::test_qe_to_sr",
"pvlib/tests/test_spectrum.py::test_qe_and_sr_reciprocal_conversion",
"pvlib/tests/test_tools.py::test_normalize_max2one[data_in0-expected0]",
"pvlib/tests/test_tools.py::test_normalize_max2one[data_in1-expected1]"... | [
"pvlib/tests/test_spectrum.py::test_spectrl2",
"pvlib/tests/test_spectrum.py::test_spectrl2_array",
"pvlib/tests/test_spectrum.py::test_spectrl2_series",
"pvlib/tests/test_spectrum.py::test_dayofyear_missing",
"pvlib/tests/test_spectrum.py::test_aoi_gt_90",
"pvlib/tests/test_spectrum.py::test_get_example_... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Quantum efficiency & spectral response conversion funcs
- [x] Closes #2040 (partially addresses #1963)
- [x] I am familiar with the [contributing guidelines](https://pvlib-python.readthedocs.io/en/... | Here is the discussion in the issues of the pull request.
<issues>
Spectral responsivity and quantum efficiency conversion functions
**Is your feature request related to a problem? Please describe.**
Add functions to convert from SR to EQE and vice versa.
**Describe the solution you'd like**
Two distinct function... | d53f97e984bfdd268aa92f8bf482ced0edda0110 |
roboflow__supervision-1163 | 1,163 | roboflow/supervision | null | 3fbce7b6bbdccfbbd68a525cfa3993e16c0637c7 | 2024-05-05T11:59:11Z | diff --git a/docs/datasets.md b/docs/datasets/core.md
similarity index 97%
rename from docs/datasets.md
rename to docs/datasets/core.md
index 739315150..03d0c1966 100644
--- a/docs/datasets.md
+++ b/docs/datasets/core.md
@@ -1,5 +1,6 @@
---
comments: true
+status: new
---
# Datasets
diff --git a/docs/datasets/uti... | diff --git a/test/dataset/formats/test_coco.py b/test/dataset/formats/test_coco.py
index 62d1b75bd..7e269dae4 100644
--- a/test/dataset/formats/test_coco.py
+++ b/test/dataset/formats/test_coco.py
@@ -1,5 +1,5 @@
from contextlib import ExitStack as DoesNotRaise
-from typing import Dict, List, Tuple
+from typing import... | diff --git a/docs/datasets.md b/docs/datasets/core.md
similarity index 97%
rename from docs/datasets.md
rename to docs/datasets/core.md
index 739315150..03d0c1966 100644
--- a/docs/datasets.md
+++ b/docs/datasets/core.md
@@ -1,5 +1,6 @@
---
comments: true
+status: new
---
# Datasets
diff --git a/docs/datasets/uti... | [
{
"components": [
{
"doc": "",
"lines": [
67,
86
],
"name": "coco_annotations_to_masks",
"signature": "def coco_annotations_to_masks( image_annotations: List[dict], resolution_wh: Tuple[int, int] ) -> npt.NDArray[np.bool_]:",
"type": "fun... | [
"test/dataset/formats/test_coco.py::test_coco_categories_to_classes[coco_categories0-expected_result0-exception0]",
"test/dataset/formats/test_coco.py::test_coco_categories_to_classes[coco_categories1-expected_result1-exception1]",
"test/dataset/formats/test_coco.py::test_coco_categories_to_classes[coco_categor... | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
1114 rle support for coco
# Description
PR adds support for the RLE format in the COCO dataset. Based on #1114 .
It required implementing RLE encode/decode functions and extending the _coco_annota... | 3eb5c0b024e3e46877b7fe4fd66e6177d1308ba0 | |
conan-io__conan-16195 | 16,195 | conan-io/conan | null | 3a076230550ee48998c4c9db6c817969d83ee386 | 2024-05-02T22:33:12Z | diff --git a/conans/model/info.py b/conans/model/info.py
index 95e7862f5f4..04cf50d47e2 100644
--- a/conans/model/info.py
+++ b/conans/model/info.py
@@ -149,6 +149,14 @@ def full_package_mode(self):
self.package_id = self._package_id
self.recipe_revision = None
+ def revision_mode(self):
+ ... | diff --git a/conans/test/integration/package_id/test_config_package_id.py b/conans/test/integration/package_id/test_config_package_id.py
index ec077e65254..9932497dd10 100644
--- a/conans/test/integration/package_id/test_config_package_id.py
+++ b/conans/test/integration/package_id/test_config_package_id.py
@@ -11,6 +1... | [
{
"components": [
{
"doc": "",
"lines": [
152,
158
],
"name": "RequirementInfo.revision_mode",
"signature": "def revision_mode(self):",
"type": "function"
},
{
"doc": "",
"lines": [
234,
236... | [
"conans/test/integration/package_id/test_config_package_id.py::test_config_package_id[myconfig/1.2.3#rev1:pid1#prev1-revision_mode-myconfig/1.2.3#rev1]"
] | [
"conans/test/integration/package_id/test_config_package_id.py::test_config_package_id[myconfig/1.2.3#rev1:pid1#prev1-minor_mode-myconfig/1.2.Z]",
"conans/test/integration/package_id/test_config_package_id.py::test_config_package_id[myconfig/1.2.3#rev1:pid1#prev1-patch_mode-myconfig/1.2.3]",
"conans/test/integra... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
new revision_mode
Changelog: Feature: Add new ``revision_mode`` including everything down to the ``recipe-revision``, but not the ``package_id``.
Docs: https://github.com/conan-io/docs/pull/3754
C... | 4a5b19a75db9225316c8cb022a2dfb9705a2af34 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.