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
1
40
FAIL_TO_PASS
listlengths
1
2.53k
PASS_TO_PASS
listlengths
0
1.7k
problem_statement
stringlengths
811
52.7k
hints_text
stringlengths
0
57.4k
environment_setup_commit
stringclasses
167 values
tobymao__sqlglot-4579
4,579
tobymao/sqlglot
null
ceb42fabad60312699e4b15936aeebac00e22e4d
2025-01-08T15:12:50Z
diff --git a/sqlglot/dialects/__init__.py b/sqlglot/dialects/__init__.py index c85b607744..9228ee5d9a 100644 --- a/sqlglot/dialects/__init__.py +++ b/sqlglot/dialects/__init__.py @@ -68,6 +68,7 @@ class Generator(Generator): from sqlglot.dialects.dialect import Dialect, Dialects from sqlglot.dialects.doris import Dor...
diff --git a/tests/dialects/test_druid.py b/tests/dialects/test_druid.py new file mode 100644 index 0000000000..a64462d2d6 --- /dev/null +++ b/tests/dialects/test_druid.py @@ -0,0 +1,21 @@ +from sqlglot.dialects.dialect import Dialects +from tests.dialects.test_dialect import Validator + + +class TestDruid(Validator): ...
[ { "components": [ { "doc": "", "lines": [ 5, 13 ], "name": "Druid", "signature": "class Druid(Dialect):", "type": "class" }, { "doc": "", "lines": [ 6, 13 ], "name": "Druid.G...
[ "tests/dialects/test_druid.py::TestDruid::test_druid" ]
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> feat: Druid dialect Another stab at https://github.com/tobymao/sqlglot/pull/4475: - Add a Druid dialect with type mapping. - Add support to parser and generator for `CEIL(col TO unit)` and `FLOOR(...
ceb42fabad60312699e4b15936aeebac00e22e4d
PyThaiNLP__pythainlp-1054
1,054
PyThaiNLP/pythainlp
null
2252dee57bd7be9503242fa734bf0abc48c5ddf1
2025-01-02T13:53:18Z
diff --git a/docs/api/lm.rst b/docs/api/lm.rst index 471282fd3..063aecb2d 100644 --- a/docs/api/lm.rst +++ b/docs/api/lm.rst @@ -6,4 +6,5 @@ pythainlp.lm Modules ------- +.. autofunction:: calculate_ngram_counts .. autofunction:: remove_repeated_ngrams \ No newline at end of file diff --git a/pythainlp/lm/__init__...
diff --git a/tests/core/test_lm.py b/tests/core/test_lm.py index 5d25cc124..9da213d31 100644 --- a/tests/core/test_lm.py +++ b/tests/core/test_lm.py @@ -5,10 +5,23 @@ import unittest -from pythainlp.lm import remove_repeated_ngrams +from pythainlp.lm import calculate_ngram_counts, remove_repeated_ngrams class...
diff --git a/docs/api/lm.rst b/docs/api/lm.rst index 471282fd3..063aecb2d 100644 --- a/docs/api/lm.rst +++ b/docs/api/lm.rst @@ -6,4 +6,5 @@ pythainlp.lm Modules ------- +.. autofunction:: calculate_ngram_counts .. autofunction:: remove_repeated_ngrams \ No newline at end of file
[ { "components": [ { "doc": "Calculates the counts of n-grams in the list words for the specified range.\n\n:param List[str] list_words: List of string\n:param int n_min: The minimum n-gram size (default: 2).\n:param int n_max: The maximum n-gram size (default: 4).\n\n:return: A dictionary where ke...
[ "tests/core/test_lm.py::LMTestCase::test_calculate_ngram_counts", "tests/core/test_lm.py::LMTestCase::test_remove_repeated_ngrams" ]
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add pythainlp.lm.calculate_ngram_counts Calculates the counts of n-grams in the list words for the specified range. ``` >>> from pythainlp.lm import calculate_ngram_counts >>> a=["1","2","3","4"]...
2252dee57bd7be9503242fa734bf0abc48c5ddf1
tobymao__sqlglot-4547
4,547
tobymao/sqlglot
null
1ad853242f9e7119c7c6874be3650612393952ff
2024-12-25T00:59:40Z
diff --git a/sqlglot/expressions.py b/sqlglot/expressions.py index c66fc1aa22..7f43ea0274 100644 --- a/sqlglot/expressions.py +++ b/sqlglot/expressions.py @@ -4713,6 +4713,22 @@ def actions(self) -> t.List[Expression]: return self.args.get("actions") or [] +class Analyze(Expression): + arg_types = { + ...
diff --git a/tests/dialects/test_spark.py b/tests/dialects/test_spark.py index 1ad9763ffc..d5634a6890 100644 --- a/tests/dialects/test_spark.py +++ b/tests/dialects/test_spark.py @@ -918,3 +918,14 @@ def test_string(self): with self.subTest(f"Testing STRING() for {dialect}"): query = parse...
[ { "components": [ { "doc": "", "lines": [ 4716, 4721 ], "name": "Analyze", "signature": "class Analyze(Expression):", "type": "class" }, { "doc": "", "lines": [ 4725, 4728 ], ...
[ "tests/test_parser.py::TestParser::test_analyze" ]
[ "tests/dialects/test_spark.py::TestSpark::test_analyze_compute_statistics", "tests/dialects/test_spark.py::TestSpark::test_bool_or", "tests/dialects/test_spark.py::TestSpark::test_current_user", "tests/dialects/test_spark.py::TestSpark::test_ddl", "tests/dialects/test_spark.py::TestSpark::test_explode_to_un...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Feat: parse analyze compute statistics Add specific parsing for `ANALYZE` statment instead of fallback to parse as Command. | supported | dialect | `Analyze` statement reference | | :------: | -...
ceb42fabad60312699e4b15936aeebac00e22e4d
PyThaiNLP__pythainlp-1043
1,043
PyThaiNLP/pythainlp
null
4ef63b5832361f7c8938996d0a9491a82e1a3c3a
2024-12-23T14:16:34Z
diff --git a/docs/api/llm.rst b/docs/api/llm.rst new file mode 100644 index 000000000..db058504c --- /dev/null +++ b/docs/api/llm.rst @@ -0,0 +1,9 @@ +.. currentmodule:: pythainlp.llm + +pythainlp.llm +============= + +Modules +------- + +.. autofunction:: remove_repeated_ngrams \ No newline at end of file diff --git a...
diff --git a/tests/core/test_llm.py b/tests/core/test_llm.py new file mode 100644 index 000000000..415bc84d3 --- /dev/null +++ b/tests/core/test_llm.py @@ -0,0 +1,21 @@ +# -*- coding: utf-8 -*- +# SPDX-FileCopyrightText: 2016-2024 PyThaiNLP Project +# SPDX-FileType: SOURCE +# SPDX-License-Identifier: Apache-2.0 + +impo...
diff --git a/docs/api/llm.rst b/docs/api/llm.rst new file mode 100644 index 000000000..db058504c --- /dev/null +++ b/docs/api/llm.rst @@ -0,0 +1,9 @@ +.. currentmodule:: pythainlp.llm + +pythainlp.llm +============= + +Modules +------- + +.. autofunction:: remove_repeated_ngrams \ No newline at end of file
[ { "components": [ { "doc": "Remove repeated n-grams\n\n:param List[str] string_list: List of string\n:param int n: n-gram size\n:return: List of string\n:rtype: List[str]\n\n:Example:\n::\n\n from pythainlp.llm import remove_repeated_ngrams\n\n remove_repeated_ngrams(['เอา', 'เอา', 'แบบ', 'ไ...
[ "tests/core/test_llm.py::LlmTestCase::test_remove_repeated_ngrams" ]
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add pythainlp.llm ### What does this changes Add LLM tools for NLP wok. - `pythainlp.llm.remove_repeated_ngrams`: Remove repeated n-grams (to fixed llm) See #1048 ---------- </request> Th...
2252dee57bd7be9503242fa734bf0abc48c5ddf1
conan-io__conan-17518
17,518
conan-io/conan
2.12
003e2cfb746dbc83370758c192edacebd761472b
2024-12-22T20:51:16Z
diff --git a/conan/cli/commands/profile.py b/conan/cli/commands/profile.py index c188d9c002d..16457a1642a 100644 --- a/conan/cli/commands/profile.py +++ b/conan/cli/commands/profile.py @@ -9,35 +9,44 @@ from conans.util.files import save -def print_profiles(profiles): - host, build = profiles - cli_out_write...
diff --git a/test/functional/test_profile_detect_api.py b/test/functional/test_profile_detect_api.py index 077092f3d51..22ed575788c 100644 --- a/test/functional/test_profile_detect_api.py +++ b/test/functional/test_profile_detect_api.py @@ -30,11 +30,10 @@ def test_profile_detect_compiler(self): """) ...
[ { "components": [ { "doc": "", "lines": [ 12, 18 ], "name": "_print_profiles", "signature": "def _print_profiles(profiles):", "type": "function" }, { "doc": "", "lines": [ 27, 33 ], ...
[ "test/functional/test_profile_detect_api.py::TestProfileDetectAPI::test_profile_detect_libc", "test/functional/test_profile_detect_api.py::test_profile_show_aggregate_usecase[json-host]", "test/functional/test_profile_detect_api.py::test_profile_show_aggregate_usecase[json-build]", "test/functional/test_profi...
[ "test/functional/test_profile_detect_api.py::test_profile_show_aggregate_usecase[json-None]", "test/functional/test_profile_detect_api.py::test_profile_show_aggregate_usecase[text-None]", "test/integration/configuration/test_profile_jinja.py::test_profile_template", "test/integration/configuration/test_profil...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Make profile show useful to aggregate profiles Changelog: Feature: `conan profile show` can now select which context's profile to show. Changelog: Fix: `conan profile show` does not pollute stdout wi...
003e2cfb746dbc83370758c192edacebd761472b
tobymao__sqlglot-4537
4,537
tobymao/sqlglot
null
6992c1855f343a5d0120a3b4c993d8c406dd29ba
2024-12-19T12:43:38Z
diff --git a/sqlglot/dialects/tsql.py b/sqlglot/dialects/tsql.py index 1acc5ca8a7..7aa7a0e22b 100644 --- a/sqlglot/dialects/tsql.py +++ b/sqlglot/dialects/tsql.py @@ -370,6 +370,16 @@ def _timestrtotime_sql(self: TSQL.Generator, expression: exp.TimeStrToTime): return sql +def _build_datetrunc(args: t.List) -> ...
diff --git a/tests/dialects/test_tsql.py b/tests/dialects/test_tsql.py index e8cd69648b..4c61780d76 100644 --- a/tests/dialects/test_tsql.py +++ b/tests/dialects/test_tsql.py @@ -2090,3 +2090,27 @@ def test_next_value_for(self): "oracle": "SELECT NEXT VALUE FOR db.schema.sequence_name", },...
[ { "components": [ { "doc": "", "lines": [ 373, 380 ], "name": "_build_datetrunc", "signature": "def _build_datetrunc(args: t.List) -> exp.TimestampTrunc:", "type": "function" } ], "file": "sqlglot/dialects/tsql.py" } ]
[ "tests/dialects/test_tsql.py::TestTSQL::test_datetrunc" ]
[ "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.py::TestTSQL::test_count", "tests/dialects/test_tsql.py::T...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> feat(tsql): add support for DATETRUNC #4531 Fixes [https://github.com/tobymao/sqlglot/issues/4531](https://github.com/tobymao/sqlglot/issues/4531) This PR adds support for the `DATETRUNC` function ...
ceb42fabad60312699e4b15936aeebac00e22e4d
astronomer__astronomer-cosmos-1404
1,404
astronomer/astronomer-cosmos
null
c5edba07d2265d5185eaba149a639e8a0740e498
2024-12-18T11:35:17Z
diff --git a/cosmos/profiles/__init__.py b/cosmos/profiles/__init__.py index 00b934881..06601e59a 100644 --- a/cosmos/profiles/__init__.py +++ b/cosmos/profiles/__init__.py @@ -13,6 +13,7 @@ from .databricks.oauth import DatabricksOauthProfileMapping from .databricks.token import DatabricksTokenProfileMapping from ....
diff --git a/tests/profiles/oracle/test_oracle_user_pass.py b/tests/profiles/oracle/test_oracle_user_pass.py new file mode 100644 index 000000000..7f1258470 --- /dev/null +++ b/tests/profiles/oracle/test_oracle_user_pass.py @@ -0,0 +1,254 @@ +"""Tests for the Oracle profile.""" + +from unittest.mock import patch + +imp...
diff --git a/pyproject.toml b/pyproject.toml index cad6c3896..ee5503510 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -49,6 +49,7 @@ dbt-all = [ # See: https://github.com/astronomer/astronomer-cosmos/issues/1379 "dbt-databricks!=1.9.0", "dbt-exasol", + "dbt-oracle", "dbt-postgres", "db...
[ { "components": [ { "doc": "Maps Airflow Oracle connections using user + password authentication to dbt profiles.\nhttps://docs.getdbt.com/reference/warehouse-setups/oracle-setup\nhttps://airflow.apache.org/docs/apache-airflow-providers-oracle/stable/connections/oracle.html", "lines": [ ...
[ "tests/profiles/oracle/test_oracle_user_pass.py::test_connection_claiming", "tests/profiles/oracle/test_oracle_user_pass.py::test_profile_mapping_selected", "tests/profiles/oracle/test_oracle_user_pass.py::test_profile_mapping_keeps_custom_port", "tests/profiles/oracle/test_oracle_user_pass.py::test_profile_a...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add Oracle Profile mapping This PR adds the ability to map Oracle connections from Airflow to Cosmos. Co-authored-by: Shad L. Lords [slords@lordsfam.net](mailto:slords@lordsfam.net) Original PR ...
c5edba07d2265d5185eaba149a639e8a0740e498
googleapis__python-aiplatform-4791
4,791
googleapis/python-aiplatform
null
67358fa6a830eb842f6b52d09061af4a41b54af6
2024-12-16T23:23:33Z
diff --git a/vertexai/resources/preview/feature_store/feature_online_store.py b/vertexai/resources/preview/feature_store/feature_online_store.py index 2a0ecd949c..ef790978b8 100644 --- a/vertexai/resources/preview/feature_store/feature_online_store.py +++ b/vertexai/resources/preview/feature_store/feature_online_store....
diff --git a/tests/unit/vertexai/conftest.py b/tests/unit/vertexai/conftest.py index 7d5bb4af45..fd9b4a195f 100644 --- a/tests/unit/vertexai/conftest.py +++ b/tests/unit/vertexai/conftest.py @@ -63,6 +63,7 @@ _TEST_FG1_F1, _TEST_FG1_F2, _TEST_FG1_FM1, + _TEST_FV_LIST, _TEST_FV1, _TEST_FV3, ...
[ { "components": [ { "doc": "Lists feature views under this feature online store.\n\nArgs:\n project:\n Project to list feature views in. If unset, the project set in\n aiplatform.init will be used.\n location:\n Location to list feature views in. If not set, location set...
[ "tests/unit/vertexai/test_feature_online_store.py::test_list_feature_views" ]
[ "tests/unit/vertexai/test_feature_online_store.py::test_init[my_fos1]", "tests/unit/vertexai/test_feature_online_store.py::test_init[projects/test-project/locations/us-central1/featureOnlineStores/my_fos1]", "tests/unit/vertexai/test_feature_online_store.py::test_create[None]", "tests/unit/vertexai/test_featu...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> chore: add `list_feature_views()` in feature views chore: add `list_feature_views()` in feature views ---------- </request> There are several new functions or classes that need to be implemented, u...
67358fa6a830eb842f6b52d09061af4a41b54af6
tortoise__tortoise-orm-1809
1,809
tortoise/tortoise-orm
null
e5cadb5fa687631935c4cd3d2447964a13ba1b7d
2024-12-12T14:58:10Z
diff --git a/pyproject.toml b/pyproject.toml index 130151eef..ccb882b44 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -192,6 +192,8 @@ source = ["tortoise"] [tool.coverage.report] show_missing = true +[tool.ruff] +line-length = 100 [tool.ruff.lint] ignore = ["E501"] diff --git a/tortoise/indexes.py b/tort...
diff --git a/tests/fields/test_db_index.py b/tests/fields/test_db_index.py index 973913a4a..58edc6eba 100644 --- a/tests/fields/test_db_index.py +++ b/tests/fields/test_db_index.py @@ -3,6 +3,40 @@ from tortoise import fields from tortoise.contrib import test from tortoise.exceptions import ConfigurationError +from ...
diff --git a/pyproject.toml b/pyproject.toml index 130151eef..ccb882b44 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -192,6 +192,8 @@ source = ["tortoise"] [tool.coverage.report] show_missing = true +[tool.ruff] +line-length = 100 [tool.ruff.lint] ignore = ["E501"]
[ { "components": [ { "doc": "", "lines": [ 62, 63 ], "name": "Index.__hash__", "signature": "def __hash__(self) -> int:", "type": "function" }, { "doc": "", "lines": [ 65, 66 ], ...
[ "tests/fields/test_db_index.py::TestIndexHashEqual::test_index_eq", "tests/fields/test_db_index.py::TestIndexHashEqual::test_index_hash" ]
[ "tests/fields/test_db_index.py::TestIndexAlias::test_index_alias", "tests/fields/test_db_index.py::TestIndexAliasSmallInt::test_index_alias", "tests/fields/test_db_index.py::TestIndexAliasBigInt::test_index_alias", "tests/fields/test_db_index.py::TestIndexAliasUUID::test_index_alias", "tests/fields/test_db_...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> feat: add `__hash__` and `__eq__` to Index <!--- Provide a general summary of your changes in the Title above --> ## Description <!--- Describe your changes in detail --> ## Motivation and Cont...
f0f389d906f2a3fab4191160de2fda2c95c70ac5
tobymao__sqlglot-4509
4,509
tobymao/sqlglot
null
946cd4234a2ca403785b7c6a026a39ef604e8754
2024-12-12T07:06:32Z
diff --git a/sqlglot/dialects/starrocks.py b/sqlglot/dialects/starrocks.py index a30e492bdd..d3f74e7a4e 100644 --- a/sqlglot/dialects/starrocks.py +++ b/sqlglot/dialects/starrocks.py @@ -14,11 +14,18 @@ ) from sqlglot.dialects.mysql import MySQL from sqlglot.helper import seq_get +from sqlglot.tokens import TokenTyp...
diff --git a/tests/dialects/test_starrocks.py b/tests/dialects/test_starrocks.py index bf7248559a..1b7360d50b 100644 --- a/tests/dialects/test_starrocks.py +++ b/tests/dialects/test_starrocks.py @@ -18,6 +18,8 @@ def test_ddl(self): "DISTRIBUTED BY HASH (col1) PROPERTIES ('replication_num'='1')", ...
[ { "components": [ { "doc": "", "lines": [ 23, 26 ], "name": "StarRocks.Tokenizer", "signature": "class Tokenizer(MySQL.Tokenizer):", "type": "class" }, { "doc": "", "lines": [ 82, 83 ...
[ "tests/dialects/test_starrocks.py::TestStarrocks::test_ddl" ]
[ "tests/dialects/test_starrocks.py::TestStarrocks::test_identity", "tests/dialects/test_starrocks.py::TestStarrocks::test_regex", "tests/dialects/test_starrocks.py::TestStarrocks::test_starrocks", "tests/dialects/test_starrocks.py::TestStarrocks::test_time", "tests/dialects/test_starrocks.py::TestStarrocks::...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> feat(starrocks): add partition by range and unique key {} ---------- </request> There are several new functions or classes that need to be implemented, using the definitions below: <<NEW DEFINITION...
ceb42fabad60312699e4b15936aeebac00e22e4d
pgmpy__pgmpy-1881
1,881
pgmpy/pgmpy
null
cf8d0f12e2e5be62b01ff8fded85f3f64eab1e84
2024-12-11T14:56:44Z
diff --git a/pgmpy/estimators/ExpertKnowledge.py b/pgmpy/estimators/ExpertKnowledge.py new file mode 100644 index 000000000..4d1631a71 --- /dev/null +++ b/pgmpy/estimators/ExpertKnowledge.py @@ -0,0 +1,50 @@ +class ExpertKnowledge: + """ + Class to specify expert knowledge for causal discovery algorithms. + +...
diff --git a/pgmpy/tests/test_estimators/test_HillClimbSearch.py b/pgmpy/tests/test_estimators/test_HillClimbSearch.py index 296380b05..8f6b47aa8 100644 --- a/pgmpy/tests/test_estimators/test_HillClimbSearch.py +++ b/pgmpy/tests/test_estimators/test_HillClimbSearch.py @@ -3,7 +3,7 @@ import numpy as np import pandas ...
[ { "components": [ { "doc": "Class to specify expert knowledge for causal discovery algorithms.\n\nExpert knowledge is the prior knowledge about edges in the final structure of the\ngraph learned by causal discovery algorithms. Currently, expert knowledge can\nprovide information about edges that h...
[ "pgmpy/tests/test_estimators/test_HillClimbSearch.py::TestHillClimbEstimatorDiscrete::test_estimate", "pgmpy/tests/test_estimators/test_HillClimbSearch.py::TestHillClimbEstimatorDiscrete::test_estimate_rand", "pgmpy/tests/test_estimators/test_HillClimbSearch.py::TestHillClimbEstimatorDiscrete::test_estimate_tit...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Implementation of a class for expert/prior knowledge ### Your checklist for this pull request Please review the [guidelines for contributing](CONTRIBUTING.md) to this repository. - [x] Make sure y...
Here is the discussion in the issues of the pull request. <issues> Modularize expert knowledge specification for causal discovery algorithms Currently, causal discovery algorithms have arguments to specify expert knowledge. We want to modularize this interface by creating an ExpertKnowledge class that the user can defi...
cf8d0f12e2e5be62b01ff8fded85f3f64eab1e84
googleapis__python-aiplatform-4760
4,760
googleapis/python-aiplatform
null
52ce05a92574c6eceae35e8417738d51eaa92b4d
2024-12-10T01:02:32Z
diff --git a/vertexai/resources/preview/feature_store/feature_monitor.py b/vertexai/resources/preview/feature_store/feature_monitor.py index f54a411075..f4135ae0c1 100644 --- a/vertexai/resources/preview/feature_store/feature_monitor.py +++ b/vertexai/resources/preview/feature_store/feature_monitor.py @@ -189,6 +189,15...
diff --git a/tests/unit/vertexai/feature_store_constants.py b/tests/unit/vertexai/feature_store_constants.py index 0ab30b6cf0..fafc238f96 100644 --- a/tests/unit/vertexai/feature_store_constants.py +++ b/tests/unit/vertexai/feature_store_constants.py @@ -421,10 +421,33 @@ _TEST_FG1_FMJ1_PATH = f"{_TEST_PARENT}/feature...
[ { "components": [ { "doc": "The feature stats and anomaly of the feature monitor job.", "lines": [ 193, 199 ], "name": "FeatureMonitor.FeatureMonitorJob.feature_stats_and_anomalies", "signature": "def feature_stats_and_anomalies( self, ) -> List[...
[ "tests/unit/vertexai/test_feature_monitor.py::test_init_with_feature_monitor_job_path", "tests/unit/vertexai/test_feature_monitor.py::test_create_feature_monitor_job[None]", "tests/unit/vertexai/test_feature_monitor.py::test_create_feature_monitor_job[1.0]", "tests/unit/vertexai/test_feature_monitor.py::test_...
[ "tests/unit/vertexai/test_feature_monitor.py::test_init_with_feature_monitor_id_and_no_fg_id_raises_error", "tests/unit/vertexai/test_feature_monitor.py::test_init_with_feature_monitor_path_and_fg_id_raises_error", "tests/unit/vertexai/test_feature_monitor.py::test_init_with_feature_monitor_id", "tests/unit/v...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> feat: Add properties feature_stats_and_anomalies to `FeatureMonitorJob` feat: Add properties feature_stats_and_anomalies to `FeatureMonitorJob` ---------- </request> There are several new functions...
67358fa6a830eb842f6b52d09061af4a41b54af6
falconry__falcon-2419
2,419
falconry/falcon
null
77d5e6394a88ead151c9469494749f95f06b24bf
2024-12-09T12:04:12Z
diff --git a/docs/user/recipes/index.rst b/docs/user/recipes/index.rst index 0c90a4111..cad306b07 100644 --- a/docs/user/recipes/index.rst +++ b/docs/user/recipes/index.rst @@ -7,6 +7,7 @@ Recipes header-name-case multipart-mixed output-csv + plain-text-handler pretty-json raw-url-path request...
diff --git a/tests/test_recipes.py b/tests/test_recipes.py index a60e26838..cca799d1f 100644 --- a/tests/test_recipes.py +++ b/tests/test_recipes.py @@ -137,6 +137,31 @@ def test_raw_path(self, asgi, app_kind, util): assert scope2['raw_path'] == url2.encode() +class TestTextPlainHandler: + class MediaEc...
diff --git a/docs/user/recipes/index.rst b/docs/user/recipes/index.rst index 0c90a4111..cad306b07 100644 --- a/docs/user/recipes/index.rst +++ b/docs/user/recipes/index.rst @@ -7,6 +7,7 @@ Recipes header-name-case multipart-mixed output-csv + plain-text-handler pretty-json raw-url-path request...
[ { "components": [ { "doc": "", "lines": [ 6, 20 ], "name": "TextHandler", "signature": "class TextHandler(falcon.media.BaseHandler):", "type": "class" }, { "doc": "", "lines": [ 11, 13 ...
[ "tests/test_recipes.py::TestTextPlainHandler::test_text_plain_basic" ]
[ "tests/test_recipes.py::TestMultipartMixed::test_parse", "tests/test_recipes.py::TestOutputCSV::test_csv_output[asgi-simple]", "tests/test_recipes.py::TestOutputCSV::test_csv_output[asgi-stream]", "tests/test_recipes.py::TestOutputCSV::test_csv_output[wsgi-simple]", "tests/test_recipes.py::TestOutputCSV::te...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> docs(recipes): add text/plain media handler recipe # Summary of Changes introduce a new recipe demonstrating a text/plain media handler implementation the recipe includes serialization and deserial...
Here is the discussion in the issues of the pull request. <issues> Media handler for `text/plain` As proposed by @maxking on Gitter: > I have been trying to add support for msgpack in Mailman's API ([mailman/mailman!977](https://gitlab.com/mailman/mailman/-/merge_requests/977)) and in the process of doing that, I am t...
77d5e6394a88ead151c9469494749f95f06b24bf
Textualize__textual-5365
5,365
Textualize/textual
null
fe5b37a327454c24c309688d13845aa9f2e29c60
2024-12-09T10:43:27Z
diff --git a/CHANGELOG.md b/CHANGELOG.md index 38a6cb0c2b..c1666869d1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,6 +18,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/). - Change default quit key to `ctrl+q` https://github.com/Textualize/textual/pull/5352 - Changed delete line bindin...
diff --git a/tests/snapshot_tests/test_snapshots.py b/tests/snapshot_tests/test_snapshots.py index a6723b8be2..c3c9791068 100644 --- a/tests/snapshot_tests/test_snapshots.py +++ b/tests/snapshot_tests/test_snapshots.py @@ -1510,7 +1510,7 @@ def test_example_color_command(snap_compare): """Test the color_command ex...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 38a6cb0c2b..c1666869d1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,6 +18,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/). - Change default quit key to `ctrl+q` https://github.com/Textualize/textual/pull/5352 - Changed delete line bindin...
[ { "components": [ { "doc": "Internal structure to keep track of a recursive search.", "lines": [ 19, 50 ], "name": "_Search", "signature": "class _Search(NamedTuple):", "type": "class" }, { "doc": "Branch this search w...
[ "tests/test_fuzzy.py::test_boosted_matches" ]
[ "tests/test_fuzzy.py::test_no_match", "tests/test_fuzzy.py::test_match_single_group", "tests/test_fuzzy.py::test_highlight" ]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> boost for first letter matches Tweak to the command palette matcher to boost matches for the first word(s). Consider the system commands. If I were to type "SS" I would get "**S**how Key**s** and H...
86e93536b991014e0ea4bf993068202b446bb698
tobymao__sqlglot-4486
4,486
tobymao/sqlglot
null
2655d7c11d677cf47f33ac62fbfb86f4117ffd75
2024-12-09T09:14:24Z
diff --git a/sqlglot/dialects/snowflake.py b/sqlglot/dialects/snowflake.py index e0d392b0cd..93731f3049 100644 --- a/sqlglot/dialects/snowflake.py +++ b/sqlglot/dialects/snowflake.py @@ -107,6 +107,13 @@ def _builder(args: t.List) -> E: return _builder +def _build_bitor(args: t.List) -> exp.BitwiseOr | exp.Ano...
diff --git a/tests/dialects/test_snowflake.py b/tests/dialects/test_snowflake.py index 4eb97235da..f70023b9ea 100644 --- a/tests/dialects/test_snowflake.py +++ b/tests/dialects/test_snowflake.py @@ -976,6 +976,12 @@ def test_snowflake(self): "snowflake": "EDITDISTANCE(col1, col2, 3)", }, ...
[ { "components": [ { "doc": "", "lines": [ 110, 114 ], "name": "_build_bitor", "signature": "def _build_bitor(args: t.List) -> exp.BitwiseOr | exp.Anonymous:", "type": "function" } ], "file": "sqlglot/dialects/snowflake.py" ...
[ "tests/dialects/test_snowflake.py::TestSnowflake::test_snowflake" ]
[ "tests/dialects/test_snowflake.py::TestSnowflake::test_alter_set_unset", "tests/dialects/test_snowflake.py::TestSnowflake::test_copy", "tests/dialects/test_snowflake.py::TestSnowflake::test_ddl", "tests/dialects/test_snowflake.py::TestSnowflake::test_describe_table", "tests/dialects/test_snowflake.py::TestS...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> feat(snowflake): Transpile support for bitor/bit_or snowflake function scenarios involving binary data manipulation, such as managing permission sets or feature flags. BITOR Function: The BITOR ...
ceb42fabad60312699e4b15936aeebac00e22e4d
googleapis__python-aiplatform-4748
4,748
googleapis/python-aiplatform
null
91d837ece0c02c381cda9fbe9c0c839f9986f182
2024-12-05T14:26:24Z
diff --git a/samples/model-builder/vector_search/vector_search_find_neighbors_sample.py b/samples/model-builder/vector_search/vector_search_find_neighbors_sample.py index f2bcb4ad3a..31417cbe58 100644 --- a/samples/model-builder/vector_search/vector_search_find_neighbors_sample.py +++ b/samples/model-builder/vector_sea...
diff --git a/samples/model-builder/test_constants.py b/samples/model-builder/test_constants.py index 3a7d3ed3c3..5930d8394d 100644 --- a/samples/model-builder/test_constants.py +++ b/samples/model-builder/test_constants.py @@ -382,14 +382,18 @@ # Vector Search VECTOR_SEARCH_INDEX = "123" VECTOR_SEARCH_INDEX_DATAPOIN...
[ { "components": [ { "doc": "Query the vector search index using example hybrid queries.\n\nArgs:\n project (str): Required. Project ID\n location (str): Required. The region name\n index_endpoint_name (str): Required. Index endpoint to run the query\n against.\n deployed_index_id (s...
[ "samples/model-builder/vector_search/vector_search_find_neighbors_sample_test.py::test_vector_search_find_neighbors_sample", "samples/model-builder/vector_search/vector_search_find_neighbors_sample_test.py::test_vector_search_find_neighbors_hybrid_sample", "samples/model-builder/vector_search/vector_search_find...
[ "samples/model-builder/vector_search/vector_search_find_neighbors_sample_test.py::test_vector_search_find_neighbors_jwt_sample", "samples/model-builder/vector_search/vector_search_match_sample_test.py::test_vector_search_match_hybrid_queries_sample", "samples/model-builder/vector_search/vector_search_match_samp...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> chore: Samples - Add vector search sample for filtering and crowding chore: Samples - Add vector search sample for filtering and crowding ---------- <!-- probot comment [11299897]--> Here is the summ...
67358fa6a830eb842f6b52d09061af4a41b54af6
googleapis__python-aiplatform-4742
4,742
googleapis/python-aiplatform
null
7432c2ce2e484432dbee047cc13fcfe1f8f21044
2024-12-03T19:11:43Z
diff --git a/samples/model-builder/vector_search/vector_search_match_sample.py b/samples/model-builder/vector_search/vector_search_match_sample.py index c4044faa0a..45202f816a 100644 --- a/samples/model-builder/vector_search/vector_search_match_sample.py +++ b/samples/model-builder/vector_search/vector_search_match_sam...
diff --git a/samples/model-builder/test_constants.py b/samples/model-builder/test_constants.py index 3efb05f8b0..3a7d3ed3c3 100644 --- a/samples/model-builder/test_constants.py +++ b/samples/model-builder/test_constants.py @@ -421,3 +421,4 @@ ("test-project", "network1"), ("test-project2", "network2"), ] +VE...
[ { "components": [ { "doc": "Query the vector search index deployed with PSC manual configuration.\n\nArgs:\n project (str): Required. Project ID\n location (str): Required. The region name\n index_endpoint_name (str): Required. Index endpoint to run the query\n against. The endpoint mu...
[ "samples/model-builder/vector_search/vector_search_match_sample_test.py::test_vector_search_match_psc_manual_sample", "samples/model-builder/vector_search/vector_search_match_sample_test.py::test_vector_search_match_psc_automation_sample" ]
[ "samples/model-builder/vector_search/vector_search_match_sample_test.py::test_vector_search_match_hybrid_queries_sample", "samples/model-builder/vector_search/vector_search_match_sample_test.py::test_vector_search_match_jwt_sample" ]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> chore: Samples - Add vector search sample for PSC match queries chore: Samples - Add vector search sample for PSC match queries ---------- </request> There are several new functions or classes that...
67358fa6a830eb842f6b52d09061af4a41b54af6
googleapis__python-aiplatform-4705
4,705
googleapis/python-aiplatform
null
598c931a147b5679327dd19c06c97ffefa729180
2024-11-23T23:12:12Z
diff --git a/vertexai/tuning/_tuning.py b/vertexai/tuning/_tuning.py index ced3fac9b1..f080608dd9 100644 --- a/vertexai/tuning/_tuning.py +++ b/vertexai/tuning/_tuning.py @@ -107,6 +107,11 @@ def experiment(self) -> Optional[aiplatform.Experiment]: def state(self) -> gca_types.JobState: return self._gca_r...
diff --git a/tests/unit/vertexai/tuning/test_tuning.py b/tests/unit/vertexai/tuning/test_tuning.py index 5faf590bc1..0d6e74bb59 100644 --- a/tests/unit/vertexai/tuning/test_tuning.py +++ b/tests/unit/vertexai/tuning/test_tuning.py @@ -250,6 +250,30 @@ def test_genai_tuning_service_encryption_spec( ) a...
[ { "components": [ { "doc": "", "lines": [ 111, 113 ], "name": "TuningJob.service_account", "signature": "def service_account(self) -> Optional[str]:", "type": "function" } ], "file": "vertexai/tuning/_tuning.py" } ]
[ "tests/unit/vertexai/tuning/test_tuning.py::TestgenerativeModelTuning::test_genai_tuning_service_service_account[vertexai.tuning.sft]", "tests/unit/vertexai/tuning/test_tuning.py::TestgenerativeModelTuning::test_genai_tuning_service_service_account[vertexai.preview.tuning.sft]" ]
[ "tests/unit/vertexai/tuning/test_tuning.py::TestgenerativeModelTuning::test_genai_tuning_service_supervised_tuning_tune_model[vertexai.tuning.sft]", "tests/unit/vertexai/tuning/test_tuning.py::TestgenerativeModelTuning::test_genai_tuning_service_supervised_tuning_tune_model[vertexai.preview.tuning.sft]", "tests...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> feat: GenAI - Tuning - Added support for BYOSA feat: GenAI - Tuning - Added support for BYOSA ---------- </request> There are several new functions or classes that need to be implemented, using the...
67358fa6a830eb842f6b52d09061af4a41b54af6
googleapis__python-aiplatform-4691
4,691
googleapis/python-aiplatform
null
c13b6a80a84d060821182df132f2d239a2b6c677
2024-11-20T21:03:03Z
diff --git a/samples/model-builder/vector_search/vector_search_deploy_index_sample.py b/samples/model-builder/vector_search/vector_search_deploy_index_sample.py index a333aa04f8..99804c9b6c 100644 --- a/samples/model-builder/vector_search/vector_search_deploy_index_sample.py +++ b/samples/model-builder/vector_search/ve...
diff --git a/samples/model-builder/test_constants.py b/samples/model-builder/test_constants.py index 7a6a46bcdb..5eb6c4263b 100644 --- a/samples/model-builder/test_constants.py +++ b/samples/model-builder/test_constants.py @@ -416,3 +416,7 @@ VECTOR_SEARCH_PRIVATE_ENDPOINT_SIGNED_JWT = "fake-signed-jwt" VECTOR_SEARCH...
[ { "components": [ { "doc": "Deploy a vector search index to an index endpoint using PSC automation.\n\nArgs:\n project (str): Required. Project ID\n location (str): Required. The region name\n index_name (str): Required. The index to update. A fully-qualified index\n resource name or...
[ "samples/model-builder/vector_search/vector_search_deploy_index_sample_test.py::test_vector_search_deploy_psc_automation_index_sample" ]
[ "samples/model-builder/vector_search/vector_search_deploy_index_sample_test.py::test_vector_search_deploy_index_sample", "samples/model-builder/vector_search/vector_search_deploy_index_sample_test.py::test_vector_search_deploy_autoscaling_index_sample" ]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> chore: Add vector search sample for PSC automation deployment chore: Add vector search sample for PSC automation deployment ---------- </request> There are several new functions or classes that nee...
67358fa6a830eb842f6b52d09061af4a41b54af6
googleapis__python-aiplatform-4690
4,690
googleapis/python-aiplatform
null
1ca9a056209a9caef45b1aa324c38c269e47537a
2024-11-20T18:58:55Z
diff --git a/vertexai/resources/preview/feature_store/feature_monitor.py b/vertexai/resources/preview/feature_store/feature_monitor.py index 3b722ca46a..cbb3e93f94 100644 --- a/vertexai/resources/preview/feature_store/feature_monitor.py +++ b/vertexai/resources/preview/feature_store/feature_monitor.py @@ -16,14 +16,17 ...
diff --git a/tests/unit/vertexai/feature_store_constants.py b/tests/unit/vertexai/feature_store_constants.py index 7566008cfe..0ab30b6cf0 100644 --- a/tests/unit/vertexai/feature_store_constants.py +++ b/tests/unit/vertexai/feature_store_constants.py @@ -416,3 +416,23 @@ ), ) _TEST_FG1_FM_LIST = [_TEST_FG1_FM1, ...
[ { "components": [ { "doc": "Class for managing Feature Monitor Job resources.", "lines": [ 135, 188 ], "name": "FeatureMonitor.FeatureMonitorJob", "signature": "class FeatureMonitorJob(base.VertexAiResourceNounWithFutureManager):", "type"...
[ "tests/unit/vertexai/test_feature_monitor.py::test_init_with_feature_monitor_id_and_no_fg_id_raises_error", "tests/unit/vertexai/test_feature_monitor.py::test_init_with_feature_monitor_path_and_fg_id_raises_error", "tests/unit/vertexai/test_feature_monitor.py::test_init_with_feature_monitor_id", "tests/unit/v...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> feat: Add FeatureMonitorJob Create,Get,List in Vertex AI SDK feat: Add FeatureMonitorJob Create,Get,List in Vertex AI SDK ---------- </request> There are several new functions or classes that need ...
67358fa6a830eb842f6b52d09061af4a41b54af6
tobymao__sqlglot-4433
4,433
tobymao/sqlglot
null
38e2e19ac3e20224dc07128994a47340aa56e635
2024-11-20T16:28:28Z
diff --git a/sqlglot/dialects/snowflake.py b/sqlglot/dialects/snowflake.py index 1d2b246e5d..35ac0509cf 100644 --- a/sqlglot/dialects/snowflake.py +++ b/sqlglot/dialects/snowflake.py @@ -198,43 +198,58 @@ def _flatten_structured_type(expression: exp.DataType) -> exp.DataType: return expression -def _unnest_gen...
diff --git a/tests/dialects/test_dialect.py b/tests/dialects/test_dialect.py index f0711fc585..c1aa054a0e 100644 --- a/tests/dialects/test_dialect.py +++ b/tests/dialects/test_dialect.py @@ -2854,6 +2854,13 @@ def test_generate_date_array(self): }, ) + self.validate_all( + "SEL...
[ { "components": [ { "doc": "", "lines": [ 233, 254 ], "name": "_transform_generate_date_array", "signature": "def _transform_generate_date_array(expression: exp.Expression) -> exp.Expression:", "type": "function" } ], "file"...
[ "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(snowflake): Transpile non-UNNEST exp.GenerateDateArray refs Currently, transpilation of BQ's `GENERATE_DATE_ARRAY` to Snowflake is supported only if it's `UNNEST`ed (introduced by https://github....
ceb42fabad60312699e4b15936aeebac00e22e4d
googleapis__python-aiplatform-4684
4,684
googleapis/python-aiplatform
null
d68a913d38471efb33dadb564a37b52a1356ac40
2024-11-19T23:20:26Z
diff --git a/vertexai/resources/preview/feature_store/feature_group.py b/vertexai/resources/preview/feature_store/feature_group.py index ca7a8bed08..5ead906be3 100644 --- a/vertexai/resources/preview/feature_store/feature_group.py +++ b/vertexai/resources/preview/feature_store/feature_group.py @@ -544,6 +544,36 @@ def ...
diff --git a/tests/unit/vertexai/feature_store_constants.py b/tests/unit/vertexai/feature_store_constants.py index e0407834a3..7566008cfe 100644 --- a/tests/unit/vertexai/feature_store_constants.py +++ b/tests/unit/vertexai/feature_store_constants.py @@ -393,3 +393,26 @@ ) _TEST_FG1_FM1_FEATURE_SELECTION_CONFIGS = [(...
[ { "components": [ { "doc": "Lists features monitors under this feature group.\n\nArgs:\n project:\n Project to list feature monitors in. If unset, the project set in\n aiplatform.init will be used.\n location:\n Location to list feature monitors in. If not set, location ...
[ "tests/unit/vertexai/test_feature_group.py::test_list_feature_monitors" ]
[ "tests/unit/vertexai/test_feature_group.py::test_init[my_fg1]", "tests/unit/vertexai/test_feature_group.py::test_init[projects/test-project/locations/us-central1/featureGroups/my_fg1]", "tests/unit/vertexai/test_feature_group.py::test_create_fg_no_source_raises_error", "tests/unit/vertexai/test_feature_group....
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> feat: Add List FeatureMonitor function to FeatureGroup in Vertex AI SDK feat: Add List FeatureMonitor function to FeatureGroup in Vertex AI SDK ---------- </request> There are several new functions...
67358fa6a830eb842f6b52d09061af4a41b54af6
aws-powertools__powertools-lambda-python-5588
5,588
aws-powertools/powertools-lambda-python
null
3ff5132bdf894fb49da11cfaa7cbff7412d5675c
2024-11-19T12:49:39Z
diff --git a/aws_lambda_powertools/event_handler/appsync.py b/aws_lambda_powertools/event_handler/appsync.py index 6f1cb72d067..3dbbf207859 100644 --- a/aws_lambda_powertools/event_handler/appsync.py +++ b/aws_lambda_powertools/event_handler/appsync.py @@ -53,6 +53,7 @@ def __init__(self): """ super()...
diff --git a/tests/functional/event_handler/required_dependencies/appsync/test_appsync_batch_resolvers.py b/tests/functional/event_handler/required_dependencies/appsync/test_appsync_batch_resolvers.py index c594be54a5b..59c5ec08a15 100644 --- a/tests/functional/event_handler/required_dependencies/appsync/test_appsync_b...
diff --git a/docs/core/event_handler/appsync.md b/docs/core/event_handler/appsync.md index a2f29e5dba5..0c556dedfbf 100644 --- a/docs/core/event_handler/appsync.md +++ b/docs/core/event_handler/appsync.md @@ -288,6 +288,19 @@ You can use `append_context` when you want to share data between your App and Ro --8<-- "...
[ { "components": [ { "doc": "A decorator function that registers a handler for one or more exception types.\n\nParameters\n----------\nexc_class (type[Exception] | list[type[Exception]])\n A single exception type or a list of exception types.\n\nReturns\n-------\nCallable:\n A decorator funct...
[ "tests/functional/event_handler/required_dependencies/appsync/test_appsync_batch_resolvers.py::test_exception_handler_with_batch_resolver_and_raise_exception", "tests/functional/event_handler/required_dependencies/appsync/test_appsync_batch_resolvers.py::test_exception_handler_with_batch_resolver_and_no_raise_exc...
[ "tests/functional/event_handler/required_dependencies/appsync/test_appsync_batch_resolvers.py::test_resolve_batch_processing_with_related_events_one_at_time", "tests/functional/event_handler/required_dependencies/appsync/test_appsync_batch_resolvers.py::test_resolve_batch_processing_with_simple_queries_one_at_tim...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> feat(event_handler): add exception handling mechanism for AppSyncResolver <!-- markdownlint-disable MD041 MD043 --> **Issue number:** #2184 ## Summary ### Changes This PR introduces a new fe...
d1a58cdd12dfcac1e9ce022fe8a29f69ea6007b4
joke2k__faker-2141
2,141
joke2k/faker
null
6edfdbf6ae90b0153309e3bf066aa3b2d16494a7
2024-11-19T08:12:53Z
diff --git a/faker/providers/currency/uk_UA/__init__.py b/faker/providers/currency/uk_UA/__init__.py new file mode 100644 index 0000000000..c77b5a66f2 --- /dev/null +++ b/faker/providers/currency/uk_UA/__init__.py @@ -0,0 +1,173 @@ +from typing import Tuple + +from ... import ElementsType +from .. import Provider as Cu...
diff --git a/tests/providers/test_currency.py b/tests/providers/test_currency.py index c8644711d8..06914da458 100644 --- a/tests/providers/test_currency.py +++ b/tests/providers/test_currency.py @@ -510,6 +510,20 @@ def test_pricetag(self, faker, num_samples): assert isinstance(pricetag, str) +class Te...
[ { "components": [ { "doc": "", "lines": [ 7, 173 ], "name": "Provider", "signature": "class Provider(CurrencyProvider):", "type": "class" }, { "doc": "", "lines": [ 172, 173 ], ...
[ "tests/providers/test_currency.py::TestUkUa::test_currency", "tests/providers/test_currency.py::TestUkUa::test_currency_code", "tests/providers/test_currency.py::TestUkUa::test_currency_name", "tests/providers/test_currency.py::TestUkUa::test_currency_code_has_symbol", "tests/providers/test_currency.py::Tes...
[ "tests/providers/test_currency.py::TestCurrencyProvider::test_currency", "tests/providers/test_currency.py::TestCurrencyProvider::test_currency_code", "tests/providers/test_currency.py::TestCurrencyProvider::test_currency_name", "tests/providers/test_currency.py::TestCurrencyProvider::test_currency_code_has_s...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> feat: add Ukrainian currency provider ### What does this change Added Ukrainian currency provider. ### What was wrong -- ### How this fixes it -- ### Checklist - [x] I have read t...
6edfdbf6ae90b0153309e3bf066aa3b2d16494a7
TileDB-Inc__TileDB-Py-2110
2,110
TileDB-Inc/TileDB-Py
null
a2f8ccc99c9062455da867a609f0dce6d6d88041
2024-11-18T07:40:42Z
diff --git a/tiledb/ctx.py b/tiledb/ctx.py index b4898f3767..cc1a6314d6 100644 --- a/tiledb/ctx.py +++ b/tiledb/ctx.py @@ -293,6 +293,20 @@ def save(self, uri: str): """ self.save_to_file(uri) + def __reduce__(self): + """ + Customize the pickling process by defining how to serializ...
diff --git a/tiledb/tests/conftest.py b/tiledb/tests/conftest.py index 6565dd89e9..ecce429e50 100644 --- a/tiledb/tests/conftest.py +++ b/tiledb/tests/conftest.py @@ -52,54 +52,6 @@ def pytest_configure(config): # default must be set here rather than globally pytest.tiledb_vfs = "file" - vfs_config(confi...
[ { "components": [ { "doc": "Customize the pickling process by defining how to serialize\nand reconstruct the Config object.", "lines": [ 296, 302 ], "name": "Config.__reduce__", "signature": "def __reduce__(self):", "type": "function" ...
[ "tiledb/tests/test_context_and_config.py::TestConfig::test_config_pickle", "tiledb/tests/test_vfs.py::TestVFS::test_pickle" ]
[ "tiledb/tests/test_context_and_config.py::ContextTest::test_default_ctx", "tiledb/tests/test_context_and_config.py::ContextTest::test_default_ctx_errors", "tiledb/tests/test_context_and_config.py::ContextTest::test_scope_ctx", "tiledb/tests/test_context_and_config.py::ContextTest::test_scope_ctx_error", "ti...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Implement serialization functionality for `Config` and `VFS` objects Also removes unnecessary `PatchedConfig` and `PatchedCtx`. --- [sc-55042] ---------- </request> There are several new funct...
a2f8ccc99c9062455da867a609f0dce6d6d88041
googleapis__python-aiplatform-4665
4,665
googleapis/python-aiplatform
null
41cd5a8a502d7c28a1e68500931fcbc21bbbd243
2024-11-15T23:59:19Z
diff --git a/vertexai/resources/preview/feature_store/feature_group.py b/vertexai/resources/preview/feature_store/feature_group.py index 2953574992..ca7a8bed08 100644 --- a/vertexai/resources/preview/feature_store/feature_group.py +++ b/vertexai/resources/preview/feature_store/feature_group.py @@ -15,13 +15,7 @@ # lim...
diff --git a/tests/unit/vertexai/feature_store_constants.py b/tests/unit/vertexai/feature_store_constants.py index 1525544753..e0407834a3 100644 --- a/tests/unit/vertexai/feature_store_constants.py +++ b/tests/unit/vertexai/feature_store_constants.py @@ -377,4 +377,19 @@ name=_TEST_FG1_FM1_PATH, description=_...
[ { "components": [ { "doc": "Creates a new feature monitor.\n\nArgs:\n name: The name of the feature monitor.\n description: Description of the feature monitor.\n labels:\n The labels with user-defined metadata to organize your FeatureMonitors.\n Label keys and values can be ...
[ "tests/unit/vertexai/test_feature_group.py::test_create_feature_monitor[None]", "tests/unit/vertexai/test_feature_group.py::test_create_feature_monitor[1.0]" ]
[ "tests/unit/vertexai/test_feature_group.py::test_init[my_fg1]", "tests/unit/vertexai/test_feature_group.py::test_init[projects/test-project/locations/us-central1/featureGroups/my_fg1]", "tests/unit/vertexai/test_feature_group.py::test_create_fg_no_source_raises_error", "tests/unit/vertexai/test_feature_group....
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> feat: Add Create FeatureMonitor function to FeatureGroup in Vertex AI SDK feat: Add Create FeatureMonitor function to FeatureGroup in Vertex AI SDK ---------- </request> There are several new funct...
67358fa6a830eb842f6b52d09061af4a41b54af6
googleapis__python-aiplatform-4659
4,659
googleapis/python-aiplatform
null
88aaed13558ac721ef21321396aa9aaf79868cf1
2024-11-15T19:13:35Z
diff --git a/samples/model-builder/create_custom_job_psci_sample.py b/samples/model-builder/create_custom_job_psci_sample.py new file mode 100644 index 0000000000..fe53751a32 --- /dev/null +++ b/samples/model-builder/create_custom_job_psci_sample.py @@ -0,0 +1,65 @@ +# Copyright 2024 Google LLC +# +# Licensed under the...
diff --git a/samples/model-builder/conftest.py b/samples/model-builder/conftest.py index fb2e7c91a1..9b31acda3d 100644 --- a/samples/model-builder/conftest.py +++ b/samples/model-builder/conftest.py @@ -16,6 +16,7 @@ from unittest.mock import patch from google.cloud import aiplatform +from google.cloud import aipla...
[ { "components": [ { "doc": "Custom training job sample with PSC-I through aiplatform_v1beta1.", "lines": [ 20, 62 ], "name": "create_custom_job_psci_sample", "signature": "def create_custom_job_psci_sample( project: str, location: str, bucket: st...
[ "samples/model-builder/create_custom_job_psci_sample_test.py::test_create_custom_job_psci_sample" ]
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> chore: Add sample for custom training job with PSC-I through aiplatform_v1beta1. chore: Add sample for custom training job with PSC-I through aiplatform_v1beta1. ---------- </request> There are sev...
67358fa6a830eb842f6b52d09061af4a41b54af6
tortoise__tortoise-orm-1770
1,770
tortoise/tortoise-orm
null
905daaa53928622b53454f65fd629690a7e5491f
2024-11-14T20:59:25Z
diff --git a/CHANGELOG.rst b/CHANGELOG.rst index bcbe2c4ed..e80849a64 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -23,6 +23,7 @@ Added ^^^^^ - Add POSIX Regex support for PostgreSQL and MySQL (#1714) - support app=None for tortoise.contrib.fastapi.RegisterTortoise (#1733) +- Added ``table_name_generator`` para...
diff --git a/tests/test_table_name.py b/tests/test_table_name.py new file mode 100644 index 000000000..53cf5d4b3 --- /dev/null +++ b/tests/test_table_name.py @@ -0,0 +1,43 @@ +from typing import Type + +from tortoise import Tortoise, fields +from tortoise.contrib.test import SimpleTestCase +from tortoise.models import ...
diff --git a/CHANGELOG.rst b/CHANGELOG.rst index bcbe2c4ed..e80849a64 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -23,6 +23,7 @@ Added ^^^^^ - Add POSIX Regex support for PostgreSQL and MySQL (#1714) - support app=None for tortoise.contrib.fastapi.RegisterTortoise (#1733) +- Added ``table_name_generator`` para...
[ { "components": [ { "doc": "Convert CamelCase class name to snake_case table name", "lines": [ 10, 13 ], "name": "snake_case_table_names", "signature": "def snake_case_table_names(cls):", "type": "function" }, { "doc":...
[ "tests/test_table_name.py::TestTableNameGenerator::test_custom_table_name_precedence", "tests/test_table_name.py::TestTableNameGenerator::test_glabal_name_generator" ]
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add `table_name_generator` attribute to Meta for dynamic table name generation <!--- Provide a general summary of your changes in the Title above --> Add Table Name Generator Feature ## Descriptio...
f0f389d906f2a3fab4191160de2fda2c95c70ac5
tobymao__sqlglot-4387
4,387
tobymao/sqlglot
null
fd81f1bfee9a566b8df8bb501828c20bd72ac481
2024-11-14T00:26:53Z
diff --git a/sqlglot/dialects/risingwave.py b/sqlglot/dialects/risingwave.py index 18906aa00b..503907eb13 100644 --- a/sqlglot/dialects/risingwave.py +++ b/sqlglot/dialects/risingwave.py @@ -1,6 +1,470 @@ +from __future__ import annotations from sqlglot.dialects.postgres import Postgres +from sqlglot.tokens import Tok...
diff --git a/tests/dialects/test_risingwave.py b/tests/dialects/test_risingwave.py index 7d6d50cdf2..f645d570b8 100644 --- a/tests/dialects/test_risingwave.py +++ b/tests/dialects/test_risingwave.py @@ -12,3 +12,15 @@ def test_risingwave(self): "": "SELECT a FROM tbl FOR UPDATE", }, ...
[ { "components": [ { "doc": "", "lines": [ 11, 15 ], "name": "RisingWave.Tokenizer", "signature": "class Tokenizer(Postgres.Tokenizer):", "type": "class" }, { "doc": "", "lines": [ 18, 299 ...
[ "tests/dialects/test_risingwave.py::TestRisingWave::test_risingwave" ]
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Feat(risingwave): add support for SINK, SOURCE & other DDL properties This pr adds extended sqlglot support for risingwave. Specifically, `CREATE SOURCE` and `CREATE SINK` are supported for sqlglot ri...
ceb42fabad60312699e4b15936aeebac00e22e4d
aws-cloudformation__cfn-lint-3824
3,824
aws-cloudformation/cfn-lint
null
4b214774e419d871b7b498fb5256e2ed09393795
2024-11-12T19:02:12Z
diff --git a/scripts/update_schemas_from_aws_api.py b/scripts/update_schemas_from_aws_api.py index c51f654a68..57d57763fd 100755 --- a/scripts/update_schemas_from_aws_api.py +++ b/scripts/update_schemas_from_aws_api.py @@ -17,7 +17,10 @@ session = boto3.session.Session() config = Config(retries={"max_attempts": 10}...
diff --git a/test/unit/rules/resources/elasticache/test_cache_cluster_engine.py b/test/unit/rules/resources/elasticache/test_cache_cluster_engine.py new file mode 100644 index 0000000000..9d12b59bde --- /dev/null +++ b/test/unit/rules/resources/elasticache/test_cache_cluster_engine.py @@ -0,0 +1,90 @@ +""" +Copyright A...
diff --git a/src/cfnlint/data/schemas/extensions/aws_elasticache_cachecluster/engine_version.json b/src/cfnlint/data/schemas/extensions/aws_elasticache_cachecluster/engine_version.json new file mode 100644 index 0000000000..4f03df6311 --- /dev/null +++ b/src/cfnlint/data/schemas/extensions/aws_elasticache_cachecluster/...
[ { "components": [ { "doc": "", "lines": [ 186, 239 ], "name": "write_elasticache_engines", "signature": "def write_elasticache_engines(results):", "type": "function" }, { "doc": "", "lines": [ 242, ...
[ "test/unit/rules/resources/elasticache/test_cache_cluster_engine.py::test_validate[instance0-expected0]", "test/unit/rules/resources/elasticache/test_cache_cluster_engine.py::test_validate[instance1-expected1]", "test/unit/rules/resources/elasticache/test_cache_cluster_engine.py::test_validate[instance2-expecte...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Create rule E3695 to validate cache cluster engines *Issue #, if available:* fix #3820 *Description of changes:* - Create rule E3695 to validate cache cluster engines By submitting this pull re...
Here is the discussion in the issues of the pull request. <issues> Linting Rule: Invalid EngineVersion on ElastiCache cluster ### Is this feature request related to a new rule or cfn-lint capabilities? rules ### Describe the feature you'd like to request I want the invalid redis version (i.e., the patch versio...
4b214774e419d871b7b498fb5256e2ed09393795
googleapis__python-aiplatform-4639
4,639
googleapis/python-aiplatform
null
fde1b96db0060cc73dc3174636b16cf30368d61e
2024-11-12T02:51:21Z
diff --git a/google/cloud/aiplatform/compat/__init__.py b/google/cloud/aiplatform/compat/__init__.py index d1e08014aa..de1d1e9ded 100644 --- a/google/cloud/aiplatform/compat/__init__.py +++ b/google/cloud/aiplatform/compat/__init__.py @@ -226,6 +226,9 @@ types.explanation_metadata = types.explanation_metadata_v1 ...
diff --git a/tests/unit/vertexai/conftest.py b/tests/unit/vertexai/conftest.py index 73084cb412..1aa84bf751 100644 --- a/tests/unit/vertexai/conftest.py +++ b/tests/unit/vertexai/conftest.py @@ -34,6 +34,9 @@ from google.cloud.aiplatform.compat.services import ( feature_registry_service_client, ) +from google.cl...
[ { "components": [ { "doc": "Adds function override for v1beta1 client classes to support new Feature Store.", "lines": [ 766, 769 ], "name": "FeatureRegistryClientV1Beta1WithOverride", "signature": "class FeatureRegistryClientV1Beta1WithOverride(...
[ "tests/unit/vertexai/test_feature_monitor.py::test_init_with_feature_monitor_id_and_no_fg_id_raises_error", "tests/unit/vertexai/test_feature_monitor.py::test_init_with_feature_monitor_path_and_fg_id_raises_error", "tests/unit/vertexai/test_feature_monitor.py::test_init_with_feature_monitor_id", "tests/unit/v...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> feat: Add FeatureMonitor to FeatureGroup in Vertex AI SDK feat: Add FeatureMonitor to FeatureGroup in Vertex AI SDK ---------- </request> There are several new functions or classes that need to be ...
67358fa6a830eb842f6b52d09061af4a41b54af6
fairlearn__fairlearn-1436
1,436
fairlearn/fairlearn
null
403da1fec74bdf2da28dc49487ccd72caa6f6976
2024-11-10T17:43:48Z
diff --git a/fairlearn/metrics/_disaggregated_result.py b/fairlearn/metrics/_disaggregated_result.py index cab28bf04..b78f0ca51 100644 --- a/fairlearn/metrics/_disaggregated_result.py +++ b/fairlearn/metrics/_disaggregated_result.py @@ -2,6 +2,8 @@ # Licensed under the MIT License. from __future__ import annotations ...
diff --git a/test/unit/metrics/test_disaggregated_result.py b/test/unit/metrics/test_disaggregated_result.py index 7c1486f72..1969f95cb 100644 --- a/test/unit/metrics/test_disaggregated_result.py +++ b/test/unit/metrics/test_disaggregated_result.py @@ -1,11 +1,13 @@ # Copyright (c) Microsoft Corporation and Fairlearn ...
[ { "components": [ { "doc": "Apply annotated metric functions to a DataFrame, optionally grouping by specified columns.\n\nParameters\n----------\ndata : pd.DataFrame\n The input data on which the metric functions will be applied.\nannotated_functions : dict[str, AnnotatedMetricFunction]\n A ...
[ "test/unit/metrics/test_disaggregated_result.py::test_apply_functions_with_no_grouping[None-expected0]", "test/unit/metrics/test_disaggregated_result.py::test_apply_functions_with_no_grouping[grouping_names1-expected1]", "test/unit/metrics/test_disaggregated_result.py::test_apply_functions_with_grouping[groupin...
[ "test/unit/metrics/test_disaggregated_result.py::TestErrorMessages::test_bad_grouping", "test/unit/metrics/test_disaggregated_result.py::TestErrorMessages::test_bad_difference_method", "test/unit/metrics/test_disaggregated_result.py::TestErrorMessages::test_bad_difference_errors", "test/unit/metrics/test_disa...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> refactor: simplify disaggregated result ## Description - Simplified code complexity by using pandas built-in methods. - Refactored the common logic in initializing the `overall` and `by_group` insi...
403da1fec74bdf2da28dc49487ccd72caa6f6976
rytilahti__python-miio-1984
1,984
rytilahti/python-miio
null
62427d2f796e603520acca3b57b29ec3e6489bca
2024-11-09T21:09:56Z
diff --git a/miio/miot_models.py b/miio/miot_models.py index 1269946d5..6f4abfe59 100644 --- a/miio/miot_models.py +++ b/miio/miot_models.py @@ -1,4 +1,5 @@ import logging +from abc import abstractmethod from datetime import timedelta from enum import Enum from typing import Any, Optional @@ -150,6 +151,11 @@ def n...
diff --git a/miio/tests/test_miot_models.py b/miio/tests/test_miot_models.py index 32afb76aa..046ad2a08 100644 --- a/miio/tests/test_miot_models.py +++ b/miio/tests/test_miot_models.py @@ -21,6 +21,7 @@ URN, MiotAccess, MiotAction, + MiotBaseModel, MiotEnumValue, MiotEvent, MiotFormat, ...
[ { "components": [ { "doc": "Return unique identifier.", "lines": [ 156, 157 ], "name": "MiotBaseModel.unique_identifier", "signature": "def unique_identifier(self) -> str:", "type": "function" }, { "doc": "Return uniqu...
[ "miio/tests/test_miot_models.py::test_unique_identifier[actions-aiid]", "miio/tests/test_miot_models.py::test_unique_identifier[properties-piid]", "miio/tests/test_miot_models.py::test_unique_identifier[events-eiid]" ]
[ "miio/tests/test_miot_models.py::test_enum", "miio/tests/test_miot_models.py::test_enum_missing_description", "miio/tests/test_miot_models.py::test_format[bool-bool]", "miio/tests/test_miot_models.py::test_format[string-str]", "miio/tests/test_miot_models.py::test_format[float-float]", "miio/tests/test_mi...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add unique_identifier property to miot properties, actions, and events This allows descriptors to have device-unique identifiers, the format is '<normalized_name>_<siid>_<id>'. This also changes 'i...
62427d2f796e603520acca3b57b29ec3e6489bca
conan-io__conan-17296
17,296
conan-io/conan
2.10
7728bc9722a12c758b4cc2f39cf656a0497e5583
2024-11-08T15:50:41Z
diff --git a/conan/internal/api/new/bazel_7_lib.py b/conan/internal/api/new/bazel_7_lib.py index fdc51f6d618..2cc08df3ca5 100644 --- a/conan/internal/api/new/bazel_7_lib.py +++ b/conan/internal/api/new/bazel_7_lib.py @@ -49,7 +49,10 @@ def package(self): copy(self, "*.so", build, dest_lib, keep_path=False) ...
diff --git a/conan/test/utils/mocks.py b/conan/test/utils/mocks.py index acdb379c032..3e616b70a03 100644 --- a/conan/test/utils/mocks.py +++ b/conan/test/utils/mocks.py @@ -2,8 +2,8 @@ from io import StringIO from conan import ConanFile -from conan.internal.conan_app import ConanFileHelpers from conan.errors impor...
[ { "components": [ { "doc": "", "lines": [ 251, 256 ], "name": "_LibInfo", "signature": "class _LibInfo:", "type": "class" }, { "doc": "", "lines": [ 252, 256 ], "name": "_Lib...
[ "test/integration/toolchains/google/test_bazeldeps.py::test_shared_windows_find_libraries", "test/unittests/model/build_info/test_deduce_locations.py::test_simple_deduce_locations_static[mylibwin2.if.lib-libs5]", "test/unittests/model/build_info/test_deduce_locations.py::test_simple_deduce_locations_static[myli...
[ "test/integration/toolchains/google/test_bazeldeps.py::test_bazel", "test/integration/toolchains/google/test_bazeldeps.py::test_bazel_relative_paths", "test/integration/toolchains/google/test_bazeldeps.py::test_bazel_exclude_folders", "test/integration/toolchains/google/test_bazeldeps.py::test_bazeldeps_and_t...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> [cpp_info][BazelDeps] Improve auto deduce locations Changelog: Feature: Improved auto deduce location function. Changelog: Feature: BazelDeps using the new `deduce_location` mechanism to find the lib...
7728bc9722a12c758b4cc2f39cf656a0497e5583
google-deepmind__optax-1126
1,126
google-deepmind/optax
null
1e08bccf195ac54e7d9d766eb5e69345bf0e3230
2024-11-02T10:32:40Z
diff --git a/docs/api/contrib.rst b/docs/api/contrib.rst index 44c9bac8d..edc4743a0 100644 --- a/docs/api/contrib.rst +++ b/docs/api/contrib.rst @@ -25,6 +25,8 @@ Experimental features and algorithms that don't meet the MomoState momo_adam MomoAdamState + muon + MuonState prodigy ProdigyS...
diff --git a/optax/contrib/_common_test.py b/optax/contrib/_common_test.py index 0c41eac53..8f3d8978c 100644 --- a/optax/contrib/_common_test.py +++ b/optax/contrib/_common_test.py @@ -46,6 +46,7 @@ {'opt_name': 'dowg', 'opt_kwargs': {'learning_rate': 1.0}}, {'opt_name': 'momo', 'opt_kwargs': {'learning_rate'...
diff --git a/docs/api/contrib.rst b/docs/api/contrib.rst index 44c9bac8d..edc4743a0 100644 --- a/docs/api/contrib.rst +++ b/docs/api/contrib.rst @@ -25,6 +25,8 @@ Experimental features and algorithms that don't meet the MomoState momo_adam MomoAdamState + muon + MuonState prodigy ProdigyS...
[ { "components": [ { "doc": "Orthogonalize via Newton-Schulz iteration.\n\nWe opt to use a quintic iteration whose coefficients are selected to maximize\nthe slope at zero. For the purpose of minimizing steps, it turns out to be\nempirically effective to keep increasing the slope at zero even beyon...
[ "optax/contrib/_common_test.py::ContribTest::test_gradient_accumulation_(opt_name='muon',", "optax/contrib/_common_test.py::ContribTest::test_optimizers32", "optax/contrib/_common_test.py::ContribTest::test_optimizers33", "optax/contrib/_common_test.py::ContribTest::test_optimizers34", "optax/contrib/_commo...
[ "optax/contrib/_common_test.py::ContribTest::test_gradient_accumulation_(opt_name='acprop',", "optax/contrib/_common_test.py::ContribTest::test_gradient_accumulation_(opt_name='cocob',", "optax/contrib/_common_test.py::ContribTest::test_gradient_accumulation_(opt_name='dadapt_adamw',", "optax/contrib/_common_...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add Muon Optimizer to `contrib` Adds support for @KellerJordan's Muon optimizer as detailed here: https://kellerjordan.github.io/posts/muon/ This optimizer allowed us to reduce the training time of...
1e08bccf195ac54e7d9d766eb5e69345bf0e3230
deepset-ai__haystack-8512
8,512
deepset-ai/haystack
null
fcdf392bfb410cf4c9db4f9b57218cf7acc2ba1c
2024-10-31T16:50:15Z
diff --git a/docs/pydoc/config/rankers_api.yml b/docs/pydoc/config/rankers_api.yml index 31dc468ad8..09ea957e78 100644 --- a/docs/pydoc/config/rankers_api.yml +++ b/docs/pydoc/config/rankers_api.yml @@ -1,7 +1,7 @@ loaders: - type: haystack_pydoc_tools.loaders.CustomPythonLoader search_path: [../../../haystack...
diff --git a/test/components/generators/test_openai.py b/test/components/generators/test_openai.py index 2b5e73d85c..bde41becba 100644 --- a/test/components/generators/test_openai.py +++ b/test/components/generators/test_openai.py @@ -332,4 +332,4 @@ def test_run_with_system_prompt(self): "Can you explain ...
diff --git a/docs/pydoc/config/rankers_api.yml b/docs/pydoc/config/rankers_api.yml index 31dc468ad8..09ea957e78 100644 --- a/docs/pydoc/config/rankers_api.yml +++ b/docs/pydoc/config/rankers_api.yml @@ -1,7 +1,7 @@ loaders: - type: haystack_pydoc_tools.loaders.CustomPythonLoader search_path: [../../../haystack...
[ { "components": [ { "doc": "Reorders the documents by grouping them based on metadata keys.\n\nThe MetaFieldGroupingRanker can group documents by a primary metadata key `group_by`, and subgroup them with an optional\nsecondary key, `subgroup_by`.\nWithin each group or subgroup, it can also sort do...
[ "[", "test/components/generators/test_openai.py::TestOpenAIGenerator::test_init_default", "test/components/generators/test_openai.py::TestOpenAIGenerator::test_init_fail_wo_api_key", "test/components/generators/test_openai.py::TestOpenAIGenerator::test_init_with_parameters", "test/components/generators/test...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> feat: adding metadata grouper component ### Related Issues - fixes [#88](https://github.com/deepset-ai/haystack-private/issues/88) ### Proposed Changes: - Adding a new component to group/rank...
f4d9c2bb917be0ffe132dffcc2ad4f1b0fcc5967
pvlib__pvlib-python-2286
2,286
pvlib/pvlib-python
0.10
6af80da35a7c96059c534ee38be9123bcfc7f50f
2024-10-30T18:45:38Z
diff --git a/docs/sphinx/source/reference/airmass_atmospheric.rst b/docs/sphinx/source/reference/airmass_atmospheric.rst index 384c345aec..2ece5cd5fb 100644 --- a/docs/sphinx/source/reference/airmass_atmospheric.rst +++ b/docs/sphinx/source/reference/airmass_atmospheric.rst @@ -11,6 +11,8 @@ Airmass and atmospheric mod...
diff --git a/pvlib/tests/test_atmosphere.py b/pvlib/tests/test_atmosphere.py index e12a41dc6d..2f0b5cadc2 100644 --- a/pvlib/tests/test_atmosphere.py +++ b/pvlib/tests/test_atmosphere.py @@ -88,6 +88,153 @@ def test_gueymard94_pw(): assert_allclose(pws, expected, atol=0.01) +def test_tdew_to_rh_to_tdew(): + + ...
diff --git a/docs/sphinx/source/reference/airmass_atmospheric.rst b/docs/sphinx/source/reference/airmass_atmospheric.rst index 384c345aec..2ece5cd5fb 100644 --- a/docs/sphinx/source/reference/airmass_atmospheric.rst +++ b/docs/sphinx/source/reference/airmass_atmospheric.rst @@ -11,6 +11,8 @@ Airmass and atmospheric mod...
[ { "components": [ { "doc": "Calculate relative humidity from dewpoint temperature using the Magnus\nequation.\n\nParameters\n----------\ntemp_air : numeric\n Air temperature (dry-bulb temperature). [°C]\ntemp_dew : numeric\n Dew-point temperature. [°C]\ncoeff : tuple, default (6.112, 17.62, ...
[ "pvlib/tests/test_atmosphere.py::test_tdew_to_rh_to_tdew", "pvlib/tests/test_atmosphere.py::test_rh_from_tdew", "pvlib/tests/test_atmosphere.py::test_tdew_from_rh" ]
[ "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> Calculate Relative Humidity via Magnus Tetens Equation <!-- 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 ...
Here is the discussion in the issues of the pull request. <issues> implement Tdew to RH conversions **Is your feature request related to a problem? Please describe.** In case weather file doesn't have RH or Pwat, I would like to be able to use Tdew to calculate spectral mismatch **Describe the solution you'd like**...
6af80da35a7c96059c534ee38be9123bcfc7f50f
tobymao__sqlglot-4317
4,317
tobymao/sqlglot
null
50a1c919d0d46384e3bd9ba1d45c24dd07efe6d2
2024-10-30T13:25:32Z
diff --git a/sqlglot/dialects/clickhouse.py b/sqlglot/dialects/clickhouse.py index 7d86075d12..fa86e3ac66 100644 --- a/sqlglot/dialects/clickhouse.py +++ b/sqlglot/dialects/clickhouse.py @@ -431,6 +431,7 @@ class Parser(parser.Parser): **parser.Parser.FUNCTION_PARSERS, "ARRAYJOIN": lambda self...
diff --git a/tests/dialects/test_clickhouse.py b/tests/dialects/test_clickhouse.py index d99a4ef4a1..b3a2ddcf50 100644 --- a/tests/dialects/test_clickhouse.py +++ b/tests/dialects/test_clickhouse.py @@ -428,8 +428,13 @@ def test_clickhouse(self): ) self.validate_all( "SELECT quantile(0.5)...
[ { "components": [ { "doc": "", "lines": [ 6138, 6139 ], "name": "Median", "signature": "class Median(AggFunc):", "type": "class" } ], "file": "sqlglot/expressions.py" }, { "components": [ { "doc": "", ...
[ "tests/dialects/test_clickhouse.py::TestClickhouse::test_clickhouse", "tests/dialects/test_dialect.py::TestDialect::test_median" ]
[ "tests/dialects/test_clickhouse.py::TestClickhouse::test_agg_functions", "tests/dialects/test_clickhouse.py::TestClickhouse::test_array_join", "tests/dialects/test_clickhouse.py::TestClickhouse::test_clickhouse_values", "tests/dialects/test_clickhouse.py::TestClickhouse::test_convert", "tests/dialects/test_...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> feat!: Support MEDIAN() function Fixes #4315 This PR adds support for `MEDIAN(<expr>)` across major dialects (DuckDB, Spark3, Databricks, Snowflake, Redshift, Clickhouse, Oracle). For the dialects ...
Here is the discussion in the issues of the pull request. <issues> duckdb `median` parses as `percentile_cont` which produces `quantile_cont`, making some median calls invalid DuckDB `median` is not equivalent to `quantile_cont`. `median` allows string inputs, while `quantile_cont` does not: ``` v1.1.2 f680b7d08...
ceb42fabad60312699e4b15936aeebac00e22e4d
googleapis__python-aiplatform-4585
4,585
googleapis/python-aiplatform
null
c0718e1126cf6ebc9eeb75c21421d62c2088a340
2024-10-29T19:49:04Z
diff --git a/google/cloud/aiplatform/matching_engine/matching_engine_index_endpoint.py b/google/cloud/aiplatform/matching_engine/matching_engine_index_endpoint.py index e21ada5ccf..9aeb53b344 100644 --- a/google/cloud/aiplatform/matching_engine/matching_engine_index_endpoint.py +++ b/google/cloud/aiplatform/matching_en...
diff --git a/samples/model-builder/test_constants.py b/samples/model-builder/test_constants.py index b296d9bd2d..6af770216c 100644 --- a/samples/model-builder/test_constants.py +++ b/samples/model-builder/test_constants.py @@ -408,3 +408,5 @@ VECTOR_SEARCH_GCS_URI = "gs://fake-dir" VECTOR_SEARCH_INDEX_ENDPOINT_DISPLA...
[ { "components": [ { "doc": "Create a vector search index endpoint within a VPC network.\n\nArgs:\n project (str): Required. Project ID\n location (str): Required. The region name\n display_name (str): Required. The index endpoint display name\n network(str): Required. The VPC network n...
[ "samples/model-builder/vector_search/vector_search_create_index_endpoint_sample_test.py::test_vector_search_create_index_endpoint_vpc_sample", "samples/model-builder/vector_search/vector_search_create_index_endpoint_sample_test.py::test_vector_search_create_index_endpoint_psc_sample", "samples/model-builder/vec...
[ "samples/model-builder/vector_search/vector_search_create_index_endpoint_sample_test.py::test_vector_search_create_index_endpoint_sample", "samples/model-builder/vector_search/vector_search_match_sample_test.py::test_vector_search_match_jwt_sample" ]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> chore: Add vector search samples for VPC peering and PSC chore: Add vector search samples for VPC peering and PSC ---------- </request> There are several new functions or classes that need to be im...
67358fa6a830eb842f6b52d09061af4a41b54af6
pgmpy__pgmpy-1857
1,857
pgmpy/pgmpy
null
4529146e21bdfad052726dfca2e11774ef64ed79
2024-10-29T18:02:16Z
diff --git a/pgmpy/base/DAG.py b/pgmpy/base/DAG.py index 9e6a243ff..b7e71b095 100644 --- a/pgmpy/base/DAG.py +++ b/pgmpy/base/DAG.py @@ -394,7 +394,7 @@ def get_children(self, node): def get_independencies(self, latex=False, include_latents=False): """ - Computes independencies in the DAG, by che...
diff --git a/pgmpy/tests/test_factors/test_continuous/test_ContinuousFactor.py b/pgmpy/tests/test_factors/test_continuous/test_ContinuousFactor.py index 87a4c0e63..5bfb021a4 100644 --- a/pgmpy/tests/test_factors/test_continuous/test_ContinuousFactor.py +++ b/pgmpy/tests/test_factors/test_continuous/test_ContinuousFacto...
[ { "components": [ { "doc": "Returns the value of the cumulative distribution function for a multivariate\ndistribution over the given limits.\n\nParameters\n----------\nlimits : list of tuples\n Each tuple contains the lower and upper integration limits for each variable.\n For example, limi...
[ "pgmpy/tests/test_factors/test_continuous/test_ContinuousFactor.py::TestContinuousFactorMethods::test_cdf" ]
[ "pgmpy/tests/test_factors/test_continuous/test_ContinuousFactor.py::TestContinuousFactor::test_class_init", "pgmpy/tests/test_factors/test_continuous/test_ContinuousFactor.py::TestContinuousFactor::test_class_init_typeerror", "pgmpy/tests/test_factors/test_continuous/test_ContinuousFactor.py::TestContinuousFact...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Refined documentation of discretize.py, Add cdf and integrate minimal_dseperator with get_independencies() #1622 1. Refined documentation of discretize.py 2. Add cumulative density function cal...
cf8d0f12e2e5be62b01ff8fded85f3f64eab1e84
deepset-ai__haystack-8500
8,500
deepset-ai/haystack
null
820572439553ca2d2b51cb567f1f75e2527b67b9
2024-10-29T15:05:56Z
diff --git a/haystack/components/routers/conditional_router.py b/haystack/components/routers/conditional_router.py index b16ae3d342..27312f43a1 100644 --- a/haystack/components/routers/conditional_router.py +++ b/haystack/components/routers/conditional_router.py @@ -4,7 +4,7 @@ import ast import contextlib -from ty...
diff --git a/test/components/routers/test_conditional_router.py b/test/components/routers/test_conditional_router.py index 461c58f968..8ea3f86d92 100644 --- a/test/components/routers/test_conditional_router.py +++ b/test/components/routers/test_conditional_router.py @@ -18,22 +18,6 @@ def custom_filter_to_sede(value): ...
diff --git a/releasenotes/notes/conditional-routes-validation-b46fc506d35894d4.yaml b/releasenotes/notes/conditional-routes-validation-b46fc506d35894d4.yaml new file mode 100644 index 0000000000..315510b282 --- /dev/null +++ b/releasenotes/notes/conditional-routes-validation-b46fc506d35894d4.yaml @@ -0,0 +1,7 @@ +--- +...
[ { "components": [ { "doc": "Checks whether `value` type matches the `expected_type`.", "lines": [ 318, 366 ], "name": "ConditionalRouter._output_matches_type", "signature": "def _output_matches_type(self, value: Any, expected_type: type):", ...
[ "test/components/routers/test_conditional_router.py::TestRouter::test_validate_output_type_without_unsafe", "test/components/routers/test_conditional_router.py::TestRouter::test_validate_output_type_with_unsafe" ]
[ "test/components/routers/test_conditional_router.py::TestRouter::test_missing_mandatory_fields", "test/components/routers/test_conditional_router.py::TestRouter::test_invalid_condition_field", "test/components/routers/test_conditional_router.py::TestRouter::test_no_vars_in_output_route_but_with_output_name", ...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> feat: Add route output type validation in `ConditionalRouter` ### Related Issues - fixes #8445 ### Proposed Changes: Add routes output type validation in `ConditionalRouter`. To enable ins...
Here is the discussion in the issues of the pull request. <issues> Update `ConditionalRouter.run` method to check the rendered output matches the defined output_type I really like the `ConditionalRouter` since it enables a lot of agentic type use cases. However, it can be a little difficult to use since it relies on go...
f4d9c2bb917be0ffe132dffcc2ad4f1b0fcc5967
huggingface__trl-2282
2,282
huggingface/trl
null
a0066f47f82f7af0145e3b5ebc06cf2a45b97352
2024-10-25T10:19:30Z
diff --git a/docs/source/callbacks.mdx b/docs/source/callbacks.mdx index dfcf4fd8b7a..7959a26b9de 100644 --- a/docs/source/callbacks.mdx +++ b/docs/source/callbacks.mdx @@ -14,4 +14,8 @@ ## LogCompletionsCallback -[[autodoc]] LogCompletionsCallback \ No newline at end of file +[[autodoc]] LogCompletionsCallback + ...
diff --git a/tests/test_callbacks.py b/tests/test_callbacks.py index 874d8b22f06..6b804be0abc 100644 --- a/tests/test_callbacks.py +++ b/tests/test_callbacks.py @@ -14,15 +14,19 @@ import json import os +import sys import tempfile import unittest from datasets import load_dataset from transformers import Auto...
diff --git a/docs/source/callbacks.mdx b/docs/source/callbacks.mdx index dfcf4fd8b7a..7959a26b9de 100644 --- a/docs/source/callbacks.mdx +++ b/docs/source/callbacks.mdx @@ -14,4 +14,8 @@ ## LogCompletionsCallback -[[autodoc]] LogCompletionsCallback \ No newline at end of file +[[autodoc]] LogCompletionsCallback + ...
[ { "components": [ { "doc": "", "lines": [ 44, 45 ], "name": "is_mergekit_available", "signature": "def is_mergekit_available() -> bool:", "type": "function" } ], "file": "trl/import_utils.py" }, { "components": [ ...
[ "tests/test_callbacks.py::WinRateCallbackTester::test_basic", "tests/test_callbacks.py::WinRateCallbackTester::test_soft_judge", "tests/test_callbacks.py::WinRateCallbackTester::test_without_ref_model" ]
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> 🔀 Add `MergeModelCallBack` # What does this PR do? Fixes #2241 Since the focus was on replicating the checkpoint merging methods from [the paper](https://arxiv.org/abs/2410.10801), I have covered...
Here is the discussion in the issues of the pull request. <issues> Add model merging callback ### Feature request Add a `MergeModelCallback` that merges the reference model with the current policy and optionally pushes the merged checkpoint to the Hub. This could be done on step/epoch end and/or the end of training. I...
a0066f47f82f7af0145e3b5ebc06cf2a45b97352
google-deepmind__optax-1117
1,117
google-deepmind/optax
null
6355f32201eeffa12f6233c97eabe56e85c4a7f9
2024-10-22T16:01:57Z
diff --git a/docs/api/projections.rst b/docs/api/projections.rst index 243f848b8..556377c24 100644 --- a/docs/api/projections.rst +++ b/docs/api/projections.rst @@ -37,6 +37,7 @@ Available projections projection_l1_sphere projection_l2_ball projection_l2_sphere + projection_linf_ball projection_n...
diff --git a/optax/projections/_projections_test.py b/optax/projections/_projections_test.py index 23b05b389..f01185bea 100644 --- a/optax/projections/_projections_test.py +++ b/optax/projections/_projections_test.py @@ -43,6 +43,7 @@ def setUp(self): self.fns = dict( l1=(proj.projection_l1_ball, otu.tree...
diff --git a/docs/api/projections.rst b/docs/api/projections.rst index 243f848b8..556377c24 100644 --- a/docs/api/projections.rst +++ b/docs/api/projections.rst @@ -37,6 +37,7 @@ Available projections projection_l1_sphere projection_l2_ball projection_l2_sphere + projection_linf_ball projection_n...
[ { "components": [ { "doc": "Projection onto the l-infinity ball.\n\nThis function solves the following constrained optimization problem,\nwhere ``x`` is the input pytree.\n\n.. math::\n\n \\underset{y}{\\text{argmin}} ~ ||x - y||_2^2 \\quad \\textrm{subject to} \\quad\n ||y||_{\\infty} \\le \\te...
[ "optax/projections/_projections_test.py::ProjectionsTest::test_projection_ball0", "optax/projections/_projections_test.py::ProjectionsTest::test_projection_ball1", "optax/projections/_projections_test.py::ProjectionsTest::test_projection_ball2", "optax/projections/_projections_test.py::ProjectionsTest::test_p...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add projection_linf_ball. Add projection_linf_ball. ---------- </request> There are several new functions or classes that need to be implemented, using the definitions below: <<NEW DEFINITIONS>> T...
1e08bccf195ac54e7d9d766eb5e69345bf0e3230
google-deepmind__optax-1115
1,115
google-deepmind/optax
null
6da17110ad6860c80ad264d36cd66b84175c885f
2024-10-22T14:39:06Z
diff --git a/docs/api/utilities.rst b/docs/api/utilities.rst index 816f82eea..9b9094314 100644 --- a/docs/api/utilities.rst +++ b/docs/api/utilities.rst @@ -100,6 +100,7 @@ Tree tree_l1_norm tree_l2_norm tree_map_params + tree_max tree_mul tree_ones_like tree_random_like @@ -156,6 +157,...
diff --git a/optax/tree_utils/_tree_math_test.py b/optax/tree_utils/_tree_math_test.py index f0f326ce2..054f239d8 100644 --- a/optax/tree_utils/_tree_math_test.py +++ b/optax/tree_utils/_tree_math_test.py @@ -133,6 +133,16 @@ def test_tree_sum(self): got = tu.tree_sum(self.tree_a) np.testing.assert_allclose(e...
diff --git a/docs/api/utilities.rst b/docs/api/utilities.rst index 816f82eea..9b9094314 100644 --- a/docs/api/utilities.rst +++ b/docs/api/utilities.rst @@ -100,6 +100,7 @@ Tree tree_l1_norm tree_l2_norm tree_map_params + tree_max tree_mul tree_ones_like tree_random_like @@ -156,6 +157,...
[ { "components": [ { "doc": "Compute the max of all the elements in a pytree.\n\nArgs:\n tree: pytree.\n\nReturns:\n a scalar value.", "lines": [ 171, 182 ], "name": "tree_max", "signature": "def tree_max(tree: Any) -> chex.Numeric:", "t...
[ "optax/tree_utils/_tree_math_test.py::TreeUtilsTest::test_tree_max0", "optax/tree_utils/_tree_math_test.py::TreeUtilsTest::test_tree_max1", "optax/tree_utils/_tree_math_test.py::TreeUtilsTest::test_tree_max2", "optax/tree_utils/_tree_math_test.py::TreeUtilsTest::test_tree_max3", "optax/tree_utils/_tree_math...
[ "optax/tree_utils/_tree_math_test.py::TreeUtilsTest::test_add_multiple_trees", "optax/tree_utils/_tree_math_test.py::TreeUtilsTest::test_bias_correction_bf16", "optax/tree_utils/_tree_math_test.py::TreeUtilsTest::test_empty_tree_reduce", "optax/tree_utils/_tree_math_test.py::TreeUtilsTest::test_none_arguments...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add tree_max. Add tree_max. ---------- </request> There are several new functions or classes that need to be implemented, using the definitions below: <<NEW DEFINITIONS>> There are several new fun...
1e08bccf195ac54e7d9d766eb5e69345bf0e3230
google-deepmind__optax-1114
1,114
google-deepmind/optax
null
85378ad4ce1c19dfd218c65873f8941776c3eaca
2024-10-21T16:37:23Z
diff --git a/docs/api/projections.rst b/docs/api/projections.rst index 683fde542..243f848b8 100644 --- a/docs/api/projections.rst +++ b/docs/api/projections.rst @@ -35,6 +35,8 @@ Available projections projection_hypercube projection_l1_ball projection_l1_sphere + projection_l2_ball + projection_l2_...
diff --git a/optax/projections/_projections_test.py b/optax/projections/_projections_test.py index e4bd17c76..23b05b389 100644 --- a/optax/projections/_projections_test.py +++ b/optax/projections/_projections_test.py @@ -40,6 +40,10 @@ def setUp(self): array_2d = jnp.array([[0.5, 2.1, -3.5], [1.0, 2.0, 3.0]]) ...
diff --git a/docs/api/projections.rst b/docs/api/projections.rst index 683fde542..243f848b8 100644 --- a/docs/api/projections.rst +++ b/docs/api/projections.rst @@ -35,6 +35,8 @@ Available projections projection_hypercube projection_l1_ball projection_l1_sphere + projection_l2_ball + projection_l2_...
[ { "components": [ { "doc": "Projection onto the l2 sphere.\n\nThis function solves the following constrained optimization problem,\nwhere ``x`` is the input pytree.\n\n.. math::\n\n \\underset{y}{\\text{argmin}} ~ ||x - y||_2^2 \\quad \\textrm{subject to} \\quad\n ||y||_2 = \\text{value}\n\nArgs...
[ "optax/projections/_projections_test.py::ProjectionsTest::test_projection_ball0", "optax/projections/_projections_test.py::ProjectionsTest::test_projection_ball1", "optax/projections/_projections_test.py::ProjectionsTest::test_projection_ball2", "optax/projections/_projections_test.py::ProjectionsTest::test_p...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add projection_l2_sphere and projection_l2_ball. Add projection_l2_sphere and projection_l2_ball. ---------- </request> There are several new functions or classes that need to be implemented, using...
1e08bccf195ac54e7d9d766eb5e69345bf0e3230
embeddings-benchmark__mteb-1307
1,307
embeddings-benchmark/mteb
null
b580b95fc91a7e7e675d27c3ae9a9df64ddad169
2024-10-21T16:09:10Z
diff --git a/README.md b/README.md index 85bed55816..d20afdbedc 100644 --- a/README.md +++ b/README.md @@ -380,6 +380,26 @@ df = results_to_dataframe(results) </details> +<details> + <summary> Caching Embeddings To Re-Use Them </summary> + + +### Caching Embeddings To Re-Use Them + +There are times you may want ...
diff --git a/tests/test_embedding_caching.py b/tests/test_embedding_caching.py new file mode 100644 index 0000000000..77e0546440 --- /dev/null +++ b/tests/test_embedding_caching.py @@ -0,0 +1,98 @@ +from __future__ import annotations + +import shutil + +import numpy as np +import pytest + +from mteb.encoder_interface i...
diff --git a/README.md b/README.md index 85bed55816..d20afdbedc 100644 --- a/README.md +++ b/README.md @@ -380,6 +380,26 @@ df = results_to_dataframe(results) </details> +<details> + <summary> Caching Embeddings To Re-Use Them </summary> + + +### Caching Embeddings To Re-Use Them + +There are times you may want ...
[ { "components": [ { "doc": "", "lines": [ 21, 202 ], "name": "TextVectorMap", "signature": "class TextVectorMap:", "type": "class" }, { "doc": "", "lines": [ 22, 37 ], "name"...
[ "tests/test_embedding_caching.py::TestCachedEmbeddingWrapper::test_caching_functionality", "tests/test_embedding_caching.py::TestCachedEmbeddingWrapper::test_other_functions_still_work" ]
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Cache the embeddings when requested <!-- If you are submitting a dataset or a model for the model registry please use the corresponding checklists below otherwise feel free to remove them. --> <!--...
b580b95fc91a7e7e675d27c3ae9a9df64ddad169
scikit-learn__scikit-learn-30097
30,097
scikit-learn/scikit-learn
1.6
18dc8630a7cbe1b591c12774949058b12157a39a
2024-10-18T09:59:51Z
diff --git a/doc/whats_new/upcoming_changes/sklearn.decomposition/30097.enhancement.rst b/doc/whats_new/upcoming_changes/sklearn.decomposition/30097.enhancement.rst new file mode 100644 index 0000000000000..6e636d78cdbf9 --- /dev/null +++ b/doc/whats_new/upcoming_changes/sklearn.decomposition/30097.enhancement.rst @@ -...
diff --git a/sklearn/decomposition/tests/test_online_lda.py b/sklearn/decomposition/tests/test_online_lda.py index d442d0beeb573..c3dafa1912eba 100644 --- a/sklearn/decomposition/tests/test_online_lda.py +++ b/sklearn/decomposition/tests/test_online_lda.py @@ -132,7 +132,7 @@ def test_lda_dense_input(csr_container): ...
diff --git a/doc/whats_new/upcoming_changes/sklearn.decomposition/30097.enhancement.rst b/doc/whats_new/upcoming_changes/sklearn.decomposition/30097.enhancement.rst new file mode 100644 index 0000000000000..6e636d78cdbf9 --- /dev/null +++ b/doc/whats_new/upcoming_changes/sklearn.decomposition/30097.enhancement.rst @@ -...
[ { "components": [ { "doc": "Fit to data, then transform it.\n\nFits transformer to `X` and `y` and returns a transformed version of `X`.\n\nParameters\n----------\nX : array-like of shape (n_samples, n_features)\n Input samples.\n\ny : array-like of shape (n_samples,) or (n_samples, n_outputs)...
[ "sklearn/decomposition/tests/test_online_lda.py::test_lda_transform" ]
[ "sklearn/decomposition/tests/test_online_lda.py::test_lda_default_prior_params[csr_matrix]", "sklearn/decomposition/tests/test_online_lda.py::test_lda_default_prior_params[csr_array]", "sklearn/decomposition/tests/test_online_lda.py::test_lda_fit_batch[csr_matrix]", "sklearn/decomposition/tests/test_online_ld...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> ENH add normalize to LDA.transform Closes https://github.com/scikit-learn/scikit-learn/issues/29320, Closes https://github.com/scikit-learn/scikit-learn/issues/16643 This adds a `normalize` to `lda...
18dc8630a7cbe1b591c12774949058b12157a39a
tobymao__sqlglot-4260
4,260
tobymao/sqlglot
null
51f4d26ed8694365c61fdefd810a420fcfefdeca
2024-10-17T14:34:57Z
diff --git a/sqlglot/dialects/tsql.py b/sqlglot/dialects/tsql.py index 045e0fbab5..122e937423 100644 --- a/sqlglot/dialects/tsql.py +++ b/sqlglot/dialects/tsql.py @@ -574,6 +574,10 @@ class Parser(parser.Parser): JOIN_HINTS = {"LOOP", "HASH", "MERGE", "REMOTE"} + PROCEDURE_OPTIONS = dict.fromkeys( +...
diff --git a/tests/dialects/test_tsql.py b/tests/dialects/test_tsql.py index e5b5b1867e..042891a4d4 100644 --- a/tests/dialects/test_tsql.py +++ b/tests/dialects/test_tsql.py @@ -1001,6 +1001,17 @@ def test_udf(self): ) self.validate_identity("CREATE PROC foo AS SELECT BAR() AS baz") self.val...
[ { "components": [ { "doc": "", "lines": [ 2999, 3000 ], "name": "WithProcedureOptions", "signature": "class WithProcedureOptions(Property):", "type": "class" } ], "file": "sqlglot/expressions.py" }, { "components": [...
[ "tests/dialects/test_tsql.py::TestTSQL::test_fullproc", "tests/dialects/test_tsql.py::TestTSQL::test_udf" ]
[ "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.py::TestTSQL::test_count", "tests/dialects/test_tsql.py::T...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> feat(tsql): Support for stored procedure options Added support for transact sql stored procedure options. Example: ``` CREATE PROCEDURE dbo.usp_add_kitchen @dept_id INT, @kitchen_count INT NOT NUL...
ceb42fabad60312699e4b15936aeebac00e22e4d
tobymao__sqlglot-4255
4,255
tobymao/sqlglot
null
ed97954ecd7c2d7d4fe1bbf2ec0ecc000dd02b32
2024-10-17T08:05:58Z
diff --git a/sqlglot/dialects/dialect.py b/sqlglot/dialects/dialect.py index 707af0c96b..9da8e66cca 100644 --- a/sqlglot/dialects/dialect.py +++ b/sqlglot/dialects/dialect.py @@ -588,6 +588,7 @@ class Dialect(metaclass=_Dialect): exp.Stddev, exp.StddevPop, exp.StddevSamp, + ...
diff --git a/tests/dialects/test_snowflake.py b/tests/dialects/test_snowflake.py index 6cde86b2c4..f68a3f2dac 100644 --- a/tests/dialects/test_snowflake.py +++ b/tests/dialects/test_snowflake.py @@ -1085,6 +1085,20 @@ def test_sample(self): "spark": "SELECT * FROM (SELECT * FROM t1 JOIN t2 ON t1.a = t2...
[ { "components": [ { "doc": "", "lines": [ 5190, 5193 ], "name": "ToDouble", "signature": "class ToDouble(Func):", "type": "class" } ], "file": "sqlglot/expressions.py" }, { "components": [ { "doc": "", ...
[ "tests/dialects/test_snowflake.py::TestSnowflake::test_sample" ]
[ "tests/dialects/test_snowflake.py::TestSnowflake::test_alter_set_unset", "tests/dialects/test_snowflake.py::TestSnowflake::test_copy", "tests/dialects/test_snowflake.py::TestSnowflake::test_ddl", "tests/dialects/test_snowflake.py::TestSnowflake::test_describe_table", "tests/dialects/test_snowflake.py::TestS...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> feat(snowflake)!: Support TO_DOUBLE function Docs ------- [Snowflake TO_DOUBLE](https://docs.snowflake.com/en/sql-reference/functions/to_double) ---------- </request> There are several new fun...
ceb42fabad60312699e4b15936aeebac00e22e4d
tobymao__sqlglot-4252
4,252
tobymao/sqlglot
null
94013a21ca69b90da78dc47b16cd86503736597a
2024-10-16T09:55:13Z
diff --git a/sqlglot/dialects/dialect.py b/sqlglot/dialects/dialect.py index 2e26cb46df..707af0c96b 100644 --- a/sqlglot/dialects/dialect.py +++ b/sqlglot/dialects/dialect.py @@ -1697,3 +1697,18 @@ def build_regexp_extract(args: t.List, dialect: Dialect) -> exp.RegexpExtract: expression=seq_get(args, 1), ...
diff --git a/tests/dialects/test_hive.py b/tests/dialects/test_hive.py index 136ea605c7..e40a85afd9 100644 --- a/tests/dialects/test_hive.py +++ b/tests/dialects/test_hive.py @@ -187,6 +187,7 @@ def test_lateral_view(self): "SELECT a, b FROM x LATERAL VIEW EXPLODE(y) t AS a LATERAL VIEW EXPLODE(z) u AS b",...
[ { "components": [ { "doc": "", "lines": [ 1702, 1714 ], "name": "explode_to_unnest_sql", "signature": "def explode_to_unnest_sql(self: Generator, expression: exp.Lateral) -> str:", "type": "function" } ], "file": "sqlglot/di...
[ "tests/dialects/test_hive.py::TestHive::test_lateral_view" ]
[ "tests/dialects/test_hive.py::TestHive::test_bits", "tests/dialects/test_hive.py::TestHive::test_cast", "tests/dialects/test_hive.py::TestHive::test_data_type", "tests/dialects/test_hive.py::TestHive::test_ddl", "tests/dialects/test_hive.py::TestHive::test_escapes", "tests/dialects/test_hive.py::TestHive:...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> feat(duckdb): Transpile Spark's LATERAL VIEW EXPLODE Fixes #4247 This PR reuses the existing Presto/Trino `LATERAL VIEW EXPLODE -> CROSS JOIN UNNEST` transformation in DuckDB too, e.g: ```Python...
Here is the discussion in the issues of the pull request. <issues> Incorrect Translation from Spark "LATERAL VIEW" to DuckDB When trying to translate a Spark SQL query with `LATERAL VIEW` to DuckDB, we are left with `LATERAL VIEW` after the translation, which is not a valid syntax in DuckDB. Example: ```python fro...
ceb42fabad60312699e4b15936aeebac00e22e4d
tobymao__sqlglot-4249
4,249
tobymao/sqlglot
null
fcc05c9daa31c7a51474ec9c72ceafd682359f90
2024-10-15T19:16:53Z
diff --git a/sqlglot/dialects/oracle.py b/sqlglot/dialects/oracle.py index 81c2a4a5c3..0845258f36 100644 --- a/sqlglot/dialects/oracle.py +++ b/sqlglot/dialects/oracle.py @@ -15,6 +15,7 @@ from sqlglot.helper import seq_get from sqlglot.parser import OPTIONS_TYPE, build_coalesce from sqlglot.tokens import TokenType ...
diff --git a/tests/dialects/test_oracle.py b/tests/dialects/test_oracle.py index d2bbedcde5..36ce5d02e6 100644 --- a/tests/dialects/test_oracle.py +++ b/tests/dialects/test_oracle.py @@ -329,6 +329,57 @@ def test_hints(self): ) self.validate_identity("INSERT /*+ APPEND */ INTO IAP_TBL (id, col1) VALUE...
[ { "components": [ { "doc": "", "lines": [ 237, 247 ], "name": "Oracle.Parser._parse_hint_function_call", "signature": "def _parse_hint_function_call(self) -> t.Optional[exp.Expression]:", "type": "function" }, { "doc":...
[ "tests/dialects/test_oracle.py::TestOracle::test_hints" ]
[ "tests/dialects/test_oracle.py::TestOracle::test_connect_by", "tests/dialects/test_oracle.py::TestOracle::test_grant", "tests/dialects/test_oracle.py::TestOracle::test_join_marker", "tests/dialects/test_oracle.py::TestOracle::test_json_functions", "tests/dialects/test_oracle.py::TestOracle::test_json_table"...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Feature/oracle hints Hi @georgesittas Please review this PR we discussed over on [Slack](https://tobiko-data.slack.com/archives/C0448SFS3PF/p1728489927717069), which adds better support for Oracle...
ceb42fabad60312699e4b15936aeebac00e22e4d
pgmpy__pgmpy-1840
1,840
pgmpy/pgmpy
null
b47d0b6ef9d1911811ddbd0d813e49009ae5afce
2024-10-15T17:52:33Z
diff --git a/pgmpy/estimators/GES.py b/pgmpy/estimators/GES.py index a53c045d7..1089e3058 100644 --- a/pgmpy/estimators/GES.py +++ b/pgmpy/estimators/GES.py @@ -12,6 +12,7 @@ BDsScore, BicScore, BicScoreGauss, + CondGaussScore, K2Score, ScoreCache, StructureEstimator, @@ -88,7 +89,7 @@ ...
diff --git a/pgmpy/tests/test_estimators/test_GES.py b/pgmpy/tests/test_estimators/test_GES.py index 2f64f4771..4f27f1843 100644 --- a/pgmpy/tests/test_estimators/test_GES.py +++ b/pgmpy/tests/test_estimators/test_GES.py @@ -55,3 +55,18 @@ def test_estimate(self): est = GES(self.data) for score in ["a...
[ { "components": [ { "doc": "", "lines": [ 486, 613 ], "name": "CondGaussScore", "signature": "class CondGaussScore(StructureScore):", "type": "class" }, { "doc": "", "lines": [ 487, 488 ...
[ "pgmpy/tests/test_estimators/test_GES.py::TestGESDiscrete::test_estimate", "pgmpy/tests/test_estimators/test_GES.py::TestGESGauss::test_estimate", "pgmpy/tests/test_estimators/test_GES.py::TestGESMixed::test_estimate", "pgmpy/tests/test_estimators/test_HillClimbSearch.py::TestHillClimbEstimatorDiscrete::test_...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Adds conditional gaussian structure score ### Your checklist for this pull request Please review the [guidelines for contributing](CONTRIBUTING.md) to this repository. - [ ] Make sure you are requ...
cf8d0f12e2e5be62b01ff8fded85f3f64eab1e84
google-deepmind__optax-1106
1,106
google-deepmind/optax
null
3d8f8be7e9835573208220c434b6c7f66727f747
2024-10-15T15:40:08Z
diff --git a/docs/api/projections.rst b/docs/api/projections.rst index 8d38166b4..683fde542 100644 --- a/docs/api/projections.rst +++ b/docs/api/projections.rst @@ -33,6 +33,8 @@ Available projections .. autosummary:: projection_box projection_hypercube + projection_l1_ball + projection_l1_sphere ...
diff --git a/optax/projections/_projections_test.py b/optax/projections/_projections_test.py index b71e28d1a..e4bd17c76 100644 --- a/optax/projections/_projections_test.py +++ b/optax/projections/_projections_test.py @@ -34,6 +34,13 @@ def projection_simplex_jacobian(projection): class ProjectionsTest(parameterized....
diff --git a/docs/api/projections.rst b/docs/api/projections.rst index 8d38166b4..683fde542 100644 --- a/docs/api/projections.rst +++ b/docs/api/projections.rst @@ -33,6 +33,8 @@ Available projections .. autosummary:: projection_box projection_hypercube + projection_l1_ball + projection_l1_sphere ...
[ { "components": [ { "doc": "Projection onto the l1 sphere.\n\nThis function solves the following constrained optimization problem,\nwhere ``x`` is the input pytree.\n\n.. math::\n\n \\underset{y}{\\text{argmin}} ~ ||x - y||_2^2 \\quad \\textrm{subject to} \\quad\n ||y||_1 = \\text{scale}\n\nArgs...
[ "optax/projections/_projections_test.py::ProjectionsTest::test_projection_l1_ball0", "optax/projections/_projections_test.py::ProjectionsTest::test_projection_l1_ball1", "optax/projections/_projections_test.py::ProjectionsTest::test_projection_l1_ball2", "optax/projections/_projections_test.py::ProjectionsTes...
[ "optax/projections/_projections_test.py::ProjectionsTest::test_projection_box", "optax/projections/_projections_test.py::ProjectionsTest::test_projection_hypercube", "optax/projections/_projections_test.py::ProjectionsTest::test_projection_non_negative", "optax/projections/_projections_test.py::ProjectionsTes...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add projection_l1_sphere and projection_l1_ball. Add projection_l1_sphere and projection_l1_ball. ---------- </request> There are several new functions or classes that need to be implemented, using...
1e08bccf195ac54e7d9d766eb5e69345bf0e3230
googleapis__python-aiplatform-4546
4,546
googleapis/python-aiplatform
null
99fafe9044258895a2ff5d04867516a682a08528
2024-10-14T22:59:12Z
diff --git a/google/cloud/aiplatform/matching_engine/matching_engine_index_endpoint.py b/google/cloud/aiplatform/matching_engine/matching_engine_index_endpoint.py index 9aeb53b344..6c51b07281 100644 --- a/google/cloud/aiplatform/matching_engine/matching_engine_index_endpoint.py +++ b/google/cloud/aiplatform/matching_en...
diff --git a/tests/unit/aiplatform/test_matching_engine_index_endpoint.py b/tests/unit/aiplatform/test_matching_engine_index_endpoint.py index afff2a2a98..bfd85c41b6 100644 --- a/tests/unit/aiplatform/test_matching_engine_index_endpoint.py +++ b/tests/unit/aiplatform/test_matching_engine_index_endpoint.py @@ -106,6 +10...
[ { "components": [ { "doc": "Helper method to get the ip address for a psc automated endpoint.\nReturns:\n deployed_index_id (str):\n Optional. Required for private service access endpoint.\n The user specified ID of the DeployedIndex.\n deployed_index (gca_matching_engi...
[ "tests/unit/aiplatform/test_matching_engine_index_endpoint.py::TestMatchingEngineIndexEndpoint::test_deploy_index_psc_automation_configs", "tests/unit/aiplatform/test_matching_engine_index_endpoint.py::TestMatchingEngineIndexEndpoint::test_index_private_service_connect_automation_endpoint_find_neighbor_queries", ...
[ "tests/unit/aiplatform/test_matching_engine_index_endpoint.py::TestMatchingEngineIndexEndpoint::test_init_index_endpoint[index_endpoint_id]", "tests/unit/aiplatform/test_matching_engine_index_endpoint.py::TestMatchingEngineIndexEndpoint::test_init_index_endpoint[projects/test-project/locations/us-central1/indexEn...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> feat: Add PSC automation support to matching engine index endpoint `deploy_index()`, `find_neighbors()`, `match()`, and `read_index_datapoints()`. feat: Add PSC automation support to matching engine i...
67358fa6a830eb842f6b52d09061af4a41b54af6
scikit-learn__scikit-learn-30047
30,047
scikit-learn/scikit-learn
1.6
c08b4332a3358f0090c8e3873aedde815908e248
2024-10-11T14:37:45Z
diff --git a/doc/whats_new/upcoming_changes/sklearn.neighbors/30047.enhancement.rst b/doc/whats_new/upcoming_changes/sklearn.neighbors/30047.enhancement.rst new file mode 100644 index 0000000000000..ed91b39ed2e0d --- /dev/null +++ b/doc/whats_new/upcoming_changes/sklearn.neighbors/30047.enhancement.rst @@ -0,0 +1,6 @@ ...
diff --git a/sklearn/neighbors/tests/test_neighbors.py b/sklearn/neighbors/tests/test_neighbors.py index cb6acb65cb1cc..b480847ed1f45 100644 --- a/sklearn/neighbors/tests/test_neighbors.py +++ b/sklearn/neighbors/tests/test_neighbors.py @@ -24,7 +24,12 @@ assert_compatible_argkmin_results, assert_compatible_r...
diff --git a/doc/whats_new/upcoming_changes/sklearn.neighbors/30047.enhancement.rst b/doc/whats_new/upcoming_changes/sklearn.neighbors/30047.enhancement.rst new file mode 100644 index 0000000000000..ed91b39ed2e0d --- /dev/null +++ b/doc/whats_new/upcoming_changes/sklearn.neighbors/30047.enhancement.rst @@ -0,0 +1,6 @@ ...
[ { "components": [ { "doc": "Return the mean accuracy on the given test data and labels.\n\nIn multi-label classification, this is the subset accuracy\nwhich is a harsh metric since you require for each sample that\neach label set be correctly predicted.\n\nParameters\n----------\nX : array-like of...
[ "sklearn/neighbors/tests/test_neighbors.py::test_neighbor_classifiers_loocv[nn_model0]", "sklearn/neighbors/tests/test_neighbors.py::test_neighbor_classifiers_loocv[nn_model1]" ]
[ "sklearn/neighbors/tests/test_neighbors.py::test_unsupervised_kneighbors[float64-chebyshev-False-100-100-10-100]", "sklearn/neighbors/tests/test_neighbors.py::test_unsupervised_kneighbors[float64-chebyshev-False-1000-5-100-1]", "sklearn/neighbors/tests/test_neighbors.py::test_unsupervised_kneighbors[float64-che...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> ENH Make `KNeighborsClassifier.predict` handle `X=None` #### Reference Issues/PRs Fixes #29722 and #27747. This makes `predict()`, `predict_proba()`, and `score()` of `KNeighborsClassifier` and ...
Here is the discussion in the issues of the pull request. <issues> Make `KNeighborsClassifier.predict` and `KNeighborsRegressor.predict` react the same way to `X=None` ### Describe the workflow you want to enable Currently `KNeighborsRegressor.predict()` accepts `None` as input, in which case it returns prediction f...
18dc8630a7cbe1b591c12774949058b12157a39a
deepset-ai__haystack-8448
8,448
deepset-ai/haystack
null
e5a80722c22c59eb99416bf0cd712f6de7cd581a
2024-10-09T14:25:49Z
diff --git a/docs/pydoc/config/generators_api.yml b/docs/pydoc/config/generators_api.yml index 4fcfa74879..fa1f638e99 100644 --- a/docs/pydoc/config/generators_api.yml +++ b/docs/pydoc/config/generators_api.yml @@ -7,6 +7,7 @@ loaders: "hugging_face_local", "hugging_face_api", "openai", + ...
diff --git a/test/components/generators/test_openai_dalle.py b/test/components/generators/test_openai_dalle.py new file mode 100644 index 0000000000..0c319d020a --- /dev/null +++ b/test/components/generators/test_openai_dalle.py @@ -0,0 +1,147 @@ +# SPDX-FileCopyrightText: 2022-present deepset GmbH <info@deepset.ai> +#...
diff --git a/docs/pydoc/config/generators_api.yml b/docs/pydoc/config/generators_api.yml index 4fcfa74879..fa1f638e99 100644 --- a/docs/pydoc/config/generators_api.yml +++ b/docs/pydoc/config/generators_api.yml @@ -7,6 +7,7 @@ loaders: "hugging_face_local", "hugging_face_api", "openai", + ...
[ { "components": [ { "doc": "Generates images using OpenAI's DALL-E model.\n\nFor details on OpenAI API parameters, see\n[OpenAI documentation](https://platform.openai.com/docs/api-reference/images/create).\n\n### Usage example\n\n```python\nfrom haystack.components.generators import DALLEImageGene...
[ "test/components/generators/test_openai_dalle.py::TestDALLEImageGenerator::test_init_default", "test/components/generators/test_openai_dalle.py::TestDALLEImageGenerator::test_init_with_params", "test/components/generators/test_openai_dalle.py::TestDALLEImageGenerator::test_warm_up", "test/components/generator...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> feat: Adding DALLE image generator ### Related Issues - fixes #issue-number ### Proposed Changes: <!--- In case of a bug: Describe what caused the issue and how you solved it --> <!--- In ...
f4d9c2bb917be0ffe132dffcc2ad4f1b0fcc5967
deepset-ai__haystack-8447
8,447
deepset-ai/haystack
null
78f378b34d5a65e4799bf284cdac13f7764b5c8e
2024-10-09T08:52:47Z
diff --git a/haystack/tracing/logging_tracer.py b/haystack/tracing/logging_tracer.py new file mode 100644 index 0000000000..9ae4114428 --- /dev/null +++ b/haystack/tracing/logging_tracer.py @@ -0,0 +1,82 @@ +# SPDX-FileCopyrightText: 2022-present deepset GmbH <info@deepset.ai> +# +# SPDX-License-Identifier: Apache-2.0 ...
diff --git a/test/tracing/test_logging_tracer.py b/test/tracing/test_logging_tracer.py new file mode 100644 index 0000000000..0f1daeeba0 --- /dev/null +++ b/test/tracing/test_logging_tracer.py @@ -0,0 +1,160 @@ +# SPDX-FileCopyrightText: 2022-present deepset GmbH <info@deepset.ai> +# +# SPDX-License-Identifier: Apache-...
diff --git a/releasenotes/notes/logging-tracer-e991a43ef44fe906.yaml b/releasenotes/notes/logging-tracer-e991a43ef44fe906.yaml new file mode 100644 index 0000000000..c44382db93 --- /dev/null +++ b/releasenotes/notes/logging-tracer-e991a43ef44fe906.yaml @@ -0,0 +1,20 @@ +--- +highlights: > + With the new Logging Trac...
[ { "components": [ { "doc": "", "lines": [ 18, 29 ], "name": "LoggingSpan", "signature": "class LoggingSpan(Span):", "type": "class" }, { "doc": "Set a single tag on the span.\n\n:param key: the name of the tag.\n:param...
[ "[", "[100%]", "test/tracing/test_logging_tracer.py::TestLoggingTracer::test_init", "test/tracing/test_logging_tracer.py::TestLoggingTracer::test_logging_tracer", "test/tracing/test_logging_tracer.py::TestLoggingTracer::test_tracing_complex_values", "test/tracing/test_logging_tracer.py::TestLoggingTracer:...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> feat: Logging Tracer ### Related Issues - Inspecting what's happening in Pipelines during experimentation is not straightforward, especially if there are loops. - https://github.com/deepset-ai/hay...
f4d9c2bb917be0ffe132dffcc2ad4f1b0fcc5967
conan-io__conan-17129
17,129
conan-io/conan
null
e25b357d6eab29fcb64ee04340f2d0d479ea09bf
2024-10-08T11:01:07Z
diff --git a/conan/internal/api/install/generators.py b/conan/internal/api/install/generators.py index 9b7de140d42..87f53e1b5f1 100644 --- a/conan/internal/api/install/generators.py +++ b/conan/internal/api/install/generators.py @@ -73,6 +73,7 @@ def load_cache_generators(path): def write_generators(conanfile, app, en...
diff --git a/test/integration/generators/test_generators_from_br.py b/test/integration/generators/test_generators_from_br.py new file mode 100644 index 00000000000..a0db007c47f --- /dev/null +++ b/test/integration/generators/test_generators_from_br.py @@ -0,0 +1,91 @@ +import textwrap + +from conan.test.utils.tools imp...
[ { "components": [ { "doc": "Collect generators_info from the immediate build_requires", "lines": [ 160, 169 ], "name": "_receive_generators", "signature": "def _receive_generators(conanfile):", "type": "function" } ], "file"...
[ "test/integration/generators/test_generators_from_br.py::test_inject_generators_conf", "test/integration/generators/test_generators_from_br.py::test_inject_generators_error", "test/integration/generators/test_generators_from_br.py::test_inject_vars" ]
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> POC for tool_requires that make direct dependees inherit generators Changelog: Feature: Add `self.generators_info` for `tool_requires` to propagate generators to their direct dependencies. Docs: http...
4a5b19a75db9225316c8cb022a2dfb9705a2af34
softlayer__softlayer-python-2190
2,190
softlayer/softlayer-python
null
bd1ecce1ec4313b9ceefd3cfea52d1b9274fef9d
2024-10-07T19:57:02Z
diff --git a/.secrets.baseline b/.secrets.baseline index ea850e071..9062c20d5 100644 --- a/.secrets.baseline +++ b/.secrets.baseline @@ -3,7 +3,7 @@ "files": "^.secrets.baseline$", "lines": null }, - "generated_at": "2024-04-25T01:18:20Z", + "generated_at": "2024-10-04T22:18:14Z", "plugins_used": [ ...
diff --git a/SoftLayer/testing/xmlrpc.py b/SoftLayer/testing/xmlrpc.py index b60c2bf0c..a572fd79d 100644 --- a/SoftLayer/testing/xmlrpc.py +++ b/SoftLayer/testing/xmlrpc.py @@ -45,18 +45,17 @@ def do_POST(self): req.args = args[1:] req.filter = _item_by_key_postfix(headers, 'ObjectFilter') or ...
diff --git a/.secrets.baseline b/.secrets.baseline index ea850e071..9062c20d5 100644 --- a/.secrets.baseline +++ b/.secrets.baseline @@ -3,7 +3,7 @@ "files": "^.secrets.baseline$", "lines": null }, - "generated_at": "2024-04-25T01:18:20Z", + "generated_at": "2024-10-04T22:18:14Z", "plugins_used": [ ...
[ { "components": [ { "doc": "A simple getter to totalCount, but its called getTotalItems since that is the header returned", "lines": [ 124, 126 ], "name": "SoftLayerListResult.get_total_items", "signature": "def get_total_items(self):", "...
[ "tests/transports/rest_tests.py::TestRestAPICall::test_basic", "tests/transports/transport_tests.py::TestFixtureTransport::test_total_items", "tests/transports/xmlrpc_tests.py::TestXmlRpcAPICall::test_nonascii_characters" ]
[ "tests/transports/rest_tests.py::TestRestAPICall::test_complex_encoder_bytes", "tests/transports/rest_tests.py::TestRestAPICall::test_empty_error", "tests/transports/rest_tests.py::TestRestAPICall::test_http_and_empty_error", "tests/transports/rest_tests.py::TestRestAPICall::test_http_and_json_error", "test...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Added get_total_items to SoftLayerListResult. to make figuring out how many results were returned a bit easier ---------- </request> There are several new functions or classes that need to be imple...
bd1ecce1ec4313b9ceefd3cfea52d1b9274fef9d
biopragmatics__bioregistry-1193
1,193
biopragmatics/bioregistry
null
b6dc94eb83d41b9e9899436b798a4166defd463c
2024-10-07T15:10:38Z
diff --git a/docs/source/curation.rst b/docs/source/curation.rst index ca2da39e0b..0cb3940a18 100644 --- a/docs/source/curation.rst +++ b/docs/source/curation.rst @@ -5,3 +5,7 @@ There are several curation workflows implemented in :mod:`bioregistry.curation`. Bulk Import ----------- .. automodapi:: bioregistry.curat...
diff --git a/tests/test_curated_papers.py b/tests/test_curated_papers.py new file mode 100644 index 0000000000..f646df47e7 --- /dev/null +++ b/tests/test_curated_papers.py @@ -0,0 +1,69 @@ +"""Test for checking the integrity of the curated_papers TSV file.""" + +import csv +import unittest +from datetime import datetim...
diff --git a/docs/source/curation.rst b/docs/source/curation.rst index ca2da39e0b..0cb3940a18 100644 --- a/docs/source/curation.rst +++ b/docs/source/curation.rst @@ -5,3 +5,7 @@ There are several curation workflows implemented in :mod:`bioregistry.curation`. Bulk Import ----------- .. automodapi:: bioregistry.curat...
[ { "components": [ { "doc": "An enumeration for curation relevance.", "lines": [ 21, 39 ], "name": "CurationRelevance", "signature": "class CurationRelevance(str, enum.Enum):", "type": "class" } ], "file": "src/bioregistry/cu...
[ "tests/test_curated_papers.py::TestTSV::test_tsv_file" ]
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Update curated papers, add new PDB provider (FURNA). Updated curated papers list with all papers identified from Aug 9th in https://github.com/biopragmatics/bioregistry/issues/1165. Curated new prov...
9900364b4d9d456203d51adc084bc506104a652f
tobymao__sqlglot-4217
4,217
tobymao/sqlglot
null
22a16848d80a2fa6d310f99d21f7d81f90eb9440
2024-10-07T08:22:14Z
diff --git a/sqlglot/expressions.py b/sqlglot/expressions.py index c5e40bed04..064805d5ca 100644 --- a/sqlglot/expressions.py +++ b/sqlglot/expressions.py @@ -3284,6 +3284,200 @@ class Update(Expression): "limit": False, } + def table( + self, expression: ExpOrStr, dialect: DialectType = None,...
diff --git a/tests/test_build.py b/tests/test_build.py index 7518b72a2a..5d383ad00b 100644 --- a/tests/test_build.py +++ b/tests/test_build.py @@ -577,6 +577,36 @@ def test_build(self): lambda: exp.update("tbl", {"x": 1}, from_="tbl2 cross join tbl3"), "UPDATE tbl SET x = 1 FROM tbl2 C...
[ { "components": [ { "doc": "Set the table to update.\n\nExample:\n >>> Update().table(\"my_table\").set_(\"x = 1\").sql()\n 'UPDATE my_table SET x = 1'\n\nArgs:\n expression : the SQL code strings to parse.\n If a `Table` instance is passed, this is used as-is.\n If another ...
[ "tests/test_build.py::TestBuild::test_build" ]
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Feat: add builder methods to exp.Update and add with_ arg to exp.update Improve ergonomics of UPDATEs: - Add builder methods to Update class so it can be constructed incrementally in the same way a...
ceb42fabad60312699e4b15936aeebac00e22e4d
googleapis__python-bigquery-2039
2,039
googleapis/python-bigquery
null
1d8d0a0b0359ae6da5b99fd3fa8cb016b74b8a6c
2024-10-04T12:32:44Z
diff --git a/google/cloud/bigquery/_pandas_helpers.py b/google/cloud/bigquery/_pandas_helpers.py index 210ab4875..bf7d10c0f 100644 --- a/google/cloud/bigquery/_pandas_helpers.py +++ b/google/cloud/bigquery/_pandas_helpers.py @@ -21,13 +21,14 @@ import logging import queue import warnings -from typing import Any, Uni...
diff --git a/tests/unit/test__pandas_helpers.py b/tests/unit/test__pandas_helpers.py index 203cc1d1c..3a5fddacc 100644 --- a/tests/unit/test__pandas_helpers.py +++ b/tests/unit/test__pandas_helpers.py @@ -18,6 +18,7 @@ import functools import operator import queue +from typing import Union from unittest import mock...
[ { "components": [ { "doc": "Determines the value of requested_streams based on the values of\n`preserve_order` and `max_stream_count`.\n\nArgs:\n preserve_order (bool): Whether to preserve the order of streams. If True,\n this limits the number of streams to one. `preserve_order` takes\n...
[ "tests/unit/test__pandas_helpers.py::test_do_all", "tests/unit/test__pandas_helpers.py::test_all_", "tests/unit/test__pandas_helpers.py::test_verify_pandas_imports_no_pandas", "tests/unit/test__pandas_helpers.py::test_determine_requested_streams[True-10-1]", "tests/unit/test__pandas_helpers.py::test_determi...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> feat: updates to allow users to set max_stream_count Adds a function `determine_requested_streams()` to compare `preserve_order` and the new argument `max_stream_count` to determine how many streams t...
Here is the discussion in the issues of the pull request. <issues> Make `max_stream_count` configurable when using Bigquery Storage API Currently, for API that can use BQ Storage Client to fetch data like `to_dataframe_iterable` or `to_arrow_iterable`, the client library always uses the maximum number of read streams r...
3359ef37b90243bea2d9e68bb996fe5d736f304c
tobymao__sqlglot-4211
4,211
tobymao/sqlglot
null
4dcd3975cbd1d48263446aaf149a1ecc3cacb05d
2024-10-04T06:30:17Z
diff --git a/sqlglot/dialects/tsql.py b/sqlglot/dialects/tsql.py index 65002427c2..8f1e8d89a1 100644 --- a/sqlglot/dialects/tsql.py +++ b/sqlglot/dialects/tsql.py @@ -324,6 +324,28 @@ def _parse(args: t.List[exp.Expression]) -> exp.Expression: return _parse +# https://learn.microsoft.com/en-us/sql/t-sql/functi...
diff --git a/tests/dialects/test_tsql.py b/tests/dialects/test_tsql.py index cec78894e7..eb68ac0f7a 100644 --- a/tests/dialects/test_tsql.py +++ b/tests/dialects/test_tsql.py @@ -1,6 +1,6 @@ from sqlglot import exp, parse, parse_one from tests.dialects.test_dialect import Validator -from sqlglot.errors import ParseEr...
[ { "components": [ { "doc": "", "lines": [ 328, 345 ], "name": "_build_parsename", "signature": "def _build_parsename(args: t.List) -> exp.SplitPart | exp.Anonymous:", "type": "function" }, { "doc": "", "lines":...
[ "tests/dialects/test_tsql.py::TestTSQL::test_parsename" ]
[ "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.py::TestTSQL::test_count", "tests/dialects/test_tsql.py::T...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> feat(tsql): SPLIT_PART function and conversion to PARSENAME in tsql This PR introduces SPLIT_PART function used in Spark and Databricks as well as the corresponding conversion in TSQL. In Spark/Dat...
ceb42fabad60312699e4b15936aeebac00e22e4d
googleapis__python-aiplatform-4505
4,505
googleapis/python-aiplatform
null
85a8c41d2f4360089e0e5895505c79c99033f199
2024-10-03T17:10:51Z
diff --git a/samples/model-builder/experiment_tracking/get_experiment_backing_tensorboard_sample.py b/samples/model-builder/experiment_tracking/get_experiment_backing_tensorboard_sample.py new file mode 100644 index 0000000000..f1ef99bafe --- /dev/null +++ b/samples/model-builder/experiment_tracking/get_experiment_back...
diff --git a/samples/model-builder/experiment_tracking/get_experiment_backing_tensorboard_sample_test.py b/samples/model-builder/experiment_tracking/get_experiment_backing_tensorboard_sample_test.py new file mode 100644 index 0000000000..205bf3b739 --- /dev/null +++ b/samples/model-builder/experiment_tracking/get_exper...
[ { "components": [ { "doc": "", "lines": [ 19, 30 ], "name": "get_experiment_backing_tensorboard_resource_name_sample", "signature": "def get_experiment_backing_tensorboard_resource_name_sample( experiment_name: str, project: str, location: str, )...
[ "samples/model-builder/experiment_tracking/get_experiment_backing_tensorboard_sample_test.py::test_get_experiment_backing_tensorboard_resource_name_sample" ]
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> docs: Add sample to retrieve experiment backing tensorboard resource name docs: Add sample to retrieve experiment backing tensorboard resource name ---------- </request> There are several new funct...
67358fa6a830eb842f6b52d09061af4a41b54af6
conan-io__conan-17110
17,110
conan-io/conan
null
7a35b621cc82358a45f96831421c30d9a2b3e507
2024-10-03T16:28:55Z
diff --git a/conan/internal/api/install/generators.py b/conan/internal/api/install/generators.py index 9b7de140d42..dbba425a797 100644 --- a/conan/internal/api/install/generators.py +++ b/conan/internal/api/install/generators.py @@ -32,7 +32,8 @@ "SConsDeps": "conan.tools.scons", "QbsDep...
diff --git a/test/integration/tools/ros/__init__.py b/test/integration/tools/ros/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/test/integration/tools/ros/test_rosenv.py b/test/integration/tools/ros/test_rosenv.py new file mode 100644 index 00000000000..2865fb6c431 --- /dev/null +++ b/test...
[ { "components": [ { "doc": "Generator to serve as integration for Robot Operating System 2 development workspaces.\nIt generates a conanrosenv.sh file that when sources sets variables so the Conan\ndependencies are found by CMake and the run environment is also set.\n\nIMPORTANT: This generator sh...
[ "test/integration/tools/ros/test_rosenv.py::test_rosenv", "test/integration/tools/ros/test_rosenv.py::test_rosenv_shared_libraries" ]
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> [feature] Add ROSEnv generator integration for ROS2 builds Changelog: Feature: Add ROSEnv generator integration for ROS2 (Robot Operating System). Docs: Omit Related to #17055 This a generator...
4a5b19a75db9225316c8cb022a2dfb9705a2af34
huggingface__trl-2159
2,159
huggingface/trl
null
cbf9abcd07affb5019095cdec44e254212ee5480
2024-10-03T03:41:26Z
diff --git a/docs/source/judges.mdx b/docs/source/judges.mdx index 329cc6c917d..818c5f1f0af 100644 --- a/docs/source/judges.mdx +++ b/docs/source/judges.mdx @@ -52,10 +52,18 @@ judge.judge( ) # Outputs: [0, 1] ``` +## AllTrueJudge + +[[autodoc]] AllTrueJudge + ## BaseJudge [[autodoc]] BaseJudge +## BaseBinar...
diff --git a/tests/test_judges.py b/tests/test_judges.py index 748cc856665..ce13d7bcca7 100644 --- a/tests/test_judges.py +++ b/tests/test_judges.py @@ -15,27 +15,53 @@ import time import unittest -from trl import HfPairwiseJudge, PairRMJudge, RandomPairwiseJudge, RandomRankJudge +from trl import ( + AllTrueJudg...
diff --git a/docs/source/judges.mdx b/docs/source/judges.mdx index 329cc6c917d..818c5f1f0af 100644 --- a/docs/source/judges.mdx +++ b/docs/source/judges.mdx @@ -52,10 +52,18 @@ judge.judge( ) # Outputs: [0, 1] ``` +## AllTrueJudge + +[[autodoc]] AllTrueJudge + ## BaseJudge [[autodoc]] BaseJudge +## BaseBinar...
[ { "components": [ { "doc": "Base class for binary judges.", "lines": [ 147, 183 ], "name": "BaseBinaryJudge", "signature": "class BaseBinaryJudge(BaseJudge):", "type": "class" }, { "doc": "Judge the completion for a gi...
[ "tests/test_judges.py::TestJudges::test_all_true_judge", "tests/test_judges.py::TestJudges::test_random_binary_judge", "tests/test_judges.py::TestJudges::test_random_pairwise_judge", "tests/test_judges.py::TestJudges::test_random_rank_judge" ]
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> 🤝 Mixture of judges # What does this PR do? This PR adds the Mixture of judges part of the CGPO paper (https://arxiv.org/pdf/2409.20370). The judges are described in section 4.1.4 and the mixture ...
a0066f47f82f7af0145e3b5ebc06cf2a45b97352
boto__botocore-3271
3,271
boto/botocore
null
cca16a20fdfb66249b481d652d7eeeb59f6eb33a
2024-10-02T17:16:30Z
diff --git a/botocore/args.py b/botocore/args.py index 741ca77886..37b2989c41 100644 --- a/botocore/args.py +++ b/botocore/args.py @@ -61,6 +61,15 @@ # values result in a warning-level log message. USERAGENT_APPID_MAXLEN = 50 +VALID_REQUEST_CHECKSUM_CALCULATION_CONFIG = ( + "when_supported", + "when_required"...
diff --git a/tests/unit/test_args.py b/tests/unit/test_args.py index 9338b05371..af6695c083 100644 --- a/tests/unit/test_args.py +++ b/tests/unit/test_args.py @@ -614,6 +614,70 @@ def test_bad_value_disable_request_compression(self): config = client_args['client_config'] self.assertFalse(config.disabl...
[ { "components": [ { "doc": "", "lines": [ 791, 802 ], "name": "ClientArgsCreator._compute_checksum_config", "signature": "def _compute_checksum_config(self, config_kwargs):", "type": "function" }, { "doc": "", ...
[ "tests/unit/test_args.py::TestCreateClientArgs::test_checksum_client_config", "tests/unit/test_args.py::TestCreateClientArgs::test_checksum_client_config_overrides_config_store", "tests/unit/test_args.py::TestCreateClientArgs::test_checksum_config_store", "tests/unit/test_args.py::TestCreateClientArgs::test_c...
[ "tests/unit/test_args.py::TestCreateClientArgs::test_bad_type_request_min_compression_size_bytes", "tests/unit/test_args.py::TestCreateClientArgs::test_bad_value_disable_request_compression", "tests/unit/test_args.py::TestCreateClientArgs::test_can_merge_max_attempts", "tests/unit/test_args.py::TestCreateClie...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add Flexible Checksum v2 Config Options ## Overview This PR adds the ``request_checksum_calculation`` and ``response_checksum_validation`` config options. > [!NOTE] > This PR only implements t...
5e4b564dd0f9aab16a404251ebd3e675c9681492
conan-io__conan-17102
17,102
conan-io/conan
null
2e3f51782056b6665560f9af6166e30d7c2801ab
2024-10-02T15:35:31Z
diff --git a/conan/cli/commands/graph.py b/conan/cli/commands/graph.py index 60e71f0d0fd..aa1fb298c2e 100644 --- a/conan/cli/commands/graph.py +++ b/conan/cli/commands/graph.py @@ -15,7 +15,7 @@ from conan.errors import ConanException from conan.internal.deploy import do_deploys from conans.client.graph.graph import...
diff --git a/test/integration/command_v2/test_info_build_order.py b/test/integration/command_v2/test_info_build_order.py index bb9c688c7a0..ef7ec1346f6 100644 --- a/test/integration/command_v2/test_info_build_order.py +++ b/test/integration/command_v2/test_info_build_order.py @@ -766,6 +766,26 @@ def validate(self): ...
[ { "components": [ { "doc": "", "lines": [ 337, 356 ], "name": "ProfileArgs", "signature": "class ProfileArgs:", "type": "class" }, { "doc": "", "lines": [ 338, 339 ], "name":...
[ "test/integration/command_v2/test_info_build_order.py::test_multi_configuration_profile_args" ]
[ "test/integration/command_v2/test_info_build_order.py::test_info_build_order", "test/integration/command_v2/test_info_build_order.py::test_info_build_order_configuration", "test/integration/command_v2/test_info_build_order.py::test_info_build_order_configuration_text_formatter", "test/integration/command_v2/t...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Feature/build order profile args Changelog: Feature: Add profile arguments information to ``conan graph build-order`` to improve UX and usage in CI systems. Docs: https://github.com/conan-io/docs/pul...
4a5b19a75db9225316c8cb022a2dfb9705a2af34
joke2k__faker-2111
2,111
joke2k/faker
null
6b040abcd4350c5e1df8c5d02a427082921e67eb
2024-10-01T22:45:36Z
diff --git a/faker/providers/person/gu_IN/__init__.py b/faker/providers/person/gu_IN/__init__.py new file mode 100644 index 0000000000..fffd4aa0da --- /dev/null +++ b/faker/providers/person/gu_IN/__init__.py @@ -0,0 +1,157 @@ +from .. import Provider as PersonProvider + + +class Provider(PersonProvider): + + formats...
diff --git a/tests/providers/test_person.py b/tests/providers/test_person.py index a8b1b4d07e..fb3300aa5e 100644 --- a/tests/providers/test_person.py +++ b/tests/providers/test_person.py @@ -20,6 +20,7 @@ from faker.providers.person.fi_FI import Provider as FiProvider from faker.providers.person.fr_BE import Provider...
[ { "components": [ { "doc": "", "lines": [ 4, 157 ], "name": "Provider", "signature": "class Provider(PersonProvider):", "type": "class" } ], "file": "faker/providers/person/gu_IN/__init__.py" } ]
[ "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 person provider for gu_IN locale with tests ### What does this change Added male and female names with prefixes for gu_IN Added tests for person provider ### What was wrong There was n...
Here is the discussion in the issues of the pull request. <issues> Add provider `gj-IN` for Gujarati language * Faker version: <= 29.0.0 * OS: all There is no provider for Gujarati language in faker ### Expected behavior There should be a new provider ### Actual behavior No Provider for `gj-IN` -----...
6edfdbf6ae90b0153309e3bf066aa3b2d16494a7
deepset-ai__haystack-8419
8,419
deepset-ai/haystack
null
c68160c29989b0f2056f3e37e671b0e72d5949d6
2024-09-30T07:56:40Z
diff --git a/docs/pydoc/config/evaluators_api.yml b/docs/pydoc/config/evaluators_api.yml index 8c6ffe1556..9a8460b94a 100644 --- a/docs/pydoc/config/evaluators_api.yml +++ b/docs/pydoc/config/evaluators_api.yml @@ -7,7 +7,7 @@ loaders: "context_relevance", "document_map", "document_mrr", - ...
diff --git a/test/components/evaluators/test_document_ndcg.py b/test/components/evaluators/test_document_ndcg.py new file mode 100644 index 0000000000..3924855f72 --- /dev/null +++ b/test/components/evaluators/test_document_ndcg.py @@ -0,0 +1,202 @@ +# SPDX-FileCopyrightText: 2022-present deepset GmbH <info@deepset.ai>...
diff --git a/docs/pydoc/config/evaluators_api.yml b/docs/pydoc/config/evaluators_api.yml index 8c6ffe1556..9a8460b94a 100644 --- a/docs/pydoc/config/evaluators_api.yml +++ b/docs/pydoc/config/evaluators_api.yml @@ -7,7 +7,7 @@ loaders: "context_relevance", "document_map", "document_mrr", - ...
[ { "components": [ { "doc": "Evaluator that calculates the normalized discounted cumulative gain (NDCG) of retrieved documents.\n\nEach question can have multiple ground truth documents and multiple retrieved documents.\nIf the ground truth documents have relevance scores, the NDCG calculation uses...
[ "test/components/evaluators/test_document_ndcg.py::test_run_with_scores", "test/components/evaluators/test_document_ndcg.py::test_run_without_scores", "test/components/evaluators/test_document_ndcg.py::test_run_with_multiple_lists_of_docs", "test/components/evaluators/test_document_ndcg.py::test_run_with_diff...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> feat: Add DocumentNDCGEvaluator component ### Related Issues - fixes #8415 ### Proposed Changes: * Adding a new DocumentNDCGEvaluator component and corresponding unit tests ### How did y...
Here is the discussion in the issues of the pull request. <issues> Add DocumentNDCGEvaluator component Some datasets contain document relevance scores or at least a sorted order of ground truth relevant documents, for example HotpotQA. In order to evaluate rankers and retrievers regarding their ability to not only dist...
f4d9c2bb917be0ffe132dffcc2ad4f1b0fcc5967
embeddings-benchmark__mteb-1256
1,256
embeddings-benchmark/mteb
null
f04279d5975f4a5c7fd5f5f284bfe14303b8f2a0
2024-09-29T12:28:20Z
diff --git a/README.md b/README.md index e35ad3bdbc..a7eb03e4f2 100644 --- a/README.md +++ b/README.md @@ -378,6 +378,7 @@ df = results_to_dataframe(results) | Documentation | | | ------------------------------ | ---------------------- | | 📋 [Tasks] | Overview of available ta...
diff --git a/tests/test_cli.py b/tests/test_cli.py index fdcd1b014a..1d0400e985 100644 --- a/tests/test_cli.py +++ b/tests/test_cli.py @@ -22,6 +22,15 @@ def test_available_tasks(): ), "Sample task Banking77Classification task not found in available tasks" +def test_available_benchmarks(): + command = f"{sy...
diff --git a/README.md b/README.md index e35ad3bdbc..a7eb03e4f2 100644 --- a/README.md +++ b/README.md @@ -378,6 +378,7 @@ df = results_to_dataframe(results) | Documentation | | | ------------------------------ | ---------------------- | | 📋 [Tasks] | Overview of available ta...
[ { "components": [ { "doc": "", "lines": [ 155, 158 ], "name": "available_benchmarks", "signature": "def available_benchmarks(args: argparse.Namespace) -> None:", "type": "function" }, { "doc": "", "lines": [ ...
[ "tests/test_cli.py::test_available_benchmarks" ]
[ "tests/test_cli.py::test_available_tasks", "tests/test_cli.py::test_run_task[average_word_embeddings_komninos-BornholmBitextMining-21eec43590414cb8e3a6f654857abed0483ae36e]", "tests/test_cli.py::test_run_task[intfloat/multilingual-e5-small-BornholmBitextMining-e4ce9877abf3edfe10b0d82785e83bdcb973e22e]", "test...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> fix: Add listing all available benchmarks CLI option <!-- If you are submitting a dataset or a model for the model registry please use the corresponding checklists below otherwise feel free to remove ...
b580b95fc91a7e7e675d27c3ae9a9df64ddad169
tobymao__sqlglot-4165
4,165
tobymao/sqlglot
null
3ab6dfb486f18d036bfac6a90d5f81b0ce7a91ea
2024-09-26T06:37:21Z
diff --git a/sqlglot/expressions.py b/sqlglot/expressions.py index 35de711580..c5e40bed04 100644 --- a/sqlglot/expressions.py +++ b/sqlglot/expressions.py @@ -5913,6 +5913,10 @@ class Normalize(Func): arg_types = {"this": True, "form": False} +class Overlay(Func): + arg_types = {"this": True, "expression": ...
diff --git a/tests/dialects/test_postgres.py b/tests/dialects/test_postgres.py index e4d239e5ae..63266a50e6 100644 --- a/tests/dialects/test_postgres.py +++ b/tests/dialects/test_postgres.py @@ -800,6 +800,8 @@ def test_postgres(self): self.validate_identity( "SELECT 1 FROM ((VALUES (1)) AS vals(i...
[ { "components": [ { "doc": "", "lines": [ 5916, 5917 ], "name": "Overlay", "signature": "class Overlay(Func):", "type": "class" } ], "file": "sqlglot/expressions.py" }, { "components": [ { "doc": "", ...
[ "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 OVERLAY function Fixes #4159 This PR adds support for the Postgres `OVERLAY` function: ``` OVERLAY(string PLACING string FROM int [FOR int]) ``` Docs ---------- [...
Here is the discussion in the issues of the pull request. <issues> Postgresql overlay string function causes parser error When parsing the following PostgreSQL command with dialect="postgres"; `select overlay('Txxxxas' placing 'hom' from 2 for 4)` SqlGlot throws ParseError: ![Screenshot 2024-09-25 170438](http...
ceb42fabad60312699e4b15936aeebac00e22e4d
aws-cloudformation__cfn-lint-3703
3,703
aws-cloudformation/cfn-lint
null
d44b32f841c63bb2d2e1d9d7798cf0ce207b33f2
2024-09-21T15:26:55Z
diff --git a/src/cfnlint/data/schemas/other/rules/__init__.py b/src/cfnlint/data/schemas/other/rules/__init__.py new file mode 100644 index 0000000000..e69de29bb2 diff --git a/src/cfnlint/data/schemas/other/rules/configuration.json b/src/cfnlint/data/schemas/other/rules/configuration.json new file mode 100644 index 000...
diff --git a/test/integration/test_schema_files.py b/test/integration/test_schema_files.py index e3c097daa0..57e14d3ddf 100644 --- a/test/integration/test_schema_files.py +++ b/test/integration/test_schema_files.py @@ -52,6 +52,9 @@ class TestSchemaFiles(TestCase): "Resources/*/Type", "Resources/*/Upd...
diff --git a/src/cfnlint/data/schemas/other/rules/configuration.json b/src/cfnlint/data/schemas/other/rules/configuration.json new file mode 100644 index 0000000000..9f26a54d3e --- /dev/null +++ b/src/cfnlint/data/schemas/other/rules/configuration.json @@ -0,0 +1,35 @@ +{ + "additionalProperties": false, + "definitions...
[ { "components": [ { "doc": "", "lines": [ 15, 41 ], "name": "Assert", "signature": "class Assert(CfnLintJsonSchema):", "type": "class" }, { "doc": "", "lines": [ 22, 25 ], "n...
[ "test/unit/rules/rules/test_assert.py::test_validate[boolean", "test/unit/rules/rules/test_assert.py::test_validate[wrong", "test/unit/rules/rules/test_assert.py::test_validate[functions", "test/unit/rules/rules/test_configuration.py::test_validate[Empty", "test/unit/rules/rules/test_configuration.py::test_...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add rules for Rules section *Issue #, if available:* #3630 *Description of changes:* - Add rules for Rules section By submitting this pull request, I confirm that you can use, modify, copy, a...
4b214774e419d871b7b498fb5256e2ed09393795
google-deepmind__optax-1063
1,063
google-deepmind/optax
null
ee63e4500fbd412d778a1ea143237007e45a5628
2024-09-17T21:50:23Z
diff --git a/docs/api/utilities.rst b/docs/api/utilities.rst index b199697f6..c792944fd 100644 --- a/docs/api/utilities.rst +++ b/docs/api/utilities.rst @@ -101,6 +101,7 @@ Tree tree_mul tree_ones_like tree_random_like + tree_split_key_like tree_scalar_mul tree_set tree_sub @@ -153,6 +1...
diff --git a/optax/tree_utils/_random_test.py b/optax/tree_utils/_random_test.py index 25ea580aa..077ca678a 100644 --- a/optax/tree_utils/_random_test.py +++ b/optax/tree_utils/_random_test.py @@ -22,6 +22,7 @@ import jax.numpy as jnp import jax.random as jrd import jax.tree_util as jtu +import numpy as np from opt...
diff --git a/docs/api/utilities.rst b/docs/api/utilities.rst index b199697f6..c792944fd 100644 --- a/docs/api/utilities.rst +++ b/docs/api/utilities.rst @@ -101,6 +101,7 @@ Tree tree_mul tree_ones_like tree_random_like + tree_split_key_like tree_scalar_mul tree_set tree_sub @@ -153,6 +1...
[ { "components": [ { "doc": "Split keys to match structure of target tree.\n\nArgs:\n rng_key: the key to split.\n target_tree: the tree whose structure to match.\n\nReturns:\n a tree of rng keys.", "lines": [ 24, 38 ], "name": "tree_split_key_like", ...
[ "optax/tree_utils/_random_test.py::RandomTest::test_tree_split_key_like" ]
[ "optax/tree_utils/_random_test.py::RandomTest::test_tree_random_like0", "optax/tree_utils/_random_test.py::RandomTest::test_tree_random_like1", "optax/tree_utils/_random_test.py::RandomTest::test_tree_random_like10", "optax/tree_utils/_random_test.py::RandomTest::test_tree_random_like11", "optax/tree_utils/...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add optax.tree_utils.tree_random_split. This exposes the formerly private function `_tree_rng_keys_split` in [`optax/tree_utils/_random.py`](https://github.com/google-deepmind/optax/blob/main/optax/tr...
1e08bccf195ac54e7d9d766eb5e69345bf0e3230
lark-parser__lark-1467
1,467
lark-parser/lark
null
5faea9223cc54d1dbd0985cf830d05a10a7729ec
2024-09-11T20:10:22Z
diff --git a/.gitignore b/.gitignore index 26275e4b..d4e64180 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,7 @@ *.pyc *.pyo /.tox +/lark.egg-info/** /lark_parser.egg-info/** tags .vscode diff --git a/lark/tree.py b/lark/tree.py index 76f8738e..9dccadd7 100644 --- a/lark/tree.py +++ b/lark/tree.py @@ -3,8 +...
diff --git a/tests/test_trees.py b/tests/test_trees.py index 1f69869e..55fdae91 100644 --- a/tests/test_trees.py +++ b/tests/test_trees.py @@ -17,6 +17,11 @@ class TestTrees(TestCase): def setUp(self): self.tree1 = Tree('a', [Tree(x, y) for x, y in zip('bcd', 'xyz')]) + self.tree2 = Tree('a', [ + ...
diff --git a/.gitignore b/.gitignore index 26275e4b..d4e64180 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,7 @@ *.pyc *.pyo /.tox +/lark.egg-info/** /lark_parser.egg-info/** tags .vscode
[ { "components": [ { "doc": "Returns all tokens whose type equals the given token_type.\n\nThis is a recursive function that will find tokens in all the subtrees.\n\nExample:\n >>> term_tokens = tree.find_token('TERM')", "lines": [ 176, 184 ], "name": ...
[ "tests/test_trees.py::TestTrees::test_find_token" ]
[ "tests/test_trees.py::TestTrees::test_copy", "tests/test_trees.py::TestTrees::test_deepcopy", "tests/test_trees.py::TestTrees::test_discard", "tests/test_trees.py::TestTrees::test_eq", "tests/test_trees.py::TestTrees::test_inline_static", "tests/test_trees.py::TestTrees::test_interp", "tests/test_trees....
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add Tree.find_token() method Resolves #1466. ---------- </request> There are several new functions or classes that need to be implemented, using the definitions below: <<NEW DEFINITIONS>> There are...
Here is the discussion in the issues of the pull request. <issues> Syntactic sugar: Tree.find_token() **Suggestion** Add new method `Tree.find_type(typ: str) -> Iterator[Token]` as a companion for `Tree.find_data()`: ```python for term in tree.find_type('TERM'): ... ``` **Describe alternatives you've consid...
5faea9223cc54d1dbd0985cf830d05a10a7729ec
EleutherAI__lm-evaluation-harness-2288
2,288
EleutherAI/lm-evaluation-harness
null
decc533d02222f3b866d9a89263277fe0cc2fcb2
2024-09-10T11:06:39Z
diff --git a/lm_eval/tasks/__init__.py b/lm_eval/tasks/__init__.py index 7eeec8bbc60..6669a35b9b6 100644 --- a/lm_eval/tasks/__init__.py +++ b/lm_eval/tasks/__init__.py @@ -40,7 +40,11 @@ def __init__( [x for x in self._all_tasks if self._task_index[x]["type"] == "group"] ) self._all_subt...
diff --git a/tests/test_task_manager.py b/tests/test_task_manager.py new file mode 100644 index 00000000000..1b10d3291a0 --- /dev/null +++ b/tests/test_task_manager.py @@ -0,0 +1,73 @@ +import tempfile +from pathlib import Path + +import pytest + +from lm_eval.tasks import TaskManager + + +@pytest.fixture(scope="module...
[ { "components": [ { "doc": "", "lines": [ 444, 478 ], "name": "TaskManager._get_task_and_group._populate_tags_and_groups", "signature": "def _populate_tags_and_groups(config, task, tasks_and_groups, print_info):", "type": "function" ...
[ "tests/test_task_manager.py::test_python_task_inclusion" ]
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Treat tags in python tasks the same as yaml tasks Following https://github.com/EleutherAI/lm-evaluation-harness/issues/2268 , I would like python tasks (ie, tasks defined by a `class: !function my.cla...
Here is the discussion in the issues of the pull request. <issues> Tasks of type `python_task` are not listed in `lm-eval --tasks list` ## Problem Description When calling `TaskManager._initialize_tasks` I noticed that tasks which are managed by their own python class enter the `_task_index` with `type="python_task"`:...
decc533d02222f3b866d9a89263277fe0cc2fcb2
tobymao__sqlglot-4099
4,099
tobymao/sqlglot
null
296104950f2e679aea37810a48eb490e170518d3
2024-09-10T03:37:50Z
diff --git a/sqlglot/dialects/athena.py b/sqlglot/dialects/athena.py index 513f309fc9..40bbe7e6ea 100644 --- a/sqlglot/dialects/athena.py +++ b/sqlglot/dialects/athena.py @@ -1,31 +1,88 @@ from __future__ import annotations +import typing as t + from sqlglot import exp from sqlglot.dialects.trino import Trino +fro...
diff --git a/tests/dialects/test_athena.py b/tests/dialects/test_athena.py index 6ec870be05..bf5491418d 100644 --- a/tests/dialects/test_athena.py +++ b/tests/dialects/test_athena.py @@ -24,16 +24,67 @@ def test_athena(self): check_command_warning=True, ) + self.validate_identity( + ...
[ { "components": [ { "doc": "", "lines": [ 11, 26 ], "name": "_generate_as_hive", "signature": "def _generate_as_hive(expression: exp.Expression) -> bool:", "type": "function" }, { "doc": "", "lines": [ ...
[ "tests/dialects/test_athena.py::TestAthena::test_ddl", "tests/dialects/test_athena.py::TestAthena::test_ddl_quoting", "tests/dialects/test_athena.py::TestAthena::test_dml_quoting" ]
[ "tests/dialects/test_athena.py::TestAthena::test_athena" ]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Feat(athena): Improve DDL query support Athena is really a split between two different engines. One handles _most_ DDL (Hive) and the other handles the remaining DDL and all of the DML (Trino). Sin...
ceb42fabad60312699e4b15936aeebac00e22e4d
tobymao__sqlglot-4089
4,089
tobymao/sqlglot
null
6294f9e6d08111c6088f5ed9846e7a64f7724801
2024-09-09T12:45:33Z
diff --git a/sqlglot/dialects/bigquery.py b/sqlglot/dialects/bigquery.py index 4c6747d161..883ee66579 100644 --- a/sqlglot/dialects/bigquery.py +++ b/sqlglot/dialects/bigquery.py @@ -724,6 +724,7 @@ class Generator(generator.Generator): exp.Unhex: rename_func("FROM_HEX"), exp.UnixDate: rename_...
diff --git a/tests/dialects/test_dialect.py b/tests/dialects/test_dialect.py index f0faccb47e..9ae447b83b 100644 --- a/tests/dialects/test_dialect.py +++ b/tests/dialects/test_dialect.py @@ -2853,3 +2853,34 @@ def test_trim(self): "bigquery": "RTRIM('Hello World', 'd')", }, ) + + ...
[ { "components": [ { "doc": "", "lines": [ 6220, 6223 ], "name": "Uuid", "signature": "class Uuid(Func):", "type": "class" } ], "file": "sqlglot/expressions.py" } ]
[ "tests/dialects/test_dialect.py::TestDialect::test_uuid", "tests/dialects/test_snowflake.py::TestSnowflake::test_snowflake" ]
[ "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: Add support for UUID function This PR introduces `exp.Uuid()` to support the UUID generation function across most main DW. Docs -------- [Presto](https://prestodb.io/docs/current/function...
ceb42fabad60312699e4b15936aeebac00e22e4d
tobymao__sqlglot-4084
4,084
tobymao/sqlglot
null
dbb1ddef53e76ee51a1cf6a24a1de854a69c6093
2024-09-07T18:28:31Z
diff --git a/sqlglot/__init__.py b/sqlglot/__init__.py index e272b9f1c5..f3e97f01b1 100644 --- a/sqlglot/__init__.py +++ b/sqlglot/__init__.py @@ -32,6 +32,7 @@ func as func, intersect as intersect, maybe_parse as maybe_parse, + merge as merge, not_ as not_, or_ as or_, select as select...
diff --git a/tests/test_build.py b/tests/test_build.py index e074fea119..d169530461 100644 --- a/tests/test_build.py +++ b/tests/test_build.py @@ -731,6 +731,36 @@ def test_build(self): lambda: exp.rename_column("table1", "c1", "c2"), "ALTER TABLE table1 RENAME COLUMN c1 TO c2", ...
[ { "components": [ { "doc": "Builds a MERGE statement.\n\nExample:\n >>> merge(\"WHEN MATCHED THEN UPDATE SET col1 = source_table.col1\",\n ... \"WHEN NOT MATCHED THEN INSERT (col1) VALUES (source_table.col1)\",\n ... into=\"my_table\",\n ... using=\"source_table\",\n ...
[ "tests/test_build.py::TestBuild::test_build" ]
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Feat: add merge expression builder I have a use-case around building merge statements similar to variety of other types of expressions that sqlglot can programmatically build. This PR adds a simple `m...
ceb42fabad60312699e4b15936aeebac00e22e4d
deepset-ai__haystack-8336
8,336
deepset-ai/haystack
null
5514676b5ecea45c5b93da75bfa271059f89197d
2024-09-05T20:21:06Z
diff --git a/haystack/components/preprocessors/document_splitter.py b/haystack/components/preprocessors/document_splitter.py index c0c39ea82f..556878a965 100644 --- a/haystack/components/preprocessors/document_splitter.py +++ b/haystack/components/preprocessors/document_splitter.py @@ -3,11 +3,13 @@ # SPDX-License-Ide...
diff --git a/test/components/preprocessors/test_document_splitter.py b/test/components/preprocessors/test_document_splitter.py index d9fa85f005..7c942ab4cc 100644 --- a/test/components/preprocessors/test_document_splitter.py +++ b/test/components/preprocessors/test_document_splitter.py @@ -1,10 +1,18 @@ # SPDX-FileCop...
diff --git a/releasenotes/notes/feat-documentsplitter-add-split-by-function-77501f439b63bb49.yaml b/releasenotes/notes/feat-documentsplitter-add-split-by-function-77501f439b63bb49.yaml new file mode 100644 index 0000000000..e8b170442a --- /dev/null +++ b/releasenotes/notes/feat-documentsplitter-add-split-by-function-77...
[ { "components": [ { "doc": "Serializes the component to a dictionary.", "lines": [ 249, 262 ], "name": "DocumentSplitter.to_dict", "signature": "def to_dict(self) -> Dict[str, Any]:", "type": "function" }, { "doc": "De...
[ "test/components/preprocessors/test_document_splitter.py::TestDocumentSplitter::test_split_by_function", "test/components/preprocessors/test_document_splitter.py::TestDocumentSplitter::test_to_dict", "test/components/preprocessors/test_document_splitter.py::TestDocumentSplitter::test_to_dict_with_splitting_func...
[ "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 : DocumentSplitter, adding the option to split_by function ### Proposed Changes: Adding the possibility to pass a function and personalise the way in which DocumentSplitter defines a unit. ...
f4d9c2bb917be0ffe132dffcc2ad4f1b0fcc5967
aws-cloudformation__cfn-lint-3657
3,657
aws-cloudformation/cfn-lint
null
31d403612ebfc36fea0e9e017e42595f9dac60e6
2024-09-04T17:17:21Z
diff --git a/src/cfnlint/data/schemas/extensions/aws_ec2_instance/privateipaddress.json b/src/cfnlint/data/schemas/extensions/aws_ec2_instance/privateipaddress.json new file mode 100644 index 0000000000..c115d4a5a4 --- /dev/null +++ b/src/cfnlint/data/schemas/extensions/aws_ec2_instance/privateipaddress.json @@ -0,0 +1...
diff --git a/test/unit/rules/resources/ec2/test_private_ip_with_network_interafce.py b/test/unit/rules/resources/ec2/test_private_ip_with_network_interafce.py new file mode 100644 index 0000000000..33acf75056 --- /dev/null +++ b/test/unit/rules/resources/ec2/test_private_ip_with_network_interafce.py @@ -0,0 +1,119 @@ +...
diff --git a/src/cfnlint/data/schemas/extensions/aws_ec2_instance/privateipaddress.json b/src/cfnlint/data/schemas/extensions/aws_ec2_instance/privateipaddress.json new file mode 100644 index 0000000000..c115d4a5a4 --- /dev/null +++ b/src/cfnlint/data/schemas/extensions/aws_ec2_instance/privateipaddress.json @@ -0,0 +1...
[ { "components": [ { "doc": "", "lines": [ 15, 33 ], "name": "PrivateIpWithNetworkInterface", "signature": "class PrivateIpWithNetworkInterface(CfnLintJsonSchema):", "type": "class" }, { "doc": "", "lines": [ ...
[ "test/unit/rules/resources/ec2/test_private_ip_with_network_interafce.py::test_validate[Valid", "test/unit/rules/resources/ec2/test_private_ip_with_network_interafce.py::test_validate[Invalid" ]
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add rule E3674 to validate instance PrivateIpAddress *Issue #, if available:* *Description of changes:* - Add rule E3674 to validate instance PrivateIpAddress By submitting this pull request, I...
4b214774e419d871b7b498fb5256e2ed09393795
tobymao__sqlglot-4041
4,041
tobymao/sqlglot
null
551d32fdebfc78506b77e4f6e6882d2a8cbd457c
2024-09-03T08:38:35Z
diff --git a/sqlglot/expressions.py b/sqlglot/expressions.py index d905a2ba85..2aa92cabf8 100644 --- a/sqlglot/expressions.py +++ b/sqlglot/expressions.py @@ -5850,6 +5850,10 @@ class Nvl2(Func): arg_types = {"this": True, "true": True, "false": False} +class Normalize(Func): + arg_types = {"this": True, "f...
diff --git a/tests/dialects/test_dialect.py b/tests/dialects/test_dialect.py index 7d2eb56fcc..9ed8bc4caf 100644 --- a/tests/dialects/test_dialect.py +++ b/tests/dialects/test_dialect.py @@ -2760,3 +2760,22 @@ def test_set_operation_specifiers(self): "tsql": UnsupportedError, }, )...
[ { "components": [ { "doc": "", "lines": [ 5854, 5855 ], "name": "Normalize", "signature": "class Normalize(Func):", "type": "class" } ], "file": "sqlglot/expressions.py" }, { "components": [ { "doc": ""...
[ "tests/dialects/test_dialect.py::TestDialect::test_normalize" ]
[ "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 NORMALIZE() function Fixes #4037 Parse `NORMALIZE(text[, form])` into the new `exp.Normalize` node. This function signature exists in BigQuery, Trino and Presto from my research; Othe...
Here is the discussion in the issues of the pull request. <issues> BigQuery "normalization mode" constants are not recognized The BigQuery function `NORMALIZE` takes an optional second argument to specify the normalization mode ([bigquery docs for this function](https://cloud.google.com/bigquery/docs/reference/standard...
ceb42fabad60312699e4b15936aeebac00e22e4d
tobymao__sqlglot-4032
4,032
tobymao/sqlglot
null
1d1e59739f240b9a78858a216c049f1d13f7665f
2024-09-02T12:19:46Z
diff --git a/sqlglot/dialects/dialect.py b/sqlglot/dialects/dialect.py index 294a329ff8..669a4b7643 100644 --- a/sqlglot/dialects/dialect.py +++ b/sqlglot/dialects/dialect.py @@ -391,6 +391,9 @@ class Dialect(metaclass=_Dialect): STRICT_JSON_PATH_SYNTAX = True """Whether failing to parse a JSON path expressio...
diff --git a/tests/dialects/test_oracle.py b/tests/dialects/test_oracle.py index dbcff13278..b4d4e2e9e9 100644 --- a/tests/dialects/test_oracle.py +++ b/tests/dialects/test_oracle.py @@ -537,3 +537,17 @@ def test_multitable_inserts(self): "WHEN salary > 6000 THEN INTO emp4 " "SELECT salary FRO...
[ { "components": [ { "doc": "", "lines": [ 231, 240 ], "name": "Oracle.Parser._parse_json_exists", "signature": "def _parse_json_exists(self) -> exp.JSONExists:", "type": "function" } ], "file": "sqlglot/dialects/oracle.py" ...
[ "tests/dialects/test_oracle.py::TestOracle::test_json_functions" ]
[ "tests/dialects/test_oracle.py::TestOracle::test_connect_by", "tests/dialects/test_oracle.py::TestOracle::test_hints", "tests/dialects/test_oracle.py::TestOracle::test_join_marker", "tests/dialects/test_oracle.py::TestOracle::test_json_table", "tests/dialects/test_oracle.py::TestOracle::test_match_recognize...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> feat(oracle)!: Support JSON_EXISTS, refactor ON handling Fixes #4026 This PR: - Adds support for Oracles `JSON_EXIST` through the new AST node `exp.JSONExists` - Refactors https://github.com/toby...
Here is the discussion in the issues of the pull request. <issues> Missing Support for JSON EXISTS in ORACLE **Description** I'm encountering an issue with the Oracle dialect in SQLGlot where it fails to parse queries containing JSON conditions like JSON_EXISTS. The expected behavior is to convert the Oracle query to ...
ceb42fabad60312699e4b15936aeebac00e22e4d
scikit-learn__scikit-learn-29738
29,738
scikit-learn/scikit-learn
1.6
a5ea01c838aef012d54c5859a251a954105a5015
2024-08-29T11:50:54Z
diff --git a/doc/whats_new/v1.6.rst b/doc/whats_new/v1.6.rst index d4d373e9bf280..6bb6eab32464e 100644 --- a/doc/whats_new/v1.6.rst +++ b/doc/whats_new/v1.6.rst @@ -271,6 +271,10 @@ Changelog :pr:`29210` by :user:`Marc Torrellas Socastro <marctorsoc>` and :user:`Stefanie Senger <StefanieSenger>`. +- |Efficiency...
diff --git a/sklearn/utils/tests/test_unique.py b/sklearn/utils/tests/test_unique.py new file mode 100644 index 0000000000000..daa6918b49cda --- /dev/null +++ b/sklearn/utils/tests/test_unique.py @@ -0,0 +1,54 @@ +import numpy as np +from numpy.testing import assert_array_equal + +from sklearn.utils._unique import atta...
diff --git a/doc/whats_new/v1.6.rst b/doc/whats_new/v1.6.rst index d4d373e9bf280..6bb6eab32464e 100644 --- a/doc/whats_new/v1.6.rst +++ b/doc/whats_new/v1.6.rst @@ -271,6 +271,10 @@ Changelog :pr:`29210` by :user:`Marc Torrellas Socastro <marctorsoc>` and :user:`Stefanie Senger <StefanieSenger>`. +- |Efficiency...
[ { "components": [ { "doc": "Attach unique values of y to y and return the result.\n\nThe result is a view of y, and the metadata (unique) is not attached to y.", "lines": [ 9, 25 ], "name": "_attach_unique", "signature": "def _attach_unique(y):",...
[ "sklearn/utils/tests/test_unique.py::test_attach_unique_attaches_unique_to_array", "sklearn/utils/tests/test_unique.py::test_cached_unique_returns_cached_unique", "sklearn/utils/tests/test_unique.py::test_attach_unique_not_ndarray", "sklearn/utils/tests/test_unique.py::test_attach_unique_returns_view", "skl...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> PERF speedup classification_report by attaching unique values to dtype.metadata Fixes #26808 Closes #26820 This is alternative to https://github.com/scikit-learn/scikit-learn/pull/26820 where we ...
Here is the discussion in the issues of the pull request. <issues> Speed up classification_report ### Describe the workflow you want to enable I'm concerned with slow execution speed of the classification_report procedure which makes it barely suitable for production-grade workloads. On a 8M sample it already take...
18dc8630a7cbe1b591c12774949058b12157a39a
tobymao__sqlglot-4000
4,000
tobymao/sqlglot
null
fcaae87d50653600048917945652cdf463bcc3cf
2024-08-29T09:17:05Z
diff --git a/sqlglot/expressions.py b/sqlglot/expressions.py index dd00221b3d..1b52bcb1d1 100644 --- a/sqlglot/expressions.py +++ b/sqlglot/expressions.py @@ -2212,6 +2212,14 @@ def with_( ) +class ConditionalInsert(Expression): + arg_types = {"this": True, "expression": False, "else_": False} + + +clas...
diff --git a/tests/dialects/test_oracle.py b/tests/dialects/test_oracle.py index 77f46e4adb..dbcff13278 100644 --- a/tests/dialects/test_oracle.py +++ b/tests/dialects/test_oracle.py @@ -461,3 +461,79 @@ def test_query_restrictions(self): self.validate_identity( f"CREATE VI...
[ { "components": [ { "doc": "", "lines": [ 2215, 2216 ], "name": "ConditionalInsert", "signature": "class ConditionalInsert(Expression):", "type": "class" }, { "doc": "", "lines": [ 2219, 222...
[ "tests/dialects/test_oracle.py::TestOracle::test_multitable_inserts" ]
[ "tests/dialects/test_oracle.py::TestOracle::test_connect_by", "tests/dialects/test_oracle.py::TestOracle::test_hints", "tests/dialects/test_oracle.py::TestOracle::test_join_marker", "tests/dialects/test_oracle.py::TestOracle::test_json_table", "tests/dialects/test_oracle.py::TestOracle::test_match_recognize...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> feat(oracle): Parse multitable inserts Adds support for parsing multitable insert statements in Oracle SQL. Test cases are converted from the official example SQL queries. Ref: https://oracle-base....
ceb42fabad60312699e4b15936aeebac00e22e4d
Textualize__textual-4950
4,950
Textualize/textual
null
75d71f5eb41ac95a10e6523733b478302cb1d0f7
2024-08-28T13:46:29Z
diff --git a/CHANGELOG.md b/CHANGELOG.md index b67fb2d3cb..c7eaa07440 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,10 +10,13 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ### Added - Added `DOMNode.check_consume_key` https://github.com/Textualize/textual/pull/4940 +- Added `DOMNod...
diff --git a/tests/test_query.py b/tests/test_query.py index 07f608824a..4030003866 100644 --- a/tests/test_query.py +++ b/tests/test_query.py @@ -103,7 +103,7 @@ class App(Widget): assert app.query_one("#widget1") == widget1 assert app.query_one("#widget1", Widget) == widget1 with pytest.rai...
diff --git a/CHANGELOG.md b/CHANGELOG.md index b67fb2d3cb..c7eaa07440 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,10 +10,13 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ### Added - Added `DOMNode.check_consume_key` https://github.com/Textualize/textual/pull/4940 +- Added `DOMNod...
[ { "components": [ { "doc": "Mark the nodes as having been updated.", "lines": [ 57, 62 ], "name": "NodeList.updated", "signature": "def updated(self) -> None:", "type": "function" } ], "file": "src/textual/_node_list.py" }...
[ "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> Faster query_one A faster `query_one`. - Exit when a match is found, without iterating the full DOM - Caches simple queries (containing just IDs or types) - Optimizes `get_widget_by_id` by going ...
86e93536b991014e0ea4bf993068202b446bb698
tobymao__sqlglot-3991
3,991
tobymao/sqlglot
null
f5bfd67341518d0ecb1c3693e0b41ed5c1cf0596
2024-08-28T13:44:49Z
diff --git a/sqlglot/dialects/hive.py b/sqlglot/dialects/hive.py index 990991357e..d428db71ba 100644 --- a/sqlglot/dialects/hive.py +++ b/sqlglot/dialects/hive.py @@ -436,6 +436,14 @@ def _parse_parameter(self) -> exp.Parameter: self._match(TokenType.R_BRACE) return self.expression(exp.Paramet...
diff --git a/tests/dialects/test_presto.py b/tests/dialects/test_presto.py index 950c89f82d..173d16eb80 100644 --- a/tests/dialects/test_presto.py +++ b/tests/dialects/test_presto.py @@ -715,9 +715,6 @@ def test_presto(self): ) self.validate_all( "SELECT ROW(1, 2)", - read={ - ...
[ { "components": [ { "doc": "", "lines": [ 439, 445 ], "name": "Hive.Parser._to_prop_eq", "signature": "def _to_prop_eq(self, expression: exp.Expression, index: int) -> exp.Expression:", "type": "function" } ], "file": "sqlgl...
[ "tests/dialects/test_spark.py::TestSpark::test_spark" ]
[ "tests/dialects/test_presto.py::TestPresto::test_cast", "tests/dialects/test_presto.py::TestPresto::test_ddl", "tests/dialects/test_presto.py::TestPresto::test_encode_decode", "tests/dialects/test_presto.py::TestPresto::test_hex_unhex", "tests/dialects/test_presto.py::TestPresto::test_interval_plural_to_sin...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> feat(spark): Default naming of STRUCT fields Fixes #3988 In Spark, STRUCT values/fields that are not explicitly named by the user are default initialized to: - The column name itself, if the expre...
Here is the discussion in the issues of the pull request. <issues> Incorrect Parsing Between Spark SQL and DuckDB **Fully reproducible code snippet** ```python from sqlglot import parse_one spark_query = "SELECT struct(col1, col2 as col3) FROM table" parse_one(spark_query, dialect="spark").sql(dialect="duckdb") ``...
ceb42fabad60312699e4b15936aeebac00e22e4d
tobymao__sqlglot-3987
3,987
tobymao/sqlglot
null
2f3626a4fc20c46411cd91bf8beda2bdd103ca4a
2024-08-28T09:40:03Z
diff --git a/sqlglot/dialects/mysql.py b/sqlglot/dialects/mysql.py index c3826d2ed2..d7a2d926fd 100644 --- a/sqlglot/dialects/mysql.py +++ b/sqlglot/dialects/mysql.py @@ -335,6 +335,7 @@ class Parser(parser.Parser): "VALUES": lambda self: self.expression( exp.Anonymous, this="VALUES", expr...
diff --git a/tests/dialects/test_mysql.py b/tests/dialects/test_mysql.py index 059b459f64..45b79bf62e 100644 --- a/tests/dialects/test_mysql.py +++ b/tests/dialects/test_mysql.py @@ -1251,3 +1251,15 @@ def test_at_time_zone(self): write_sql="SELECT foo", ) assert "AT TIME ZONE...
[ { "components": [ { "doc": "", "lines": [ 668, 692 ], "name": "MySQL.Parser._parse_json_value", "signature": "def _parse_json_value(self) -> exp.JSONValue:", "type": "function" }, { "doc": "", "lines": [ ...
[ "tests/dialects/test_mysql.py::TestMySQL::test_json_value" ]
[ "tests/dialects/test_mysql.py::TestMySQL::test_at_time_zone", "tests/dialects/test_mysql.py::TestMySQL::test_bits_literal", "tests/dialects/test_mysql.py::TestMySQL::test_canonical_functions", "tests/dialects/test_mysql.py::TestMySQL::test_convert", "tests/dialects/test_mysql.py::TestMySQL::test_date_format...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> feat(mysql): Parse JSON_VALUE() Fixes #3983 Docs ------- [MySQL JSON_VALUE()](https://dev.mysql.com/doc/refman/8.4/en/json-search-functions.html#function_json-value) ---------- </request> The...
Here is the discussion in the issues of the pull request. <issues> Missing Support for JSON Path Syntax in MySQL Dialect ### Description: SQLGlot MySQL dialect does not support JSON path syntax functions like JSON_VALUE, resulting in a parse failure when attempting to convert a MySQL query to an Abstract Syntax Tree (...
ceb42fabad60312699e4b15936aeebac00e22e4d
conan-io__conan-16871
16,871
conan-io/conan
null
d99c7149ff64c2dd98b5d9752f5308f8ffd70474
2024-08-25T21:10:13Z
diff --git a/conans/client/graph/build_mode.py b/conans/client/graph/build_mode.py index f7a3cd61f81..8efbd99da3b 100644 --- a/conans/client/graph/build_mode.py +++ b/conans/client/graph/build_mode.py @@ -16,6 +16,8 @@ def __init__(self, params): self.patterns = [] self.build_missing_patterns = [] ...
diff --git a/test/integration/package_id/compatible_test.py b/test/integration/package_id/compatible_test.py index 5e27f7816f6..b7719e41711 100644 --- a/test/integration/package_id/compatible_test.py +++ b/test/integration/package_id/compatible_test.py @@ -448,3 +448,173 @@ def test_compatibility_msvc_and_cppstd(self):...
[ { "components": [ { "doc": "", "lines": [ 104, 113 ], "name": "BuildMode.allowed_compatible", "signature": "def allowed_compatible(self, conanfile):", "type": "function" } ], "file": "conans/client/graph/build_mode.py" }, ...
[ "test/integration/package_id/compatible_test.py::TestCompatibleBuild::test_build_compatible", "test/integration/package_id/compatible_test.py::TestCompatibleBuild::test_build_compatible_cant_build", "test/integration/package_id/compatible_test.py::TestCompatibleBuild::test_build_compatible_cant_build2", "test...
[ "test/integration/package_id/compatible_test.py::CompatibleIDsTest::test_build_missing", "test/integration/package_id/compatible_test.py::CompatibleIDsTest::test_compatible_diamond", "test/integration/package_id/compatible_test.py::CompatibleIDsTest::test_compatible_lockfile", "test/integration/package_id/com...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Feature/build compatibles Changelog: Feature: Allow building a compatible package still of the current profile one. Docs: Omit Lets keep this not documented at the moment, as there is a gap in ``c...
4a5b19a75db9225316c8cb022a2dfb9705a2af34
googleapis__python-aiplatform-4289
4,289
googleapis/python-aiplatform
null
3d687777d39b00280c22d2a14ddde3ba644febf7
2024-08-23T17:05:14Z
diff --git a/samples/model-builder/vector_search/vector_search_create_index_sample.py b/samples/model-builder/vector_search/vector_search_create_index_sample.py index 6a2313cd2a..f8de23ef55 100644 --- a/samples/model-builder/vector_search/vector_search_create_index_sample.py +++ b/samples/model-builder/vector_search/ve...
diff --git a/samples/model-builder/vector_search/vector_search_create_index_sample_test.py b/samples/model-builder/vector_search/vector_search_create_index_sample_test.py index 32cef3ced9..e0f37f8934 100644 --- a/samples/model-builder/vector_search/vector_search_create_index_sample_test.py +++ b/samples/model-builder/v...
[ { "components": [ { "doc": "Create a vector search index.\n\nArgs:\n project (str): Required. Project ID\n location (str): Required. The region name\n display_name (str): Required. The index display name\n gcs_uri (str): Optional. The Google Cloud Storage uri for index content", ...
[ "samples/model-builder/vector_search/vector_search_create_index_sample_test.py::test_vector_search_create_streaming_index_sample" ]
[ "samples/model-builder/vector_search/vector_search_create_index_sample_test.py::test_vector_search_create_index_sample" ]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> docs(samples): adding code sample for vector search create streaming index docs(samples): adding code sample for vector search create streaming index ---------- </request> There are several new fun...
67358fa6a830eb842f6b52d09061af4a41b54af6
deepset-ai__haystack-8279
8,279
deepset-ai/haystack
null
3163fbb8353bc3bf19a4c5a042a66dec78c57601
2024-08-23T12:05:26Z
diff --git a/haystack/core/component/component.py b/haystack/core/component/component.py index 12e3643c1e..e5036554ff 100644 --- a/haystack/core/component/component.py +++ b/haystack/core/component/component.py @@ -77,7 +77,7 @@ from copy import deepcopy from dataclasses import dataclass from types import new_class ...
diff --git a/test/core/component/test_component.py b/test/core/component/test_component.py index 42d2cdb1a0..c81fbf8ae1 100644 --- a/test/core/component/test_component.py +++ b/test/core/component/test_component.py @@ -31,6 +31,33 @@ def run(self, input_value: int): # Verifies also instantiation works with no issu...
diff --git a/releasenotes/notes/async-component-support-machinery-6ea4496241aeb3b2.yaml b/releasenotes/notes/async-component-support-machinery-6ea4496241aeb3b2.yaml new file mode 100644 index 0000000000..bc4b8f55d0 --- /dev/null +++ b/releasenotes/notes/async-component-support-machinery-6ea4496241aeb3b2.yaml @@ -0,0 +1...
[ { "components": [ { "doc": "Convert positional arguments to keyword arguments based on the signature of the `__init__` method.", "lines": [ 169, 185 ], "name": "ComponentMeta._positional_to_kwargs", "signature": "def _positional_to_kwargs(cls_typ...
[ "test/core/component/test_component.py::test_correct_declaration", "test/core/component/test_component.py::test_correct_declaration_with_async", "test/core/component/test_component.py::test_async_run_not_async", "test/core/component/test_component.py::test_async_run_not_coroutine", "test/core/component/test...
[ "[", "test/core/component/test_component.py::test_correct_declaration_with_additional_readonly_property", "test/core/component/test_component.py::test_correct_declaration_with_additional_writable_property", "test/core/component/test_component.py::test_missing_run", "test/core/component/test_component.py::te...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> feat: Extend core component machinery to support an async run method (experimental) ### Related Issues - related #6012 ### Proposed Changes: <!--- In case of a bug: Describe what caused the...
f4d9c2bb917be0ffe132dffcc2ad4f1b0fcc5967
scikit-learn__scikit-learn-29705
29,705
scikit-learn/scikit-learn
1.6
4c78d7cf2be10f5d711d32c61d2dfded5861daf0
2024-08-23T09:34:36Z
diff --git a/doc/api_reference.py b/doc/api_reference.py index 42be5b161787f..86fa072d3ed25 100644 --- a/doc/api_reference.py +++ b/doc/api_reference.py @@ -460,6 +460,16 @@ def _get_submodule(module_name, submodule_name): }, ], }, + "sklearn.frozen": { + "short_summary": "Frozen es...
diff --git a/sklearn/frozen/tests/__init__.py b/sklearn/frozen/tests/__init__.py new file mode 100644 index 0000000000000..e69de29bb2d1d diff --git a/sklearn/frozen/tests/test_frozen.py b/sklearn/frozen/tests/test_frozen.py new file mode 100644 index 0000000000000..b304d3ac0aa2c --- /dev/null +++ b/sklearn/frozen/tests...
diff --git a/doc/developers/develop.rst b/doc/developers/develop.rst index 606df429340aa..631399f760b5f 100644 --- a/doc/developers/develop.rst +++ b/doc/developers/develop.rst @@ -432,27 +432,8 @@ if ``safe=False`` is passed to ``clone``. Estimators can customize the behavior of :func:`base.clone` by defining a `__s...
[ { "components": [ { "doc": "Check that final_estimator has `attr`.\n\nUsed together with `available_if`.", "lines": [ 13, 24 ], "name": "_estimator_has", "signature": "def _estimator_has(attr):", "type": "function" }, { ...
[ "sklearn/frozen/tests/test_frozen.py::test_frozen_methods[predict-estimator0-regression_dataset]", "sklearn/frozen/tests/test_frozen.py::test_frozen_methods[predict-estimator1-classification_dataset]", "sklearn/frozen/tests/test_frozen.py::test_frozen_methods[predict-estimator2-regression_dataset]", "sklearn/...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> FEA add FrozenEstimator This adds a `FrozenEstimator`, with tests for pipeline as well. I think it'd be nice to have this and extend the tests if we find regressions? ---------- </request> There...
18dc8630a7cbe1b591c12774949058b12157a39a
joke2k__faker-2088
2,088
joke2k/faker
null
278423bae177a422a27e1c69b71b3b446b16d5ec
2024-08-22T19:33:18Z
diff --git a/faker/providers/isbn/__init__.py b/faker/providers/isbn/__init__.py index cad4e81aa0..5f5e0493a8 100644 --- a/faker/providers/isbn/__init__.py +++ b/faker/providers/isbn/__init__.py @@ -1,19 +1,14 @@ from typing import List, Tuple -from faker.providers.isbn.rules import RegistrantRule - from .. import ...
diff --git a/tests/providers/test_isbn.py b/tests/providers/test_isbn.py index 28eb4e0bb8..fda1082d64 100644 --- a/tests/providers/test_isbn.py +++ b/tests/providers/test_isbn.py @@ -2,7 +2,6 @@ from faker.providers.isbn import ISBN10, ISBN13 from faker.providers.isbn.en_US import Provider as ISBNProvider -from fak...
[ { "components": [ { "doc": "", "lines": [ 3, 33 ], "name": "Provider", "signature": "class Provider(ISBNProvider):", "type": "class" } ], "file": "faker/providers/isbn/es_ES/__init__.py" } ]
[ "tests/providers/test_isbn.py::TestProvider::test_reg_pub_separation" ]
[ "tests/providers/test_isbn.py::TestISBN10::test_check_digit_is_correct", "tests/providers/test_isbn.py::TestISBN10::test_format_length", "tests/providers/test_isbn.py::TestISBN13::test_check_digit_is_correct", "tests/providers/test_isbn.py::TestISBN13::test_format_length", "tests/providers/test_isbn.py::Tes...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add es_ES isbn provider ### What does this change Add es_ES isbn provider and refactor the base provider to simplify localized provider creation. ### What was wrong The base provider was not ...
6edfdbf6ae90b0153309e3bf066aa3b2d16494a7
googleapis__python-aiplatform-4276
4,276
googleapis/python-aiplatform
null
efbcb54e0d5df4d65a79e60afdbc5c328538aef6
2024-08-21T21:50:15Z
diff --git a/google/cloud/aiplatform/models.py b/google/cloud/aiplatform/models.py index d3ddc86962..dc8e105ef6 100644 --- a/google/cloud/aiplatform/models.py +++ b/google/cloud/aiplatform/models.py @@ -3666,6 +3666,95 @@ def raw_predict( headers=headers_with_token, ) + def stream_raw...
diff --git a/tests/unit/aiplatform/test_endpoints.py b/tests/unit/aiplatform/test_endpoints.py index a13de3158d..25553d8ad7 100644 --- a/tests/unit/aiplatform/test_endpoints.py +++ b/tests/unit/aiplatform/test_endpoints.py @@ -18,8 +18,8 @@ import copy from datetime import datetime, timedelta from importlib import r...
[ { "components": [ { "doc": "Make a streaming prediction request using arbitrary headers.\n\nExample usage:\n my_endpoint = aiplatform.PrivateEndpoint(ENDPOINT_ID)\n\n # Prepare the request body\n request_body = json.dumps({...}).encode('utf-8')\n\n # Define the headers\n headers = {...
[ "tests/unit/aiplatform/test_endpoints.py::TestPrivateEndpoint::test_psc_stream_raw_predict" ]
[ "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: PrivateEndpoint.stream_raw_predict feat: PrivateEndpoint.stream_raw_predict ---------- </request> There are several new functions or classes that need to be implemented, using the definitions...
67358fa6a830eb842f6b52d09061af4a41b54af6
TileDB-Inc__TileDB-Py-2041
2,041
TileDB-Inc/TileDB-Py
null
cbdc6ed307d03daa2ff0df4c2b176032d7f3fc84
2024-08-20T11:25:36Z
diff --git a/tiledb/query_condition.py b/tiledb/query_condition.py index 5acb47e96d..39e722f242 100644 --- a/tiledb/query_condition.py +++ b/tiledb/query_condition.py @@ -118,7 +118,7 @@ def init_query_condition(self, uri: str, query_attrs: List[str], ctx): if not isinstance(self.c_obj, qc.PyQueryCondition): ...
diff --git a/tiledb/tests/test_query_condition.py b/tiledb/tests/test_query_condition.py index b47f69befc..07549482cc 100644 --- a/tiledb/tests/test_query_condition.py +++ b/tiledb/tests/test_query_condition.py @@ -208,6 +208,13 @@ def test_floats_dense(self): def test_string_sparse(self): with tiledb.o...
[ { "components": [ { "doc": "", "lines": [ 167, 168 ], "name": "QueryConditionTree.visit_Is", "signature": "def visit_Is(self, node):", "type": "function" }, { "doc": "", "lines": [ 170, 171 ...
[ "tiledb/tests/test_query_condition.py::QueryConditionTest::test_string_sparse", "tiledb/tests/test_query_condition.py::QueryConditionTest::test_string_dense", "tiledb/tests/test_query_condition.py::QueryConditionTest::test_not_supported_operators[True-expression_and_message0]", "tiledb/tests/test_query_condit...
[ "tiledb/tests/test_query_condition.py::QueryConditionTest::test_errors[True]", "tiledb/tests/test_query_condition.py::QueryConditionTest::test_errors[False]", "tiledb/tests/test_query_condition.py::QueryConditionTest::test_qc_dense", "tiledb/tests/test_query_condition.py::QueryConditionTest::test_unsigned_spa...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Improve Query Condition error messages to align with TileDB-SOMA-Py Following https://github.com/single-cell-data/TileDB-SOMA/pull/2830, https://github.com/single-cell-data/TileDB-SOMA/pull/2831, and ...
a2f8ccc99c9062455da867a609f0dce6d6d88041
tobymao__sqlglot-3939
3,939
tobymao/sqlglot
null
b824f8a4148ace01750db301daf4a663dc03b580
2024-08-19T20:54:35Z
diff --git a/sqlglot/dialects/clickhouse.py b/sqlglot/dialects/clickhouse.py index 9dc419520b..beda698f86 100644 --- a/sqlglot/dialects/clickhouse.py +++ b/sqlglot/dialects/clickhouse.py @@ -430,6 +430,11 @@ class Parser(parser.Parser): "INDEX", } + PLACEHOLDER_PARSERS = { + **...
diff --git a/tests/dialects/test_clickhouse.py b/tests/dialects/test_clickhouse.py index c314c38db8..636a305521 100644 --- a/tests/dialects/test_clickhouse.py +++ b/tests/dialects/test_clickhouse.py @@ -28,6 +28,7 @@ def test_clickhouse(self): self.assertEqual(expr.sql(dialect="clickhouse"), "COUNT(x)") ...
[ { "components": [ { "doc": "Parse a placeholder expression like SELECT {abc: UInt32} or FROM {table: Identifier}\nhttps://clickhouse.com/docs/en/sql-reference/syntax#defining-and-using-query-parameters", "lines": [ 484, 500 ], "name": "ClickHouse.Parser....
[ "tests/dialects/test_clickhouse.py::TestClickhouse::test_clickhouse" ]
[ "tests/dialects/test_clickhouse.py::TestClickhouse::test_agg_functions", "tests/dialects/test_clickhouse.py::TestClickhouse::test_clickhouse_values", "tests/dialects/test_clickhouse.py::TestClickhouse::test_convert", "tests/dialects/test_clickhouse.py::TestClickhouse::test_cte", "tests/dialects/test_clickho...
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 "@"-style parameters Needed for SQLMesh macros ---------- </request> There are several new functions or classes that need to be implemented, using the definitions b...
ceb42fabad60312699e4b15936aeebac00e22e4d
aws-cloudformation__cfn-lint-3609
3,609
aws-cloudformation/cfn-lint
null
e500fcc9f052ba59e6661fe7f6a1a2b735b97b44
2024-08-16T21:41:03Z
diff --git a/scripts/update_schemas_manually.py b/scripts/update_schemas_manually.py index ee341e9060..28ebb8e7de 100755 --- a/scripts/update_schemas_manually.py +++ b/scripts/update_schemas_manually.py @@ -79,28 +79,12 @@ ), Patch( values={ - ...
diff --git a/test/integration/test_schema_files.py b/test/integration/test_schema_files.py index 8aa44d2e1e..a46e42ec04 100644 --- a/test/integration/test_schema_files.py +++ b/test/integration/test_schema_files.py @@ -43,6 +43,7 @@ class TestSchemaFiles(TestCase): "Resources", "Resources/*", ...
diff --git a/src/cfnlint/data/schemas/patches/extensions/all/aws_autoscaling_autoscalinggroup/manual.json b/src/cfnlint/data/schemas/patches/extensions/all/aws_autoscaling_autoscalinggroup/manual.json index 8400243769..a9f5a7d95d 100644 --- a/src/cfnlint/data/schemas/patches/extensions/all/aws_autoscaling_autoscalinggr...
[ { "components": [ { "doc": "", "lines": [ 14, 102 ], "name": "CreationPolicy", "signature": "class CreationPolicy(CfnLintJsonSchema):", "type": "class" }, { "doc": "", "lines": [ 21, 24 ...
[ "test/unit/rules/resources/test_creationpolicy.py::test_deletion_policy[Correct", "test/unit/rules/resources/test_creationpolicy.py::test_deletion_policy[Bad", "test/unit/rules/resources/test_creationpolicy.py::test_deletion_policy[Valid", "test/unit/rules/resources/test_creationpolicy.py::test_deletion_polic...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Create rule E3055 to validate CreationPolicy *Issue #, if available:* fix #3598 *Description of changes:* - Create rule E3055 to validate CreationPolicy By submitting this pull request, I confi...
Here is the discussion in the issues of the pull request. <issues> AutoScalingGroup CreationPolicy doesnt error ### CloudFormation Lint Version v1.10.1 ### What operating system are you using? windows ### Describe the bug in the example template, i have a reference to ResourceSignalCount. There isnt a parameter fo...
4b214774e419d871b7b498fb5256e2ed09393795
deepset-ai__haystack-8233
8,233
deepset-ai/haystack
null
e31b3edda1c037972f4fbd5af8af6eaa0b72a05e
2024-08-15T00:22:59Z
diff --git a/haystack/components/builders/prompt_builder.py b/haystack/components/builders/prompt_builder.py index ca8fd17284..68b51b20a7 100644 --- a/haystack/components/builders/prompt_builder.py +++ b/haystack/components/builders/prompt_builder.py @@ -8,6 +8,7 @@ from jinja2.sandbox import SandboxedEnvironment f...
diff --git a/test/components/builders/test_prompt_builder.py b/test/components/builders/test_prompt_builder.py index f978596a2a..1c57bd6601 100644 --- a/test/components/builders/test_prompt_builder.py +++ b/test/components/builders/test_prompt_builder.py @@ -4,7 +4,8 @@ from typing import Any, Dict, List, Optional fr...
diff --git a/pyproject.toml b/pyproject.toml index 5f357102a3..2f17e88984 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -57,6 +57,7 @@ dependencies = [ "numpy<2", "python-dateutil", "haystack-experimental", + "arrow>=1.3.0" # Jinja2TimeExtension ] [tool.hatch.envs.default] diff --git a/re...
[ { "components": [ { "doc": "", "lines": [ 12, 91 ], "name": "Jinja2TimeExtension", "signature": "class Jinja2TimeExtension(Extension):", "type": "class" }, { "doc": "Initializes the JinjaTimeExtension object.\n\n:param...
[ "test/components/builders/test_prompt_builder.py::TestPromptBuilder::test_init", "test/components/builders/test_prompt_builder.py::TestPromptBuilder::test_init_with_required_variables", "test/components/builders/test_prompt_builder.py::TestPromptBuilder::test_init_with_custom_variables", "test/components/buil...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> feat: Add current date in UTC to PromptBuilder ### Related Issues - fixes #issue-number ### Proposed Changes: Feature: Added a `utc_now` function in the `PromptBuilder` so the current date ca...
f4d9c2bb917be0ffe132dffcc2ad4f1b0fcc5967
astropy__astropy-16831
16,831
astropy/astropy
v5.3
f72f8664c32f4fb84a15d242c8f516e2fd057fd4
2024-08-14T16:59:16Z
diff --git a/astropy/coordinates/baseframe.py b/astropy/coordinates/baseframe.py index 75b811eca9bd..c05b738d081a 100644 --- a/astropy/coordinates/baseframe.py +++ b/astropy/coordinates/baseframe.py @@ -8,12 +8,14 @@ __all__ = [ "BaseCoordinateFrame", + "CoordinateFrameInfo", "frame_transform_graph", ...
diff --git a/astropy/coordinates/tests/test_frames.py b/astropy/coordinates/tests/test_frames.py index 01589bb07d5d..3858e8435958 100644 --- a/astropy/coordinates/tests/test_frames.py +++ b/astropy/coordinates/tests/test_frames.py @@ -39,6 +39,7 @@ REPRESENTATION_CLASSES, CartesianDifferential, ) +from astro...
diff --git a/docs/changes/coordinates/16831.feature.rst b/docs/changes/coordinates/16831.feature.rst new file mode 100644 index 000000000000..53b2e5739239 --- /dev/null +++ b/docs/changes/coordinates/16831.feature.rst @@ -0,0 +1,5 @@ +``BaseCoordinateFrame`` instances such as ``ICRS``, ``SkyOffsetFrame``, etc., +can no...
[ { "components": [ { "doc": "Container for meta information like name, description, format. This is\nrequired when the object is used as a mixin column within a table, but can\nbe used as a general way to store meta information.", "lines": [ 140, 343 ], ...
[ "astropy/coordinates/tests/test_frames.py::test_insert" ]
[ "astropy/coordinates/tests/test_frames.py::test_frame_attribute_descriptor", "astropy/coordinates/tests/test_frames.py::test_frame_subclass_attribute_descriptor", "astropy/coordinates/tests/test_frames.py::test_frame_multiple_inheritance_attribute_descriptor", "astropy/coordinates/tests/test_frames.py::test_d...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Allow BaseCoordinateFrames to be stored in tables (by giving them .info) This pull request is to address the fact that coordinate frames cannot be written to tables (with or without data). It does thi...
Here is the discussion in the issues of the pull request. <issues> Add Frame objects without data to a Table ### What is the problem this feature will solve? Please make it possible to store Frame objects that do not have data in Astropy tables. I am working on an Astropy-based observation planning and scheduling t...
2d281019494aaebf522f6626c0dae37510c16688
Textualize__textual-4881
4,881
Textualize/textual
null
c1a8f027db61a21d061c2d82bc17c16bc46ea733
2024-08-13T16:15:51Z
diff --git a/src/textual/_binary_encode.py b/src/textual/_binary_encode.py new file mode 100644 index 0000000000..0e42b57484 --- /dev/null +++ b/src/textual/_binary_encode.py @@ -0,0 +1,324 @@ +""" +An encoding / decoding format suitable for serializing data structures to binary. + +This is based on https://en.wikipedi...
diff --git a/tests/test_binary_encode.py b/tests/test_binary_encode.py new file mode 100644 index 0000000000..2f9aaf98d6 --- /dev/null +++ b/tests/test_binary_encode.py @@ -0,0 +1,81 @@ +import pytest + +from textual._binary_encode import DecodeError, dump, load + + +@pytest.mark.parametrize( + "data", + [ + ...
[ { "components": [ { "doc": "A problem decoding data.", "lines": [ 24, 25 ], "name": "DecodeError", "signature": "class DecodeError(Exception):", "type": "class" }, { "doc": "Encodes a data structure in to bytes.\n\nArg...
[ "tests/test_binary_encode.py::test_round_trip[None]", "tests/test_binary_encode.py::test_round_trip[False]", "tests/test_binary_encode.py::test_round_trip[True]", "tests/test_binary_encode.py::test_round_trip[-10]", "tests/test_binary_encode.py::test_round_trip[-1]", "tests/test_binary_encode.py::test_rou...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Binary encode A codec based on [Bencode](https://en.wikipedia.org/wiki/Bencode). This can encode Python objects into binary. Currently floats aren't supported, but they could be. @darrenburn...
86e93536b991014e0ea4bf993068202b446bb698