instance_id
stringlengths
14
45
pull_number
int64
74
29.2k
repo
stringlengths
10
39
version
stringclasses
37 values
base_commit
stringlengths
40
40
created_at
stringdate
2015-03-20 20:39:55
2025-01-02 13:53:18
patch
stringlengths
525
15.9k
test_patch
stringlengths
606
17.8k
non_py_patch
stringlengths
0
7.21k
new_components
listlengths
1
3
FAIL_TO_PASS
listlengths
1
202
PASS_TO_PASS
listlengths
0
910
problem_statement
stringlengths
907
23.2k
hints_text
stringclasses
26 values
environment_setup_commit
stringlengths
40
40
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-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
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
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
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
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
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
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
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
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
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
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
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
deepset-ai__haystack-8103
8,103
deepset-ai/haystack
null
e17d0c41926849975166e70ec46411f402c8098e
2024-07-29T04:06:24Z
diff --git a/haystack/components/preprocessors/document_cleaner.py b/haystack/components/preprocessors/document_cleaner.py index 233dfed50a..282728ea74 100644 --- a/haystack/components/preprocessors/document_cleaner.py +++ b/haystack/components/preprocessors/document_cleaner.py @@ -6,7 +6,8 @@ from copy import deepcop...
diff --git a/test/components/preprocessors/test_document_cleaner.py b/test/components/preprocessors/test_document_cleaner.py index 0acd9e8e8c..9bd5df549e 100644 --- a/test/components/preprocessors/test_document_cleaner.py +++ b/test/components/preprocessors/test_document_cleaner.py @@ -139,3 +139,68 @@ def test_keep_id...
diff --git a/releasenotes/notes/add-unicode-normalization-and-ascii-mode-to-document-cleaner-ba536b46e499663c.yaml b/releasenotes/notes/add-unicode-normalization-and-ascii-mode-to-document-cleaner-ba536b46e499663c.yaml new file mode 100644 index 0000000000..d4d28ee47b --- /dev/null +++ b/releasenotes/notes/add-unicode-...
[ { "components": [ { "doc": "Validate the parameters of the DocumentCleaner.\n\n:param unicode_normalization: Unicode normalization form to apply to the text.\n:raises ValueError: if the parameters are not valid.", "lines": [ 82, 90 ], "name": "DocumentCl...
[ "test/components/preprocessors/test_document_cleaner.py::TestDocumentCleaner::test_unicode_normalization", "test/components/preprocessors/test_document_cleaner.py::TestDocumentCleaner::test_ascii_only" ]
[ "[", "test/components/preprocessors/test_document_cleaner.py::TestDocumentCleaner::test_init", "test/components/preprocessors/test_document_cleaner.py::TestDocumentCleaner::test_non_text_document", "test/components/preprocessors/test_document_cleaner.py::TestDocumentCleaner::test_single_document", "test/com...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> feat: add unicode normalization & ascii_only mode for DocumentCleaner ### Proposed Changes: Added two new parameters to the `DocumentCleaner` Component, `unicode_normalization` and `ascii_only`. ...
f4d9c2bb917be0ffe132dffcc2ad4f1b0fcc5967
deepset-ai__haystack-8042
8,042
deepset-ai/haystack
null
031b0bfbd836f128736220589917a62c43c9c512
2024-07-18T09:14:08Z
diff --git a/haystack/document_stores/types/__init__.py b/haystack/document_stores/types/__init__.py index df2032f79c..ed6becf8b4 100644 --- a/haystack/document_stores/types/__init__.py +++ b/haystack/document_stores/types/__init__.py @@ -2,8 +2,8 @@ # # SPDX-License-Identifier: Apache-2.0 -from .filter_policy impo...
diff --git a/test/document_stores/test_filter_policy.py b/test/document_stores/test_filter_policy.py index b7efcd0672..d775ee356e 100644 --- a/test/document_stores/test_filter_policy.py +++ b/test/document_stores/test_filter_policy.py @@ -3,43 +3,178 @@ # SPDX-License-Identifier: Apache-2.0 import pytest -from typi...
diff --git a/releasenotes/notes/implement-merge-filter-logic-99e6785a78f80ae9.yaml b/releasenotes/notes/implement-merge-filter-logic-99e6785a78f80ae9.yaml new file mode 100644 index 0000000000..c90479c2c6 --- /dev/null +++ b/releasenotes/notes/implement-merge-filter-logic-99e6785a78f80ae9.yaml @@ -0,0 +1,4 @@ +--- +enh...
[ { "components": [ { "doc": "Check if the given filter is a comparison filter.\n\n:param filter_item: The filter to check.\n:returns: True if the filter is a comparison filter, False otherwise.", "lines": [ 43, 50 ], "name": "is_comparison_filter", ...
[ "[", "test/document_stores/test_filter_policy.py::test_merge_two_comparison_filters", "test/document_stores/test_filter_policy.py::test_merge_init_comparison_and_runtime_logical_filters", "test/document_stores/test_filter_policy.py::test_merge_runtime_comparison_and_init_logical_filters_with_string_operators"...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> feat: Implement apply_filter_policy and FilterPolicy.MERGE for the new filters ### Why: Implements proper merging of new filters. - fixes: https://github.com/deepset-ai/haystack/issues/7995 ###...
f4d9c2bb917be0ffe132dffcc2ad4f1b0fcc5967
roboflow__supervision-1340
1,340
roboflow/supervision
null
de896189b83a1f9434c0a37dd9192ee00d2a1283
2024-07-10T10:14:46Z
diff --git a/docs/detection/utils.md b/docs/detection/utils.md index ea98c8683..85fcacda5 100644 --- a/docs/detection/utils.md +++ b/docs/detection/utils.md @@ -80,6 +80,18 @@ comments: true <h2><a href="#supervision.detection.utils.contains_holes">contains_holes</a></h2> </div> +:::supervision.detection.utils.xy...
diff --git a/test/detection/test_utils.py b/test/detection/test_utils.py index 20c818e61..9224c6760 100644 --- a/test/detection/test_utils.py +++ b/test/detection/test_utils.py @@ -17,6 +17,8 @@ move_boxes, process_roboflow_result, scale_boxes, + xcycwh_to_xyxy, + xywh_to_xyxy, ) TEST_MASK = np...
diff --git a/docs/detection/utils.md b/docs/detection/utils.md index ea98c8683..85fcacda5 100644 --- a/docs/detection/utils.md +++ b/docs/detection/utils.md @@ -80,6 +80,18 @@ comments: true <h2><a href="#supervision.detection.utils.contains_holes">contains_holes</a></h2> </div> +:::supervision.detection.utils.xy...
[ { "components": [ { "doc": "Converts bounding box coordinates from `(center_x, center_y, width, height)`\nformat to `(x_min, y_min, x_max, y_max)` format.\n\nArgs:\n xcycwh (np.ndarray): A numpy array of shape `(N, 4)` where each row\n corresponds to a bounding box in the format `(center...
[ "test/detection/test_utils.py::test_clip_boxes[xyxy0-resolution_wh0-expected_result0]", "test/detection/test_utils.py::test_clip_boxes[xyxy1-resolution_wh1-expected_result1]", "test/detection/test_utils.py::test_clip_boxes[xyxy2-resolution_wh2-expected_result2]", "test/detection/test_utils.py::test_clip_boxes...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> `xywh_to_xyxy` and `xcycwh_to_xyxy` box utils # Description Updated `xywh_to_xyxy` and added `xcycwh_to_xyxy` box utils. ## Type of change Please delete options that are not relevant. - ...
3eb5c0b024e3e46877b7fe4fd66e6177d1308ba0
pgmpy__pgmpy-1797
1,797
pgmpy/pgmpy
null
336c144b95aa21718e1898930934eb63474d1caf
2024-07-05T15:20:32Z
diff --git a/pgmpy/utils/__init__.py b/pgmpy/utils/__init__.py index adf8bb667..22d901b77 100644 --- a/pgmpy/utils/__init__.py +++ b/pgmpy/utils/__init__.py @@ -2,7 +2,7 @@ from .mathext import cartesian, sample_discrete from .optimizer import optimize, pinverse from .state_name import StateNameMixin -from .utils im...
diff --git a/pgmpy/tests/test_utils/test_utils.py b/pgmpy/tests/test_utils/test_utils.py index 1ab6e78a0..38b1041dd 100644 --- a/pgmpy/tests/test_utils/test_utils.py +++ b/pgmpy/tests/test_utils/test_utils.py @@ -1,11 +1,13 @@ +import os import random import unittest import numpy as np import pandas as pd +import...
diff --git a/requirements/runtime.txt b/requirements/runtime.txt index c91b5f241..b4f6f5af6 100644 --- a/requirements/runtime.txt +++ b/requirements/runtime.txt @@ -10,3 +10,4 @@ tqdm>=4.64 joblib>=1.2 opt_einsum>=3.3 xgboost>=2.0.3 +google-generativeai>=0.7.1
[ { "components": [ { "doc": "Asks a Large Language Model (LLM) for the orientation of an edge between `x` and `y`.\n\nParameters\n----------\nx: str\n The first variable's name\n\ny: str\n The second variable's name\n\ndescription: dict\n A dict of the form {variable: description} containi...
[ "pgmpy/tests/test_utils/test_utils.py::TestDAGCreation::test_get_example_model", "pgmpy/tests/test_utils/test_utils.py::TestDiscretization::test_rounding_disc" ]
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Adds an LLM based pairwise orientation method ### Your checklist for this pull request Please review the [guidelines for contributing](CONTRIBUTING.md) to this repository. - [ ] Make sure you are ...
cf8d0f12e2e5be62b01ff8fded85f3f64eab1e84
astropy__astropy-16677
16,677
astropy/astropy
v5.3
f5126c765a6a8db8abc7504275d9c2e90ffbd526
2024-07-04T20:45:35Z
diff --git a/astropy/modeling/core.py b/astropy/modeling/core.py index b469f32cdf72..f0fd3619f2d4 100644 --- a/astropy/modeling/core.py +++ b/astropy/modeling/core.py @@ -747,6 +747,10 @@ def __init__(self, *args, meta=None, name=None, **kwargs): self._initialize_slices() self._initialize_unit_support...
diff --git a/astropy/modeling/tests/test_core.py b/astropy/modeling/tests/test_core.py index d1dbe011a61e..097a35cd60d2 100644 --- a/astropy/modeling/tests/test_core.py +++ b/astropy/modeling/tests/test_core.py @@ -1505,3 +1505,68 @@ def test_model_string_indexing(): assert compound["Model1"] == gauss asser...
diff --git a/docs/changes/modeling/16677.feature.rst b/docs/changes/modeling/16677.feature.rst new file mode 100644 index 000000000000..8c7d14e8555d --- /dev/null +++ b/docs/changes/modeling/16677.feature.rst @@ -0,0 +1,3 @@ +Added ``Model.has_tied``, ``Model.has_fixed``, and ``Model.has_bounds`` attributes to make +it...
[ { "components": [ { "doc": "Whether the model has any fixed constraints.", "lines": [ 1345, 1351 ], "name": "Model.has_fixed", "signature": "def has_fixed(self):", "type": "function" }, { "doc": "Whether the model has ...
[ "astropy/modeling/tests/test_core.py::test_has_constraints", "astropy/modeling/tests/test_core.py::test_has_constraints_with_sync_constraints" ]
[ "astropy/modeling/tests/test_core.py::test_Model_instance_repr_and_str", "astropy/modeling/tests/test_core.py::test_Model_array_parameter", "astropy/modeling/tests/test_core.py::test_inputless_model", "astropy/modeling/tests/test_core.py::test_ParametericModel", "astropy/modeling/tests/test_core.py::test_cu...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add ``has_tied``, ``has_fixed`` and ``has_bounds`` properties to ``Model`` *This has been split out from #16673 for ease of review* Models include ``tied``, ``fixed``, and ``bounds`` properties tha...
2d281019494aaebf522f6626c0dae37510c16688
deepset-ai__haystack-7933
7,933
deepset-ai/haystack
null
8b9eddcd948e972c844e03000c2802e85e462c2a
2024-06-26T08:47:37Z
diff --git a/haystack/components/preprocessors/document_splitter.py b/haystack/components/preprocessors/document_splitter.py index f5e048db6e..200fa8aa92 100644 --- a/haystack/components/preprocessors/document_splitter.py +++ b/haystack/components/preprocessors/document_splitter.py @@ -90,38 +90,38 @@ def run(self, doc...
diff --git a/test/components/preprocessors/test_document_splitter.py b/test/components/preprocessors/test_document_splitter.py index 4351457f79..d6fcaa9d1c 100644 --- a/test/components/preprocessors/test_document_splitter.py +++ b/test/components/preprocessors/test_document_splitter.py @@ -7,6 +7,28 @@ from haystack.c...
diff --git a/releasenotes/notes/add-split_id_and_overlap_to_DocumentSplitter-8180ad8f13495741.yaml b/releasenotes/notes/add-split_id_and_overlap_to_DocumentSplitter-8180ad8f13495741.yaml new file mode 100644 index 0000000000..e3eba2d57b --- /dev/null +++ b/releasenotes/notes/add-split_id_and_overlap_to_DocumentSplitter...
[ { "components": [ { "doc": "Adds split overlap information to the current and previous Document's meta.\n\n:param current_doc: The Document that is being split.\n:param current_doc_start_idx: The starting index of the current Document.\n:param previous_doc: The Document that was split before the c...
[ "test/components/preprocessors/test_document_splitter.py::TestDocumentSplitter::test_add_split_overlap_information" ]
[ "test/components/preprocessors/test_document_splitter.py::TestDocumentSplitter::test_non_text_document", "test/components/preprocessors/test_document_splitter.py::TestDocumentSplitter::test_single_doc", "test/components/preprocessors/test_document_splitter.py::TestDocumentSplitter::test_empty_list", "test/com...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> feat : adding `split_id` and `split_overlap` to `DocumentSplitter` ### Related Issues - fixes [#7389](https://github.com/deepset-ai/haystack/issues/7389) ### Proposed Changes: When a `split_o...
f4d9c2bb917be0ffe132dffcc2ad4f1b0fcc5967
deepset-ai__haystack-7920
7,920
deepset-ai/haystack
null
c51f8ffb865db54f39103a202d2b6ba81fc68fb9
2024-06-24T14:22:50Z
diff --git a/haystack/components/fetchers/link_content.py b/haystack/components/fetchers/link_content.py index b658ff2450..ccc698f613 100644 --- a/haystack/components/fetchers/link_content.py +++ b/haystack/components/fetchers/link_content.py @@ -4,6 +4,7 @@ from collections import defaultdict from concurrent.futur...
diff --git a/test/components/fetchers/test_link_content_fetcher.py b/test/components/fetchers/test_link_content_fetcher.py index ac99bc4cfa..c6a4d5c55f 100644 --- a/test/components/fetchers/test_link_content_fetcher.py +++ b/test/components/fetchers/test_link_content_fetcher.py @@ -46,10 +46,12 @@ def test_init(self): ...
diff --git a/releasenotes/notes/link-content-fetcher-enhancements-49babe1c60888043.yaml b/releasenotes/notes/link-content-fetcher-enhancements-49babe1c60888043.yaml new file mode 100644 index 0000000000..d6a7d24285 --- /dev/null +++ b/releasenotes/notes/link-content-fetcher-enhancements-49babe1c60888043.yaml @@ -0,0 +1...
[ { "components": [ { "doc": "Resolves the handler for the given content type.\n\nFirst, it tries to find a direct match for the content type in the handlers dictionary.\nIf no direct match is found, it tries to find a pattern match using the fnmatch function.\nIf no pattern match is found, it retur...
[ "test/components/fetchers/test_link_content_fetcher.py::TestLinkContentFetcher::test_init" ]
[ "[", "test/components/fetchers/test_link_content_fetcher.py::TestLinkContentFetcher::test_init_with_params", "test/components/fetchers/test_link_content_fetcher.py::TestLinkContentFetcher::test_run_text", "test/components/fetchers/test_link_content_fetcher.py::TestLinkContentFetcher::test_run_html", "test/c...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> feat: Improve LinkContentFetcher content type handling ### Why: Enhances `LinkContentFetcher` to broaden its content handling capabilities. The primary motivation behind these changes is to allow mor...
f4d9c2bb917be0ffe132dffcc2ad4f1b0fcc5967
roboflow__supervision-1296
1,296
roboflow/supervision
null
fbce6e45d427fbbc2f610dfe1adf24bdf608d914
2024-06-20T12:01:50Z
diff --git a/supervision/detection/core.py b/supervision/detection/core.py index 37dde1534..4d913e1bc 100644 --- a/supervision/detection/core.py +++ b/supervision/detection/core.py @@ -7,7 +7,12 @@ import numpy as np from supervision.config import CLASS_NAME_DATA_FIELD, ORIENTED_BOX_COORDINATES -from supervision.de...
diff --git a/test/detection/test_lmm_florence_2.py b/test/detection/test_lmm_florence_2.py new file mode 100644 index 000000000..9ffec2a1e --- /dev/null +++ b/test/detection/test_lmm_florence_2.py @@ -0,0 +1,291 @@ +from contextlib import ExitStack as DoesNotRaise +from typing import Optional, Tuple + +import numpy as ...
[ { "components": [ { "doc": "", "lines": [ 41, 67 ], "name": "validate_lmm_parameters", "signature": "def validate_lmm_parameters( lmm: Union[LMM, str], result: Any, kwargs: Dict[str, Any] ) -> LMM:", "type": "function" }, { ...
[ "test/detection/test_lmm_florence_2.py::test_florence_2[florence_result0-resolution_wh0-expected_results0-exception0]", "test/detection/test_lmm_florence_2.py::test_florence_2[florence_result1-resolution_wh1-expected_results1-exception1]", "test/detection/test_lmm_florence_2.py::test_florence_2[florence_result2...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add Florence 2 support # Description This PR adds [Florence 2](https://huggingface.co/microsoft/Florence-2-large) support for supervision. Run it with `transfomers` and parse with `from_lmm(sv.L...
3eb5c0b024e3e46877b7fe4fd66e6177d1308ba0
deepset-ai__haystack-7902
7,902
deepset-ai/haystack
null
57c1d47c7d55caf1385e8315e18bab2bfe1ce2f6
2024-06-20T11:21:56Z
diff --git a/haystack/document_stores/types/filter_policy.py b/haystack/document_stores/types/filter_policy.py index b30b9d3352..a2be576d20 100644 --- a/haystack/document_stores/types/filter_policy.py +++ b/haystack/document_stores/types/filter_policy.py @@ -3,6 +3,7 @@ # SPDX-License-Identifier: Apache-2.0 from en...
diff --git a/test/document_stores/test_filter_policy.py b/test/document_stores/test_filter_policy.py new file mode 100644 index 0000000000..b7efcd0672 --- /dev/null +++ b/test/document_stores/test_filter_policy.py @@ -0,0 +1,45 @@ +# SPDX-FileCopyrightText: 2022-present deepset GmbH <info@deepset.ai> +# +# SPDX-License...
diff --git a/releasenotes/notes/add-apply_filter_policy-function-ae3152e6afe0ca57.yaml b/releasenotes/notes/add-apply_filter_policy-function-ae3152e6afe0ca57.yaml new file mode 100644 index 0000000000..c890a44297 --- /dev/null +++ b/releasenotes/notes/add-apply_filter_policy-function-ae3152e6afe0ca57.yaml @@ -0,0 +1,4 ...
[ { "components": [ { "doc": "Apply the filter policy to the given initial and runtime filters to determine the final set of filters used.\n\nThe function combines or replaces the initial and runtime filters based on the specified filter policy.\n\n:param filter_policy: The policy to apply when hand...
[ "test/document_stores/test_filter_policy.py::test_replace_policy_with_both_filters", "test/document_stores/test_filter_policy.py::test_merge_policy_with_both_filters", "test/document_stores/test_filter_policy.py::test_replace_policy_with_only_init_filters", "test/document_stores/test_filter_policy.py::test_me...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> feat: Add apply_filter_policy function Added the apply_filter_policy function to standardize the application of filter policies across all document store-specific retrievers, allowing for consistent h...
f4d9c2bb917be0ffe132dffcc2ad4f1b0fcc5967
scikit-learn__scikit-learn-29210
29,210
scikit-learn/scikit-learn
1.6
51c8e0e19d042a2dbbc1f9477557c07c8a34ab96
2024-06-07T10:08:06Z
diff --git a/doc/modules/model_evaluation.rst b/doc/modules/model_evaluation.rst index eff6684458deb..080ed0c63a58c 100644 --- a/doc/modules/model_evaluation.rst +++ b/doc/modules/model_evaluation.rst @@ -605,7 +605,7 @@ The function :func:`cohen_kappa_score` computes `Cohen's kappa This measure is intended to compare...
diff --git a/sklearn/metrics/tests/test_classification.py b/sklearn/metrics/tests/test_classification.py index b87e76ba2fb42..aa612f73ef5c7 100644 --- a/sklearn/metrics/tests/test_classification.py +++ b/sklearn/metrics/tests/test_classification.py @@ -810,6 +810,7 @@ def test_matthews_corrcoef_nan(): partial(...
diff --git a/doc/modules/model_evaluation.rst b/doc/modules/model_evaluation.rst index eff6684458deb..080ed0c63a58c 100644 --- a/doc/modules/model_evaluation.rst +++ b/doc/modules/model_evaluation.rst @@ -605,7 +605,7 @@ The function :func:`cohen_kappa_score` computes `Cohen's kappa This measure is intended to compare...
[ { "components": [ { "doc": "Helper to handle zero-division.\n\nParameters\n----------\nnumerator : numbers.Real\n The numerator of the division.\ndenominator : numbers.Real\n The denominator of the division.\nmetric : str\n Name of the caller metric function.\nzero_division : {0.0, 1.0, \...
[ "sklearn/metrics/tests/test_classification.py::test_zero_division_nan_no_warning[metric4-y_true0-y_pred0-0]", "sklearn/metrics/tests/test_classification.py::test_zero_division_nan_no_warning[metric4-y_true0-y_pred0-1]", "sklearn/metrics/tests/test_classification.py::test_zero_division_nan_no_warning[metric4-y_t...
[ "sklearn/metrics/tests/test_classification.py::test_classification_report_dictionary_output", "sklearn/metrics/tests/test_classification.py::test_classification_report_output_dict_empty_input", "sklearn/metrics/tests/test_classification.py::test_classification_report_zero_division_warning[warn]", "sklearn/met...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> ENH Add zero_division param to `cohen_kappa_score` #### Reference Issues/PRs towards #29048 #### What does this implement/fix? Explain your changes. Extracts the part for adding a `zero_division`...
18dc8630a7cbe1b591c12774949058b12157a39a
tobymao__sqlglot-3602
3,602
tobymao/sqlglot
null
f920014709c2d3ccb7ec18fb622ecd6b6ee0afcd
2024-06-05T13:00:58Z
diff --git a/sqlglot/dialects/postgres.py b/sqlglot/dialects/postgres.py index 25a02b0dcb..7ad1f90e02 100644 --- a/sqlglot/dialects/postgres.py +++ b/sqlglot/dialects/postgres.py @@ -8,6 +8,7 @@ Dialect, JSON_EXTRACT_TYPE, any_value_to_max_sql, + binary_from_function, bool_xor_sql, datestrto...
diff --git a/tests/dialects/test_postgres.py b/tests/dialects/test_postgres.py index 74753beb61..50ba605351 100644 --- a/tests/dialects/test_postgres.py +++ b/tests/dialects/test_postgres.py @@ -724,6 +724,28 @@ def test_postgres(self): self.validate_identity("cast(a as FLOAT8)", "CAST(a AS DOUBLE PRECISION)")...
[ { "components": [ { "doc": "", "lines": [ 631, 638 ], "name": "Postgres.Generator.cast_sql", "signature": "def cast_sql(self, expression: exp.Cast, safe_prefix: t.Optional[str] = None) -> str:", "type": "function" } ], "file...
[ "tests/dialects/test_postgres.py::TestPostgres::test_postgres" ]
[ "tests/dialects/test_postgres.py::TestPostgres::test_array_offset", "tests/dialects/test_postgres.py::TestPostgres::test_bool_or", "tests/dialects/test_postgres.py::TestPostgres::test_ddl", "tests/dialects/test_postgres.py::TestPostgres::test_operator", "tests/dialects/test_postgres.py::TestPostgres::test_r...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> feat(postgres): Support DIV() func for integer division Fixes #3601 This PR introduces support for Postgres's `DIV()` function which performs integer division. It mirrors the BigQuery implementati...
Here is the discussion in the issues of the pull request. <issues> parsing div() for postgresql throws error **Summary** Trying to parse a sql statement using the DIV() method but encountering an error. **Sample Code** ```python from sqlglot import parse_one parsed_content = parse_one('select div(9,4)', re...
ceb42fabad60312699e4b15936aeebac00e22e4d
astropy__astropy-16516
16,516
astropy/astropy
v5.3
fb4ff546ebca64c4d92a573e400873aeba1f5766
2024-05-30T15:25:34Z
diff --git a/astropy/units/equivalencies.py b/astropy/units/equivalencies.py index f77b195df97d..b6968fc701ea 100644 --- a/astropy/units/equivalencies.py +++ b/astropy/units/equivalencies.py @@ -34,6 +34,7 @@ "molar_mass_amu", "pixel_scale", "plate_scale", + "magnetic_flux_field", "Equivalency", ...
diff --git a/astropy/units/tests/test_equivalencies.py b/astropy/units/tests/test_equivalencies.py index bd13257194eb..7aab96eb16cd 100644 --- a/astropy/units/tests/test_equivalencies.py +++ b/astropy/units/tests/test_equivalencies.py @@ -1013,3 +1013,17 @@ def test_spectral_density_factor_deprecation(): u...
diff --git a/docs/changes/units/16516.feature.rst b/docs/changes/units/16516.feature.rst new file mode 100644 index 000000000000..4fa419d8579b --- /dev/null +++ b/docs/changes/units/16516.feature.rst @@ -0,0 +1,2 @@ +Add ``magnetic_flux_field`` equivalency to convert magnetic field between +magnetic field strength (H) ...
[ { "components": [ { "doc": "Convert magnetic field between magnetic field strength :math:`(\\mathbf{H})` and\nmagnetic flux density :math:`(\\mathbf{B})` using the relationship:\n\n.. math::\n\n \\mathbf{B} = \\mu_r \\mu_0 \\mathbf{H}\n\nwhere:\n - :math:`\\mu_0` is the vacuum permeability, ...
[ "astropy/units/tests/test_equivalencies.py::test_magnetic_flux_field" ]
[ "astropy/units/tests/test_equivalencies.py::test_find_equivalent_units", "astropy/units/tests/test_equivalencies.py::test_dimensionless_angles", "astropy/units/tests/test_equivalencies.py::test_logarithmic[log_unit0]", "astropy/units/tests/test_equivalencies.py::test_logarithmic[log_unit1]", "astropy/units/...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Magnetic flux field equivalency <!-- These comments are hidden when you submit the pull request, so you do not need to remove them! --> <!-- Please be sure to check out our contributing guidelines...
2d281019494aaebf522f6626c0dae37510c16688
scikit-learn__scikit-learn-29136
29,136
scikit-learn/scikit-learn
1.6
65c00c72507b48ae2f57ed2328560748db8b01f0
2024-05-30T10:01:41Z
diff --git a/doc/metadata_routing.rst b/doc/metadata_routing.rst index 27000a192ab21..d8a47927512e4 100644 --- a/doc/metadata_routing.rst +++ b/doc/metadata_routing.rst @@ -276,6 +276,7 @@ Meta-estimators and functions supporting metadata routing: - :class:`sklearn.calibration.CalibratedClassifierCV` - :class:`skle...
diff --git a/sklearn/tests/test_metaestimators_metadata_routing.py b/sklearn/tests/test_metaestimators_metadata_routing.py index 8bfb7b0663c18..a1cc807bd2a7e 100644 --- a/sklearn/tests/test_metaestimators_metadata_routing.py +++ b/sklearn/tests/test_metaestimators_metadata_routing.py @@ -382,6 +382,14 @@ def enable_sle...
diff --git a/doc/metadata_routing.rst b/doc/metadata_routing.rst index 27000a192ab21..d8a47927512e4 100644 --- a/doc/metadata_routing.rst +++ b/doc/metadata_routing.rst @@ -276,6 +276,7 @@ Meta-estimators and functions supporting metadata routing: - :class:`sklearn.calibration.CalibratedClassifierCV` - :class:`skle...
[ { "components": [ { "doc": "Get metadata routing of this object.\n\nPlease check :ref:`User Guide <metadata_routing>` on how the routing\nmechanism works.\n\n.. versionadded:: 1.6\n\nReturns\n-------\nrouting : MetadataRouter\n A :class:`~sklearn.utils.metadata_routing.MetadataRouter` encapsula...
[ "sklearn/tests/test_metaestimators_metadata_routing.py::test_default_request[TransformedTargetRegressor]", "sklearn/tests/test_metaestimators_metadata_routing.py::test_error_on_missing_requests_for_sub_estimator[TransformedTargetRegressor]", "sklearn/tests/test_metaestimators_metadata_routing.py::test_setting_r...
[ "sklearn/tests/test_metaestimators_metadata_routing.py::test_unsupported_estimators_get_metadata_routing[estimator0]", "sklearn/tests/test_metaestimators_metadata_routing.py::test_unsupported_estimators_get_metadata_routing[estimator1]", "sklearn/tests/test_metaestimators_metadata_routing.py::test_unsupported_e...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> FEA Add metadata routing for TransformedTargetRegressor <!-- Thanks for contributing a pull request! Please ensure you have taken a look at the contribution guidelines: https://github.com/scikit-lea...
18dc8630a7cbe1b591c12774949058b12157a39a
tobymao__sqlglot-3560
3,560
tobymao/sqlglot
null
eae3c5165c16b61c7b524a55776bdb1127005c7d
2024-05-28T17:15:28Z
diff --git a/sqlglot/schema.py b/sqlglot/schema.py index cb3fd00b24..50646c868e 100644 --- a/sqlglot/schema.py +++ b/sqlglot/schema.py @@ -155,13 +155,16 @@ def table_parts(self, table: exp.Table) -> t.List[str]: return [table.this.name] return [table.text(part) for part in exp.TABLE_PARTS if tabl...
diff --git a/tests/test_schema.py b/tests/test_schema.py index 5b5086738d..21b59fd3e5 100644 --- a/tests/test_schema.py +++ b/tests/test_schema.py @@ -303,3 +303,10 @@ def test_has_column(self): schema = MappingSchema({"x": {"c": "int"}}) self.assertTrue(schema.has_column("x", exp.column("c"))) ...
[ { "components": [ { "doc": "", "lines": [ 245, 257 ], "name": "MappingSchema.find", "signature": "def find( self, table: exp.Table, raise_on_missing: bool = True, ensure_data_types: bool = False ) -> t.Optional[t.Any]:", "type": "function...
[ "tests/test_schema.py::TestSchema::test_find" ]
[ "tests/test_schema.py::TestSchema::test_has_column", "tests/test_schema.py::TestSchema::test_same_number_of_qualifiers", "tests/test_schema.py::TestSchema::test_schema", "tests/test_schema.py::TestSchema::test_schema_add_table_with_and_without_mapping", "tests/test_schema.py::TestSchema::test_schema_catalog...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Feat: add option in schema's find method to ensure types are DataTypes The motivation behind this is that in SQLMesh we have a mapping schema where types are stored as strings, but [we need them](http...
ceb42fabad60312699e4b15936aeebac00e22e4d
roboflow__supervision-1237
1,237
roboflow/supervision
null
9bc2907c4907714da5b469fdfee7800f4cf9f09e
2024-05-28T07:42:20Z
diff --git a/supervision/detection/core.py b/supervision/detection/core.py index be6104820..f93aed1c4 100644 --- a/supervision/detection/core.py +++ b/supervision/detection/core.py @@ -23,7 +23,7 @@ xywh_to_xyxy, ) from supervision.geometry.core import Position -from supervision.utils.internal import deprecated ...
diff --git a/test/utils/test_internal.py b/test/utils/test_internal.py new file mode 100644 index 000000000..eee614e6c --- /dev/null +++ b/test/utils/test_internal.py @@ -0,0 +1,193 @@ +from contextlib import ExitStack as DoesNotRaise +from dataclasses import dataclass, field +from typing import Any, Set + +import nump...
[ { "components": [ { "doc": "Get the public variables of a class instance.\n\nArgs:\n instance (Any): The instance of a class\n include_properties (bool): Whether to include properties in the result\n\nUsage:\n ```python\n detections = Detections(xyxy=np.array([1,2,3,4]))\n variables...
[ "test/utils/test_internal.py::test_get_instance_variables[MockClass-False-None-exception0]", "test/utils/test_internal.py::test_get_instance_variables[input_instance1-False-expected1-exception1]", "test/utils/test_internal.py::test_get_instance_variables[input_instance2-True-expected2-exception2]", "test/util...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Dynamically select Detections member variables # Description When checking if both fields are `None` or defined in two detection to be merged, we'd hardcode the fields. This change allows gettin...
3eb5c0b024e3e46877b7fe4fd66e6177d1308ba0
conan-io__conan-16231
16,231
conan-io/conan
null
80fee05d5811608511bbb30a965afd66bdc13311
2024-05-09T12:29:23Z
diff --git a/conan/tools/cmake/cmakedeps/templates/__init__.py b/conan/tools/cmake/cmakedeps/templates/__init__.py index 64e90955bf1..f1cd8ba1b49 100644 --- a/conan/tools/cmake/cmakedeps/templates/__init__.py +++ b/conan/tools/cmake/cmakedeps/templates/__init__.py @@ -24,6 +24,12 @@ def root_target_name(self): def...
diff --git a/conans/test/integration/toolchains/cmake/cmakedeps/test_cmakedeps.py b/conans/test/integration/toolchains/cmake/cmakedeps/test_cmakedeps.py index f8a7eddf5b1..53dee803222 100644 --- a/conans/test/integration/toolchains/cmake/cmakedeps/test_cmakedeps.py +++ b/conans/test/integration/toolchains/cmake/cmakede...
[ { "components": [ { "doc": "", "lines": [ 28, 31 ], "name": "CMakeDepsFileTemplate.additional_variables_prefixes", "signature": "def additional_variables_prefixes(self):", "type": "function" } ], "file": "conan/tools/cmake/c...
[ "conans/test/integration/toolchains/cmake/cmakedeps/test_cmakedeps.py::test_cmakedeps_set_legacy_variable_name" ]
[ "conans/test/integration/toolchains/cmake/cmakedeps/test_cmakedeps.py::test_package_from_system", "conans/test/integration/toolchains/cmake/cmakedeps/test_cmakedeps.py::test_test_package", "conans/test/integration/toolchains/cmake/cmakedeps/test_cmakedeps.py::test_components_error", "conans/test/integration/t...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add property to change the CMake variable names generated with CMakeDeps Changelog: Feature: Add `cmake_additional_variables_prefixes` variable to CMakeDeps generator to allow adding extra names for d...
4a5b19a75db9225316c8cb022a2dfb9705a2af34
scikit-learn__scikit-learn-28936
28,936
scikit-learn/scikit-learn
1.6
0f27a26d0f78b07245158f5997066a3b2c1d76ba
2024-05-02T20:19:03Z
diff --git a/doc/api_reference.py b/doc/api_reference.py index 1aa6455fb7e44..583909cdcac65 100644 --- a/doc/api_reference.py +++ b/doc/api_reference.py @@ -121,6 +121,7 @@ def _get_submodule(module_name, submodule_name): "TransformerMixin", "clone", "is_cl...
diff --git a/sklearn/tests/test_base.py b/sklearn/tests/test_base.py index a1cd3b8fc8c7b..917da863ece3b 100644 --- a/sklearn/tests/test_base.py +++ b/sklearn/tests/test_base.py @@ -18,13 +18,16 @@ TransformerMixin, clone, is_classifier, + is_clusterer, + is_regressor, ) +from sklearn.cluster impor...
diff --git a/doc/whats_new/v1.6.rst b/doc/whats_new/v1.6.rst index 0e6844155c6fa..53b0eb017fc57 100644 --- a/doc/whats_new/v1.6.rst +++ b/doc/whats_new/v1.6.rst @@ -74,6 +74,13 @@ Changelog :pr:`123456` by :user:`Joe Bloggs <joeongithub>`. where 123455 is the *pull request* number, not the issue number. +:m...
[ { "components": [ { "doc": "Return True if the given estimator is (probably) a clusterer.\n\n.. versionadded:: 1.6\n\nParameters\n----------\nestimator : object\n Estimator object to test.\n\nReturns\n-------\nout : bool\n True if estimator is a clusterer and False otherwise.\n\nExamples\n--...
[ "sklearn/tests/test_base.py::test_clone", "sklearn/tests/test_base.py::test_clone_2", "sklearn/tests/test_base.py::test_clone_buggy", "sklearn/tests/test_base.py::test_clone_empty_array", "sklearn/tests/test_base.py::test_clone_nan", "sklearn/tests/test_base.py::test_clone_dict", "sklearn/tests/test_bas...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> ENH Add missing `base.is_clusterer()` function #### Reference Issues/PRs Fixes https://github.com/scikit-learn/scikit-learn/issues/28960 #### What does this implement/fix? Explain your changes. T...
18dc8630a7cbe1b591c12774949058b12157a39a
pgmpy__pgmpy-1753
1,753
pgmpy/pgmpy
null
7ed0659107c9b3768208d17890a28778001320e9
2024-04-30T06:51:14Z
diff --git a/pgmpy/utils/__init__.py b/pgmpy/utils/__init__.py index 7803135af..adf8bb667 100644 --- a/pgmpy/utils/__init__.py +++ b/pgmpy/utils/__init__.py @@ -1,9 +1,8 @@ -from .mathext import cartesian, sample_discrete -from .state_name import StateNameMixin from .check_functions import _check_1d_array_object, _che...
diff --git a/pgmpy/tests/test_utils/test_utils.py b/pgmpy/tests/test_utils/test_utils.py index 505d14de1..1ab6e78a0 100644 --- a/pgmpy/tests/test_utils/test_utils.py +++ b/pgmpy/tests/test_utils/test_utils.py @@ -1,9 +1,11 @@ -import unittest import random +import unittest +import numpy as np +import pandas as pd f...
[ { "components": [ { "doc": "Discretizes a given continuous dataset.\n\nParameters\n----------\ndata: pandas.DataFrame\n The dataset to discretize. All columns must have continuous values.\n\ncardinality: dict\n A dictionary of the form (str: int) representing the number of bins\n to creat...
[ "pgmpy/tests/test_utils/test_utils.py::TestDAGCreation::test_get_example_model", "pgmpy/tests/test_utils/test_utils.py::TestDiscretization::test_rounding_disc" ]
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Adds a function for discretization ### Your checklist for this pull request Please review the [guidelines for contributing](CONTRIBUTING.md) to this repository. - [ ] Make sure you are requesting ...
cf8d0f12e2e5be62b01ff8fded85f3f64eab1e84
google-deepmind__optax-897
897
google-deepmind/optax
null
246f002a64e21bcc8f0b1a3390eb4ee13da83ed5
2024-04-01T20:30:36Z
diff --git a/docs/api/losses.rst b/docs/api/losses.rst index 95cef9f99..41ceab134 100644 --- a/docs/api/losses.rst +++ b/docs/api/losses.rst @@ -14,6 +14,7 @@ Losses kl_divergence l2_loss log_cosh + ntxent safe_softmax_cross_entropy sigmoid_binary_cross_entropy sigmoid_focal_loss @@ -61...
diff --git a/optax/losses/_classification_test.py b/optax/losses/_classification_test.py index b87d520ea..b75f3a088 100644 --- a/optax/losses/_classification_test.py +++ b/optax/losses/_classification_test.py @@ -862,6 +862,5 @@ def test_ignore_negative(self): assert all(ce_loss[self.ts == 0] > 0) assert all(...
diff --git a/docs/api/losses.rst b/docs/api/losses.rst index 95cef9f99..41ceab134 100644 --- a/docs/api/losses.rst +++ b/docs/api/losses.rst @@ -14,6 +14,7 @@ Losses kl_divergence l2_loss log_cosh + ntxent safe_softmax_cross_entropy sigmoid_binary_cross_entropy sigmoid_focal_loss @@ -61...
[ { "components": [ { "doc": "Normalized temperature scaled cross entropy loss (NT-Xent).\n\nReferences:\n T. Chen et al `A Simple Framework for Contrastive Learning of Visual \n Representations <http://arxiv.org/abs/2002.05709>`_, 2020\n kevinmusgrave.github.io/pytorch-metric-learning/losses/#nt...
[ "optax/losses/_classification_test.py::SoftmaxCrossEntropyTest::test_batched__with_device", "optax/losses/_classification_test.py::SoftmaxCrossEntropyTest::test_batched__with_jit", "optax/losses/_classification_test.py::SoftmaxCrossEntropyTest::test_batched__without_device", "optax/losses/_classification_test...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Added a NTXent loss An normalized temperature scaled cross entropy (NTXent) loss for a contrastive learning objective. I am fairly new to submitting pull requests to public repos, so I didn't add a to...
1e08bccf195ac54e7d9d766eb5e69345bf0e3230
tobymao__sqlglot-3145
3,145
tobymao/sqlglot
null
d6bac3e54c6445c52daa04015b1b2e4a6933e682
2024-03-14T14:27:31Z
diff --git a/sqlglot/dialects/tsql.py b/sqlglot/dialects/tsql.py index 45855772cb..755360cc16 100644 --- a/sqlglot/dialects/tsql.py +++ b/sqlglot/dialects/tsql.py @@ -810,6 +810,22 @@ class Generator(generator.Generator): exp.VolatileProperty: exp.Properties.Location.UNSUPPORTED, } + def ...
diff --git a/tests/dialects/test_tsql.py b/tests/dialects/test_tsql.py index ed474fd1af..1d2f03b631 100644 --- a/tests/dialects/test_tsql.py +++ b/tests/dialects/test_tsql.py @@ -272,6 +272,28 @@ def test_tsql(self): "SELECT [x].[y] FROM foo", ) + self.validate_all( + "SELECT *...
[ { "components": [ { "doc": "", "lines": [ 813, 827 ], "name": "TSQL.Generator.select_sql", "signature": "def select_sql(self, expression: exp.Select) -> str:", "type": "function" } ], "file": "sqlglot/dialects/tsql.py" } ]
[ "tests/dialects/test_tsql.py::TestTSQL::test_tsql" ]
[ "tests/dialects/test_tsql.py::TestTSQL::test__types_ints", "tests/dialects/test_tsql.py::TestTSQL::test_add_date", "tests/dialects/test_tsql.py::TestTSQL::test_charindex", "tests/dialects/test_tsql.py::TestTSQL::test_commit", "tests/dialects/test_tsql.py::TestTSQL::test_convert", "tests/dialects/test_tsql...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Feat(tsql): transpile LIMIT with OFFSET properly Fixes #3144 Reference: - https://www.microsoftpressstore.com/articles/article.aspx?p=2314819 - https://learn.microsoft.com/en-us/sql/t-sql/queries...
Here is the discussion in the issues of the pull request. <issues> Concerns about Translating SQLite Queries to TSQL 1. **Offset Issue:** When attempting to convert an SQLite query to TSQL using the provided code snippet: ```python import sqlglot sql_a = "SELECT name, (SELECT COUNT(*) FROM orde...
ceb42fabad60312699e4b15936aeebac00e22e4d
EleutherAI__lm-evaluation-harness-1566
1,566
EleutherAI/lm-evaluation-harness
null
49695e8d94c3ab011b7ae8814d809de30b1b1182
2024-03-12T17:35:39Z
diff --git a/lm_eval/__main__.py b/lm_eval/__main__.py index 489c1662d4..18c243d431 100644 --- a/lm_eval/__main__.py +++ b/lm_eval/__main__.py @@ -53,13 +53,30 @@ def parse_value(item): return items -def parse_eval_args() -> argparse.Namespace: +def check_argument_types(parser: argparse.ArgumentParser): + "...
diff --git a/tests/test_cli.py b/tests/test_cli.py new file mode 100644 index 0000000000..feaa7340d6 --- /dev/null +++ b/tests/test_cli.py @@ -0,0 +1,43 @@ +import argparse + +import pytest + +import lm_eval.__main__ + + +def test_cli_parse_error(): + """ + Assert error raised if cli args argument doesn't have ty...
[ { "components": [ { "doc": "Check to make sure all CLI args are typed, raises error if not", "lines": [ 56, 67 ], "name": "check_argument_types", "signature": "def check_argument_types(parser: argparse.ArgumentParser):", "type": "function...
[ "tests/test_cli.py::test_cli_parse_error", "tests/test_cli.py::test_cli_parse_no_error" ]
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Proposed approach for testing CLI arg parsing See discussion here: https://github.com/EleutherAI/lm-evaluation-harness/issues/1518 Here's an approach to start testing CLI argument parsing: 1. Se...
decc533d02222f3b866d9a89263277fe0cc2fcb2
astropy__astropy-16135
16,135
astropy/astropy
v5.3
ea875472867f296eee3ed75989ed402d55587940
2024-02-29T23:40:43Z
diff --git a/astropy/coordinates/representation/cylindrical.py b/astropy/coordinates/representation/cylindrical.py index 9127fb2dcb08..acd9ab936953 100644 --- a/astropy/coordinates/representation/cylindrical.py +++ b/astropy/coordinates/representation/cylindrical.py @@ -11,7 +11,7 @@ from .base import BaseDifferenti...
diff --git a/astropy/coordinates/tests/test_representation.py b/astropy/coordinates/tests/test_representation.py index d2d257e30a6f..2f84236bdd5e 100644 --- a/astropy/coordinates/tests/test_representation.py +++ b/astropy/coordinates/tests/test_representation.py @@ -842,6 +842,25 @@ def test_representation_shortcuts(se...
[ { "components": [ { "doc": "", "lines": [ 138, 152 ], "name": "CylindricalRepresentation.represent_as", "signature": "def represent_as(self, other_class, differential_class=None):", "type": "function" } ], "file": "astropy/c...
[ "astropy/coordinates/tests/test_representation.py::TestPhysicsSphericalRepresentation::test_representation_shortcuts", "astropy/coordinates/tests/test_representation.py::TestPhysicsSphericalRepresentation::test_to_cylindrical_at_the_origin" ]
[ "astropy/coordinates/tests/test_representation.py::TestRadialRepresentation::test_transform", "astropy/coordinates/tests/test_representation.py::TestSphericalRepresentation::test_name", "astropy/coordinates/tests/test_representation.py::TestSphericalRepresentation::test_empty_init", "astropy/coordinates/tests...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> feat: fast-path physicsspherical to cylindrical - [ ] By checking this box, the PR author has requested that maintainers do **NOT** use the "Squash and Merge" button. Maintainers should respect this w...
2d281019494aaebf522f6626c0dae37510c16688
pygments__pygments-2654
2,654
pygments/pygments
null
41a8a63c993affb665d193222d8da5fdb9ae173a
2024-02-25T22:46:46Z
diff --git a/AUTHORS b/AUTHORS index a7928ea88b..4ec64ba1ef 100644 --- a/AUTHORS +++ b/AUTHORS @@ -116,6 +116,8 @@ Other contributors, listed alphabetically, are: MSDOS session, BC, WDiff * Brian R. Jackson -- Tea lexer * Christian Jann -- ShellSession lexer +* Jonas Camillus Jeppesen -- Line numbers and line high...
diff --git a/tests/test_rtf_formatter.py b/tests/test_rtf_formatter.py index a21939f043..6379e37d16 100644 --- a/tests/test_rtf_formatter.py +++ b/tests/test_rtf_formatter.py @@ -7,12 +7,17 @@ """ from io import StringIO +import itertools +import re +import pytest from pygments.formatters import RtfFormatter +fr...
diff --git a/AUTHORS b/AUTHORS index a7928ea88b..4ec64ba1ef 100644 --- a/AUTHORS +++ b/AUTHORS @@ -116,6 +116,8 @@ Other contributors, listed alphabetically, are: MSDOS session, BC, WDiff * Brian R. Jackson -- Tea lexer * Christian Jann -- ShellSession lexer +* Jonas Camillus Jeppesen -- Line numbers and line high...
[ { "components": [ { "doc": "", "lines": [ 185, 192 ], "name": "RtfFormatter.hex_to_rtf_color", "signature": "def hex_to_rtf_color(hex_color):", "type": "function" }, { "doc": "Split tokens containing newline characters...
[ "tests/test_rtf_formatter.py::test_rtf_footer", "tests/test_rtf_formatter.py::test_ascii_characters", "tests/test_rtf_formatter.py::test_escape_characters", "tests/test_rtf_formatter.py::test_single_characters", "tests/test_rtf_formatter.py::test_double_characters", "tests/test_rtf_formatter.py::test_line...
[ "tests/test_rtf_formatter.py::test_rtf_header", "tests/test_rtf_formatter.py::test_all_options" ]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add line numbers and line highlighting to the RTF-formatter Finally implemented line numbers and line highlighting as discussed in issue #1217. ![Screenshot from 2024-02-25 23-01-27](https://github...
e08bdbba2fa78270dba5ca700d053569f85d0351
conan-io__conan-15731
15,731
conan-io/conan
null
1763159dc74a54cb4920a55a7620557687e1dc25
2024-02-22T07:51:29Z
diff --git a/conan/tools/build/__init__.py b/conan/tools/build/__init__.py index 829886a8de3..da2223ff12e 100644 --- a/conan/tools/build/__init__.py +++ b/conan/tools/build/__init__.py @@ -3,3 +3,4 @@ from conan.tools.build.cppstd import check_min_cppstd, valid_min_cppstd, default_cppstd, \ supported_cppstd from...
diff --git a/conans/test/unittests/client/build/cpp_std_flags_test.py b/conans/test/unittests/client/build/cpp_std_flags_test.py index 1badf2c90ab..3c30e83717a 100644 --- a/conans/test/unittests/client/build/cpp_std_flags_test.py +++ b/conans/test/unittests/client/build/cpp_std_flags_test.py @@ -1,9 +1,11 @@ import un...
[ { "components": [ { "doc": "Returns flags specific to the C++ standard based on the ``conanfile.settings.compiler``,\n``conanfile.settings.compiler.version`` and ``conanfile.settings.compiler.cppstd``.\nIt also considers when using GNU extension in ``settings.compiler.cppstd``, reflecting it in th...
[ "conans/test/unittests/client/build/cpp_std_flags_test.py::CompilerFlagsTest::test_apple_clang_cppstd_defaults", "conans/test/unittests/client/build/cpp_std_flags_test.py::CompilerFlagsTest::test_apple_clang_cppstd_flags", "conans/test/unittests/client/build/cpp_std_flags_test.py::CompilerFlagsTest::test_clang_...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Backport cppstd_flag from Conan 2.x Related to the PR #15710, this PR backports the method available in Conan 2.x In Conan 1.x we have [cppstd_flag](https://docs.conan.io/1/reference/tools.html#too...
4a5b19a75db9225316c8cb022a2dfb9705a2af34
deepset-ai__haystack-7009
7,009
deepset-ai/haystack
null
a7209f64136d7cc8bd446f6801d8695fc367608f
2024-02-16T09:06:38Z
diff --git a/haystack/dataclasses/byte_stream.py b/haystack/dataclasses/byte_stream.py index 80b1c50c3b..ee736c001d 100644 --- a/haystack/dataclasses/byte_stream.py +++ b/haystack/dataclasses/byte_stream.py @@ -49,3 +49,13 @@ def from_string( :param meta: Additional metadata to be stored with the ByteStream. ...
diff --git a/test/dataclasses/test_byte_stream.py b/test/dataclasses/test_byte_stream.py index 57d444b038..4e4199ba19 100644 --- a/test/dataclasses/test_byte_stream.py +++ b/test/dataclasses/test_byte_stream.py @@ -1,3 +1,5 @@ +import pytest + from haystack.dataclasses import ByteStream @@ -35,6 +37,30 @@ def test...
[ { "components": [ { "doc": "Convert the ByteStream to a string, metadata will not be included.\n\n:param encoding: The encoding used to convert the bytes to a string. Defaults to \"utf-8\".\n:return: The string representation of the ByteStream.\n:raises UnicodeDecodeError: If the ByteStream data c...
[ "test/dataclasses/test_byte_stream.py::test_to_string", "test/dataclasses/test_byte_stream.py::test_to_from_string_encoding", "test/dataclasses/test_byte_stream.py::test_to_string_encoding_error" ]
[ "test/dataclasses/test_byte_stream.py::test_from_file_path", "test/dataclasses/test_byte_stream.py::test_from_string", "test/dataclasses/test_byte_stream.py::test_to_file" ]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> feat: Add ByteStream to_string method ### Why: Adds `to_string` method in the `ByteStream` class which arises from the requirement to convert byte data back into its original string format for certai...
f4d9c2bb917be0ffe132dffcc2ad4f1b0fcc5967
roboflow__supervision-910
910
roboflow/supervision
null
0c0685987a57ffbcff8eea89bb16aff70846403e
2024-02-15T21:29:25Z
diff --git a/supervision/detection/tools/polygon_zone.py b/supervision/detection/tools/polygon_zone.py index c6f5b80e6..1357b03c2 100644 --- a/supervision/detection/tools/polygon_zone.py +++ b/supervision/detection/tools/polygon_zone.py @@ -1,5 +1,5 @@ from dataclasses import replace -from typing import Optional, Tupl...
diff --git a/test/detection/test_polygonzone.py b/test/detection/test_polygonzone.py new file mode 100644 index 000000000..2aae955f7 --- /dev/null +++ b/test/detection/test_polygonzone.py @@ -0,0 +1,92 @@ +from contextlib import ExitStack as DoesNotRaise +from test.test_utils import mock_detections + +import numpy as n...
[ { "components": [ { "doc": "A decorator to mark a function's parameter as deprecated\nand issue a warning when used.\n\nParameters:\n- old_parameter (str): The name of the deprecated parameter.\n- new_parameter (str): The name of the parameter that should be used instead.\n- map_function (Callable...
[ "test/detection/test_polygonzone.py::test_polygon_zone_trigger[detections0-polygon_zone0-expected_results0-exception0]", "test/detection/test_polygonzone.py::test_polygon_zone_trigger[detections1-polygon_zone1-expected_results1-exception1]", "test/detection/test_polygonzone.py::test_polygon_zone_trigger[detecti...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Polygonzone add multiple anchors support # Description This PR addresses [Issue #844](https://github.com/roboflow/supervision/issues/844). - Rename `triggering_position` to `triggering_anchors` ...
3eb5c0b024e3e46877b7fe4fd66e6177d1308ba0
huggingface__huggingface_hub-2027
2,027
huggingface/huggingface_hub
null
0c272d506e390f2d7b9dac68159595845c7f8e3b
2024-02-14T18:00:11Z
diff --git a/src/huggingface_hub/hf_file_system.py b/src/huggingface_hub/hf_file_system.py index a78ab0fd80..630ff64ba8 100644 --- a/src/huggingface_hub/hf_file_system.py +++ b/src/huggingface_hub/hf_file_system.py @@ -577,6 +577,20 @@ def isfile(self, path): except: # noqa: E722 return False +...
diff --git a/tests/test_hf_file_system.py b/tests/test_hf_file_system.py index 02cf913515..af9bf3b94f 100644 --- a/tests/test_hf_file_system.py +++ b/tests/test_hf_file_system.py @@ -131,6 +131,16 @@ def test_glob(self): ) self.assertIsNotNone(files[keys[0]]["last_commit"]) + def test_url(self): ...
[ { "components": [ { "doc": "Get the HTTP URL of the given path", "lines": [ 580, 592 ], "name": "HfFileSystem.url", "signature": "def url(self, path: str) -> str:", "type": "function" }, { "doc": "", "lines": [...
[ "tests/test_hf_file_system.py::HfFileSystemTests::test_url" ]
[ "tests/test_hf_file_system.py::HfFileSystemTests::test_copy_file", "tests/test_hf_file_system.py::HfFileSystemTests::test_file_type", "tests/test_hf_file_system.py::HfFileSystemTests::test_find_data_file_no_revision", "tests/test_hf_file_system.py::HfFileSystemTests::test_find_root_directory_no_revision", "...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add `HfFileSystem.url` method Adds a `url` method to the `HfFileSystem` to simplify converting HF paths to HTTP URLs, which should be useful when working with libs that support HTTP URLs but not `fssp...
4058e1f97ebe256b2f3006d4bc31be275c66df6b
roboflow__supervision-847
847
roboflow/supervision
null
d423ff3b6c74f38713255f18e363ea2e1986f5dd
2024-02-03T03:10:21Z
diff --git a/docs/detection/utils.md b/docs/detection/utils.md index 54d1f279f..74adc6e74 100644 --- a/docs/detection/utils.md +++ b/docs/detection/utils.md @@ -11,10 +11,22 @@ comments: true :::supervision.detection.utils.box_iou_batch <div class="md-typeset"> - <h2>non_max_suppression</h2> + <h2>mask_iou_batch<...
diff --git a/test/detection/test_utils.py b/test/detection/test_utils.py index 576b25f8f..d09348ff5 100644 --- a/test/detection/test_utils.py +++ b/test/detection/test_utils.py @@ -6,13 +6,14 @@ from supervision.config import CLASS_NAME_DATA_FIELD from supervision.detection.utils import ( + box_non_max_suppressi...
diff --git a/docs/detection/utils.md b/docs/detection/utils.md index 54d1f279f..74adc6e74 100644 --- a/docs/detection/utils.md +++ b/docs/detection/utils.md @@ -11,10 +11,22 @@ comments: true :::supervision.detection.utils.box_iou_batch <div class="md-typeset"> - <h2>non_max_suppression</h2> + <h2>mask_iou_batch<...
[ { "components": [ { "doc": "Compute Intersection over Union (IoU) of two sets of masks -\n `masks_true` and `masks_detection`.\n\nArgs:\n masks_true (np.ndarray): 3D `np.ndarray` representing ground-truth masks.\n masks_detection (np.ndarray): 3D `np.ndarray` representing detection masks....
[ "test/detection/test_utils.py::test_box_non_max_suppression[predictions0-0.5-expected_result0-exception0]", "test/detection/test_utils.py::test_box_non_max_suppression[predictions1-0.5-expected_result1-exception1]", "test/detection/test_utils.py::test_box_non_max_suppression[predictions2-0.5-expected_result2-ex...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> [NMS] - add segmentation models support # Description This PR introduces Non-Maximum Suppression (NMS) algorithm focused on segmentation, enhancing our object detection capabilities, particularly i...
3eb5c0b024e3e46877b7fe4fd66e6177d1308ba0
deepset-ai__haystack-6758
6,758
deepset-ai/haystack
null
88191e74bf72345924ed703c65edb9fdf6bd8edd
2024-01-17T14:05:22Z
diff --git a/haystack/components/converters/html.py b/haystack/components/converters/html.py index 0586065c78..dea38dbd1a 100644 --- a/haystack/components/converters/html.py +++ b/haystack/components/converters/html.py @@ -3,7 +3,7 @@ from typing import Any, Dict, List, Optional, Union, Literal from boilerpy3 import ...
diff --git a/test/components/converters/test_html_to_document.py b/test/components/converters/test_html_to_document.py index aa8df51197..519a1c053e 100644 --- a/test/components/converters/test_html_to_document.py +++ b/test/components/converters/test_html_to_document.py @@ -160,3 +160,12 @@ def test_mixed_sources_run(s...
[ { "components": [ { "doc": "", "lines": [ 52, 53 ], "name": "HTMLToDocument.to_dict", "signature": "def to_dict(self) -> Dict[str, Any]:", "type": "function" }, { "doc": "", "lines": [ 56, 5...
[ "test/components/converters/test_html_to_document.py::TestHTMLToDocument::test_serde" ]
[ "[", "test/components/converters/test_html_to_document.py::TestHTMLToDocument::test_run", "test/components/converters/test_html_to_document.py::TestHTMLToDocument::test_run_different_extractors", "test/components/converters/test_html_to_document.py::TestHTMLToDocument::test_run_doc_metadata", "test/componen...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> feat: Add serde methods to `HTMLToDocument` ### Related Issues - fixes #6588 ### How did you test it? <!-- unit tests, integration tests, manual verification, instructions for manual tests --...
Here is the discussion in the issues of the pull request. <issues> Add `to_dict` and `from_dict` methods in `HTMLToDocument` `HTMLToDocument` Component is missing serialization methods. We need to add them so it can be properly serialized. ---------- -------------------- </issues>
f4d9c2bb917be0ffe132dffcc2ad4f1b0fcc5967
conan-io__conan-15284
15,284
conan-io/conan
null
98d8f6aaa074b2bf6b827a359daf415f447a86a3
2023-12-16T10:42:15Z
diff --git a/conan/api/subapi/lockfile.py b/conan/api/subapi/lockfile.py index e9fc4daf337..7e4bf7de760 100644 --- a/conan/api/subapi/lockfile.py +++ b/conan/api/subapi/lockfile.py @@ -88,6 +88,12 @@ def add_lockfile(lockfile=None, requires=None, build_requires=None, python_requi python_requires=p...
diff --git a/conans/test/integration/lockfile/test_user_overrides.py b/conans/test/integration/lockfile/test_user_overrides.py index f37a91c4259..53648a5c6c2 100644 --- a/conans/test/integration/lockfile/test_user_overrides.py +++ b/conans/test/integration/lockfile/test_user_overrides.py @@ -1,4 +1,7 @@ import json +i...
[ { "components": [ { "doc": "", "lines": [ 92, 95 ], "name": "LockfileAPI.remove_lockfile", "signature": "def remove_lockfile(lockfile, requires=None, build_requires=None, python_requires=None):", "type": "function" } ], "fil...
[ "conans/test/integration/lockfile/test_user_overrides.py::TestLockRemove::test_lock_remove[--requires=math/*-removed0]", "conans/test/integration/lockfile/test_user_overrides.py::TestLockRemove::test_lock_remove[--requires=math/2.0-removed1]", "conans/test/integration/lockfile/test_user_overrides.py::TestLockRe...
[ "conans/test/integration/lockfile/test_user_overrides.py::test_user_overrides", "conans/test/integration/lockfile/test_user_overrides.py::test_user_build_overrides", "conans/test/integration/lockfile/test_user_overrides.py::test_user_python_overrides", "conans/test/integration/lockfile/test_user_overrides.py:...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> new lock remove command Changelog: Feature: New ``conan lock remove`` command to remove requires from lockfiles. Docs: https://github.com/conan-io/docs/pull/3496 I am proposing this PR to close: ...
4a5b19a75db9225316c8cb022a2dfb9705a2af34
astronomer__astronomer-cosmos-758
758
astronomer/astronomer-cosmos
null
9fcee8e785ea3bcb0d19e8d36f3f5b94bedafc98
2023-12-11T01:54:27Z
diff --git a/cosmos/profiles/athena/access_key.py b/cosmos/profiles/athena/access_key.py index a8f71c2b7..02de2be24 100644 --- a/cosmos/profiles/athena/access_key.py +++ b/cosmos/profiles/athena/access_key.py @@ -3,20 +3,33 @@ from typing import Any +from cosmos.exceptions import CosmosValueError + from ..base im...
diff --git a/tests/profiles/athena/test_athena_access_key.py b/tests/profiles/athena/test_athena_access_key.py index 22c8efa2c..c224a9d4b 100644 --- a/tests/profiles/athena/test_athena_access_key.py +++ b/tests/profiles/athena/test_athena_access_key.py @@ -1,20 +1,49 @@ "Tests for the Athena profile." import json -...
diff --git a/pyproject.toml b/pyproject.toml index c08de4ade..9d367c075 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -57,6 +57,7 @@ dbt-all = [ ] dbt-athena = [ "dbt-athena-community", + "apache-airflow-providers-amazon>=8.0.0", ] dbt-bigquery = [ "dbt-bigquery", @@ -110,7 +111,6 @@ tests = [ ...
[ { "components": [ { "doc": "Overwrites the env_vars for athena, Returns a dictionary of environment variables that should be set based on the self.temporary_credentials.", "lines": [ 75, 89 ], "name": "AthenaAccessKeyProfileMapping.env_vars", "si...
[ "tests/profiles/athena/test_athena_access_key.py::test_athena_connection_claiming", "tests/profiles/athena/test_athena_access_key.py::test_athena_profile_args", "tests/profiles/athena/test_athena_access_key.py::test_athena_profile_args_overrides", "tests/profiles/athena/test_athena_access_key.py::test_athena_...
[ "tests/profiles/athena/test_athena_access_key.py::test_athena_profile_mapping_selected" ]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Athena - Get temporary credentials from the conn_id ## Description <!-- Add a brief but complete description of the change. --> Passes the `conn_id` to the `AwsGenericHook` and uses `get_credent...
c5edba07d2265d5185eaba149a639e8a0740e498
roboflow__supervision-620
620
roboflow/supervision
null
10c44b0143c13b33c1951509f9f11c37c6373752
2023-11-26T10:27:34Z
diff --git a/supervision/draw/color.py b/supervision/draw/color.py index 69bcc9c5e..9d1b4ad98 100644 --- a/supervision/draw/color.py +++ b/supervision/draw/color.py @@ -71,6 +71,21 @@ def from_hex(cls, color_hex: str) -> Color: r, g, b = (int(color_hex[i : i + 2], 16) for i in range(0, 6, 2)) return c...
diff --git a/test/draw/test_color.py b/test/draw/test_color.py index 723f7043e..eb4c36574 100644 --- a/test/draw/test_color.py +++ b/test/draw/test_color.py @@ -30,3 +30,22 @@ def test_color_from_hex( with exception: result = Color.from_hex(color_hex=color_hex) assert result == expected_result + ...
[ { "components": [ { "doc": "Converts the Color instance to a hex string.\n\nReturns:\n str: The hexadecimal color string.\n\nExample:\n ```\n >>> Color(r=255, g=0, b=255).as_hex()\n '#ff00ff'\n ```", "lines": [ 74, 87 ], "name": "Color.as_...
[ "test/draw/test_color.py::test_color_as_hex[color0-#ffffff-exception0]", "test/draw/test_color.py::test_color_as_hex[color1-#000000-exception1]", "test/draw/test_color.py::test_color_as_hex[color2-#ff0000-exception2]", "test/draw/test_color.py::test_color_as_hex[color3-#00ff00-exception3]", "test/draw/test_...
[ "test/draw/test_color.py::test_color_from_hex[fff-expected_result0-exception0]", "test/draw/test_color.py::test_color_from_hex[#fff-expected_result1-exception1]", "test/draw/test_color.py::test_color_from_hex[ffffff-expected_result2-exception2]", "test/draw/test_color.py::test_color_from_hex[#ffffff-expected_...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add 'as_hex' method and corresponding test to `Color` class. ## Type of change Please delete options that are not relevant. - [ ] Bug fix (non-breaking change which fixes an issue) - [x] ...
3eb5c0b024e3e46877b7fe4fd66e6177d1308ba0
google-deepmind__optax-632
632
google-deepmind/optax
null
35920a3712d71992429dc0bd605e75d31cbe2b21
2023-11-13T14:40:27Z
diff --git a/optax/__init__.py b/optax/__init__.py index 0b373684d..6f844478d 100644 --- a/optax/__init__.py +++ b/optax/__init__.py @@ -17,6 +17,7 @@ from optax import contrib from optax import losses from optax import monte_carlo +from optax import projections from optax import schedules from optax import second...
diff --git a/optax/projections/_projections_test.py b/optax/projections/_projections_test.py new file mode 100644 index 000000000..15d4f1204 --- /dev/null +++ b/optax/projections/_projections_test.py @@ -0,0 +1,47 @@ +# Copyright 2021 DeepMind Technologies Limited. All Rights Reserved. +# +# Licensed under the Apache L...
[ { "components": [ { "doc": "Projection onto the non-negative orthant.\n\n.. math::\n\n \\underset{p}{\\text{argmin}} ~ ||x - p||_2^2 \\quad\n \\textrm{subject to} \\quad p \\ge 0\n\nwhere :math:`x` is the input pytree.\n\nArgs:\n pytree: pytree to project.\nReturns:\n projected pytree, with th...
[ "optax/projections/_projections_test.py::ProjectionsTest::test_projection_non_negative" ]
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Start optax.projections subpackage and add projection_non_negative. Start optax.projections subpackage and add projection_non_negative. In the future, this subpackage will contain more projections (p...
1e08bccf195ac54e7d9d766eb5e69345bf0e3230
huggingface__datasets-6318
6,318
huggingface/datasets
null
3aeb078ba1afd713e901df43343c160877403d07
2023-10-19T12:19:13Z
diff --git a/src/datasets/utils/py_utils.py b/src/datasets/utils/py_utils.py index 912824fa7f3..243bc0f99c9 100644 --- a/src/datasets/utils/py_utils.py +++ b/src/datasets/utils/py_utils.py @@ -736,6 +736,29 @@ def proxy(func): return proxy +if config.DILL_VERSION < version.parse("0.3.6"): + + @pklregister(s...
diff --git a/tests/test_fingerprint.py b/tests/test_fingerprint.py index 5538f27554e..f4d5d65744e 100644 --- a/tests/test_fingerprint.py +++ b/tests/test_fingerprint.py @@ -2,6 +2,7 @@ import os import pickle import subprocess +from functools import partial from hashlib import md5 from pathlib import Path from te...
[ { "components": [ { "doc": "", "lines": [ 753, 759 ], "name": "_save_set", "signature": "def _save_set(pickler, obj):", "type": "function" } ], "file": "src/datasets/utils/py_utils.py" } ]
[ "tests/test_fingerprint.py::HashingTest::test_set_stable" ]
[ "tests/test_fingerprint.py::RecurseDumpTest::test_dump_ignores_line_definition_of_function", "tests/test_fingerprint.py::RecurseDumpTest::test_dump_ipython_function", "tests/test_fingerprint.py::RecurseDumpTest::test_recurse_dump_for_class", "tests/test_fingerprint.py::RecurseDumpTest::test_recurse_dump_for_f...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Deterministic set hash Sort the items in a set according to their `datasets.fingerprint.Hasher.hash` hash to get a deterministic hash of sets. This is useful to get deterministic hashes of tokenize...
5142a8cf61d8a4495eda3d91dc4283a6df01ea14
pyvista__pyvista-5055
5,055
pyvista/pyvista
0.43
e574da02bb2c2d7aafb2e8e15f55024505087b56
2023-10-11T23:44:19Z
diff --git a/pyvista/plotting/text.py b/pyvista/plotting/text.py index b5e0292d364..492990d6ed0 100644 --- a/pyvista/plotting/text.py +++ b/pyvista/plotting/text.py @@ -250,6 +250,14 @@ class TextProperty(_vtk.vtkTextProperty): shadow : bool, optional If enable the shadow. + justification_horizontal ...
diff --git a/tests/plotting/test_text.py b/tests/plotting/test_text.py index 2a15cbb4d46..0046eec024c 100644 --- a/tests/plotting/test_text.py +++ b/tests/plotting/test_text.py @@ -129,3 +129,34 @@ def test_property_set_font_file(prop): prop.set_font_file(font_file) with pytest.raises(FileNotFoundError): ...
[ { "components": [ { "doc": "", "lines": [ 520, 529 ], "name": "TextProperty.justification_horizontal", "signature": "def justification_horizontal(self, justification: str):", "type": "function" }, { "doc": "", ...
[ "tests/plotting/test_text.py::test_property_justification_horizontal[justification0]", "tests/plotting/test_text.py::test_property_justification_horizontal[justification1]", "tests/plotting/test_text.py::test_property_justification_horizontal[justification2]", "tests/plotting/test_text.py::test_property_justi...
[ "tests/plotting/test_text.py::test_corner_annotation_text", "tests/plotting/test_text.py::test_corner_annotation_prop", "tests/plotting/test_text.py::test_text_input", "tests/plotting/test_text.py::test_text_prop", "tests/plotting/test_text.py::test_text_position", "tests/plotting/test_text.py::test_prope...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add `justification` property to `TextProperty` ### Overview <!-- Please insert a high-level description of this pull request here. --> Add `justify` property to `TextProperty`. ```python >>> i...
25921025e45cafe97b2e274de39c3076b3c84681
softlayer__softlayer-python-2073
2,073
softlayer/softlayer-python
null
fe65dc3e4978e1497f242e0318ed6d43f6659b0b
2023-08-10T07:29:02Z
diff --git a/SoftLayer/CLI/routes.py b/SoftLayer/CLI/routes.py index 54c1deaad..dbaf1cfe0 100644 --- a/SoftLayer/CLI/routes.py +++ b/SoftLayer/CLI/routes.py @@ -403,6 +403,8 @@ ('user:device-access', 'SoftLayer.CLI.user.device_access:cli'), ('user:vpn-manual', 'SoftLayer.CLI.user.vpn_manual:cli'), ('user...
diff --git a/tests/CLI/modules/user_tests.py b/tests/CLI/modules/user_tests.py index 02956e682..804c9ef1d 100644 --- a/tests/CLI/modules/user_tests.py +++ b/tests/CLI/modules/user_tests.py @@ -8,10 +8,9 @@ import sys import unittest -from unittest import mock as mock - from SoftLayer.fixtures import SoftLayer_User...
diff --git a/docs/cli/users.rst b/docs/cli/users.rst index e3d45bb1d..af86b4a94 100644 --- a/docs/cli/users.rst +++ b/docs/cli/users.rst @@ -64,6 +64,14 @@ Version 5.6.0 introduces the ability to interact with user accounts from the cli :prog: user vpn-password :show-nested: +.. click:: SoftLayer.CLI.user.v...
[ { "components": [ { "doc": "Enable vpn for a user.\n\nExample::\n slcli user vpn-enable 1234567", "lines": [ 15, 29 ], "name": "vpn_enable", "signature": "def vpn_enable(env, user):", "type": "function" }, { "doc": ...
[ "tests/CLI/modules/user_tests.py::UserCLITests::test_vpn_disable", "tests/CLI/modules/user_tests.py::UserCLITests::test_vpn_enable" ]
[ "tests/CLI/modules/user_tests.py::UserCLITests::test_add_api_authentication_key", "tests/CLI/modules/user_tests.py::UserCLITests::test_api_key_with_all_option", "tests/CLI/modules/user_tests.py::UserCLITests::test_api_key_without_option", "tests/CLI/modules/user_tests.py::UserCLITests::test_create_user", "t...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Added new slcli user vpn-disable and slcli user vpn-enable command Hi @allmightyspiff, Fixes: #2069 **Title:** new slcli user vpn-enable command **Description:** I have added new feature...
bd1ecce1ec4313b9ceefd3cfea52d1b9274fef9d
roboflow__supervision-245
245
roboflow/supervision
null
36cdcf1b128e38cb9a086290fbfb0130fa64ac5b
2023-07-26T08:25:02Z
diff --git a/supervision/dataset/core.py b/supervision/dataset/core.py index ce7e0edb5..6e47d747f 100644 --- a/supervision/dataset/core.py +++ b/supervision/dataset/core.py @@ -31,7 +31,6 @@ train_test_split, ) from supervision.detection.core import Detections -from supervision.utils.file import list_files_with_...
diff --git a/test/dataset/formats/test_pascal_voc.py b/test/dataset/formats/test_pascal_voc.py new file mode 100644 index 000000000..fa3f11244 --- /dev/null +++ b/test/dataset/formats/test_pascal_voc.py @@ -0,0 +1,147 @@ +import xml.etree.ElementTree as ET +from contextlib import ExitStack as DoesNotRaise +from test.ut...
[ { "components": [ { "doc": "Converts an XML object in Pascal VOC format to a Detections object.\nExpected XML format:\n<annotation>\n ...\n <object>\n <name>dog</name>\n <bndbox>\n <xmin>48</xmin>\n <ymin>240</ymin>\n <xmax>195</xmax>\n ...
[ "test/dataset/formats/test_pascal_voc.py::test_object_to_pascal_voc[xyxy0-test-None-expected_result0-exception0]", "test/dataset/formats/test_pascal_voc.py::test_object_to_pascal_voc[xyxy1-test-polygon1-expected_result1-exception1]", "test/dataset/formats/test_pascal_voc.py::test_parse_polygon_points[polygon_el...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add support for loading segmentation datasets in Pascal VOC format # Description Add possibility to load PASCAL VOC segmentation masks in addition to object detection ([related issue](https://githu...
3eb5c0b024e3e46877b7fe4fd66e6177d1308ba0
scrapy__scrapy-5979
5,979
scrapy/scrapy
null
8055a948dc2544c4d8ebe7aa1c6227e19b1583ac
2023-07-18T10:33:03Z
diff --git a/docs/topics/extensions.rst b/docs/topics/extensions.rst index 96e0216b8f0..8d4749ab33d 100644 --- a/docs/topics/extensions.rst +++ b/docs/topics/extensions.rst @@ -258,6 +258,7 @@ The conditions for closing a spider can be configured through the following settings: * :setting:`CLOSESPIDER_TIMEOUT` +* :...
diff --git a/tests/spiders.py b/tests/spiders.py index 6ff48f4710c..f29dea2a12b 100644 --- a/tests/spiders.py +++ b/tests/spiders.py @@ -77,6 +77,22 @@ def errback(self, failure): self.t2_err = time.time() +class SlowSpider(DelaySpider): + name = "slow" + + def start_requests(self): + # 1st re...
diff --git a/docs/topics/extensions.rst b/docs/topics/extensions.rst index 96e0216b8f0..8d4749ab33d 100644 --- a/docs/topics/extensions.rst +++ b/docs/topics/extensions.rst @@ -258,6 +258,7 @@ The conditions for closing a spider can be configured through the following settings: * :setting:`CLOSESPIDER_TIMEOUT` +* :...
[ { "components": [ { "doc": "", "lines": [ 90, 98 ], "name": "CloseSpider.spider_opened_no_item", "signature": "def spider_opened_no_item(self, spider):", "type": "function" }, { "doc": "", "lines": [ ...
[ "tests/test_closespider.py::TestCloseSpider::test_closespider_timeout_no_item" ]
[ "tests/test_closespider.py::TestCloseSpider::test_closespider_errorcount", "tests/test_closespider.py::TestCloseSpider::test_closespider_itemcount", "tests/test_closespider.py::TestCloseSpider::test_closespider_pagecount", "tests/test_closespider.py::TestCloseSpider::test_closespider_timeout" ]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> introduce CLOSESPIDER_TIMEOUT_NO_ITEM in CloseSpider **Motivation:** Sometimes spiders still keep running without producing any items. This could be due to a variety of reasons like poor dupe URL filt...
57a5460529ff71c42e4d0381265b1b512b1eb09b
matplotlib__matplotlib-26293
26,293
matplotlib/matplotlib
3.7
a4dca24d04f928a9e614db403c716237446140b2
2023-07-12T06:31:49Z
diff --git a/doc/api/axes_api.rst b/doc/api/axes_api.rst index 3457368fa51c..8b01a120da5b 100644 --- a/doc/api/axes_api.rst +++ b/doc/api/axes_api.rst @@ -335,6 +335,8 @@ Autoscaling and margins Axes.use_sticky_edges Axes.margins + Axes.get_xmargin + Axes.get_ymargin Axes.set_xmargin Axes.set_ymar...
diff --git a/lib/matplotlib/tests/test_axes.py b/lib/matplotlib/tests/test_axes.py index 0fcb2eb26cbb..6dea39a702fc 100644 --- a/lib/matplotlib/tests/test_axes.py +++ b/lib/matplotlib/tests/test_axes.py @@ -6153,6 +6153,14 @@ def test_margins(): ymax + (ymax - ymin) * 0.5) +def test_m...
diff --git a/doc/api/axes_api.rst b/doc/api/axes_api.rst index 3457368fa51c..8b01a120da5b 100644 --- a/doc/api/axes_api.rst +++ b/doc/api/axes_api.rst @@ -335,6 +335,8 @@ Autoscaling and margins Axes.use_sticky_edges Axes.margins + Axes.get_xmargin + Axes.get_ymargin Axes.set_xmargin Axes.set_ymar...
[ { "components": [ { "doc": "Retrieve autoscaling margin of the x-axis.\n\n.. versionadded:: 3.9\n\nReturns\n-------\nxmargin : float\n\nSee Also\n--------\nmatplotlib.axes.Axes.set_xmargin", "lines": [ 2620, 2634 ], "name": "_AxesBase.get_xmargin", ...
[ "lib/matplotlib/tests/test_axes.py::test_margin_getters", "lib/mpl_toolkits/mplot3d/tests/test_axes3d.py::test_margin_getters" ]
[ "lib/matplotlib/tests/test_axes.py::test_invisible_axes[png]", "lib/matplotlib/tests/test_axes.py::test_get_labels", "lib/matplotlib/tests/test_axes.py::test_repr", "lib/matplotlib/tests/test_axes.py::test_label_loc_vertical[png]", "lib/matplotlib/tests/test_axes.py::test_label_loc_horizontal[png]", "lib/...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Added get_xmargin(), get_ymargin() and get_zmargin() and tests. ## PR summary Closes #26281 by adding `get_xmargin()`, `get_ymargin()` for` _AxesBase` and `get_zmargin()` for `Axes3D`, as well as te...
Here is the discussion in the issues of the pull request. <issues> [ENH]: Add get_xmargin, get_ymargin, get_zmargin axes methods ### Problem Currently, I think the only public API to retrieve the margins settings on an Axes is ax.margins(), which has a somewhat peculiar API (basically inherited from pyplot/matlab); ad...
a4dca24d04f928a9e614db403c716237446140b2
conan-io__conan-14233
14,233
conan-io/conan
null
57c7049c758a685cdc02e870eb77617af5e45da6
2023-07-06T06:04:41Z
diff --git a/conan/tools/gnu/pkgconfigdeps.py b/conan/tools/gnu/pkgconfigdeps.py index e793711ee81..1aa86e9d472 100644 --- a/conan/tools/gnu/pkgconfigdeps.py +++ b/conan/tools/gnu/pkgconfigdeps.py @@ -1,12 +1,13 @@ import os +import re import textwrap from collections import namedtuple from jinja2 import Template...
diff --git a/conans/test/integration/toolchains/gnu/test_pkgconfigdeps.py b/conans/test/integration/toolchains/gnu/test_pkgconfigdeps.py index e211bd6e889..fb6bc02c644 100644 --- a/conans/test/integration/toolchains/gnu/test_pkgconfigdeps.py +++ b/conans/test/integration/toolchains/gnu/test_pkgconfigdeps.py @@ -94,9 +9...
[ { "components": [ { "doc": "Get all the freeform variables defined by Conan and\nusers (through ``pkg_config_custom_content``). This last ones will override the\nConan defined variables.", "lines": [ 129, 154 ], "name": "_PCContentGenerator._get_pc_varia...
[ "conans/test/integration/toolchains/gnu/test_pkgconfigdeps.py::test_empty_dirs", "conans/test/integration/toolchains/gnu/test_pkgconfigdeps.py::test_custom_content", "conans/test/integration/toolchains/gnu/test_pkgconfigdeps.py::test_pkg_config_name_full_aliases" ]
[ "conans/test/integration/toolchains/gnu/test_pkgconfigdeps.py::test_pkg_config_dirs", "conans/test/integration/toolchains/gnu/test_pkgconfigdeps.py::test_system_libs", "conans/test/integration/toolchains/gnu/test_pkgconfigdeps.py::test_multiple_include", "conans/test/integration/toolchains/gnu/test_pkgconfigd...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> [PkgConfigDeps] `pkg_config_custom_content` property overwrites variables Changelog: Feature: Let `pkg_config_custom_content` overwrite default `*.pc` variables created by `PkgConfigDeps`. Changelog:...
4a5b19a75db9225316c8cb022a2dfb9705a2af34
astropy__astropy-14878
14,878
astropy/astropy
5.2
88790514bdf248e43c2fb15ee18cfd3390846145
2023-05-29T22:12:40Z
diff --git a/astropy/table/row.py b/astropy/table/row.py index 03b7d13219b9..cab570e837c6 100644 --- a/astropy/table/row.py +++ b/astropy/table/row.py @@ -106,6 +106,35 @@ def __iter__(self): for col in self._table.columns.values(): yield col[index] + def get(self, key, default=None, /): + ...
diff --git a/astropy/table/tests/test_row.py b/astropy/table/tests/test_row.py index 8ad9f46ba80b..6af2f945a8e7 100644 --- a/astropy/table/tests/test_row.py +++ b/astropy/table/tests/test_row.py @@ -372,3 +372,11 @@ def test_uint_indexing(): assert repr(t[1]).splitlines() == trepr assert repr(t[np.int_(1)]).s...
diff --git a/docs/changes/table/14878.feature.rst b/docs/changes/table/14878.feature.rst new file mode 100644 index 000000000000..768574409629 --- /dev/null +++ b/docs/changes/table/14878.feature.rst @@ -0,0 +1,3 @@ +The new ``Row.get()`` method, analogous to ``dict.get()``, returns the value of +the specified column f...
[ { "components": [ { "doc": "Return the value for key if key is in the columns, else default.\n\nParameters\n----------\nkey : `str`, positional-only\n The name of the column to look for.\ndefault : `object`, optional, positional-only\n The value to return if the ``key`` is not among the colu...
[ "astropy/table/tests/test_row.py::test_row_get" ]
[ "astropy/table/tests/test_row.py::test_masked_row_with_object_col", "astropy/table/tests/test_row.py::TestRow::test_subclass[unmasked]", "astropy/table/tests/test_row.py::TestRow::test_subclass[masked]", "astropy/table/tests/test_row.py::TestRow::test_subclass[subclass]", "astropy/table/tests/test_row.py::T...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Implement `astropy.table.Row.get()` ### Description Currently code that tries to access a column in a `Row` when the presence of the column is not guaranteed either has to check for the presence of...
32bd0ffb6898c6a57b9ec1a55c13c7a0efe8d273
graphql-python__graphene-1506
1,506
graphql-python/graphene
null
8ede21e06381c096589c424960a6cfaca304badb
2023-05-29T18:07:14Z
diff --git a/graphene/types/inputobjecttype.py b/graphene/types/inputobjecttype.py index 5d2785105..fdf38ba05 100644 --- a/graphene/types/inputobjecttype.py +++ b/graphene/types/inputobjecttype.py @@ -14,6 +14,31 @@ class InputObjectTypeOptions(BaseOptions): container = None # type: InputObjectTypeContainer +...
diff --git a/graphene/types/tests/conftest.py b/graphene/types/tests/conftest.py new file mode 100644 index 000000000..43f7d7268 --- /dev/null +++ b/graphene/types/tests/conftest.py @@ -0,0 +1,12 @@ +import pytest +from graphql import Undefined + +from graphene.types.inputobjecttype import set_input_object_type_default...
[ { "components": [ { "doc": "Change the sentinel value returned by non-specified fields in an InputObjectType\nUseful to differentiate between a field not being set and a field being set to None by using a sentinel value\n(e.g. Undefined is a good sentinel value for this purpose)\n\nThis function s...
[ "graphene/types/tests/test_inputobjecttype.py::test_generate_inputobjecttype", "graphene/types/tests/test_inputobjecttype.py::test_generate_inputobjecttype_with_meta", "graphene/types/tests/test_inputobjecttype.py::test_generate_inputobjecttype_with_fields", "graphene/types/tests/test_inputobjecttype.py::test...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Allow the user to change InputObjectType's default value on non-specified inputs to a sentinel value This PR aims to remove the ambiguity that happens with `InputObjectType`s when accessing optional f...
8ede21e06381c096589c424960a6cfaca304badb
pvlib__pvlib-python-1730
1,730
pvlib/pvlib-python
0.9
cfd6e78235e9eff55308f138d4dfe79317b72299
2023-05-10T23:08:53Z
diff --git a/docs/sphinx/source/reference/irradiance/decomposition.rst b/docs/sphinx/source/reference/irradiance/decomposition.rst index 0677d6ac95..08724be38e 100644 --- a/docs/sphinx/source/reference/irradiance/decomposition.rst +++ b/docs/sphinx/source/reference/irradiance/decomposition.rst @@ -12,6 +12,7 @@ DNI est...
diff --git a/pvlib/tests/test_irradiance.py b/pvlib/tests/test_irradiance.py index d0158dad1a..ab1af612a7 100644 --- a/pvlib/tests/test_irradiance.py +++ b/pvlib/tests/test_irradiance.py @@ -821,6 +821,22 @@ def test_boland(): assert np.allclose(out, expected) +def test_orgill_hollands(): + index = pd.Datet...
diff --git a/docs/sphinx/source/reference/irradiance/decomposition.rst b/docs/sphinx/source/reference/irradiance/decomposition.rst index 0677d6ac95..08724be38e 100644 --- a/docs/sphinx/source/reference/irradiance/decomposition.rst +++ b/docs/sphinx/source/reference/irradiance/decomposition.rst @@ -12,6 +12,7 @@ DNI est...
[ { "components": [ { "doc": "Estimate DNI and DHI from GHI using the Orgill and Hollands model.\n\nThe Orgill and Hollands model [1]_ estimates the diffuse fraction DF from\nglobal horizontal irradiance through an empirical relationship between\nhourly DF observations (in Toronto, Canada) and the r...
[ "pvlib/tests/test_irradiance.py::test_orgill_hollands" ]
[ "pvlib/tests/test_irradiance.py::test_get_extra_radiation[asce-300-1383.636203]", "pvlib/tests/test_irradiance.py::test_get_extra_radiation[asce-300.0-1383.636203]", "pvlib/tests/test_irradiance.py::test_get_extra_radiation[asce-testval2-1383.636203]", "pvlib/tests/test_irradiance.py::test_get_extra_radiation...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> add orgill hollands decomposition <!-- Thank you for your contribution! The following items must be addressed before the code can be merged. Please don't hesitate to ask for help if you're unsure of h...
d53f97e984bfdd268aa92f8bf482ced0edda0110
joke2k__faker-1848
1,848
joke2k/faker
null
d93d8a0d42b7a92d8b386d73c85886b2633124e7
2023-04-22T05:52:53Z
diff --git a/faker/providers/phone_number/en_US/__init__.py b/faker/providers/phone_number/en_US/__init__.py index bb0b77df84..ac1367e8bf 100644 --- a/faker/providers/phone_number/en_US/__init__.py +++ b/faker/providers/phone_number/en_US/__init__.py @@ -37,3 +37,14 @@ class Provider(PhoneNumberProvider): "001...
diff --git a/tests/providers/test_phone_number.py b/tests/providers/test_phone_number.py index 8fd54ec316..1bb38daf9e 100644 --- a/tests/providers/test_phone_number.py +++ b/tests/providers/test_phone_number.py @@ -364,3 +364,18 @@ def test_phone_number(self, faker, num_samples): for _ in range(num_samples): ...
[ { "components": [ { "doc": "", "lines": [ 48, 50 ], "name": "Provider.basic_phone_number", "signature": "def basic_phone_number(self) -> str:", "type": "function" } ], "file": "faker/providers/phone_number/en_US/__init__.py"...
[ "tests/providers/test_phone_number.py::TestEnUs::test_basic_phone_number" ]
[ "tests/providers/test_phone_number.py::TestPhoneNumber::test_country_calling_code", "tests/providers/test_phone_number.py::TestPhoneNumber::test_msisdn", "tests/providers/test_phone_number.py::TestAzAz::test_phone_number", "tests/providers/test_phone_number.py::TestAzAz::test_cellphone_number", "tests/provi...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> add a separate basic number format for US issue ticket: https://github.com/joke2k/faker/issues/1847 ### What does this change Adds a 'basic phone number' type to en_US to comply with some form r...
6edfdbf6ae90b0153309e3bf066aa3b2d16494a7
matplotlib__matplotlib-25686
25,686
matplotlib/matplotlib
3.7
b86ebbafe4673583345d0a01a6ea205af34c58dc
2023-04-14T21:31:42Z
diff --git a/doc/users/next_whats_new/get_suptitle.rst b/doc/users/next_whats_new/get_suptitle.rst new file mode 100644 index 000000000000..b03ad10b1b4c --- /dev/null +++ b/doc/users/next_whats_new/get_suptitle.rst @@ -0,0 +1,4 @@ +``Figure.get_suptitle()``, ``Figure.get_supxlabel()``, ``Figure.get_supylabel()`` +~~~~~...
diff --git a/lib/matplotlib/tests/test_figure.py b/lib/matplotlib/tests/test_figure.py index 4188ca878fed..d8f137ddd61a 100644 --- a/lib/matplotlib/tests/test_figure.py +++ b/lib/matplotlib/tests/test_figure.py @@ -302,6 +302,19 @@ def test_suptitle_subfigures(): assert sf2.get_facecolor() == (1.0, 1.0, 1.0, 1.0) ...
diff --git a/doc/users/next_whats_new/get_suptitle.rst b/doc/users/next_whats_new/get_suptitle.rst new file mode 100644 index 000000000000..b03ad10b1b4c --- /dev/null +++ b/doc/users/next_whats_new/get_suptitle.rst @@ -0,0 +1,4 @@ +``Figure.get_suptitle()``, ``Figure.get_supxlabel()``, ``Figure.get_supylabel()`` +~~~~~...
[ { "components": [ { "doc": "Return the suptitle as string or an empty string if not set.", "lines": [ 391, 394 ], "name": "FigureBase.get_suptitle", "signature": "def get_suptitle(self):", "type": "function" }, { "doc"...
[ "lib/matplotlib/tests/test_figure.py::test_get_suptitle_supxlabel_supylabel" ]
[ "lib/matplotlib/tests/test_figure.py::test_align_labels[png]", "lib/matplotlib/tests/test_figure.py::test_align_labels_stray_axes", "lib/matplotlib/tests/test_figure.py::test_figure_label", "lib/matplotlib/tests/test_figure.py::test_fignum_exists", "lib/matplotlib/tests/test_figure.py::test_clf_keyword", ...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add Figure methods get_suptitle(), get_subxlabel(), get_supylabel() ## PR Summary We had no public API to optain these values. The API is modelled analogous to `Axes.get_title()` / `Axes.get_x/ylab...
a4dca24d04f928a9e614db403c716237446140b2
pvlib__pvlib-python-1705
1,705
pvlib/pvlib-python
0.9
5596be380227cc71ef67fa066683f1edd22606b0
2023-03-23T20:46:35Z
diff --git a/docs/sphinx/source/reference/irradiance/decomposition.rst b/docs/sphinx/source/reference/irradiance/decomposition.rst index f0d1495889..0677d6ac95 100644 --- a/docs/sphinx/source/reference/irradiance/decomposition.rst +++ b/docs/sphinx/source/reference/irradiance/decomposition.rst @@ -15,3 +15,5 @@ DNI est...
diff --git a/pvlib/tests/test_irradiance.py b/pvlib/tests/test_irradiance.py index cffdd23e40..d0158dad1a 100644 --- a/pvlib/tests/test_irradiance.py +++ b/pvlib/tests/test_irradiance.py @@ -246,6 +246,7 @@ def test_haydavies_components(irrad_data, ephem_data, dni_et): assert_allclose(result['horizon'], expected['...
diff --git a/docs/sphinx/source/reference/irradiance/decomposition.rst b/docs/sphinx/source/reference/irradiance/decomposition.rst index f0d1495889..0677d6ac95 100644 --- a/docs/sphinx/source/reference/irradiance/decomposition.rst +++ b/docs/sphinx/source/reference/irradiance/decomposition.rst @@ -15,3 +15,5 @@ DNI est...
[ { "components": [ { "doc": "Determine DNI and DHI from GHI using the Louche model.\n\nParameters\n----------\nghi : numeric\n Global horizontal irradiance. [W/m^2]\n\nsolar_zenith : numeric\n True (not refraction-corrected) zenith angles in decimal\n degrees. Angles must be >=0 and <=90.\...
[ "pvlib/tests/test_irradiance.py::test_louche" ]
[ "pvlib/tests/test_irradiance.py::test_get_extra_radiation[asce-300-1383.636203]", "pvlib/tests/test_irradiance.py::test_get_extra_radiation[asce-300.0-1383.636203]", "pvlib/tests/test_irradiance.py::test_get_extra_radiation[asce-testval2-1383.636203]", "pvlib/tests/test_irradiance.py::test_get_extra_radiation...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Implement `pvlib.irradiance.louche` decomposition model - [x] Fulfills pvl_louche from #2 - [x] I am familiar with the [contributing guidelines](https://pvlib-python.readthedocs.io/en/latest/con...
d53f97e984bfdd268aa92f8bf482ced0edda0110
conan-io__conan-13509
13,509
conan-io/conan
null
03a29d352ae7d68751336fa10846e8b03ded5537
2023-03-23T00:01:46Z
diff --git a/conan/tools/files/__init__.py b/conan/tools/files/__init__.py index 2517002f97d..f47cd2beffd 100644 --- a/conan/tools/files/__init__.py +++ b/conan/tools/files/__init__.py @@ -1,5 +1,6 @@ from conan.tools.files.files import load, save, mkdir, rmdir, rm, ftp_download, download, get, \ - rename, chdir, u...
diff --git a/conans/test/functional/tools/scm/test_git.py b/conans/test/functional/tools/scm/test_git.py index 0b3d822a33f..a4e873b86a1 100644 --- a/conans/test/functional/tools/scm/test_git.py +++ b/conans/test/functional/tools/scm/test_git.py @@ -6,6 +6,8 @@ import pytest import six +from conans.test.assets.cmake...
[ { "components": [ { "doc": "replaces the current folder contents with the contents of one child folder. This\nis used in the SCM monorepo flow, when it is necessary to use one subproject subfolder\nto replace the whole cloned git repo\n/base-folder /base-folder\n /pkg (sr...
[ "conans/test/functional/tools/scm/test_git.py::TestGitMonorepoSCMFlow::test_full_scm" ]
[ "conans/test/functional/tools/scm/test_git.py::TestGitBasicCapture::test_capture_commit_local", "conans/test/functional/tools/scm/test_git.py::TestGitBasicCapture::test_capture_remote_url", "conans/test/functional/tools/scm/test_git.py::TestGitBasicCapture::test_capture_remote_pushed_commit", "conans/test/fun...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> new move_folder_contents() file helper to re-arrange repos Changelog: Feature: New ``move_folder_contents()`` file helper to re-arrange repos folders. Docs: https://github.com/conan-io/docs/pull/3196...
4a5b19a75db9225316c8cb022a2dfb9705a2af34
conan-io__conan-13354
13,354
conan-io/conan
null
d6058bbb690819ded29eb283cd9329a92aea3d56
2023-03-07T08:38:34Z
diff --git a/conan/api/subapi/config.py b/conan/api/subapi/config.py index 98faa962e73..f0d9c405e47 100644 --- a/conan/api/subapi/config.py +++ b/conan/api/subapi/config.py @@ -21,3 +21,7 @@ def install(self, path_or_url, verify_ssl, config_type=None, args=None, def get(self, name, default=None, check_type=None): ...
diff --git a/conans/test/integration/command/config_test.py b/conans/test/integration/command/config_test.py index 1ff1e502137..b47bf91ae2c 100644 --- a/conans/test/integration/command/config_test.py +++ b/conans/test/integration/command/config_test.py @@ -108,3 +108,46 @@ def _assert_config_not_exists(path): _ass...
[ { "components": [ { "doc": "", "lines": [ 25, 27 ], "name": "ConfigAPI.show", "signature": "def show(self, pattern):", "type": "function" } ], "file": "conan/api/subapi/config.py" }, { "components": [ { ...
[ "conans/test/integration/command/config_test.py::test_config_show" ]
[ "conans/test/integration/command/config_test.py::test_missing_subarguments", "conans/test/integration/command/config_test.py::TestConfigHome::test_config_home_default", "conans/test/integration/command/config_test.py::TestConfigHome::test_api_uses_env_var_home", "conans/test/integration/command/config_test.py...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add `conan config show <conf>` command Changelog: Feature: Add `conan config show <conf>` command. Docs: https://github.com/conan-io/docs/pull/3091 Let's you get the value for any given configurat...
4a5b19a75db9225316c8cb022a2dfb9705a2af34
tobymao__sqlglot-1252
1,252
tobymao/sqlglot
null
c371ac055a7546d8215d3a2acc0d1a64f43a07f1
2023-03-05T07:24:58Z
diff --git a/sqlglot/expressions.py b/sqlglot/expressions.py index c8223c2466..7fdab534ae 100644 --- a/sqlglot/expressions.py +++ b/sqlglot/expressions.py @@ -2407,6 +2407,18 @@ def window(self, *expressions, append=True, dialect=None, copy=True, **opts) -> **opts, ) + def qualify(self, *expr...
diff --git a/tests/test_build.py b/tests/test_build.py index fbfbb62f7e..718e471508 100644 --- a/tests/test_build.py +++ b/tests/test_build.py @@ -504,6 +504,12 @@ def test_build(self): .window("d AS (PARTITION BY g ORDER BY h)"), "SELECT AVG(a) OVER b, MIN(c) OVER d FROM table WINDOW ...
[ { "components": [ { "doc": "", "lines": [ 2410, 2419 ], "name": "Select.qualify", "signature": "def qualify(self, *expressions, append=True, dialect=None, copy=True, **opts) -> Select:", "type": "function" } ], "file": "sqlg...
[ "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> Implement qualify builder. Added a qualify builder. Note -- `make check` made a bunch of unrelated formatting changes. ---------- did you have the latest dev environment installed? can you try agai...
ceb42fabad60312699e4b15936aeebac00e22e4d
tfranzel__drf-spectacular-953
953
tfranzel/drf-spectacular
null
43a4474f3c51de32dc553f75abe4c44ea674340d
2023-03-03T14:30:35Z
diff --git a/drf_spectacular/utils.py b/drf_spectacular/utils.py index 03b52b4b..c795b0f1 100644 --- a/drf_spectacular/utils.py +++ b/drf_spectacular/utils.py @@ -64,11 +64,19 @@ def create(self, request, *args, **kwargs): *drf-spectacular* processes the serializer. In those cases you can explicitly state the...
diff --git a/tests/test_polymorphic.py b/tests/test_polymorphic.py index 22e63298..2f5665cf 100644 --- a/tests/test_polymorphic.py +++ b/tests/test_polymorphic.py @@ -93,8 +93,27 @@ def create(self, request, *args, **kwargs): def partial_update(self, request, *args, **kwargs): return Response({}) ...
[ { "components": [ { "doc": "", "lines": [ 106, 107 ], "name": "PolymorphicProxySerializer.serializers", "signature": "def serializers(self, value):", "type": "function" } ], "file": "drf_spectacular/utils.py" } ]
[ "tests/test_polymorphic.py::test_polymorphic[LambdaPersonViewSet]" ]
[ "tests/test_polymorphic.py::test_polymorphic[ImplicitPersonViewSet]", "tests/test_polymorphic.py::test_polymorphic[ExplicitPersonViewSet]", "tests/test_polymorphic.py::test_polymorphic_serializer_as_field_via_extend_schema_field", "tests/test_polymorphic.py::test_polymorphic_serializer_as_method_field_via_ext...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add option to provide a callable for PolymorphicProxySerializer.serializers Adding a minor feature that we found useful in our own use of `PolymorphicProxySerializer` - the ability to initialize it wi...
22b78d6cd3f292ce2952382bcc2b7aefe228a1dd
sympy__sympy-24698
24,698
sympy/sympy
1.12
a767a207cbacc969ea0a65276ecca7855bd79aa5
2023-02-10T11:07:28Z
diff --git a/doc/src/modules/physics/control/lti.rst b/doc/src/modules/physics/control/lti.rst index 5c28064dce51..fcd94ef218c8 100644 --- a/doc/src/modules/physics/control/lti.rst +++ b/doc/src/modules/physics/control/lti.rst @@ -32,3 +32,5 @@ lti :members: .. autofunction:: bilinear + +.. autofunction:: backwa...
diff --git a/sympy/physics/control/tests/test_lti.py b/sympy/physics/control/tests/test_lti.py index eeea0d4638c4..5d0f4b67e28c 100644 --- a/sympy/physics/control/tests/test_lti.py +++ b/sympy/physics/control/tests/test_lti.py @@ -14,7 +14,8 @@ from sympy.core.containers import Tuple from sympy.matrices import Immuta...
diff --git a/doc/src/modules/physics/control/lti.rst b/doc/src/modules/physics/control/lti.rst index 5c28064dce51..fcd94ef218c8 100644 --- a/doc/src/modules/physics/control/lti.rst +++ b/doc/src/modules/physics/control/lti.rst @@ -32,3 +32,5 @@ lti :members: .. autofunction:: bilinear + +.. autofunction:: backwa...
[ { "components": [ { "doc": "Returns falling coefficients of H(z) from numerator and denominator.\nWhere H(z) is the corresponding discretized transfer function,\ndiscretized with the backward difference transform method.\nH(z) is obtained from the continuous transfer function H(s)\nby substituting...
[ "test_TransferFunction_construction", "test_TransferFunction_functions", "test_TransferFunction_addition_and_subtraction", "test_TransferFunction_multiplication_and_division", "test_TransferFunction_is_proper", "test_TransferFunction_is_strictly_proper", "test_TransferFunction_is_biproper", "test_Seri...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> backward_diff discretization of cont. transfer function # Added backward difference discretization method to physics.control.lti #### References to other Issues or PRs It is a 1 to 1 extension o...
22520ed5f4a9b2b6c4b6b314b4748878f1b4b662
scrapy__scrapy-5821
5,821
scrapy/scrapy
null
b337c986ca1188f4b26d30c9ae4bb7ff457ed505
2023-02-01T02:18:00Z
diff --git a/scrapy/settings/__init__.py b/scrapy/settings/__init__.py index fde8fdde424..a3b849f7b2f 100644 --- a/scrapy/settings/__init__.py +++ b/scrapy/settings/__init__.py @@ -293,6 +293,13 @@ def set(self, name, value, priority="project"): else: self.attributes[name].set(value, priority) +...
diff --git a/tests/test_settings/__init__.py b/tests/test_settings/__init__.py index 2a3b2d529dc..cb948c84c69 100644 --- a/tests/test_settings/__init__.py +++ b/tests/test_settings/__init__.py @@ -65,6 +65,19 @@ class BaseSettingsTest(unittest.TestCase): def setUp(self): self.settings = BaseSettings() +...
[ { "components": [ { "doc": "", "lines": [ 296, 301 ], "name": "BaseSettings.setdefault", "signature": "def setdefault(self, name, default=None, priority=\"project\"):", "type": "function" } ], "file": "scrapy/settings/__init...
[ "tests/test_settings/__init__.py::BaseSettingsTest::test_setdefault_not_existing_value" ]
[ "tests/test_settings/__init__.py::SettingsGlobalFuncsTest::test_get_settings_priority", "tests/test_settings/__init__.py::SettingsAttributeTest::test_overwrite_basesettings", "tests/test_settings/__init__.py::SettingsAttributeTest::test_repr", "tests/test_settings/__init__.py::SettingsAttributeTest::test_set_...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Added `setdefault` to `BaseSettings` Added the `setdefault` method to the `BaseSettings` class. Now `setdefault` works as expected, if the _key_ does not exist in `BaseSettings` then this _key_ wil...
57a5460529ff71c42e4d0381265b1b512b1eb09b
conan-io__conan-12980
12,980
conan-io/conan
null
7931acac1b4627f22bc9f3db5cc57d29ddfa16ac
2023-01-26T00:38:06Z
diff --git a/conans/client/cache/cache.py b/conans/client/cache/cache.py index c29f087bb17..7e6f0bb7804 100644 --- a/conans/client/cache/cache.py +++ b/conans/client/cache/cache.py @@ -2,6 +2,7 @@ import platform from typing import List +import yaml from jinja2 import Template @@ -10,6 +11,7 @@ from conans.cl...
diff --git a/conans/test/integration/settings/test_settings_user.py b/conans/test/integration/settings/test_settings_user.py new file mode 100644 index 00000000000..e911b14669f --- /dev/null +++ b/conans/test/integration/settings/test_settings_user.py @@ -0,0 +1,54 @@ +import os +import textwrap + +from conans.test.ass...
[ { "components": [ { "doc": "", "lines": [ 208, 212 ], "name": "ClientCache.settings._load_settings", "signature": "def _load_settings(path):", "type": "function" }, { "doc": "", "lines": [ 219, ...
[ "conans/test/integration/settings/test_settings_user.py::test_settings_user", "conans/test/integration/settings/test_settings_user.py::test_settings_user_subdict" ]
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> [develop2] Propose new settings_user.yml Changelog: Feature: Users can define their own settings in `settings_user.yml` that will be merged with the Conan `settings.yml`. Close https://github.com/c...
4a5b19a75db9225316c8cb022a2dfb9705a2af34
huggingface__accelerate-991
991
huggingface/accelerate
null
5858ac62b4546547fa69ffbf9a7f8bd1d1b1f43c
2023-01-19T20:16:40Z
diff --git a/src/accelerate/accelerator.py b/src/accelerate/accelerator.py index 7075c4dcdb6..ec29ac07bce 100644 --- a/src/accelerate/accelerator.py +++ b/src/accelerate/accelerator.py @@ -18,11 +18,13 @@ import shutil import sys import warnings +from collections import OrderedDict from contextlib import contextman...
diff --git a/tests/test_accelerator.py b/tests/test_accelerator.py index 19d6c1655b4..511d4daae62 100644 --- a/tests/test_accelerator.py +++ b/tests/test_accelerator.py @@ -1,3 +1,6 @@ +import json +import os +import tempfile import unittest import torch @@ -17,6 +20,15 @@ def create_components(): return model...
[ { "components": [ { "doc": "Registers a pre hook to be run before `save_checkpoint` is called in [`Accelerator.save_state`].\n\nArgs:\n hook (`Callable`):\n A function to be called in [`Accelerator.save_state`] before `save_checkpoint`.\n\nThe hook should have the following signature:\n\...
[ "tests/test_accelerator.py::AcceleratorTester::test_save_load_model_with_hooks" ]
[ "tests/test_accelerator.py::AcceleratorTester::test_free_memory_dereferences_prepared_components", "tests/test_accelerator.py::AcceleratorTester::test_prepared_objects_are_referenced", "tests/test_accelerator.py::AcceleratorTester::test_save_load_model" ]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Saving and loading state hooks With this design we would have the necessary freedom to save & load models as wished in `diffusers`. Possible solution to: https://github.com/huggingface/accelerate/...
08101b9dde2b1a9658c2e363e3e9f5663ba06073
joke2k__faker-1783
1,783
joke2k/faker
null
348708251a1093fb83c5b7cf83c1fb210a62125d
2023-01-12T11:33:31Z
diff --git a/faker/providers/misc/__init__.py b/faker/providers/misc/__init__.py index b37953ab9d..5fd22ea0f6 100644 --- a/faker/providers/misc/__init__.py +++ b/faker/providers/misc/__init__.py @@ -488,6 +488,21 @@ def psv( delimiter="|", ) + def json_bytes( + self, + data_colu...
diff --git a/tests/providers/test_misc.py b/tests/providers/test_misc.py index 695defe7f2..f50822f39a 100644 --- a/tests/providers/test_misc.py +++ b/tests/providers/test_misc.py @@ -697,6 +697,13 @@ def test_json_type_integrity_datetime_no_encoder(self, faker_with_foobar): with pytest.raises(TypeError): ...
[ { "components": [ { "doc": "Generate random JSON structure and return as bytes.\n\nFor more information on the different arguments of this method, refer to\n:meth:`json() <faker.providers.misc.Provider.json>` which is used under the hood.", "lines": [ 491, 504 ]...
[ "tests/providers/test_misc.py::TestMiscProvider::test_json_bytes" ]
[ "tests/providers/test_misc.py::TestMiscProvider::test_uuid4_str", "tests/providers/test_misc.py::TestMiscProvider::test_uuid4_int", "tests/providers/test_misc.py::TestMiscProvider::test_uuid4_uuid_object", "tests/providers/test_misc.py::TestMiscProvider::test_uuid4_seedability", "tests/providers/test_misc.p...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add method to generate JSON as bytes ### What does this change Add wrapper method around the JSON provider to generate JSON as bytes. ### What was wrong I use Faker through factory boy and co...
6edfdbf6ae90b0153309e3bf066aa3b2d16494a7
conan-io__conan-12889
12,889
conan-io/conan
null
ea235dc8a4719b71e13d3734855bff4600f62b06
2023-01-11T15:05:44Z
diff --git a/conan/tools/gnu/autotoolstoolchain.py b/conan/tools/gnu/autotoolstoolchain.py index 61e159ea4fd..b870bd5b032 100644 --- a/conan/tools/gnu/autotoolstoolchain.py +++ b/conan/tools/gnu/autotoolstoolchain.py @@ -224,23 +224,28 @@ def update_autoreconf_args(self, updated_flags): # FIXME: Remove all these...
diff --git a/conans/test/unittests/tools/gnu/autotoolschain_test.py b/conans/test/unittests/tools/gnu/autotoolschain_test.py index 026acc933a0..61a20034a2d 100644 --- a/conans/test/unittests/tools/gnu/autotoolschain_test.py +++ b/conans/test/unittests/tools/gnu/autotoolschain_test.py @@ -189,20 +189,22 @@ def test_chec...
[ { "components": [ { "doc": "", "lines": [ 228, 237 ], "name": "AutotoolsToolchain._update_flags._list_to_dict", "signature": "def _list_to_dict(flags):", "type": "function" }, { "doc": "", "lines": [ ...
[ "conans/test/unittests/tools/gnu/autotoolschain_test.py::test_update_or_prune_any_args" ]
[ "conans/test/unittests/tools/gnu/autotoolschain_test.py::test_get_gnu_triplet_for_cross_building", "conans/test/unittests/tools/gnu/autotoolschain_test.py::test_get_toolchain_cppstd", "conans/test/unittests/tools/gnu/autotoolschain_test.py::test_msvc_runtime[static-Debug-MTd]", "conans/test/unittests/tools/gn...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> [AutotoolsToolchain] Improve `update_xxxxx_args` behavior Changelog: Feature: AutotoolsToolchain helper functions: `update_configure_args`, `update_make_args`, and `update_autoreconf_args` can also ad...
4a5b19a75db9225316c8cb022a2dfb9705a2af34
conan-io__conan-12887
12,887
conan-io/conan
null
f3fb6c41246669646243f0c7d83c2c444743d896
2023-01-11T12:43:17Z
diff --git a/conan/tools/microsoft/__init__.py b/conan/tools/microsoft/__init__.py index 79598b28e5f..9c0bb920d5f 100644 --- a/conan/tools/microsoft/__init__.py +++ b/conan/tools/microsoft/__init__.py @@ -1,7 +1,7 @@ from conan.tools.microsoft.layout import vs_layout from conan.tools.microsoft.msbuild import MSBuild ...
diff --git a/conans/test/unittests/tools/microsoft/test_subsystem.py b/conans/test/unittests/tools/microsoft/test_subsystem.py index 65e5423e8c6..0e010e23afb 100644 --- a/conans/test/unittests/tools/microsoft/test_subsystem.py +++ b/conans/test/unittests/tools/microsoft/test_subsystem.py @@ -1,19 +1,20 @@ +import mock ...
[ { "components": [ { "doc": "", "lines": [ 9, 12 ], "name": "unix_path_package_info_legacy", "signature": "def unix_path_package_info_legacy(conanfile, path, path_flavor=None):", "type": "function" } ], "file": "conan/tools/m...
[ "conans/test/unittests/tools/microsoft/test_subsystem.py::test_unix_path[msys2-/c/path/to/stuff]", "conans/test/unittests/tools/microsoft/test_subsystem.py::test_unix_path[msys-/c/path/to/stuff]", "conans/test/unittests/tools/microsoft/test_subsystem.py::test_unix_path[cygwin-/cygdrive/c/path/to/stuff]", "con...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add unix_path_package_info_legacy compatibility function Changelog: Feature: Add `unix_path_package_info_legacy` function for those cases in which it is used in `package_info` in recipes that require ...
4a5b19a75db9225316c8cb022a2dfb9705a2af34
conan-io__conan-12886
12,886
conan-io/conan
null
0f73ed743ffd5d9cfeef54bfbc1547d08ce6436d
2023-01-11T12:19:11Z
diff --git a/conan/tools/microsoft/__init__.py b/conan/tools/microsoft/__init__.py index 79598b28e5f..9c0bb920d5f 100644 --- a/conan/tools/microsoft/__init__.py +++ b/conan/tools/microsoft/__init__.py @@ -1,7 +1,7 @@ from conan.tools.microsoft.layout import vs_layout from conan.tools.microsoft.msbuild import MSBuild ...
diff --git a/conans/test/unittests/tools/microsoft/test_subsystem.py b/conans/test/unittests/tools/microsoft/test_subsystem.py index 65e5423e8c6..3af3cf3c860 100644 --- a/conans/test/unittests/tools/microsoft/test_subsystem.py +++ b/conans/test/unittests/tools/microsoft/test_subsystem.py @@ -2,7 +2,7 @@ import pytes...
[ { "components": [ { "doc": "", "lines": [ 8, 13 ], "name": "unix_path_package_info_legacy", "signature": "def unix_path_package_info_legacy(conanfile, path, path_flavor=None):", "type": "function" } ], "file": "conan/tools/m...
[ "conans/test/unittests/tools/microsoft/test_subsystem.py::test_unix_path[msys2-/c/path/to/stuff]", "conans/test/unittests/tools/microsoft/test_subsystem.py::test_unix_path[msys-/c/path/to/stuff]", "conans/test/unittests/tools/microsoft/test_subsystem.py::test_unix_path[cygwin-/cygdrive/c/path/to/stuff]", "con...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add unix_path_package_info_legacy compatibility function Changelog: Feature: Add `unix_path_package_info_legacy` function for those cases in which it is used in `package_info` in recipes that require ...
4a5b19a75db9225316c8cb022a2dfb9705a2af34
conan-io__conan-12873
12,873
conan-io/conan
null
6e1f2bb60a430f2567480ddeaba19cafb20fbcb2
2023-01-09T13:36:32Z
diff --git a/conan/tools/android/__init__.py b/conan/tools/android/__init__.py new file mode 100644 index 00000000000..c969bbebd07 --- /dev/null +++ b/conan/tools/android/__init__.py @@ -0,0 +1,1 @@ +from conan.tools.android.utils import android_abi diff --git a/conan/tools/android/utils.py b/conan/tools/android/utils....
diff --git a/conans/test/unittests/tools/android/__init__.py b/conans/test/unittests/tools/android/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/conans/test/unittests/tools/android/test_android_tools.py b/conans/test/unittests/tools/android/test_android_tools.py new file mode 100644 index...
[ { "components": [ { "doc": "Returns Android-NDK ABI\n:param conanfile: ConanFile instance\n:param context: either \"host\", \"build\" or \"target\"\n:return: Android-NDK ABI", "lines": [ 4, 31 ], "name": "android_abi", "signature": "def android_a...
[ "conans/test/unittests/tools/android/test_android_tools.py::test_tools_android_abi" ]
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> add `conan.tools.android.android_abi()` Changelog: Feature: Add `conan.tools.android.android_abi()` function to return the Android standard ABI name based on Conan. Docs: https://github.com/conan-io/...
4a5b19a75db9225316c8cb022a2dfb9705a2af34
Textualize__textual-1517
1,517
Textualize/textual
null
779b10a0e8b8581fab512eb684a06eb90381705d
2023-01-07T14:10:40Z
diff --git a/src/textual/app.py b/src/textual/app.py index b207bbd025..89da6aaf60 100644 --- a/src/textual/app.py +++ b/src/textual/app.py @@ -1,6 +1,8 @@ from __future__ import annotations import asyncio +from concurrent.futures import Future +from functools import partial import inspect import io import os @@ ...
diff --git a/tests/test_concurrency.py b/tests/test_concurrency.py new file mode 100644 index 0000000000..c73418f2f2 --- /dev/null +++ b/tests/test_concurrency.py @@ -0,0 +1,53 @@ +import pytest + +from threading import Thread +from textual.app import App, ComposeResult +from textual.widgets import TextLog + + +def tes...
[ { "components": [ { "doc": "Run a callback from another thread.\n\nLike asyncio apps in general, Textual apps are not thread-safe. If you call methods\nor set attributes on Textual objects from a thread, you may get unpredictable results.\n\nThis method will ensure that your code is ran within the...
[ "tests/test_concurrency.py::test_call_from_thread_app_not_running", "tests/test_concurrency.py::test_call_from_thread" ]
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Call from thread method This is a step towards having an answer to devs who want to integrate a third-party API with Textual. The `call_from_thread` takes a callback that will be called in the app'...
86e93536b991014e0ea4bf993068202b446bb698
tobymao__sqlglot-874
874
tobymao/sqlglot
null
f5f3f84c7343151c5f48da60e8c15df41aadb33a
2023-01-02T17:23:08Z
diff --git a/sqlglot/dialects/postgres.py b/sqlglot/dialects/postgres.py index 15f627bfdb..a092cadb2a 100644 --- a/sqlglot/dialects/postgres.py +++ b/sqlglot/dialects/postgres.py @@ -15,6 +15,15 @@ from sqlglot.tokens import TokenType from sqlglot.transforms import delegate, preprocess +DATE_DIFF_FACTOR = { + "M...
diff --git a/tests/dialects/test_databricks.py b/tests/dialects/test_databricks.py index 2168f55de3..7560d616fa 100644 --- a/tests/dialects/test_databricks.py +++ b/tests/dialects/test_databricks.py @@ -12,6 +12,76 @@ def test_datediff(self): "databricks": "SELECT DATEDIFF(year, 'start', 'end')", ...
[ { "components": [ { "doc": "", "lines": [ 47, 70 ], "name": "_date_diff_sql", "signature": "def _date_diff_sql(self, expression):", "type": "function" } ], "file": "sqlglot/dialects/postgres.py" } ]
[ "tests/dialects/test_databricks.py::TestDatabricks::test_datediff" ]
[ "tests/dialects/test_databricks.py::TestDatabricks::test_add_date" ]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Transpile DATEDIFF to postgres This is a WIP -- thought I'd start a PR early to get some feedback and iterate faster. The units "week", "month", "quarter" and "year" are currently missing from the imp...
ceb42fabad60312699e4b15936aeebac00e22e4d
sympy__sympy-24437
24,437
sympy/sympy
1.12
9b9786518d3475751e66e11d3e3592091e3160b3
2022-12-29T22:56:10Z
diff --git a/sympy/utilities/iterables.py b/sympy/utilities/iterables.py index 144713d4fe47..a0eb4cece751 100644 --- a/sympy/utilities/iterables.py +++ b/sympy/utilities/iterables.py @@ -3,7 +3,6 @@ chain, combinations, combinations_with_replacement, cycle, islice, permutations, product ) - # For backwards ...
diff --git a/sympy/utilities/tests/test_iterables.py b/sympy/utilities/tests/test_iterables.py index 77c6e7b1ee80..8e527a447e75 100644 --- a/sympy/utilities/tests/test_iterables.py +++ b/sympy/utilities/tests/test_iterables.py @@ -19,7 +19,8 @@ prefixes, reshape, rotate_left, rotate_right, runs, sift, strongl...
[ { "components": [ { "doc": "Returns the partition of sequence $l$ into $n$ bins\n\nExplanation\n===========\n\nGiven the sequence $l_1 \\cdots l_m \\in V^+$ where\n$V^+$ is the Kleene plus of $V$\n\nThe set of $n$ partitions of $l$ is defined as:\n\n.. math::\n \\{(s_1, \\cdots, s_n) | s_1 \\in...
[ "test_deprecated_iterables", "test_is_palindromic", "test_flatten", "test_iproduct", "test_group", "test_subsets", "test_variations", "test_cartes", "test_filter_symbols", "test_numbered_symbols", "test_sift", "test_take", "test_dict_merge", "test_prefixes", "test_postfixes", "test_top...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Decompose partition utility from `kbins` <!-- Your title above should be a short description of what was changed. Do not include the issue number in the title. --> #### References to other Issues ...
22520ed5f4a9b2b6c4b6b314b4748878f1b4b662
tobymao__sqlglot-858
858
tobymao/sqlglot
null
6e4c0ef48ab0db1a336d634273dab35de17c80bc
2022-12-28T22:32:11Z
diff --git a/sqlglot/expressions.py b/sqlglot/expressions.py index 701abb0ff4..888c4fc48d 100644 --- a/sqlglot/expressions.py +++ b/sqlglot/expressions.py @@ -1337,7 +1337,7 @@ def with_( "group": False, "having": False, "qualify": False, - "window": False, + "windows": False, "distribute": Fa...
diff --git a/tests/test_build.py b/tests/test_build.py index b014a3ab0c..a1a268ded6 100644 --- a/tests/test_build.py +++ b/tests/test_build.py @@ -481,6 +481,19 @@ def test_build(self): ), (lambda: exp.delete("y", where="x > 1"), "DELETE FROM y WHERE x > 1"), (lambda: exp.delete("...
[ { "components": [ { "doc": "", "lines": [ 1913, 1922 ], "name": "Select.window", "signature": "def window(self, *expressions, append=True, dialect=None, copy=True, **opts) -> Select:", "type": "function" } ], "file": "sqlglo...
[ "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> Add a window clause builder to Select. A few comments about this PR: * The argument to Select used everywhere else in the code was `windows`, so I updated `QUERY_MODIFIERS` to reflect that. * I ha...
ceb42fabad60312699e4b15936aeebac00e22e4d
django__django-16369
16,369
django/django
4.2
ab7a85ac297464df82d8363455609979ca3603db
2022-12-07T15:09:14Z
diff --git a/django/contrib/sitemaps/__init__.py b/django/contrib/sitemaps/__init__.py index 3d276b60d490..df57f1cd5c70 100644 --- a/django/contrib/sitemaps/__init__.py +++ b/django/contrib/sitemaps/__init__.py @@ -92,6 +92,10 @@ def _get(self, name, item, default=None): return attr(item) return a...
diff --git a/tests/sitemaps_tests/test_http.py b/tests/sitemaps_tests/test_http.py index 8c16f66896bd..12e387757be7 100644 --- a/tests/sitemaps_tests/test_http.py +++ b/tests/sitemaps_tests/test_http.py @@ -10,7 +10,7 @@ from django.utils.formats import localize from .base import SitemapTestsBase -from .models impo...
diff --git a/docs/ref/contrib/sitemaps.txt b/docs/ref/contrib/sitemaps.txt index d3225405a38d..7dc3dced5183 100644 --- a/docs/ref/contrib/sitemaps.txt +++ b/docs/ref/contrib/sitemaps.txt @@ -311,6 +311,15 @@ Note: The latest ``lastmod`` returned by calling the method with all items returned by :me...
[ { "components": [ { "doc": "Languages for which this item is displayed.", "lines": [ 95, 97 ], "name": "Sitemap.get_languages_for_item", "signature": "def get_languages_for_item(self, item):", "type": "function" } ], "file":...
[ "A i18n sitemap index in which item can be chosen to be displayed for a" ]
[ "A simple sitemap index can be rendered with a custom template", "test_simple_sitemap_custom_index_warning (sitemaps_tests.test_http.DeprecatedTests)", "A i18n sitemap with alternate/hreflang links can be rendered.", "A i18n sitemap index with limited languages can be rendered.", "A i18n sitemap index with ...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Fixed #33662 -- Allowed Sitemap to customize languages for each item. [ticket #33662 : Choose which items are displayed per language in Sitemap ](https://code.djangoproject.com/ticket/33662) --------...
Here is the discussion in the issues of the pull request. <issues> Choose which items are displayed per language in Sitemap Description The current implementation of Sitemap is : if we use i18n, then we display a cartesian product between some items and some languages. There is no way to use the provided i18n autom...
016bead6a23989adec5c7ee6948db7ce2fc5e89b
pyvista__pyvista-3662
3,662
pyvista/pyvista
0.38
f5dbce80bc44ff3def8c5eb15db054706fc5f38d
2022-11-30T22:23:05Z
diff --git a/pyvista/plotting/camera.py b/pyvista/plotting/camera.py index 915893c4d2d..d7f237ff98f 100644 --- a/pyvista/plotting/camera.py +++ b/pyvista/plotting/camera.py @@ -1,5 +1,11 @@ """Module containing pyvista implementation of vtkCamera.""" +from __future__ import annotations + +from pathlib import Path +fro...
diff --git a/tests/test_camera.py b/tests/test_camera.py index 5259c0d9a77..6690f47db63 100644 --- a/tests/test_camera.py +++ b/tests/test_camera.py @@ -1,3 +1,5 @@ +import io + import numpy as np import pytest @@ -22,11 +24,81 @@ def camera(): return pyvista.Camera() +@pytest.fixture() +def paraview_pvcc(...
[ { "components": [ { "doc": "Load a Paraview camera file (.pvcc extension).\n\nReturns a pyvista.Camera object for which attributes has been read\nfrom the filename argument.\n\nParameters\n----------\nfilename : str or pathlib.Path\n Path to Paraview camera file (.pvcc).\n\nExamples\n--------\n...
[ "tests/test_camera.py::test_camera_fom_paraview_pvcc", "tests/test_camera.py::test_camera_to_paraview_pvcc" ]
[ "tests/test_camera.py::test_invalid_init", "tests/test_camera.py::test_camera_position", "tests/test_camera.py::test_focal_point", "tests/test_camera.py::test_model_transform_matrix", "tests/test_camera.py::test_distance", "tests/test_camera.py::test_thickness", "tests/test_camera.py::test_parallel_scal...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add classmethod to read pvcc paraview ### Overview This PR implements a _classmethod_ to **pyvista.Camera** that reads a Paraview camera file (.pvcc). It looks like: ```python camera = pyvist...
e7f7ada0477439ebd725d56ca080ee85ca50d640
pvlib__pvlib-python-1585
1,585
pvlib/pvlib-python
0.8
e6e5b043f5f59af1c5fde0f25cc1793d79caa78b
2022-11-02T19:51:38Z
diff --git a/docs/sphinx/source/reference/pv_modeling.rst b/docs/sphinx/source/reference/pv_modeling.rst index 4e57130711..797681ce23 100644 --- a/docs/sphinx/source/reference/pv_modeling.rst +++ b/docs/sphinx/source/reference/pv_modeling.rst @@ -186,6 +186,7 @@ Utilities for working with IV curve data :toctree: ge...
diff --git a/pvlib/tests/ivtools/test_utils.py b/pvlib/tests/ivtools/test_utils.py index 8f7826bdc2..d8a35e554d 100644 --- a/pvlib/tests/ivtools/test_utils.py +++ b/pvlib/tests/ivtools/test_utils.py @@ -1,7 +1,7 @@ import numpy as np import pandas as pd import pytest -from pvlib.ivtools.utils import _numdiff, rectif...
diff --git a/docs/sphinx/source/reference/pv_modeling.rst b/docs/sphinx/source/reference/pv_modeling.rst index 4e57130711..797681ce23 100644 --- a/docs/sphinx/source/reference/pv_modeling.rst +++ b/docs/sphinx/source/reference/pv_modeling.rst @@ -186,6 +186,7 @@ Utilities for working with IV curve data :toctree: ge...
[ { "components": [ { "doc": "Extract photovoltaic IV parameters according to ASTM E1036. Assumes that\nthe power producing portion of the curve is in the first quadrant.\n\nParameters\n----------\nv : array-like\n Voltage points\ni : array-like\n Current points\nimax_limits : tuple, default (...
[ "pvlib/tests/ivtools/test_utils.py::test__numdiff", "pvlib/tests/ivtools/test_utils.py::test_rectify_iv_curve", "pvlib/tests/ivtools/test_utils.py::test__schmumaker_qspline[x0-y0-expected0]", "pvlib/tests/ivtools/test_utils.py::test__schmumaker_qspline[x1-y1-expected1]", "pvlib/tests/ivtools/test_utils.py::...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> add ASTM E1036 parameter extraction - [x] I am familiar with the [contributing guidelines](https://pvlib-python.readthedocs.io/en/latest/contributing.html) - [x] Tests added - [x] Updates entries...
311781d2380997044da0e484dc90aa146a74ca44
aws__sagemaker-python-sdk-3432
3,432
aws/sagemaker-python-sdk
null
1a39422883c7c7b04865e58fda201bcb93075669
2022-10-21T15:46:55Z
diff --git a/src/sagemaker/fw_utils.py b/src/sagemaker/fw_utils.py index dacd0a229c..af48a111bc 100644 --- a/src/sagemaker/fw_utils.py +++ b/src/sagemaker/fw_utils.py @@ -134,10 +134,13 @@ "1.12.0", ] + TORCH_DISTRIBUTED_SUPPORTED_FRAMEWORK_VERSIONS = ["1.11", "1.11.0"] + TRAINIUM_SUPPORTED_DISTRIBUTION_STR...
diff --git a/tests/conftest.py b/tests/conftest.py index 17a5c1db9c..a54cbfea15 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -308,6 +308,16 @@ def huggingface_pytorch_latest_inference_py_version(huggingface_inference_pytorc ) +@pytest.fixture(scope="module") +def graviton_tensorflow_version(): + ...
diff --git a/src/sagemaker/image_uri_config/pytorch.json b/src/sagemaker/image_uri_config/pytorch.json index a88f7f1c50..74127a1fda 100644 --- a/src/sagemaker/image_uri_config/pytorch.json +++ b/src/sagemaker/image_uri_config/pytorch.json @@ -654,6 +654,51 @@ } } }, + "inference_graviton":...
[ { "components": [ { "doc": "Extract the image scope from instance type.", "lines": [ 295, 301 ], "name": "_get_image_scope_for_instance_type", "signature": "def _get_image_scope_for_instance_type(framework, instance_type, image_scope):", ...
[ "tests/unit/sagemaker/image_uris/test_graviton.py::test_graviton_tensorflow", "tests/unit/sagemaker/image_uris/test_graviton.py::test_graviton_pytorch" ]
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> feature: Graviton support for PyTorch and Tensorflow frameworks *Issue #, if available:* *Description of changes:* Added the necessary changes to incorporate the [Graviton instances](https://githu...
03738861995e0c3fda73958d251e83465aba3c04
aws__sagemaker-python-sdk-3423
3,423
aws/sagemaker-python-sdk
null
8dc17fb89fafd3609e14cb1539ae2911be510f2e
2022-10-18T21:48:25Z
diff --git a/doc/frameworks/pytorch/using_pytorch.rst b/doc/frameworks/pytorch/using_pytorch.rst index 725f34aa5a..f56085f756 100644 --- a/doc/frameworks/pytorch/using_pytorch.rst +++ b/doc/frameworks/pytorch/using_pytorch.rst @@ -293,6 +293,121 @@ using two ``ml.p4d.24xlarge`` instances: pt_estimator.fit("s3://...
diff --git a/tests/conftest.py b/tests/conftest.py index 249f25cfcb..e92d98112b 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -358,6 +358,11 @@ def huggingface_neuron_latest_inference_py_version(): return "py37" +@pytest.fixture(scope="module") +def pytorch_neuron_version(): + return "1.11" + + ...
diff --git a/doc/frameworks/pytorch/using_pytorch.rst b/doc/frameworks/pytorch/using_pytorch.rst index 725f34aa5a..f56085f756 100644 --- a/doc/frameworks/pytorch/using_pytorch.rst +++ b/doc/frameworks/pytorch/using_pytorch.rst @@ -293,6 +293,121 @@ using two ``ml.p4d.24xlarge`` instances: pt_estimator.fit("s3://...
[ { "components": [ { "doc": "Validate if framework is supported for the instance_type", "lines": [ 355, 362 ], "name": "_validate_for_suppported_frameworks_and_instance_type", "signature": "def _validate_for_suppported_frameworks_and_instance_type...
[ "tests/unit/sagemaker/image_uris/test_trainium.py::test_trainium_pytorch" ]
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> feature: Trainium Neuron support for PyTorch *Issue #, if available:* *Description of changes:* Added the necessary changes to incorporate the `v1.0-pt-1.11.0-tr-neuron-sdk2.3.0-py38` image into t...
03738861995e0c3fda73958d251e83465aba3c04
open-mmlab__mmengine-609
609
open-mmlab/mmengine
null
bc37c838d424b3d9ce5cbd4859540cdc03204026
2022-10-14T07:40:30Z
diff --git a/docs/en/api/utils.rst b/docs/en/api/utils.rst index 92466352a5..681e15d2c0 100644 --- a/docs/en/api/utils.rst +++ b/docs/en/api/utils.rst @@ -109,6 +109,7 @@ Miscellaneous to_ntuple check_prerequisites deprecated_api_warning + deprecated_function has_method is_method_overridden im...
diff --git a/tests/test_utils/test_misc.py b/tests/test_utils/test_misc.py new file mode 100644 index 0000000000..95d7a006bd --- /dev/null +++ b/tests/test_utils/test_misc.py @@ -0,0 +1,285 @@ +# Copyright (c) OpenMMLab. All rights reserved. +import pytest + +from mmengine import MMLogger +# yapf: disable +from mmengin...
diff --git a/docs/en/api/utils.rst b/docs/en/api/utils.rst index 92466352a5..681e15d2c0 100644 --- a/docs/en/api/utils.rst +++ b/docs/en/api/utils.rst @@ -109,6 +109,7 @@ Miscellaneous to_ntuple check_prerequisites deprecated_api_warning + deprecated_function has_method is_method_overridden im...
[ { "components": [ { "doc": "Marks functions as deprecated.\n\nThrow a warning when a deprecated function is called, and add a note in the\ndocstring. Modified from https://github.com/pytorch/pytorch/blob/master/torch/onnx/_deprecation.py\n\nArgs:\n since (str): The version when the function was...
[ "tests/test_utils/test_misc.py::test_to_ntuple", "tests/test_utils/test_misc.py::test_iter_cast", "tests/test_utils/test_misc.py::test_is_seq_of", "tests/test_utils/test_misc.py::test_slice_list", "tests/test_utils/test_misc.py::test_concat_list", "tests/test_utils/test_misc.py::test_requires_package", ...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> [Enhancement] Add a function to mark the deprecated function. Thanks for your contribution and we appreciate it a lot. The following instructions would make your pull request more healthy and more eas...
53474ef1ba0b166508c231fa525b55b580adf20f
sqlfluff__sqlfluff-3937
3,937
sqlfluff/sqlfluff
1.3
f691f033ac90e760bb70f0f9d02c89a859565d6d
2022-10-08T18:54:38Z
diff --git a/.gitignore b/.gitignore index 95882a5bcdc..9bc74ff9001 100644 --- a/.gitignore +++ b/.gitignore @@ -39,6 +39,9 @@ test-reports # Ignore dbt outputs from testing /target +# Ignore any timing outputs +/*.csv + # Ignore conda environment.yml contributors might be using and direnv config environment.yml ...
diff --git a/test/cli/commands_test.py b/test/cli/commands_test.py index b9630eaa11e..ba0effb615a 100644 --- a/test/cli/commands_test.py +++ b/test/cli/commands_test.py @@ -441,6 +441,8 @@ def test__cli__command_lint_stdin(command): "test/fixtures/cli/extra_config_tsql.sql", ], ),...
diff --git a/.gitignore b/.gitignore index 95882a5bcdc..9bc74ff9001 100644 --- a/.gitignore +++ b/.gitignore @@ -39,6 +39,9 @@ test-reports # Ignore dbt outputs from testing /target +# Ignore any timing outputs +/*.csv + # Ignore conda environment.yml contributors might be using and direnv config environment.yml ...
[ { "components": [ { "doc": "Persist the timing records as a csv to external analysis.", "lines": [ 150, 190 ], "name": "LintingResult.persist_timing_records", "signature": "def persist_timing_records(self, filename):", "type": "function" ...
[ "test/cli/commands_test.py::test__cli__command_lint_parse[command24]", "test/core/parser/segments_base_test.py::test__parser__base_segments_count_segments" ]
[ "test/cli/commands_test.py::test__cli__command_directed", "test/cli/commands_test.py::test__cli__command_dialect", "test/cli/commands_test.py::test__cli__command_no_dialect", "test/cli/commands_test.py::test__cli__command_parse_error_dialect_explicit_warning", "test/cli/commands_test.py::test__cli__command_...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Enable dumping of performance information to csv. To enable a bit more introspection on performance information - this enables dumping performance information to an external csv file. I'd like to do s...
ada7967cd2fb98de054323dd8aad19e84b427c67
softlayer__softlayer-python-1766
1,766
softlayer/softlayer-python
null
00e6a0677efb00ce3cd0562939fb7e98e00b2f99
2022-10-06T19:34:06Z
diff --git a/SoftLayer/CLI/core.py b/SoftLayer/CLI/core.py index 5425882da..b3a1fead0 100644 --- a/SoftLayer/CLI/core.py +++ b/SoftLayer/CLI/core.py @@ -34,7 +34,7 @@ } PROG_NAME = "slcli (SoftLayer Command-line)" -VALID_FORMATS = ['table', 'raw', 'json', 'jsonraw'] +VALID_FORMATS = ['table', 'raw', 'json', 'jsonra...
diff --git a/tests/CLI/modules/account_tests.py b/tests/CLI/modules/account_tests.py index 7e0792c07..b02b73032 100644 --- a/tests/CLI/modules/account_tests.py +++ b/tests/CLI/modules/account_tests.py @@ -66,6 +66,14 @@ def test_invoice_detail_details(self): self.assert_no_fail(result) self.assert_cal...
[ { "components": [ { "doc": "Formating a table to csv format and show it.", "lines": [ 450, 454 ], "name": "csv_output_format", "signature": "def csv_output_format(data, delimiter=','):", "type": "function" }, { "doc": ...
[ "tests/CLI/modules/account_tests.py::AccountCLITests::test_invoice_detail_csv_output_format", "tests/CLI/modules/vs/vs_tests.py::VirtTests::test_vs_detail_csv_output_format_with_nested_tables" ]
[ "tests/CLI/modules/account_tests.py::AccountCLITests::test_acccount_bandwidth_pool_detail", "tests/CLI/modules/account_tests.py::AccountCLITests::test_acccount_licenses", "tests/CLI/modules/account_tests.py::AccountCLITests::test_acccount_order", "tests/CLI/modules/account_tests.py::AccountCLITests::test_acco...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Added csv output format Issue: #1320 ``` softlayer-python/ () $ slcli --format csv vs list id,hostname,domain,deviceStatus.name,datacenter,primary_ip,backend_ip,createDate,action 1002,adns,vmware....
bd1ecce1ec4313b9ceefd3cfea52d1b9274fef9d
conan-io__conan-12243
12,243
conan-io/conan
null
6f8f9c5d179ce71877a89826d5275e83e9958f7a
2022-10-04T21:25:40Z
diff --git a/conan/api/subapi/install.py b/conan/api/subapi/install.py index 18b37a2b3ab..30e79be593b 100644 --- a/conan/api/subapi/install.py +++ b/conan/api/subapi/install.py @@ -49,7 +49,7 @@ def install_consumer(self, deps_graph, generators=None, source_folder=None, outp if deploy: base_folder...
diff --git a/conans/test/functional/command/test_install_deploy.py b/conans/test/functional/command/test_install_deploy.py index d004cc0f5de..7800b06e807 100644 --- a/conans/test/functional/command/test_install_deploy.py +++ b/conans/test/functional/command/test_install_deploy.py @@ -21,7 +21,8 @@ def test_install_depl...
[ { "components": [ { "doc": "", "lines": [ 90, 96 ], "name": "do_deploys", "signature": "def do_deploys(conan_api, graph, deploy, deploy_folder):", "type": "function" } ], "file": "conan/api/subapi/install.py" } ]
[ "conans/test/functional/command/test_install_deploy.py::test_copy_files_deploy", "conans/test/functional/command/test_install_deploy.py::test_multi_deploy", "conans/test/integration/command/info/info_test.py::TestDeployers::test_custom_deploy" ]
[ "conans/test/functional/command/test_install_deploy.py::test_builtin_deploy", "conans/test/functional/command/test_install_deploy.py::test_deploy_reference", "conans/test/functional/command/test_install_deploy.py::test_deploy_overwrite", "conans/test/functional/command/test_install_deploy.py::test_deploy_edit...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add --deploy to graph-info How to do some quick ``graph info``, and extract custom information from the graph, in an extensible way? - Formatters at the moment are very built-in, and seems difficul...
4a5b19a75db9225316c8cb022a2dfb9705a2af34
pvlib__pvlib-python-1562
1,562
pvlib/pvlib-python
0.8
eefc35ccecfa92b4eebd19f96f5044f79e6b0bcf
2022-09-30T00:13:00Z
diff --git a/docs/sphinx/source/reference/pv_modeling.rst b/docs/sphinx/source/reference/pv_modeling.rst index 31c380c1bb..0f33cf8c70 100644 --- a/docs/sphinx/source/reference/pv_modeling.rst +++ b/docs/sphinx/source/reference/pv_modeling.rst @@ -28,6 +28,8 @@ Incident angle modifiers iam.interp iam.marion_diff...
diff --git a/pvlib/tests/test_iam.py b/pvlib/tests/test_iam.py index 4310ee837a..df4d9ee877 100644 --- a/pvlib/tests/test_iam.py +++ b/pvlib/tests/test_iam.py @@ -322,3 +322,48 @@ def test_marion_integrate_invalid(): with pytest.raises(ValueError): _iam.marion_integrate(_iam.ashrae, 0, 'bad', 180) + + +...
diff --git a/docs/sphinx/source/reference/pv_modeling.rst b/docs/sphinx/source/reference/pv_modeling.rst index 31c380c1bb..0f33cf8c70 100644 --- a/docs/sphinx/source/reference/pv_modeling.rst +++ b/docs/sphinx/source/reference/pv_modeling.rst @@ -28,6 +28,8 @@ Incident angle modifiers iam.interp iam.marion_diff...
[ { "components": [ { "doc": "Determine incidence angle modifier (IAM) for direct irradiance using the\nSchlick approximation to the Fresnel equations.\n\nThe Schlick approximation was proposed in [1]_ as a computationally\nefficient alternative to computing the Fresnel factor in computer\ngraphics ...
[ "pvlib/tests/test_iam.py::test_schlick", "pvlib/tests/test_iam.py::test_schlick_diffuse" ]
[ "pvlib/tests/test_iam.py::test_ashrae", "pvlib/tests/test_iam.py::test_ashrae_scalar", "pvlib/tests/test_iam.py::test_physical", "pvlib/tests/test_iam.py::test_physical_scalar", "pvlib/tests/test_iam.py::test_martin_ruiz", "pvlib/tests/test_iam.py::test_martin_ruiz_exception", "pvlib/tests/test_iam.py::...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Implement iam.schlick, iam.schlick_diffuse - [x] Closes #1564 - [x] I am familiar with the [contributing guidelines](https://pvlib-python.readthedocs.io/en/latest/contributing.html) - [x] Tests a...
Here is the discussion in the issues of the pull request. <issues> Add iam function based on Schlick 1994 **Is your feature request related to a problem? Please describe.** Equation 15 in Schlick 1994 gives an efficient approximation equation for surface reflectance as a function of incidence angle that could be use...
311781d2380997044da0e484dc90aa146a74ca44
sympy__sympy-24070
24,070
sympy/sympy
1.12
007d962672034698a5d152de9086e63c3becfa74
2022-09-19T22:37:41Z
diff --git a/.mailmap b/.mailmap index 6f0e24a24cb0..6b04fe9fdadb 100644 --- a/.mailmap +++ b/.mailmap @@ -1017,6 +1017,7 @@ Peter Enenkel <peter.enenkel+git@gmail.com> <peter.enenkel+github@gmail.com> Peter Schmidt <peter@peterjs.com> Peter Stangl <peter.stangl@ph.tum.de> Petr Kungurtsev <corwinat@gmail.com> Corwin...
diff --git a/sympy/physics/tests/test_clebsch_gordan.py b/sympy/physics/tests/test_clebsch_gordan.py index 2e77bf2f7afd..d6a41f1b6b4f 100644 --- a/sympy/physics/tests/test_clebsch_gordan.py +++ b/sympy/physics/tests/test_clebsch_gordan.py @@ -1,4 +1,4 @@ -from sympy.core.numbers import (I, pi) +from sympy.core.numbers ...
diff --git a/.mailmap b/.mailmap index 6f0e24a24cb0..6b04fe9fdadb 100644 --- a/.mailmap +++ b/.mailmap @@ -1017,6 +1017,7 @@ Peter Enenkel <peter.enenkel+git@gmail.com> <peter.enenkel+github@gmail.com> Peter Schmidt <peter@peterjs.com> Peter Stangl <peter.stangl@ph.tum.de> Petr Kungurtsev <corwinat@gmail.com> Corwin...
[ { "components": [ { "doc": "Calculate the real Gaunt coefficient.\n\nExplanation\n===========\n\nThe real Gaunt coefficient is defined as the integral over three\nreal spherical harmonics:\n\n.. math::\n \\begin{aligned}\n \\operatorname{RealGaunt}(l_1,l_2,l_3,m_1,m_2,m_3)\n &=\\int Z^{m_...
[ "test_clebsch_gordan_docs", "test_clebsch_gordan", "test_wigner", "test_gaunt", "test_realgaunt", "test_racah", "test_dot_rota_grad_SH" ]
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add algorithm to compute real Gaunt coefficient <!-- Your title above should be a short description of what was changed. Do not include the issue number in the title. --> I have coded a symbolic a...
22520ed5f4a9b2b6c4b6b314b4748878f1b4b662
astropy__astropy-13676
13,676
astropy/astropy
5.0
a30301e5535be2f558cb948da6b3475df4e36a98
2022-09-15T19:20:47Z
diff --git a/astropy/units/quantity.py b/astropy/units/quantity.py index 7043156e91d7..0512e969291a 100644 --- a/astropy/units/quantity.py +++ b/astropy/units/quantity.py @@ -29,7 +29,7 @@ from .quantity_helper import can_have_arbitrary_unit, check_output, converters_and_unit from .quantity_helper.function_helpers im...
diff --git a/astropy/units/tests/test_structured.py b/astropy/units/tests/test_structured.py index fe4134ac05b2..78ab03a7c022 100644 --- a/astropy/units/tests/test_structured.py +++ b/astropy/units/tests/test_structured.py @@ -12,6 +12,7 @@ from astropy import units as u from astropy.tests.helper import check_picklin...
diff --git a/docs/changes/units/13676.api.rst b/docs/changes/units/13676.api.rst new file mode 100644 index 000000000000..966372f06cef --- /dev/null +++ b/docs/changes/units/13676.api.rst @@ -0,0 +1,2 @@ +When ``Quantity`` is constructed from a structured array and ``unit`` is +``None``, the default unit is now structu...
[ { "components": [ { "doc": "Make a `StructuredUnit` of one unit, with the structure of a `numpy.dtype`.\n\nParameters\n----------\nunit : UnitBase\n The unit that will be filled into the structure.\ndtype : `numpy.dtype`\n The structure for the StructuredUnit.\n\nReturns\n-------\nStructured...
[ "astropy/units/tests/test_structured.py::TestStructuredUnitBasics::test_initialization_and_keying", "astropy/units/tests/test_structured.py::TestStructuredUnitBasics::test_recursive_initialization", "astropy/units/tests/test_structured.py::TestStructuredUnitBasics::test_extreme_recursive_initialization", "ast...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> structured unit / quantity stuff Signed-off-by: Nathaniel Starkman (@nstarman) <nstarkman@protonmail.com> Necessary for https://github.com/astropy/astropy/pull/13669 - Quantity now builds a stru...
7cbba866a8c5749b90a5cb4f9877ddfad2d36037
conan-io__conan-12094
12,094
conan-io/conan
null
91c5aaf1115fd3a9c9932c8d804a14d894076c49
2022-09-12T15:01:24Z
diff --git a/conans/model/options.py b/conans/model/options.py index 642c4afe2d1..8c270238059 100644 --- a/conans/model/options.py +++ b/conans/model/options.py @@ -231,6 +231,12 @@ def get_safe(self, attr): return None return getattr(self._package_values, attr) + def rm_safe(self, attr): + ...
diff --git a/conans/test/integration/settings/remove_subsetting_test.py b/conans/test/integration/settings/remove_subsetting_test.py index 5c8e6d8a275..209838e1b99 100644 --- a/conans/test/integration/settings/remove_subsetting_test.py +++ b/conans/test/integration/settings/remove_subsetting_test.py @@ -1,4 +1,5 @@ im...
[ { "components": [ { "doc": "", "lines": [ 234, 238 ], "name": "OptionsValues.rm_safe", "signature": "def rm_safe(self, attr):", "type": "function" }, { "doc": "", "lines": [ 434, 438 ...
[ "conans/test/integration/settings/remove_subsetting_test.py::test_settings_and_options_rm_safe" ]
[ "conans/test/integration/settings/remove_subsetting_test.py::RemoveSubsettingTest::test_remove_options", "conans/test/integration/settings/remove_subsetting_test.py::RemoveSubsettingTest::test_remove_runtime", "conans/test/integration/settings/remove_subsetting_test.py::RemoveSubsettingTest::test_remove_setting...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> [feature] `rm_safe` for settings and options Changelog: Feature: Added method `rm_safe` to `settings` and `options`. Docs: https://github.com/conan-io/docs/pull/2764 This feature is trying to avoi...
4a5b19a75db9225316c8cb022a2dfb9705a2af34
tobymao__sqlglot-415
415
tobymao/sqlglot
null
7f40ddd9b41f3dabdcbc3105cf5f06faacd82d75
2022-09-09T21:28:47Z
diff --git a/sqlglot/expressions.py b/sqlglot/expressions.py index dc0c0ca20d..f6ca8f5403 100644 --- a/sqlglot/expressions.py +++ b/sqlglot/expressions.py @@ -1155,6 +1155,72 @@ def order_by(self, *expressions, append=True, dialect=None, copy=True, **opts): **opts, ) + def sort_by(self, *expr...
diff --git a/tests/test_build.py b/tests/test_build.py index 10c485728a..a4cffde9ea 100644 --- a/tests/test_build.py +++ b/tests/test_build.py @@ -169,10 +169,26 @@ def test_build(self): lambda: select("x").from_("tbl").order_by("y"), "SELECT x FROM tbl ORDER BY y", ), + ...
[ { "components": [ { "doc": "Set the SORT BY expression.\n\nExample:\n >>> Select().from_(\"tbl\").select(\"x\").sort_by(\"x DESC\").sql()\n 'SELECT x FROM tbl SORT BY x DESC'\n\nArgs:\n *expressions (str or Expression): the SQL code strings to parse.\n If a `Group` instance is pass...
[ "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 sort_by and cluster_by to expression builder We already have SORT & CLUSTER expression and SORT_BY & CLUSTER_BY tokens, they are currently used in DDLs but they can also be used in expressio...
ceb42fabad60312699e4b15936aeebac00e22e4d
matplotlib__matplotlib-23692
23,692
matplotlib/matplotlib
3.5
3d6c3da884fafae4654df68144391cfe9be6f134
2022-08-20T23:23:12Z
diff --git a/doc/api/axis_api.rst b/doc/api/axis_api.rst index d950d1e253a4..e7da26a11706 100644 --- a/doc/api/axis_api.rst +++ b/doc/api/axis_api.rst @@ -100,6 +100,7 @@ Ticks, tick labels and Offset text Axis.get_offset_text Axis.get_tick_padding + Axis.get_tick_params Axis.get_ticklabels Axis.get...
diff --git a/lib/matplotlib/tests/test_axes.py b/lib/matplotlib/tests/test_axes.py index 3699c9df133d..aed45743d66b 100644 --- a/lib/matplotlib/tests/test_axes.py +++ b/lib/matplotlib/tests/test_axes.py @@ -6452,6 +6452,33 @@ def test_pandas_bar_align_center(pd): fig.canvas.draw() +def test_axis_get_tick_param...
diff --git a/doc/api/axis_api.rst b/doc/api/axis_api.rst index d950d1e253a4..e7da26a11706 100644 --- a/doc/api/axis_api.rst +++ b/doc/api/axis_api.rst @@ -100,6 +100,7 @@ Ticks, tick labels and Offset text Axis.get_offset_text Axis.get_tick_padding + Axis.get_tick_params Axis.get_ticklabels Axis.get...
[ { "components": [ { "doc": "Get appearance parameters for ticks, ticklabels, and gridlines.\n\n.. versionadded:: 3.7\n\nParameters\n----------\nwhich : {'major', 'minor'}, default: 'major'\n The group of ticks for which the parameters are retrieved.\n\nReturns\n-------\ndict\n Properties for...
[ "lib/matplotlib/tests/test_axes.py::test_axis_get_tick_params" ]
[ "lib/matplotlib/tests/test_axes.py::test_invisible_axes[png]", "lib/matplotlib/tests/test_axes.py::test_get_labels", "lib/matplotlib/tests/test_axes.py::test_repr", "lib/matplotlib/tests/test_axes.py::test_label_loc_vertical[png]", "lib/matplotlib/tests/test_axes.py::test_label_loc_horizontal[png]", "lib/...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add `Axes.get_tick_params()` method. ## PR Summary Addresses https://github.com/matplotlib/matplotlib/issues/23603 - Added `Axis.get_tick_params()` method, which will return `Axis._major_tick_kw` ...
3d6c3da884fafae4654df68144391cfe9be6f134
conan-io__conan-11908
11,908
conan-io/conan
null
a5525e523d2c6a3636a062134364686059ba8863
2022-08-18T11:25:43Z
diff --git a/conans/client/loader.py b/conans/client/loader.py index d1d89130dd2..804d73b50d1 100644 --- a/conans/client/loader.py +++ b/conans/client/loader.py @@ -2,6 +2,7 @@ import imp import inspect import os +import re import sys import types import uuid @@ -436,13 +437,20 @@ def _parse_conanfile(conan_file_...
diff --git a/conans/test/integration/conanfile/required_conan_version_test.py b/conans/test/integration/conanfile/required_conan_version_test.py index 7f0c11f25c7..f0261c11b03 100644 --- a/conans/test/integration/conanfile/required_conan_version_test.py +++ b/conans/test/integration/conanfile/required_conan_version_tes...
[ { "components": [ { "doc": "", "lines": [ 488, 502 ], "name": "_get_required_conan_version_without_loading", "signature": "def _get_required_conan_version_without_loading(conan_file_path):", "type": "function" } ], "file": "...
[ "conans/test/integration/conanfile/required_conan_version_test.py::RequiredConanVersionTest::test_required_conan_version_with_loading_issues" ]
[ "conans/test/integration/conanfile/required_conan_version_test.py::RequiredConanVersionTest::test_required_conan_version" ]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Read required_conan_version in text mode before loading the recipe Changelog: Feature: Fail sooner and with a meaningful error if the specified required version is not satisfied. Docs: omit Conan ...
4a5b19a75db9225316c8cb022a2dfb9705a2af34
astropy__astropy-13508
13,508
astropy/astropy
5.0
093e96735f6bc4dd87f154c54b6c42667489b602
2022-07-27T18:03:06Z
diff --git a/astropy/time/core.py b/astropy/time/core.py index 3716665aadde..50be00fcfb2a 100644 --- a/astropy/time/core.py +++ b/astropy/time/core.py @@ -1356,6 +1356,82 @@ def sort(self, axis=-1): return self[self._advanced_index(self.argsort(axis), axis, keepdims=Tr...
diff --git a/astropy/table/tests/test_info.py b/astropy/table/tests/test_info.py index 9a2977074bb9..6ea33917c75e 100644 --- a/astropy/table/tests/test_info.py +++ b/astropy/table/tests/test_info.py @@ -67,7 +67,7 @@ def test_table_info_stats(table_types): a = np.array([1, 2, 1, 2], dtype='int32') b = np.arra...
diff --git a/docs/changes/time/13508.feature.rst b/docs/changes/time/13508.feature.rst new file mode 100644 index 000000000000..d6dffaa3b3db --- /dev/null +++ b/docs/changes/time/13508.feature.rst @@ -0,0 +1,1 @@ +Added the ``astropy.time.Time.mean()`` method which also enables the ``numpy.mean()`` function to be used ...
[ { "components": [ { "doc": "Mean along a given axis.\n\nThis is similar to :meth:`~numpy.ndarray.mean`, but adapted to ensure\nthat the full precision given by the two doubles ``jd1`` and ``jd2`` is\nused, and that corresponding attributes are copied.\n\nNote that the ``out`` argument is present o...
[ "astropy/table/tests/test_info.py::test_table_info_stats[unmasked]", "astropy/table/tests/test_info.py::test_table_info_stats[masked]", "astropy/table/tests/test_info.py::test_table_info_stats[subclass]", "astropy/time/tests/test_methods.py::TestArithmetic::test_mean[False-True-None-masked]", "astropy/time/...
[ "astropy/table/tests/test_info.py::test_table_info_attributes[unmasked]", "astropy/table/tests/test_info.py::test_table_info_attributes[masked]", "astropy/table/tests/test_info.py::test_table_info_attributes[subclass]", "astropy/table/tests/test_info.py::test_data_info", "astropy/table/tests/test_info.py::t...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Enabled `np.mean()` function for instances of `astropy.time.Time`. <!-- This comments are hidden when you submit the pull request, so you do not need to remove them! --> <!-- Please be sure to che...
Here is the discussion in the issues of the pull request. <issues> Enable `np.mean()` for `astropy.time.Time` ### Description The `__array_function__` dispatch mechanism was recently added to astropy. Can we use this mechanism to activate the `np.mean()` array function for instances of `astropy.time.Time`? If so...
7cbba866a8c5749b90a5cb4f9877ddfad2d36037
conan-io__conan-11678
11,678
conan-io/conan
null
f4d5c49f0fbba650cf5162107f2135ca48336778
2022-07-20T08:20:27Z
diff --git a/conan/tools/gnu/autotoolstoolchain.py b/conan/tools/gnu/autotoolstoolchain.py index 52ee17a3939..d10f36d3b05 100644 --- a/conan/tools/gnu/autotoolstoolchain.py +++ b/conan/tools/gnu/autotoolstoolchain.py @@ -22,10 +22,10 @@ def __init__(self, conanfile, namespace=None): self.make_args = [] ...
diff --git a/conans/test/integration/toolchains/gnu/test_autotoolstoolchain.py b/conans/test/integration/toolchains/gnu/test_autotoolstoolchain.py index 7a20a026036..36ede715b8f 100644 --- a/conans/test/integration/toolchains/gnu/test_autotoolstoolchain.py +++ b/conans/test/integration/toolchains/gnu/test_autotoolstool...
[ { "components": [ { "doc": "", "lines": [ 126, 133 ], "name": "AutotoolsToolchain.cxxflags", "signature": "def cxxflags(self):", "type": "function" }, { "doc": "", "lines": [ 136, 142 ...
[ "conans/test/unittests/client/toolchain/autotools/autotools_toolchain_test.py::test_custom_defines", "conans/test/unittests/client/toolchain/autotools/autotools_toolchain_test.py::test_custom_cxxflags", "conans/test/unittests/client/toolchain/autotools/autotools_toolchain_test.py::test_custom_cflags", "conans...
[ "conans/test/integration/toolchains/gnu/test_autotoolstoolchain.py::test_extra_flags_via_conf", "conans/test/integration/toolchains/gnu/test_autotoolstoolchain.py::test_not_none_values", "conans/test/unittests/client/toolchain/autotools/autotools_toolchain_test.py::test_modify_environment", "conans/test/unitt...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> AutotoolsToolchain: empty None values from self fields + Refactor Changelog: Bugfix: The `AutotoolsToolchain` now clears `None` values from the attributes `.cxxflags`, `.cflags`, `.ldflags` and `.defi...
4a5b19a75db9225316c8cb022a2dfb9705a2af34
conan-io__conan-11675
11,675
conan-io/conan
null
2e7692bfd24210918d8a1e4203e6e79a0bca7878
2022-07-20T07:03:56Z
diff --git a/conans/paths/__init__.py b/conans/paths/__init__.py index 6457f1ad010..5992053360d 100644 --- a/conans/paths/__init__.py +++ b/conans/paths/__init__.py @@ -1,7 +1,7 @@ # coding=utf-8 - import os import platform +from pathlib import Path if platform.system() == "Windows": from conans.util.windows...
diff --git a/conans/test/unittests/paths/user_home_test.py b/conans/test/unittests/paths/user_home_test.py new file mode 100644 index 00000000000..8b9912bac7a --- /dev/null +++ b/conans/test/unittests/paths/user_home_test.py @@ -0,0 +1,83 @@ +import os +import platform +from pathlib import Path + +from conans.paths imp...
[ { "components": [ { "doc": "", "lines": [ 16, 23 ], "name": "get_conan_user_home._find_conanrc_file", "signature": "def _find_conanrc_file():", "type": "function" }, { "doc": "", "lines": [ 25, ...
[ "conans/test/unittests/paths/user_home_test.py::test_conanrc_abs_path_get_conan_user_home", "conans/test/unittests/paths/user_home_test.py::test_conanrc_local_path_get_conan_user_home", "conans/test/unittests/paths/user_home_test.py::test_conanrc_local_path_run_conan_subfolder_get_conan_user_home", "conans/te...
[ "conans/test/unittests/paths/user_home_test.py::test_conanrc_wrong_format", "conans/test/unittests/paths/user_home_test.py::test_conanrc_not_existing" ]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add conan.conanrc file to setup the conan user home Closes: https://github.com/conan-io/conan/issues/11542 You can create a _.conanrc_ file in the folder where you are running conan (or any parent ...
4a5b19a75db9225316c8cb022a2dfb9705a2af34
conan-io__conan-11585
11,585
conan-io/conan
null
b20b72beb77c063d8c27c55db37425349e232a26
2022-07-07T14:41:53Z
diff --git a/conans/client/loader.py b/conans/client/loader.py index 4fafe819775..d1d89130dd2 100644 --- a/conans/client/loader.py +++ b/conans/client/loader.py @@ -8,6 +8,8 @@ import yaml +from pathlib import Path + from conan.tools.cmake import cmake_layout from conan.tools.google import bazel_layout from con...
diff --git a/conans/test/integration/conanfile/folders_access_test.py b/conans/test/integration/conanfile/folders_access_test.py index 3a6a635f81c..741643aa6ab 100644 --- a/conans/test/integration/conanfile/folders_access_test.py +++ b/conans/test/integration/conanfile/folders_access_test.py @@ -22,6 +22,7 @@ def packa...
[ { "components": [ { "doc": "", "lines": [ 263, 265 ], "name": "ConanFile.source_path", "signature": "def source_path(self) -> Path:", "type": "function" }, { "doc": "", "lines": [ 275, 277 ...
[ "conans/test/integration/conanfile/folders_access_test.py::TestFoldersAccess::test_build_local_command", "conans/test/integration/conanfile/folders_access_test.py::TestFoldersAccess::test_deploy", "conans/test/integration/conanfile/folders_access_test.py::TestFoldersAccess::test_full_install", "conans/test/in...
[ "conans/test/integration/conanfile/folders_access_test.py::TestFoldersAccess::test_imports_local", "conans/test/integration/conanfile/folders_access_test.py::RecipeFolderTest::test_editable", "conans/test/integration/conanfile/folders_access_test.py::RecipeFolderTest::test_local_flow", "conans/test/integratio...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Feature : provide Path accesssors closes: #11304 Changelog: Feature: Provide Path accessors in Conanfile. Docs: omit - [x] Refer to the issue that supports this Pull Request. - [x] If the iss...
4a5b19a75db9225316c8cb022a2dfb9705a2af34