instance_id stringlengths 13 45 | pull_number int64 7 30.1k | repo stringclasses 83
values | version stringclasses 68
values | base_commit stringlengths 40 40 | created_at stringdate 2013-05-16 18:15:55 2025-01-08 15:12:50 | patch stringlengths 347 35.2k | test_patch stringlengths 432 113k | non_py_patch stringlengths 0 18.3k | new_components listlengths 0 40 | FAIL_TO_PASS listlengths 1 2.53k | PASS_TO_PASS listlengths 0 1.7k | problem_statement stringlengths 607 52.7k | hints_text stringlengths 0 57.4k | environment_setup_commit stringclasses 167
values |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
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 | |
embeddings-benchmark__mteb-606 | 606 | embeddings-benchmark/mteb | null | d6ef5b63ebfb4bd8c8478385d3dc842373d67375 | 2024-04-30T21:21:45Z | diff --git a/docs/mmteb/points/606.jsonl b/docs/mmteb/points/606.jsonl
new file mode 100644
index 0000000000..ad95edb09d
--- /dev/null
+++ b/docs/mmteb/points/606.jsonl
@@ -0,0 +1,2 @@
+{"GitHub": "dokato", "Bug fixes": 2}
+{"GitHub": "KennethEnevoldsen", "Review PR": 2}
\ No newline at end of file
diff --git a/mteb/ta... | diff --git a/tests/test_TaskMetadata.py b/tests/test_TaskMetadata.py
index 5f0cde1c7f..229ece491e 100644
--- a/tests/test_TaskMetadata.py
+++ b/tests/test_TaskMetadata.py
@@ -43,10 +43,7 @@
"MTOPDomainClassification",
"MTOPIntentClassification",
"NordicLangClassification",
- "ScalaDaClassification",
-... | diff --git a/docs/mmteb/points/606.jsonl b/docs/mmteb/points/606.jsonl
new file mode 100644
index 0000000000..ad95edb09d
--- /dev/null
+++ b/docs/mmteb/points/606.jsonl
@@ -0,0 +1,2 @@
+{"GitHub": "dokato", "Bug fixes": 2}
+{"GitHub": "KennethEnevoldsen", "Review PR": 2}
\ No newline at end of file
diff --git a/results... | [
{
"components": [
{
"doc": "",
"lines": [
14,
71
],
"name": "ScalaClassification",
"signature": "class ScalaClassification(AbsTaskClassification, MultilingualTask):",
"type": "class"
},
{
"doc": "",
"lines": [
... | [
"tests/test_TaskMetadata.py::test_all_metadata_is_filled"
] | [
"tests/test_TaskMetadata.py::test_given_dataset_config_then_it_is_valid",
"tests/test_TaskMetadata.py::test_given_missing_dataset_path_then_it_throws",
"tests/test_TaskMetadata.py::test_given_missing_revision_path_then_it_throws",
"tests/test_TaskMetadata.py::test_given_none_revision_path_then_it_logs_warning... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Making ScalaClassification multilingual
This PR does not add any new dataset, but rather makes ScaLa classification as a truly multilingual format as pointed in #577.
I added new dataset to: http... | b580b95fc91a7e7e675d27c3ae9a9df64ddad169 | |
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 | ||
huggingface__trl-1598 | 1,598 | huggingface/trl | null | a2adfb836a90d1e37b1253ab43dace05f1241e04 | 2024-04-29T12:39:50Z | diff --git a/docs/source/_toctree.yml b/docs/source/_toctree.yml
index e4a1041033f..4287624c2ac 100644
--- a/docs/source/_toctree.yml
+++ b/docs/source/_toctree.yml
@@ -47,6 +47,10 @@
title: ORPO Trainer
- local: iterative_sft_trainer
title: Iterative Supervised Fine-Tuning
+ - local: callbacks
+ title... | diff --git a/tests/test_judges.py b/tests/test_judges.py
new file mode 100644
index 00000000000..d3920c0b894
--- /dev/null
+++ b/tests/test_judges.py
@@ -0,0 +1,33 @@
+import unittest
+
+from trl import HuggingFaceJudge, MockAPIJudge, MockJudge
+
+
+class TestJudges(unittest.TestCase):
+ def _get_prompts_and_complet... | diff --git a/docs/source/_toctree.yml b/docs/source/_toctree.yml
index e4a1041033f..4287624c2ac 100644
--- a/docs/source/_toctree.yml
+++ b/docs/source/_toctree.yml
@@ -47,6 +47,10 @@
title: ORPO Trainer
- local: iterative_sft_trainer
title: Iterative Supervised Fine-Tuning
+ - local: callbacks
+ title... | [
{
"components": [
{
"doc": "",
"lines": [
104,
105
],
"name": "is_llmblender_available",
"signature": "def is_llmblender_available() -> bool:",
"type": "function"
},
{
"doc": "",
"lines": [
108,
... | [
"tests/test_judges.py::TestJudges::test_mock_api_judge",
"tests/test_judges.py::TestJudges::test_mock_judge"
] | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Add WinRateCallback and Judges
Command for testing:
```shell
TRANSFORMERS_VERBOSITY=info ACCELERATE_LOG_LEVEL=info TRL_USE_RICH=true accelerate launch --config_file=examples/accelerate_configs/mul... | Here is the discussion in the issues of the pull request.
<issues>
YamlConfigParser fails on RewardConfig, DPOConfig etc..
Using the YamlConfigParser with derived classes of `TrainingArguments` throws an error because it assumes all classes that are `isinstance(class, TrainingArguments)` must be `TrainingArguments` and... | a0066f47f82f7af0145e3b5ebc06cf2a45b97352 |
tobymao__sqlglot-3367 | 3,367 | tobymao/sqlglot | null | e82a30b6563547daea0bb087e1b6b5bf3b0532d3 | 2024-04-29T11:12:42Z | diff --git a/sqlglot/dialects/mysql.py b/sqlglot/dialects/mysql.py
index 03576d29e5..7b4d0e496a 100644
--- a/sqlglot/dialects/mysql.py
+++ b/sqlglot/dialects/mysql.py
@@ -867,3 +867,16 @@ def chr_sql(self, expression: exp.Chr) -> str:
charset = expression.args.get("charset")
using = f" USING {... | diff --git a/tests/dialects/test_mysql.py b/tests/dialects/test_mysql.py
index e8af5c644e..a03deb2fd6 100644
--- a/tests/dialects/test_mysql.py
+++ b/tests/dialects/test_mysql.py
@@ -1109,3 +1109,23 @@ def test_safe_div(self):
"tsql": "CAST(a AS FLOAT) / NULLIF(b, 0)",
},
)
+
+ ... | [] | [
"tests/dialects/test_mysql.py::TestMySQL::test_timestamp_trunc"
] | [
"tests/dialects/test_mysql.py::TestMySQL::test_bits_literal",
"tests/dialects/test_mysql.py::TestMySQL::test_canonical_functions",
"tests/dialects/test_mysql.py::TestMySQL::test_convert",
"tests/dialects/test_mysql.py::TestMySQL::test_date_format",
"tests/dialects/test_mysql.py::TestMySQL::test_ddl",
"tes... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
feat(mysql): Transpile TimestampTrunc
Fixes #3366
MySQL cannot generate `exp.TimestampTrunc` using an existing function; However, one can simulate it with a combination of date add & diff ([source]... | Here is the discussion in the issues of the pull request.
<issues>
Timestamp trunc method issue from postgres to MySQL
I was trying to convert an SQL query from Postgres to MySQL. Check the following code snippet
```
import sqlglot
sqlglot.transpile("SELECT date_trunc('hour', timestamp '2001-02-16 20:38:40') FROM ... | ceb42fabad60312699e4b15936aeebac00e22e4d | |
scikit-learn__scikit-learn-28901 | 28,901 | scikit-learn/scikit-learn | 1.6 | 9012b787bdded56c7d189043b88f8dfc0dbe911a | 2024-04-26T15:41:56Z | diff --git a/doc/whats_new/upcoming_changes/sklearn.pipeline/28901.major-feature.rst b/doc/whats_new/upcoming_changes/sklearn.pipeline/28901.major-feature.rst
new file mode 100644
index 0000000000000..60703872d3980
--- /dev/null
+++ b/doc/whats_new/upcoming_changes/sklearn.pipeline/28901.major-feature.rst
@@ -0,0 +1,3 ... | diff --git a/sklearn/tests/metadata_routing_common.py b/sklearn/tests/metadata_routing_common.py
index 174164daada8c..98503652df6f0 100644
--- a/sklearn/tests/metadata_routing_common.py
+++ b/sklearn/tests/metadata_routing_common.py
@@ -347,6 +347,7 @@ def fit(self, X, y=None, sample_weight="default", metadata="default... | diff --git a/doc/whats_new/upcoming_changes/sklearn.pipeline/28901.major-feature.rst b/doc/whats_new/upcoming_changes/sklearn.pipeline/28901.major-feature.rst
new file mode 100644
index 0000000000000..60703872d3980
--- /dev/null
+++ b/doc/whats_new/upcoming_changes/sklearn.pipeline/28901.major-feature.rst
@@ -0,0 +1,3 ... | [
{
"components": [
{
"doc": "Transform a parameter value using a sub-pipeline and cache the result.\n\nParameters\n----------\nsub_pipeline : Pipeline\n The sub-pipeline to be used for transformation.\ncache : dict\n The cache dictionary to store the transformed values.\nparam_name : str\n ... | [
"sklearn/tests/test_pipeline.py::test_pipeline_raise_set_params_error",
"sklearn/tests/test_pipeline.py::test_set_pipeline_step_passthrough[None]",
"sklearn/tests/test_pipeline.py::test_set_pipeline_step_passthrough[passthrough]",
"sklearn/tests/test_pipeline.py::test_transform_input_pipeline[fit]",
"sklear... | [
"sklearn/tests/test_pipeline.py::test_pipeline_invalid_parameters",
"sklearn/tests/test_pipeline.py::test_pipeline_init_tuple",
"sklearn/tests/test_pipeline.py::test_pipeline_methods_anova",
"sklearn/tests/test_pipeline.py::test_pipeline_fit_params",
"sklearn/tests/test_pipeline.py::test_pipeline_sample_wei... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
FEAT allow metadata to be transformed in a Pipeline
Initial proposal: https://github.com/scikit-learn/scikit-learn/pull/28440#issuecomment-1952386217
xref: https://github.com/scikit-learn/scikit-lear... | 18dc8630a7cbe1b591c12774949058b12157a39a | |
deepset-ai__haystack-7599 | 7,599 | deepset-ai/haystack | null | 8d04e530da24b5e5c8c11af29829714eeea47db2 | 2024-04-25T19:09:50Z | diff --git a/haystack/components/preprocessors/document_splitter.py b/haystack/components/preprocessors/document_splitter.py
index adea7cc3ce..033f55a89a 100644
--- a/haystack/components/preprocessors/document_splitter.py
+++ b/haystack/components/preprocessors/document_splitter.py
@@ -1,5 +1,5 @@
from copy import dee... | diff --git a/test/components/preprocessors/test_document_splitter.py b/test/components/preprocessors/test_document_splitter.py
index 479f0d50ce..4874c25be3 100644
--- a/test/components/preprocessors/test_document_splitter.py
+++ b/test/components/preprocessors/test_document_splitter.py
@@ -141,3 +141,98 @@ def test_cop... | diff --git a/releasenotes/notes/add-page-number-to-document-splitter-162e9dc7443575f0.yaml b/releasenotes/notes/add-page-number-to-document-splitter-162e9dc7443575f0.yaml
new file mode 100644
index 0000000000..8c97663cf1
--- /dev/null
+++ b/releasenotes/notes/add-page-number-to-document-splitter-162e9dc7443575f0.yaml
@... | [
{
"components": [
{
"doc": "Creates Document objects from text splits enriching them with page number and the metadata of the original document.",
"lines": [
125,
136
],
"name": "DocumentSplitter._create_docs_from_splits",
"signature": "def _crea... | [
"test/components/preprocessors/test_document_splitter.py::TestDocumentSplitter::test_add_page_number_to_metadata_with_no_overlap_word_split",
"test/components/preprocessors/test_document_splitter.py::TestDocumentSplitter::test_add_page_number_to_metadata_with_no_overlap_sentence_split",
"test/components/preproc... | [
"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: add page_number to metadata in DocumentSplitter
### Related Issues
- fixes #6705
### Proposed Changes:
<!--- In case of a bug: Describe what caused the issue and how you solved it -->... | Here is the discussion in the issues of the pull request.
<issues>
feat: Add `page_number` to meta of Documents in `DocumentSplitter`
**Is your feature request related to a problem? Please describe.**
In Haystack v1 we had an option in the Preprocessor to add the original `page_number` to a Document's meta data when i... | f4d9c2bb917be0ffe132dffcc2ad4f1b0fcc5967 |
deepset-ai__haystack-7574 | 7,574 | deepset-ai/haystack | null | 081757c6b9b1cadae5f783b3e1f872a9ecf87dc2 | 2024-04-22T16:30:03Z | diff --git a/haystack/dataclasses/sparse_embedding.py b/haystack/dataclasses/sparse_embedding.py
index 191f98dbcf..0d3ebfd614 100644
--- a/haystack/dataclasses/sparse_embedding.py
+++ b/haystack/dataclasses/sparse_embedding.py
@@ -20,6 +20,9 @@ def __init__(self, indices: List[int], values: List[float]):
self.... | diff --git a/test/dataclasses/test_sparse_embedding.py b/test/dataclasses/test_sparse_embedding.py
index f3fc889aa5..0617610189 100644
--- a/test/dataclasses/test_sparse_embedding.py
+++ b/test/dataclasses/test_sparse_embedding.py
@@ -21,3 +21,11 @@ def test_from_dict(self):
se = SparseEmbedding.from_dict({"in... | diff --git a/releasenotes/notes/sparse-emb-eq-773ef04ae3ed83ea.yaml b/releasenotes/notes/sparse-emb-eq-773ef04ae3ed83ea.yaml
new file mode 100644
index 0000000000..4074680bcf
--- /dev/null
+++ b/releasenotes/notes/sparse-emb-eq-773ef04ae3ed83ea.yaml
@@ -0,0 +1,4 @@
+---
+enhancements:
+ - |
+ Add an `__eq__` method... | [
{
"components": [
{
"doc": "",
"lines": [
23,
24
],
"name": "SparseEmbedding.__eq__",
"signature": "def __eq__(self, other):",
"type": "function"
}
],
"file": "haystack/dataclasses/sparse_embedding.py"
}
] | [
"test/dataclasses/test_sparse_embedding.py::TestSparseEmbedding::test_eq"
] | [
"test/dataclasses/test_sparse_embedding.py::TestSparseEmbedding::test_init",
"test/dataclasses/test_sparse_embedding.py::TestSparseEmbedding::test_init_with_wrong_parameters",
"test/dataclasses/test_sparse_embedding.py::TestSparseEmbedding::test_to_dict",
"test/dataclasses/test_sparse_embedding.py::TestSparse... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
add `__eq__` method to `SparseEmbedding`
### Related Issues
While working on hybrid retrieval, I noticed we lack a proper way to compare `SparseEmbedding` objects.
### Proposed Changes:
Add a... | f4d9c2bb917be0ffe132dffcc2ad4f1b0fcc5967 | |
embeddings-benchmark__mteb-469 | 469 | embeddings-benchmark/mteb | null | 21efc3b1c29ef8e4b47d3ad2d13ea3c04935d03e | 2024-04-20T18:14:12Z | diff --git a/README.md b/README.md
index ecd21c23ea..de204be7c5 100644
--- a/README.md
+++ b/README.md
@@ -133,15 +133,18 @@ Models should implement the following interface, implementing an `encode` functi
```python
class MyModel():
- def encode(self, sentences: list[str], **kwargs) -> list[np.ndarray] | list[to... | diff --git a/tests/test_encoder_interfaces.py b/tests/test_encoder_interfaces.py
new file mode 100644
index 0000000000..42a308435f
--- /dev/null
+++ b/tests/test_encoder_interfaces.py
@@ -0,0 +1,17 @@
+from sentence_transformers import SentenceTransformer
+
+from mteb.encoder_interface import Encoder, EncoderWithQueryC... | diff --git a/README.md b/README.md
index ecd21c23ea..de204be7c5 100644
--- a/README.md
+++ b/README.md
@@ -133,15 +133,18 @@ Models should implement the following interface, implementing an `encode` functi
```python
class MyModel():
- def encode(self, sentences: list[str], **kwargs) -> list[np.ndarray] | list[to... | [
{
"components": [
{
"doc": "The interface for an encoder in MTEB.",
"lines": [
10,
26
],
"name": "Encoder",
"signature": "class Encoder(Protocol):",
"type": "class"
},
{
"doc": "Encodes the given sentences using the en... | [
"tests/test_encoder_interfaces.py::test_sentence_is_encoder",
"tests/test_encoder_interfaces.py::test_wrapped_sentence_is_encoder_with_query_corpus_encode"
] | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
fix: Added encoder interfaces
Added an outline for interfaces for MTEB.
Hope this can start a discussion on how we want the standard interface to look.
----------
</request>
There are several new... | b580b95fc91a7e7e675d27c3ae9a9df64ddad169 | |
embeddings-benchmark__mteb-457 | 457 | embeddings-benchmark/mteb | null | 2fef0418d3baf443350d588246867b16184f6af5 | 2024-04-19T22:44:45Z | diff --git a/docs/mmteb/points/457.jsonl b/docs/mmteb/points/457.jsonl
new file mode 100644
index 0000000000..47007bf9d9
--- /dev/null
+++ b/docs/mmteb/points/457.jsonl
@@ -0,0 +1,4 @@
+{"GitHub": "orionw", "Bug fixes": 6}
+{"GitHub": "KennethEnevoldsen", "Review PR": 2}
+{"GitHub": "Muennighoff", "Review PR": 2}
+{"Gi... | diff --git a/tests/test_mteb_rerank.py b/tests/test_mteb_rerank.py
new file mode 100644
index 0000000000..3c664efdfa
--- /dev/null
+++ b/tests/test_mteb_rerank.py
@@ -0,0 +1,391 @@
+from __future__ import annotations
+
+import json
+import logging
+import os
+
+from sentence_transformers import CrossEncoder, SentenceTr... | diff --git a/docs/mmteb/points/457.jsonl b/docs/mmteb/points/457.jsonl
new file mode 100644
index 0000000000..47007bf9d9
--- /dev/null
+++ b/docs/mmteb/points/457.jsonl
@@ -0,0 +1,4 @@
+{"GitHub": "orionw", "Bug fixes": 6}
+{"GitHub": "KennethEnevoldsen", "Review PR": 2}
+{"GitHub": "Muennighoff", "Review PR": 2}
+{"Gi... | [
{
"components": [
{
"doc": "",
"lines": [
172,
178
],
"name": "DenseRetrievalExactSearch.load_results_file",
"signature": "def load_results_file(self):",
"type": "function"
},
{
"doc": "This function provides support f... | [
"tests/test_mteb_rerank.py::test_mteb_rerank",
"tests/test_mteb_rerank.py::test_reranker_same_ndcg1"
] | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Add rerankers to mteb, following `CrossEncoder`
See #450 for discussion that led to this (thanks everyone!)
This PR:
- Adds CrossEncoders/Rerankers support to mteb for Retrieval and InstructionRet... | b580b95fc91a7e7e675d27c3ae9a9df64ddad169 | |
tobymao__sqlglot-3331 | 3,331 | tobymao/sqlglot | null | 7f9cb2d2fe2c09e94f9dbaafcc0a808428b5b21c | 2024-04-16T20:07:46Z | diff --git a/sqlglot/dialects/prql.py b/sqlglot/dialects/prql.py
index 3ee91a822c..84475b2011 100644
--- a/sqlglot/dialects/prql.py
+++ b/sqlglot/dialects/prql.py
@@ -55,6 +55,20 @@ class Parser(parser.Parser):
"SORT": lambda self, query: self._parse_order_by(query),
}
+ def _parse_equali... | diff --git a/tests/dialects/test_prql.py b/tests/dialects/test_prql.py
index 69e2e287fb..1a0eec25c0 100644
--- a/tests/dialects/test_prql.py
+++ b/tests/dialects/test_prql.py
@@ -58,3 +58,11 @@ def test_prql(self):
self.validate_identity(
"from x intersect y", "SELECT * FROM x INTERSECT ALL SELECT... | [] | [
"tests/dialects/test_prql.py::TestPRQL::test_prql"
] | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Feat(prql): handle NULL
https://prql-lang.org/book/reference/spec/null.html
Both `NULL == x` or `x == NULL` is allowed in PRQL.
----------
</request>
There are several new functions or classes th... | ceb42fabad60312699e4b15936aeebac00e22e4d | ||
deepset-ai__haystack-7549 | 7,549 | deepset-ai/haystack | null | 48c7c6ad264778aab693bc271061c65e9619b65d | 2024-04-12T23:01:43Z | diff --git a/haystack/document_stores/in_memory/document_store.py b/haystack/document_stores/in_memory/document_store.py
index 3575b3c93a..31a516df7d 100644
--- a/haystack/document_stores/in_memory/document_store.py
+++ b/haystack/document_stores/in_memory/document_store.py
@@ -1,9 +1,10 @@
+import math
import re
-fro... | diff --git a/test/document_stores/test_in_memory.py b/test/document_stores/test_in_memory.py
index 3b31c13db3..1d633b98f1 100644
--- a/test/document_stores/test_in_memory.py
+++ b/test/document_stores/test_in_memory.py
@@ -3,7 +3,6 @@
import pandas as pd
import pytest
-from haystack_bm25 import rank_bm25
from ha... | diff --git a/pyproject.toml b/pyproject.toml
index 50e0f5a6ed..e8b65ac534 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -47,7 +47,6 @@ classifiers = [
]
dependencies = [
"pandas",
- "haystack-bm25",
"tqdm",
"tenacity",
"lazy-imports",
diff --git a/releasenotes/notes/enhance-inmemorydocumentstore-bm... | [
{
"components": [
{
"doc": "A dataclass for managing document statistics for BM25 retrieval.\n\n:param freq_token: A Counter of token frequencies in the document.\n:param doc_len: Number of tokens in the document.",
"lines": [
29,
38
],
"name": "BM25Docu... | [
"test/document_stores/test_in_memory.py::TestMemoryDocumentStore::test_from_dict",
"test/document_stores/test_in_memory.py::TestMemoryDocumentStore::test_invalid_bm25_algorithm",
"test/document_stores/test_in_memory.py::TestMemoryDocumentStore::test_bm25_retrieval_with_text_and_table_content"
] | [
"[",
"test/document_stores/test_in_memory.py::TestMemoryDocumentStore::test_no_filters",
"test/document_stores/test_in_memory.py::TestMemoryDocumentStore::test_comparison_equal",
"test/document_stores/test_in_memory.py::TestMemoryDocumentStore::test_comparison_equal_with_dataframe",
"test/document_stores/te... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
perf: enhanced `InMemoryDocumentStore` BM25 query efficiency with incremental indexing
### Related Issues
This proposal was first made as a stand-alone Haystack document store integration, which is... | f4d9c2bb917be0ffe132dffcc2ad4f1b0fcc5967 | |
tobymao__sqlglot-3303 | 3,303 | tobymao/sqlglot | null | 3c97d3437ea573fd3764eab05ed619353fced580 | 2024-04-11T16:46:48Z | diff --git a/sqlglot/dataframe/sql/functions.py b/sqlglot/dataframe/sql/functions.py
index b4dd2c6d9a..81b7d61ccd 100644
--- a/sqlglot/dataframe/sql/functions.py
+++ b/sqlglot/dataframe/sql/functions.py
@@ -536,7 +536,7 @@ def year(col: ColumnOrName) -> Column:
def quarter(col: ColumnOrName) -> Column:
- return... | diff --git a/tests/dialects/test_snowflake.py b/tests/dialects/test_snowflake.py
index a16bd993d3..b652541f7c 100644
--- a/tests/dialects/test_snowflake.py
+++ b/tests/dialects/test_snowflake.py
@@ -66,6 +66,7 @@ def test_snowflake(self):
self.validate_identity("SELECT DAYOFYEAR(CURRENT_TIMESTAMP())")
... | [] | [
"tests/dialects/test_teradata.py::TestTeradata::test_time",
"tests/test_expressions.py::TestExpressions::test_functions"
] | [
"tests/dialects/test_snowflake.py::TestSnowflake::test_ddl",
"tests/dialects/test_snowflake.py::TestSnowflake::test_describe_table",
"tests/dialects/test_snowflake.py::TestSnowflake::test_flatten",
"tests/dialects/test_snowflake.py::TestSnowflake::test_historical_data",
"tests/dialects/test_snowflake.py::Te... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Feat(teradata): handle transpile of quarter function
Add a `QUARTER` expression type. I tried to base this off of the places where `exp.Month` is used but may have missed something
Teradata doesn't... | ceb42fabad60312699e4b15936aeebac00e22e4d | ||
tobymao__sqlglot-3299 | 3,299 | tobymao/sqlglot | null | b28cd89823a38f3a90c57344a44719364d66d723 | 2024-04-11T00:58:44Z | diff --git a/sqlglot/dialects/prql.py b/sqlglot/dialects/prql.py
index afc7a4e4ee..3ee91a822c 100644
--- a/sqlglot/dialects/prql.py
+++ b/sqlglot/dialects/prql.py
@@ -104,6 +104,17 @@ def _parse_take(self, query: exp.Query) -> t.Optional[exp.Query]:
num = self._parse_number() # TODO: TAKE for ranges a..b
... | diff --git a/tests/dialects/test_prql.py b/tests/dialects/test_prql.py
index b193784318..69e2e287fb 100644
--- a/tests/dialects/test_prql.py
+++ b/tests/dialects/test_prql.py
@@ -5,48 +5,56 @@ class TestPRQL(Validator):
dialect = "prql"
def test_prql(self):
- self.validate_identity("FROM x", "SELECT ... | [] | [
"tests/dialects/test_prql.py::TestPRQL::test_prql"
] | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Feat(prql): Handle DESC with sort
{}
----------
</request>
There are several new functions or classes that need to be implemented, using the definitions below:
<<NEW DEFINITIONS>>
There are several... | ceb42fabad60312699e4b15936aeebac00e22e4d | ||
conan-io__conan-16054 | 16,054 | conan-io/conan | null | e7debe9671cb271a91353019987c7e5fde6a3364 | 2024-04-09T21:43:30Z | diff --git a/conan/cps/__init__.py b/conan/cps/__init__.py
new file mode 100644
index 00000000000..d2efed3aefe
--- /dev/null
+++ b/conan/cps/__init__.py
@@ -0,0 +1,1 @@
+from conan.cps.cps import CPS
diff --git a/conan/cps/cps.py b/conan/cps/cps.py
new file mode 100644
index 00000000000..cec264e6543
--- /dev/null
+++ b... | diff --git a/test/integration/cps/__init__.py b/test/integration/cps/__init__.py
new file mode 100644
index 00000000000..e69de29bb2d
diff --git a/test/integration/cps/test_cps.py b/test/integration/cps/test_cps.py
new file mode 100644
index 00000000000..f1ce24f6c19
--- /dev/null
+++ b/test/integration/cps/test_cps.py
@... | [
{
"components": [
{
"doc": "",
"lines": [
12,
35
],
"name": "CPSComponentType",
"signature": "class CPSComponentType(Enum):",
"type": "class"
},
{
"doc": "",
"lines": [
20,
21
],
... | [
"test/integration/cps/test_cps.py::test_cps",
"test/integration/cps/test_cps.py::test_cps_static_lib",
"test/integration/cps/test_cps.py::test_cps_header",
"test/integration/cps/test_cps.py::test_cps_in_pkg",
"test/integration/cps/test_extended_cpp_info.py::test_extended_cpp_info"
] | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Feature/cps
Changelog: Omit
Docs: Omit
Won't be documented yet
----------
</request>
There are several new functions or classes that need to be implemented, using the definitions below:
<... | 4a5b19a75db9225316c8cb022a2dfb9705a2af34 | ||
deepset-ai__haystack-7520 | 7,520 | deepset-ai/haystack | null | e974a23fa306a38cf482d24b1b7e4efd7789b32a | 2024-04-09T15:54:10Z | diff --git a/haystack/components/evaluators/__init__.py b/haystack/components/evaluators/__init__.py
index 0da03f913c..f69c8257a9 100644
--- a/haystack/components/evaluators/__init__.py
+++ b/haystack/components/evaluators/__init__.py
@@ -2,6 +2,7 @@
from .document_map import DocumentMAPEvaluator
from .document_mrr i... | diff --git a/test/components/evaluators/__init__.py b/test/components/evaluators/__init__.py
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/test/components/evaluators/test_results_evaluator.py b/test/components/evaluators/test_results_evaluator.py
new file mode 100644
index 0000000000..4e07c9679c
--- /d... | diff --git a/releasenotes/notes/implemeting-eval-results-API-25b2f8707495bea0.yaml b/releasenotes/notes/implemeting-eval-results-API-25b2f8707495bea0.yaml
new file mode 100644
index 0000000000..2f02640cae
--- /dev/null
+++ b/releasenotes/notes/implemeting-eval-results-API-25b2f8707495bea0.yaml
@@ -0,0 +1,5 @@
+---
+fea... | [
{
"components": [
{
"doc": "A class to store the results of an evaluation pipeline.\n\ndata = {\n \"inputs\": {\n \"question\": [\"What is the capital of France?\", \"What is the capital of Spain?\"],\n \"contexts\": [\"wiki_France\", \"wiki_Spain\"],\n \"predicted_answer\"... | [
"test/components/evaluators/test_results_evaluator.py::test_init_results_evaluator",
"test/components/evaluators/test_results_evaluator.py::test_score_report",
"test/components/evaluators/test_results_evaluator.py::test_to_pandas",
"test/components/evaluators/test_results_evaluator.py::test_comparative_indivi... | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
feat: implementing evalualtion results API
### Related Issues
- handles #7508
### Proposed Changes:
- a new Evaluator component to present evaluation results
### How did you test it?
-... | f4d9c2bb917be0ffe132dffcc2ad4f1b0fcc5967 | |
deepset-ai__haystack-7519 | 7,519 | deepset-ai/haystack | null | 3d0f7affed7b192d32d295a6c92bdff5e8f97de4 | 2024-04-09T15:52:30Z | diff --git a/docs/pydoc/config/evaluators_api.yml b/docs/pydoc/config/evaluators_api.yml
index 9acd64efb7..b24b3003e0 100644
--- a/docs/pydoc/config/evaluators_api.yml
+++ b/docs/pydoc/config/evaluators_api.yml
@@ -4,6 +4,7 @@ loaders:
modules:
[
"answer_exact_match",
+ "context_relevance",
... | diff --git a/test/components/evaluators/test_context_relevance_evaluator.py b/test/components/evaluators/test_context_relevance_evaluator.py
new file mode 100644
index 0000000000..8bd1a3cfd7
--- /dev/null
+++ b/test/components/evaluators/test_context_relevance_evaluator.py
@@ -0,0 +1,142 @@
+import os
+from typing impo... | diff --git a/docs/pydoc/config/evaluators_api.yml b/docs/pydoc/config/evaluators_api.yml
index 9acd64efb7..b24b3003e0 100644
--- a/docs/pydoc/config/evaluators_api.yml
+++ b/docs/pydoc/config/evaluators_api.yml
@@ -4,6 +4,7 @@ loaders:
modules:
[
"answer_exact_match",
+ "context_relevance",
... | [
{
"components": [
{
"doc": "Evaluator that checks if a provided context is relevant to the question.\n\nAn LLM separates the answer into multiple statements and checks whether the statement can be inferred from the\ncontext or not. The final score for the full answer is a number from 0.0 to 1.0. I... | [
"test/components/evaluators/test_context_relevance_evaluator.py::TestContextRelevanceEvaluator::test_init_default",
"test/components/evaluators/test_context_relevance_evaluator.py::TestContextRelevanceEvaluator::test_init_fail_wo_openai_api_key",
"test/components/evaluators/test_context_relevance_evaluator.py::... | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
feat: Add ContextRelevanceEvaluator component
### Related Issues
- fixes #7022
### Proposed Changes:
- Add new ContextRelevanceEvaluator component
### How did you test it?
- Added new ... | Here is the discussion in the issues of the pull request.
<issues>
Custom LLM-based evaluator in Haystack core
Now that we have integrations for third party LLM eval frameworks, we need to add support for a handful of LLM-based metrics that we officially support as part of core. This will be done by implementing a cust... | f4d9c2bb917be0ffe132dffcc2ad4f1b0fcc5967 |
google-deepmind__optax-919 | 919 | google-deepmind/optax | null | 9f7446eba856108b98600ff070a2fda6048266af | 2024-04-09T15:13:58Z | diff --git a/docs/api/projections.rst b/docs/api/projections.rst
index 1ea981c41..8d38166b4 100644
--- a/docs/api/projections.rst
+++ b/docs/api/projections.rst
@@ -34,6 +34,7 @@ Available projections
projection_box
projection_hypercube
projection_non_negative
+ projection_simplex
Projection onto a... | diff --git a/optax/projections/_projections_test.py b/optax/projections/_projections_test.py
index 8eec26739..b71e28d1a 100644
--- a/optax/projections/_projections_test.py
+++ b/optax/projections/_projections_test.py
@@ -17,12 +17,19 @@
from absl.testing import absltest
from absl.testing import parameterized
-
imp... | diff --git a/docs/api/projections.rst b/docs/api/projections.rst
index 1ea981c41..8d38166b4 100644
--- a/docs/api/projections.rst
+++ b/docs/api/projections.rst
@@ -34,6 +34,7 @@ Available projections
projection_box
projection_hypercube
projection_non_negative
+ projection_simplex
Projection onto a... | [
{
"components": [
{
"doc": "Projection onto the unit simplex.",
"lines": [
97,
106
],
"name": "_projection_unit_simplex",
"signature": "def _projection_unit_simplex(values: chex.Array) -> chex.Array:",
"type": "function"
},
{
... | [
"optax/projections/_projections_test.py::ProjectionsTest::test_projection_simplex_array0",
"optax/projections/_projections_test.py::ProjectionsTest::test_projection_simplex_array1",
"optax/projections/_projections_test.py::ProjectionsTest::test_projection_simplex_edge_case0",
"optax/projections/_projections_t... | [
"optax/projections/_projections_test.py::ProjectionsTest::test_projection_box",
"optax/projections/_projections_test.py::ProjectionsTest::test_projection_hypercube",
"optax/projections/_projections_test.py::ProjectionsTest::test_projection_non_negative"
] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Add projection_simplex.
Add projection_simplex.
----------
</request>
There are several new functions or classes that need to be implemented, using the definitions below:
<<NEW DEFINITIONS>>
There... | 1e08bccf195ac54e7d9d766eb5e69345bf0e3230 | |
tobymao__sqlglot-3284 | 3,284 | tobymao/sqlglot | null | 46fbd8d9b7684d7c1613a264117c1bd5d6571999 | 2024-04-08T15:39:31Z | diff --git a/sqlglot/expressions.py b/sqlglot/expressions.py
index 702aaff6a2..6e1c2ce05e 100644
--- a/sqlglot/expressions.py
+++ b/sqlglot/expressions.py
@@ -2225,6 +2225,13 @@ class Lateral(UDTF):
}
+class MatchRecognizeMeasure(Expression):
+ arg_types = {
+ "this": True,
+ "window_frame": F... | diff --git a/tests/dialects/test_snowflake.py b/tests/dialects/test_snowflake.py
index a41d35a0cd..a16bd993d3 100644
--- a/tests/dialects/test_snowflake.py
+++ b/tests/dialects/test_snowflake.py
@@ -1575,22 +1575,26 @@ def test_regexp_replace(self, logger):
)
def test_match_recognize(self):
- for... | [] | [
"tests/dialects/test_snowflake.py::TestSnowflake::test_match_recognize"
] | [
"tests/dialects/test_snowflake.py::TestSnowflake::test_ddl",
"tests/dialects/test_snowflake.py::TestSnowflake::test_describe_table",
"tests/dialects/test_snowflake.py::TestSnowflake::test_flatten",
"tests/dialects/test_snowflake.py::TestSnowflake::test_historical_data",
"tests/dialects/test_snowflake.py::Te... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
feat(snowflake): FINAL/RUNNING keywords in MATCH_RECOGNIZE MEASURES
Fixes #3282
The `MEASURES` subclause now supports the following syntax:
```
MEASURES {FINAL | RUNNING} <expr> AS <alias> [, ... | Here is the discussion in the issues of the pull request.
<issues>
Support FINAL/RUNNING specifier for measures in match_recognize (Snowflake)
**Fully reproducible code snippet**
```
query = """
SELECT company, price_date, price, "FINAL FIRST(AB12.price)", "FINAL LAST(AB12.price)"
FROM price_history
MAT... | ceb42fabad60312699e4b15936aeebac00e22e4d | |
google-deepmind__optax-911 | 911 | google-deepmind/optax | null | da6882af7e65f20c904e7acdb844a0d09570232f | 2024-04-07T06:56:14Z | diff --git a/docs/api/contrib.rst b/docs/api/contrib.rst
index 8c6a2c021..f166de349 100644
--- a/docs/api/contrib.rst
+++ b/docs/api/contrib.rst
@@ -28,6 +28,9 @@ Experimental features and algorithms that don't meet the
ProdigyState
sam
SAMState
+ schedule_free
+ schedule_free_eval_params
+ Sche... | diff --git a/optax/contrib/_schedule_free_test.py b/optax/contrib/_schedule_free_test.py
new file mode 100644
index 000000000..a9b8742c9
--- /dev/null
+++ b/optax/contrib/_schedule_free_test.py
@@ -0,0 +1,110 @@
+# Copyright 2024 DeepMind Technologies Limited. All Rights Reserved.
+#
+# Licensed under the Apache Licens... | diff --git a/docs/api/contrib.rst b/docs/api/contrib.rst
index 8c6a2c021..f166de349 100644
--- a/docs/api/contrib.rst
+++ b/docs/api/contrib.rst
@@ -28,6 +28,9 @@ Experimental features and algorithms that don't meet the
ProdigyState
sam
SAMState
+ schedule_free
+ schedule_free_eval_params
+ Sche... | [
{
"components": [
{
"doc": "State for schedule_free.",
"lines": [
25,
33
],
"name": "ScheduleFreeState",
"signature": "class ScheduleFreeState(NamedTuple):",
"type": "class"
},
{
"doc": "Params for evaluation of :func:... | [
"optax/contrib/_schedule_free_test.py::ScheduleFreeTest::test_optimization0",
"optax/contrib/_schedule_free_test.py::ScheduleFreeTest::test_optimization1",
"optax/contrib/_schedule_free_test.py::ScheduleFreeTest::test_optimization2",
"optax/contrib/_schedule_free_test.py::ScheduleFreeTest::test_optimization3"... | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Port schedule_free optimizer to optax. Original pytorch repo: https://github.com/facebookresearch/schedule_free
Port schedule_free optimizer to optax. Original pytorch repo: https://github.com/faceboo... | 1e08bccf195ac54e7d9d766eb5e69345bf0e3230 | |
tobymao__sqlglot-3277 | 3,277 | tobymao/sqlglot | null | 08222c2c626353be108347b95644660fe04dfcd1 | 2024-04-04T20:43:32Z | diff --git a/sqlglot/dialects/bigquery.py b/sqlglot/dialects/bigquery.py
index 2167ba29a1..dbe90b045f 100644
--- a/sqlglot/dialects/bigquery.py
+++ b/sqlglot/dialects/bigquery.py
@@ -15,7 +15,7 @@
build_formatted_time,
filter_array_using_unnest,
if_sql,
- inline_array_sql,
+ inline_array_unless_que... | diff --git a/tests/dialects/test_duckdb.py b/tests/dialects/test_duckdb.py
index 5a7e93e1fc..0b13a7042a 100644
--- a/tests/dialects/test_duckdb.py
+++ b/tests/dialects/test_duckdb.py
@@ -240,6 +240,7 @@ def test_duckdb(self):
self.validate_identity("SELECT MAP(['key1', 'key2', 'key3'], [10, 20, 30])")
... | [] | [
"tests/dialects/test_spark.py::TestSpark::test_spark"
] | [
"tests/dialects/test_duckdb.py::TestDuckDB::test_array",
"tests/dialects/test_duckdb.py::TestDuckDB::test_array_index",
"tests/dialects/test_duckdb.py::TestDuckDB::test_bool_or",
"tests/dialects/test_duckdb.py::TestDuckDB::test_cast",
"tests/dialects/test_duckdb.py::TestDuckDB::test_duckdb",
"tests/dialec... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Feat!: transpile map retrieval to duckdb, transpile TRY_ELEMENT_AT
DuckDB says the following for [retrieving values from maps](https://duckdb.org/docs/sql/data_types/map#retrieving-from-maps):
> MA... | ceb42fabad60312699e4b15936aeebac00e22e4d | ||
deepset-ai__haystack-7468 | 7,468 | deepset-ai/haystack | null | 12acb3f12e2ab92ff61534f55c2cb65dc64e382b | 2024-04-04T10:56:58Z | diff --git a/haystack/components/evaluators/document_mrr.py b/haystack/components/evaluators/document_mrr.py
new file mode 100644
index 0000000000..d0194902ac
--- /dev/null
+++ b/haystack/components/evaluators/document_mrr.py
@@ -0,0 +1,79 @@
+from typing import Any, Dict, List
+
+from haystack import Document, compone... | diff --git a/test/components/evaluators/test_document_mrr.py b/test/components/evaluators/test_document_mrr.py
new file mode 100644
index 0000000000..959492c648
--- /dev/null
+++ b/test/components/evaluators/test_document_mrr.py
@@ -0,0 +1,82 @@
+import pytest
+
+from haystack import Document
+from haystack.components.... | diff --git a/releasenotes/notes/document-mrr-evaluator-fa7c266cc91201a7.yaml b/releasenotes/notes/document-mrr-evaluator-fa7c266cc91201a7.yaml
new file mode 100644
index 0000000000..7e56e9489f
--- /dev/null
+++ b/releasenotes/notes/document-mrr-evaluator-fa7c266cc91201a7.yaml
@@ -0,0 +1,4 @@
+---
+features:
+ - |
+ ... | [
{
"components": [
{
"doc": "Evaluator that calculates the mean reciprocal rank of the retrieved documents.\n\nMRR measures how high the first retrieved document is ranked.\nEach question can have multiple ground truth documents and multiple retrieved documents.\n\n`DocumentMeanReciprocalRank` does... | [
"test/components/evaluators/test_document_mrr.py::test_run_with_all_matching",
"test/components/evaluators/test_document_mrr.py::test_run_with_no_matching",
"test/components/evaluators/test_document_mrr.py::test_run_with_partial_matching",
"test/components/evaluators/test_document_mrr.py::test_run_with_comple... | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
feat: Add `DocumentMeanReciprocalRank`
### Related Issues
- fixes #6065
### Proposed Changes:
Add `DocumentMeanReciprocalRank` Component to calculate Mean Reciprocal Rank of a retrieved docum... | Here is the discussion in the issues of the pull request.
<issues>
Implement function to calculate Mean Reciprocal Rank metric
As specified in proposal #5794 we need to implement a function to calculate the Mean Reciprocal Rank metric.
Ideally the function should be part of the private interface and called only thro... | f4d9c2bb917be0ffe132dffcc2ad4f1b0fcc5967 |
conan-io__conan-16010 | 16,010 | conan-io/conan | null | f0bddeb301cdeb96598b3291cc93b2d433e38ca6 | 2024-04-03T14:55:51Z | diff --git a/conan/tools/gnu/__init__.py b/conan/tools/gnu/__init__.py
index 9c413ed2145..cb51b0360b2 100644
--- a/conan/tools/gnu/__init__.py
+++ b/conan/tools/gnu/__init__.py
@@ -1,5 +1,6 @@
from conan.tools.gnu.autotools import Autotools
from conan.tools.gnu.autotoolstoolchain import AutotoolsToolchain
+from conan... | diff --git a/conans/test/functional/toolchains/gnu/test_gnutoolchain_apple.py b/conans/test/functional/toolchains/gnu/test_gnutoolchain_apple.py
new file mode 100644
index 00000000000..ce146db9c18
--- /dev/null
+++ b/conans/test/functional/toolchains/gnu/test_gnutoolchain_apple.py
@@ -0,0 +1,81 @@
+import os
+import pl... | [
{
"components": [
{
"doc": "",
"lines": [
4,
58
],
"name": "_get_gnu_arch",
"signature": "def _get_gnu_arch(os_, arch):",
"type": "function"
},
{
"doc": "",
"lines": [
61,
92
],
... | [
"conans/test/integration/toolchains/gnu/test_gnutoolchain.py::test_extra_flags_via_conf[Macos]",
"conans/test/integration/toolchains/gnu/test_gnutoolchain.py::test_extra_flags_via_conf[Linux]",
"conans/test/integration/toolchains/gnu/test_gnutoolchain.py::test_extra_flags_via_conf[Windows]",
"conans/test/inte... | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
[POC] GnuToolchain
Changelog: Omit
Docs: omit
**NOTE**: Let's omit the documentation for a while. We need to verify that it's working as expected, i.e., migrating some recipes in the background. A... | 4a5b19a75db9225316c8cb022a2dfb9705a2af34 | ||
deepset-ai__haystack-7461 | 7,461 | deepset-ai/haystack | null | 1ce12c7a6a0cf2276c7f5352cd726d4946e19b58 | 2024-04-03T14:40:58Z | diff --git a/haystack/components/evaluators/document_map.py b/haystack/components/evaluators/document_map.py
new file mode 100644
index 0000000000..483a7699c6
--- /dev/null
+++ b/haystack/components/evaluators/document_map.py
@@ -0,0 +1,84 @@
+from typing import Any, Dict, List
+
+from haystack import Document, compone... | diff --git a/test/components/evaluators/test_document_map.py b/test/components/evaluators/test_document_map.py
new file mode 100644
index 0000000000..f203dd01af
--- /dev/null
+++ b/test/components/evaluators/test_document_map.py
@@ -0,0 +1,78 @@
+import pytest
+
+from haystack import Document
+from haystack.components.... | diff --git a/releasenotes/notes/document-map-evaluator-de896c94b54fe3fa.yaml b/releasenotes/notes/document-map-evaluator-de896c94b54fe3fa.yaml
new file mode 100644
index 0000000000..36e28b73db
--- /dev/null
+++ b/releasenotes/notes/document-map-evaluator-de896c94b54fe3fa.yaml
@@ -0,0 +1,4 @@
+---
+features:
+ - |
+ ... | [
{
"components": [
{
"doc": "Evaluator that calculates the mean average precision of the retrieved documents, a metric\nthat measures how high retrieved documents are ranked.\nEach question can have multiple ground truth documents and multiple retrieved documents.\n\n`DocumentMeanAveragePrecision` ... | [
"test/components/evaluators/test_document_map.py::test_run_with_all_matching",
"test/components/evaluators/test_document_map.py::test_run_with_no_matching",
"test/components/evaluators/test_document_map.py::test_run_with_partial_matching",
"test/components/evaluators/test_document_map.py::test_run_with_comple... | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
feat: Add `DocumentMeanAveragePrecision`
### Related Issues
- fixes #6066
### Proposed Changes:
Add `DocumentMeanAveragePrecision` Component to calculate Mean Average Precision of a retrieved... | Here is the discussion in the issues of the pull request.
<issues>
Implement function to calculate Mean Average Precision metric
As specified in proposal #5794 we need to implement a function to calculate the Mean Average Precision metric.
Ideally the function should be part of the private interface and called only ... | f4d9c2bb917be0ffe132dffcc2ad4f1b0fcc5967 |
google-deepmind__optax-899 | 899 | google-deepmind/optax | null | b0c04dceafb0d304c59077bbbf15285800f87770 | 2024-04-03T09:19:13Z | diff --git a/optax/losses/_classification.py b/optax/losses/_classification.py
index 5db806c78..68bda2146 100644
--- a/optax/losses/_classification.py
+++ b/optax/losses/_classification.py
@@ -103,6 +103,37 @@ def perceptron_loss(
return jnp.maximum(0, - predictor_outputs * targets)
+def sparsemax_loss(
+ log... | diff --git a/optax/losses/_classification_test.py b/optax/losses/_classification_test.py
index 86ca25a06..1ad7d9db2 100644
--- a/optax/losses/_classification_test.py
+++ b/optax/losses/_classification_test.py
@@ -276,6 +276,43 @@ def reference_impl(label, scores):
np.testing.assert_allclose(result, expected, atol=... | [
{
"components": [
{
"doc": "Binary sparsemax loss.\n\nThis loss is zero if and only if `jax.nn.sparse_sigmoid(logits) == labels`.\n\nReferences:\n Learning with Fenchel-Young Losses. Mathieu Blondel, André F. T. Martins,\n Vlad Niculae. JMLR 2020. (Sec. 4.4)\n\nArgs:\n logits: score produced by... | [
"optax/losses/_classification_test.py::SparsemaxTest::test_batched_binary",
"optax/losses/_classification_test.py::SparsemaxTest::test_binary"
] | [
"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>
Upstream sparsemax jaxopt loss to optax.
Upstream sparsemax jaxopt loss to optax.
----------
</request>
There are several new functions or classes that need to be implemented, using the definitions... | 1e08bccf195ac54e7d9d766eb5e69345bf0e3230 | ||
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-3252 | 3,252 | tobymao/sqlglot | null | 150a8270c9e1c5a74aeaeeedac2773c41760cb14 | 2024-04-01T08:33:11Z | diff --git a/sqlglot/dialects/clickhouse.py b/sqlglot/dialects/clickhouse.py
index 5c953188a2..874ce9019a 100644
--- a/sqlglot/dialects/clickhouse.py
+++ b/sqlglot/dialects/clickhouse.py
@@ -261,6 +261,11 @@ class Parser(parser.Parser):
"ArgMax",
]
+ FUNC_TOKENS = {
+ *parser.P... | diff --git a/tests/dialects/test_clickhouse.py b/tests/dialects/test_clickhouse.py
index f716584650..c5f9847cbb 100644
--- a/tests/dialects/test_clickhouse.py
+++ b/tests/dialects/test_clickhouse.py
@@ -154,7 +154,9 @@ def test_clickhouse(self):
self.validate_identity("TRUNCATE TABLE t1 ON CLUSTER test_cluster... | [] | [
"tests/dialects/test_clickhouse.py::TestClickhouse::test_clickhouse"
] | [
"tests/dialects/test_clickhouse.py::TestClickhouse::test_cte",
"tests/dialects/test_clickhouse.py::TestClickhouse::test_ddl",
"tests/dialects/test_clickhouse.py::TestClickhouse::test_parameterization",
"tests/dialects/test_clickhouse.py::TestClickhouse::test_signed_and_unsigned_types",
"tests/dialects/test_... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
feat(clickhouse): CREATE TABLE computed columns, column compression, index
Fixes #3243
Design notes
--------------------
- `ALIAS` is now parsed as `exp.ComputedColumnConstraint`, similarly to T... | Here is the discussion in the issues of the pull request.
<issues>
Extend support CREATE TABLE statement for clickhouse
In clickhouse, I cannot parse CREATE TABLE statements when there are:
* [ALIAS](https://clickhouse.com/docs/en/sql-reference/statements/create/table#alias)
* [Column Compression Codecs](https://cl... | ceb42fabad60312699e4b15936aeebac00e22e4d | |
statsmodels__statsmodels-9186 | 9,186 | statsmodels/statsmodels | null | 8a844255a187b6549a9a9c2356098fd5f08835c0 | 2024-03-29T18:02:44Z | diff --git a/statsmodels/robust/norms.py b/statsmodels/robust/norms.py
index a00e5197145..b3993a68e61 100644
--- a/statsmodels/robust/norms.py
+++ b/statsmodels/robust/norms.py
@@ -39,6 +39,8 @@ class RobustNorm:
Springer, New York, 2002.
"""
+ continuous = 1
+
def rho(self, z):
"""
... | diff --git a/statsmodels/robust/tests/test_norms.py b/statsmodels/robust/tests/test_norms.py
index cb87c65368b..c626c23eb06 100644
--- a/statsmodels/robust/tests/test_norms.py
+++ b/statsmodels/robust/tests/test_norms.py
@@ -18,8 +18,13 @@
norms_other = [
(norms.LeastSquares, ()),
(norms.TrimmedMean, (1.9,))... | [
{
"components": [
{
"doc": "",
"lines": [
105,
106
],
"name": "LeastSquares.max_rho",
"signature": "def max_rho(self):",
"type": "function"
},
{
"doc": "Set and change the tuning parameter of the Norm.\n\nWarning: this... | [
"statsmodels/robust/tests/test_norms.py::test_norm[case0-int]",
"statsmodels/robust/tests/test_norms.py::test_norm[case0-float64]",
"statsmodels/robust/tests/test_norms.py::test_norm[case0-complex128]",
"statsmodels/robust/tests/test_norms.py::test_norm[case1-int]",
"statsmodels/robust/tests/test_norms.py::... | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
ENH: robust: tools and more norms
related
#8808
#1372
this adds tools for asymptotic efficency, breakdown point computation and choice of tuning parameter of norms.
currently only for univariate... | 589f167fed77ebf6031d01ad3de1aa7b0040ced3 | ||
tobymao__sqlglot-3242 | 3,242 | tobymao/sqlglot | null | 59f1d13bc5e37ebe6636b05e0381facc9725f7b0 | 2024-03-28T22:54:17Z | diff --git a/sqlglot/dialects/sqlite.py b/sqlglot/dialects/sqlite.py
index 63540a8e02..ef7d9aa14a 100644
--- a/sqlglot/dialects/sqlite.py
+++ b/sqlglot/dialects/sqlite.py
@@ -33,6 +33,14 @@ def _json_extract_sql(self: SQLite.Generator, expression: exp.JSONExtract) -> st
return arrow_json_extract_sql(self, expressi... | diff --git a/tests/dialects/test_sqlite.py b/tests/dialects/test_sqlite.py
index e935c194a2..f3cde0b650 100644
--- a/tests/dialects/test_sqlite.py
+++ b/tests/dialects/test_sqlite.py
@@ -6,62 +6,6 @@
class TestSQLite(Validator):
dialect = "sqlite"
- def test_ddl(self):
- for conflict_action in ("ABORT... | [] | [
"tests/dialects/test_sqlite.py::TestSQLite::test_strftime"
] | [
"tests/dialects/test_sqlite.py::TestSQLite::test_datediff",
"tests/dialects/test_sqlite.py::TestSQLite::test_ddl",
"tests/dialects/test_sqlite.py::TestSQLite::test_hexadecimal_literal",
"tests/dialects/test_sqlite.py::TestSQLite::test_longvarchar_dtype",
"tests/dialects/test_sqlite.py::TestSQLite::test_sqli... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Feat: mvp for transpling sqlite's STRFTIME
Fixes #3240
References:
- https://www.sqlite.org/lang_datefunc.html
- https://duckdb.org/docs/sql/functions/dateformat.html#strftime-examples
----------... | Here is the discussion in the issues of the pull request.
<issues>
DuckDB STRFTIME arguments incorrectly ordered
**Fully reproducible code snippet**
```python
import sqlglot
print(sqlglot.transpile("""
select strftime('%Y-%m-%d', current_timestamp)
""", read="sqlite", write="duckdb", pretty=True)[0])
```
... | ceb42fabad60312699e4b15936aeebac00e22e4d | |
scikit-learn__scikit-learn-28722 | 28,722 | scikit-learn/scikit-learn | 1.5 | c799133710d518f5fba2958bb0e0765ee280df12 | 2024-03-28T20:00:02Z | diff --git a/doc/whats_new/v1.5.rst b/doc/whats_new/v1.5.rst
index 1a8c50e408a0b..01f0384af5c1d 100644
--- a/doc/whats_new/v1.5.rst
+++ b/doc/whats_new/v1.5.rst
@@ -347,6 +347,8 @@ Changelog
- |Enhancement| :term:`CV splitters <CV splitter>` that ignores the group parameter now
raises a warning when groups are pa... | diff --git a/sklearn/model_selection/tests/test_search.py b/sklearn/model_selection/tests/test_search.py
index 1ff4520034ff0..1a9230259d22e 100644
--- a/sklearn/model_selection/tests/test_search.py
+++ b/sklearn/model_selection/tests/test_search.py
@@ -13,6 +13,7 @@
import pytest
from scipy.stats import bernoulli, ex... | diff --git a/doc/whats_new/v1.5.rst b/doc/whats_new/v1.5.rst
index 1a8c50e408a0b..01f0384af5c1d 100644
--- a/doc/whats_new/v1.5.rst
+++ b/doc/whats_new/v1.5.rst
@@ -347,6 +347,8 @@ Changelog
- |Enhancement| :term:`CV splitters <CV splitter>` that ignores the group parameter now
raises a warning when groups are pa... | [
{
"components": [
{
"doc": "",
"lines": [
1157,
1167
],
"name": "BaseSearchCV._sk_visual_block_",
"signature": "def _sk_visual_block_(self):",
"type": "function"
}
],
"file": "sklearn/model_selection/_search.py"
}
] | [
"sklearn/model_selection/tests/test_search.py::test_search_html_repr"
] | [
"sklearn/model_selection/tests/test_search.py::test_validate_parameter_input[0-TypeError-Parameter",
"sklearn/model_selection/tests/test_search.py::test_validate_parameter_input[input1-TypeError-Parameter",
"sklearn/model_selection/tests/test_search.py::test_validate_parameter_input[input2-TypeError-Parameter",... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
ENH HTML repr show best estimator in `*SearchCV` when `refit=True`
Closes #21058 (supersedes).
Closes #20971.
This PR shows the best estimator in `*SearchCV` HTML repr whenever possible with a cle... | Here is the discussion in the issues of the pull request.
<issues>
incompatible HTML representation for RandomizedSearchCV
### Describe the bug
I don't know if this is intended, but for now the HTML representation of a `RandomizedSearchCV` or `GridSearchCV` shows the estimators and parameters of the initialized pipe... | c799133710d518f5fba2958bb0e0765ee280df12 |
pyro-ppl__pyro-3351 | 3,351 | pyro-ppl/pyro | null | 0e08427d9719d720cc3e178cc9eab92d39cea11f | 2024-03-28T15:30:06Z | diff --git a/pyro/infer/importance.py b/pyro/infer/importance.py
index d25cf16680..ca088645cb 100644
--- a/pyro/infer/importance.py
+++ b/pyro/infer/importance.py
@@ -3,6 +3,7 @@
import math
import warnings
+from typing import List, Union
import torch
@@ -15,45 +16,12 @@
from .util import plate_log_prob_sum
... | diff --git a/tests/infer/test_predictive.py b/tests/infer/test_predictive.py
index 1f28e1f05c..319a1196dd 100644
--- a/tests/infer/test_predictive.py
+++ b/tests/infer/test_predictive.py
@@ -46,6 +46,7 @@ def test_posterior_predictive_svi_manual_guide(parallel, predictive):
num_trials = (
torch.ones(5) * ... | [
{
"components": [
{
"doc": "Mixin class to compute analytics from a ``.log_weights`` attribute.",
"lines": [
19,
74
],
"name": "LogWeightsMixin",
"signature": "class LogWeightsMixin:",
"type": "class"
},
{
"doc": "Esti... | [
"tests/infer/test_predictive.py::test_posterior_predictive_svi_manual_guide[False-WeighedPredictive]",
"tests/infer/test_predictive.py::test_posterior_predictive_svi_manual_guide[True-WeighedPredictive]"
] | [
"tests/infer/test_predictive.py::test_posterior_predictive_svi_manual_guide[False-Predictive]",
"tests/infer/test_predictive.py::test_posterior_predictive_svi_manual_guide[True-Predictive]",
"tests/infer/test_predictive.py::test_posterior_predictive_svi_auto_delta_guide[False-Predictive]",
"tests/infer/test_p... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Add effective sample size analytics to WeighedPredictive results
1. Allows calculation of the effective sample size of weighed sample results (returned by ``pyro.infer.predictive.WeighedPredictive``) ... | 64e71eee1c14dc926d5cbc5e762b6337bb4750a6 | ||
astropy__astropy-16246 | 16,246 | astropy/astropy | v5.3 | 51839c4e81af854bfa88c26a6972b8f02031ae6b | 2024-03-27T15:40:51Z | diff --git a/astropy/coordinates/baseframe.py b/astropy/coordinates/baseframe.py
index 06ab3ce98290..fbb935a30844 100644
--- a/astropy/coordinates/baseframe.py
+++ b/astropy/coordinates/baseframe.py
@@ -28,13 +28,19 @@
from . import representation as r
from .angles import Angle, position_angle
from .attributes impor... | diff --git a/astropy/coordinates/tests/test_exceptions.py b/astropy/coordinates/tests/test_exceptions.py
new file mode 100644
index 000000000000..e9cfa4d70aee
--- /dev/null
+++ b/astropy/coordinates/tests/test_exceptions.py
@@ -0,0 +1,80 @@
+# Licensed under a 3-clause BSD style license - see LICENSE.rst
+
+"""Tests fo... | diff --git a/docs/changes/coordinates/16246.feature.rst b/docs/changes/coordinates/16246.feature.rst
new file mode 100644
index 000000000000..a3058f14f276
--- /dev/null
+++ b/docs/changes/coordinates/16246.feature.rst
@@ -0,0 +1,10 @@
+By default the ``SkyCoord`` and ``BaseCoordinateFrame`` ``separation()``
+methods no... | [
{
"components": [
{
"doc": "Raised for transformations that are not simple rotations. Such\ntransformations can change the angular separation between coordinates\ndepending on its direction.",
"lines": [
35,
52
],
"name": "NonRotationTransformationError"... | [
"astropy/coordinates/tests/test_exceptions.py::test_NonRotationTransformationError_message[ICRS-custom_GCRS]",
"astropy/coordinates/tests/test_exceptions.py::test_NonRotationTransformationError_message[default_GCRS-Galactic]",
"astropy/coordinates/tests/test_exceptions.py::test_NonRotationTransformationWarning_... | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Make computing angular separations less surprising
### Description
When computing the angular separation between coordinates in different frames they first need to be transformed into a common fram... | Here is the discussion in the issues of the pull request.
<issues>
(Another) GCRS angular separation behavior
This issue is to report another counter-intuitive behavior of angular separations in the GCRS frame. It follows on similar reports in #5185 and #6633 (and may be of interest to @StuartLittlefair and @adrn).
... | 2d281019494aaebf522f6626c0dae37510c16688 |
deepset-ai__haystack-7424 | 7,424 | deepset-ai/haystack | null | 189dfaf640caf7993d4ba367d6ea3bcb1b4eca11 | 2024-03-26T10:10:20Z | diff --git a/haystack/components/evaluators/__init__.py b/haystack/components/evaluators/__init__.py
index 479cd50063..0da03f913c 100644
--- a/haystack/components/evaluators/__init__.py
+++ b/haystack/components/evaluators/__init__.py
@@ -2,6 +2,7 @@
from .document_map import DocumentMAPEvaluator
from .document_mrr i... | diff --git a/test/components/evaluators/test_faithfulness_evaluator.py b/test/components/evaluators/test_faithfulness_evaluator.py
new file mode 100644
index 0000000000..5776437366
--- /dev/null
+++ b/test/components/evaluators/test_faithfulness_evaluator.py
@@ -0,0 +1,129 @@
+from typing import List
+
+import pytest
+... | diff --git a/releasenotes/notes/faithfulness-evaluator-2e039a697c847d1c.yaml b/releasenotes/notes/faithfulness-evaluator-2e039a697c847d1c.yaml
new file mode 100644
index 0000000000..5279d0d9c8
--- /dev/null
+++ b/releasenotes/notes/faithfulness-evaluator-2e039a697c847d1c.yaml
@@ -0,0 +1,6 @@
+---
+features:
+ - |
+ ... | [
{
"components": [
{
"doc": "Evaluator that checks if a generated answer can be inferred from the provided contexts.\n\nAn LLM separates the answer into multiple statements and checks whether the statement can be inferred from the\ncontext or not. The final score for the full answer is a number fro... | [
"test/components/evaluators/test_faithfulness_evaluator.py::TestFaithfulnessEvaluator::test_init_default",
"test/components/evaluators/test_faithfulness_evaluator.py::TestFaithfulnessEvaluator::test_init_fail_wo_openai_api_key",
"test/components/evaluators/test_faithfulness_evaluator.py::TestFaithfulnessEvaluat... | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
feat: Add FaithfulnessEvaluator component
### Related Issues
- fixes #7024
### Proposed Changes:
- Added a new component `FaithfulnessEvaluator` that returns one aggregated faithfulness scor... | Here is the discussion in the issues of the pull request.
<issues>
LLM Eval - Implement Faithfulness/Factual Accuracy metric
Depends on https://github.com/deepset-ai/haystack/issues/7022.
Wrap `LLMEvaluator` to provide a component that calculates the "Faithfulness" or "Factual accuracy" based on the following inputs... | f4d9c2bb917be0ffe132dffcc2ad4f1b0fcc5967 |
pyro-ppl__pyro-3345 | 3,345 | pyro-ppl/pyro | null | 81def9c535113d2affd3d4a111a96d5a89fec52f | 2024-03-22T14:42:01Z | diff --git a/pyro/infer/__init__.py b/pyro/infer/__init__.py
index c0f3a26c3f..6934bd29fe 100644
--- a/pyro/infer/__init__.py
+++ b/pyro/infer/__init__.py
@@ -12,7 +12,7 @@
from pyro.infer.mcmc.hmc import HMC
from pyro.infer.mcmc.nuts import NUTS
from pyro.infer.mcmc.rwkernel import RandomWalkKernel
-from pyro.infer... | diff --git a/tests/infer/test_predictive.py b/tests/infer/test_predictive.py
index fc6f63fa37..1f28e1f05c 100644
--- a/tests/infer/test_predictive.py
+++ b/tests/infer/test_predictive.py
@@ -8,7 +8,7 @@
import pyro.distributions as dist
import pyro.optim as optim
import pyro.poutine as poutine
-from pyro.infer impor... | [
{
"components": [
{
"doc": "Return value of call to ``_predictive`` and ``_predictive_sequential``.",
"lines": [
37,
43
],
"name": "_predictiveResults",
"signature": "class _predictiveResults(NamedTuple):",
"type": "class"
},
... | [
"tests/infer/test_predictive.py::test_posterior_predictive_svi_manual_guide[False-Predictive]",
"tests/infer/test_predictive.py::test_posterior_predictive_svi_manual_guide[False-WeighedPredictive]",
"tests/infer/test_predictive.py::test_posterior_predictive_svi_manual_guide[True-Predictive]",
"tests/infer/tes... | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Introducing pyro.infer.predictive.WeighedPredictive which reports weights along with predicted samples
# The Problem
When sampling from the posterior predictive distribution we are often using a gu... | 64e71eee1c14dc926d5cbc5e762b6337bb4750a6 | ||
falconry__falcon-2217 | 2,217 | falconry/falcon | null | a78cfb38a0c0f6031cc3ff39ff8bf4afd03ef008 | 2024-03-21T20:58:42Z | diff --git a/README.rst b/README.rst
index 26105b0dd..738b2f2b8 100644
--- a/README.rst
+++ b/README.rst
@@ -1027,7 +1027,7 @@ See also: `CONTRIBUTING.md <https://github.com/falconry/falcon/blob/master/CONTR
Legal
-----
-Copyright 2013-2023 by Individual and corporate contributors as
+Copyright 2013-2024 by Individ... | diff --git a/falcon/testing/helpers.py b/falcon/testing/helpers.py
index 00959495a..39e8c12f8 100644
--- a/falcon/testing/helpers.py
+++ b/falcon/testing/helpers.py
@@ -23,7 +23,6 @@
"""
import asyncio
-import cgi
from collections import defaultdict
from collections import deque
import contextlib
@@ -51,6 +50,7 ... | diff --git a/README.rst b/README.rst
index 26105b0dd..738b2f2b8 100644
--- a/README.rst
+++ b/README.rst
@@ -1027,7 +1027,7 @@ See also: `CONTRIBUTING.md <https://github.com/falconry/falcon/blob/master/CONTR
Legal
-----
-Copyright 2013-2023 by Individual and corporate contributors as
+Copyright 2013-2024 by Individ... | [
{
"components": [
{
"doc": "",
"lines": [
20,
30
],
"name": "_parse_param_old_stdlib",
"signature": "def _parse_param_old_stdlib(s):",
"type": "function"
},
{
"doc": "Parse a Content-type like header.\n\nReturn the mai... | [
"tests/test_mediatypes.py::test_parse_header[-expected0]",
"tests/test_mediatypes.py::test_parse_header[strange-expected1]",
"tests/test_mediatypes.py::test_parse_header[text/plain-expected2]",
"tests/test_mediatypes.py::test_parse_header[text/plain",
"tests/test_mediatypes.py::test_parse_header[",
"tests... | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
feat(parse_header): provide our own implementation of `parse_header()`
I have another branch which also introduces Cython's "pure Python mode" in order to speed up `parse_header()`, but we can circle ... | Here is the discussion in the issues of the pull request.
<issues>
Replace usage of `cgi.parse_header()` (slated for removal in 3.13)
[PEP 594](https://peps.python.org/pep-0594) specifies removal of "dead batteries" in CPython 3.13, with deprecation announced in 3.11.
Apparently, [cgi](https://peps.python.org/pep-05... | 77d5e6394a88ead151c9469494749f95f06b24bf |
conan-io__conan-15914 | 15,914 | conan-io/conan | null | 59029095e86eacd402083fca7c308b06889f6301 | 2024-03-21T17:12:38Z | diff --git a/conan/tools/cmake/toolchain/blocks.py b/conan/tools/cmake/toolchain/blocks.py
index 36f725ae7c9..63181139a99 100644
--- a/conan/tools/cmake/toolchain/blocks.py
+++ b/conan/tools/cmake/toolchain/blocks.py
@@ -154,7 +154,7 @@ def context(self):
if not config_dict:
return None
- ... | diff --git a/conans/test/integration/lockfile/test_lock_requires_revisions.py b/conans/test/integration/lockfile/test_lock_requires_revisions.py
index e84680c0839..1f6e16ab7ad 100644
--- a/conans/test/integration/lockfile/test_lock_requires_revisions.py
+++ b/conans/test/integration/lockfile/test_lock_requires_revision... | [
{
"components": [
{
"doc": "",
"lines": [
508,
512
],
"name": "FindFiles._runtime_dirs_value",
"signature": "def _runtime_dirs_value(self, dirs):",
"type": "function"
},
{
"doc": "",
"lines": [
514,
... | [
"conans/test/integration/toolchains/cmake/test_cmaketoolchain.py::test_runtime_lib_dirs_single_conf",
"conans/test/integration/toolchains/cmake/test_cmaketoolchain.py::test_runtime_lib_dirs_multiconf"
] | [
"conans/test/integration/lockfile/test_lock_requires_revisions.py::test_conanfile_txt_deps_revisions[requires]",
"conans/test/integration/lockfile/test_lock_requires_revisions.py::test_conanfile_txt_deps_revisions[tool_requires]",
"conans/test/integration/lockfile/test_lock_requires_revisions.py::test_conanfile... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
feat: Add CONAN_RUNTIME_LIB_DIRS to the conan_toolchain.cmake
Changelog: Feature: Add `CONAN_RUNTIME_LIB_DIRS` variable to the `conan_toolchain.cmake`.
Docs: https://github.com/conan-io/docs/pull/369... | 4a5b19a75db9225316c8cb022a2dfb9705a2af34 | ||
deepset-ai__haystack-7399 | 7,399 | deepset-ai/haystack | null | e779d4338498a528fb7cee9cc090b3aea70c8cb5 | 2024-03-21T14:59:28Z | diff --git a/haystack/components/evaluators/document_recall.py b/haystack/components/evaluators/document_recall.py
new file mode 100644
index 0000000000..0aaa2bd179
--- /dev/null
+++ b/haystack/components/evaluators/document_recall.py
@@ -0,0 +1,112 @@
+from enum import Enum
+from typing import Any, Dict, List, Union
+... | diff --git a/test/components/evaluators/test_document_recall.py b/test/components/evaluators/test_document_recall.py
new file mode 100644
index 0000000000..d73406df07
--- /dev/null
+++ b/test/components/evaluators/test_document_recall.py
@@ -0,0 +1,192 @@
+import pytest
+
+from haystack.components.evaluators.document_r... | diff --git a/releasenotes/notes/recall-evaluator-5595470406e93ad2.yaml b/releasenotes/notes/recall-evaluator-5595470406e93ad2.yaml
new file mode 100644
index 0000000000..128b13e95d
--- /dev/null
+++ b/releasenotes/notes/recall-evaluator-5595470406e93ad2.yaml
@@ -0,0 +1,6 @@
+---
+features:
+ - |
+ Add `DocumentReca... | [
{
"components": [
{
"doc": "Enum for the mode to use for calculating the recall score.",
"lines": [
8,
28
],
"name": "RecallMode",
"signature": "class RecallMode(Enum):",
"type": "class"
},
{
"doc": "",
"lines"... | [
"test/components/evaluators/test_document_recall.py::test_init_with_unknown_mode_string",
"test/components/evaluators/test_document_recall.py::TestDocumentRecallEvaluatorSingleHit::test_run_with_all_matching",
"test/components/evaluators/test_document_recall.py::TestDocumentRecallEvaluatorSingleHit::test_run_wi... | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
feat: Add `DocumentRecallEvaluator`
### Related Issues
- fixes #6064
### Proposed Changes:
Add `DocumentRecallEvaluator` Component. It can ben used to calculate Recall single-hit or multi-hit... | Here is the discussion in the issues of the pull request.
<issues>
Implement function to calculate Recall metric
As specified in proposal #5794 we need to implement a function to calculate the Recall metric.
Ideally the function should be part of the private interface and called only through the `calculate_metrics` ... | f4d9c2bb917be0ffe132dffcc2ad4f1b0fcc5967 |
tobymao__sqlglot-3180 | 3,180 | tobymao/sqlglot | null | a452276da4daaa436a9ac95566bcbb2954d149e3 | 2024-03-20T18:02:02Z | diff --git a/sqlglot/dialects/duckdb.py b/sqlglot/dialects/duckdb.py
index 9837025ace..470fd7c314 100644
--- a/sqlglot/dialects/duckdb.py
+++ b/sqlglot/dialects/duckdb.py
@@ -38,10 +38,12 @@ def _ts_or_ds_add_sql(self: DuckDB.Generator, expression: exp.TsOrDsAdd) -> str:
return f"CAST({this} AS {self.sql(expressio... | diff --git a/tests/dialects/test_duckdb.py b/tests/dialects/test_duckdb.py
index 917230b22f..5cfcfea2ce 100644
--- a/tests/dialects/test_duckdb.py
+++ b/tests/dialects/test_duckdb.py
@@ -15,6 +15,17 @@ def test_duckdb(self):
"WITH _data AS (SELECT [STRUCT(1 AS a, 2 AS b), STRUCT(2 AS a, 3 AS b)] AS col) SE... | [] | [
"tests/dialects/test_duckdb.py::TestDuckDB::test_duckdb",
"tests/dialects/test_snowflake.py::TestSnowflake::test_timestamps"
] | [
"tests/dialects/test_duckdb.py::TestDuckDB::test_array",
"tests/dialects/test_duckdb.py::TestDuckDB::test_array_index",
"tests/dialects/test_duckdb.py::TestDuckDB::test_bool_or",
"tests/dialects/test_duckdb.py::TestDuckDB::test_cast",
"tests/dialects/test_duckdb.py::TestDuckDB::test_encode_decode",
"tests... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Feat: transpile Snowflake's ADDTIME
References:
- https://duckdb.org/docs/sql/functions/time
- https://docs.snowflake.com/en/sql-reference/functions/timeadd
- https://cloud.google.com/bigquery/docs... | ceb42fabad60312699e4b15936aeebac00e22e4d | ||
boto__botocore-3144 | 3,144 | boto/botocore | null | 0d6ed4aabb04edbab3e9552fc3651456b9e960a5 | 2024-03-19T17:09:43Z | diff --git a/botocore/client.py b/botocore/client.py
index 85b6045036..1e36232834 100644
--- a/botocore/client.py
+++ b/botocore/client.py
@@ -400,6 +400,9 @@ def _register_s3_events(
self._set_s3_presign_signature_version(
client.meta, client_config, scoped_config
)
+ client.meta.... | diff --git a/tests/functional/test_s3.py b/tests/functional/test_s3.py
index 0a081532a1..e4f99ac97f 100644
--- a/tests/functional/test_s3.py
+++ b/tests/functional/test_s3.py
@@ -3664,3 +3664,25 @@ def test_does_not_set_100_continute_with_empty_body(self):
s3.put_object(**op_kwargs)
expect_hea... | [
{
"components": [
{
"doc": "",
"lines": [
462,
468
],
"name": "ClientCreator._inject_s3_input_parameters",
"signature": "def _inject_s3_input_parameters(self, params, context, **kwargs):",
"type": "function"
}
],
"file": "bo... | [
"tests/functional/test_s3.py::TestParameterInjection::test_parameter_injection"
] | [
"tests/functional/test_s3.py::TestS3BucketValidation::test_invalid_bucket_name_raises_error",
"tests/functional/test_s3.py::TestS3ClientConfigResolution::test_client_config_us_east_1_regional_overrides_config_var",
"tests/functional/test_s3.py::TestS3ClientConfigResolution::test_client_config_us_east_1_regional... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Make bucket name injection for S3Express more generic
Abstracts the s3 Express bucket name from the context to be generically usable as well as adding additional keys to be stored
----------
</request... | 5e4b564dd0f9aab16a404251ebd3e675c9681492 | ||
deepset-ai__haystack-7382 | 7,382 | deepset-ai/haystack | null | f69c3e5cd26046b826927a39cad02af93b2ccbbf | 2024-03-19T14:39:52Z | diff --git a/docs/pydoc/config/data_classess_api.yml b/docs/pydoc/config/data_classess_api.yml
index 3d807eb61e..a67f28db9d 100644
--- a/docs/pydoc/config/data_classess_api.yml
+++ b/docs/pydoc/config/data_classess_api.yml
@@ -2,7 +2,7 @@ loaders:
- type: haystack_pydoc_tools.loaders.CustomPythonLoader
search_p... | diff --git a/test/dataclasses/test_document.py b/test/dataclasses/test_document.py
index 72e45a4b6b..afe2327179 100644
--- a/test/dataclasses/test_document.py
+++ b/test/dataclasses/test_document.py
@@ -3,6 +3,7 @@
from haystack import Document
from haystack.dataclasses.byte_stream import ByteStream
+from haystack.... | diff --git a/docs/pydoc/config/data_classess_api.yml b/docs/pydoc/config/data_classess_api.yml
index 3d807eb61e..a67f28db9d 100644
--- a/docs/pydoc/config/data_classess_api.yml
+++ b/docs/pydoc/config/data_classess_api.yml
@@ -2,7 +2,7 @@ loaders:
- type: haystack_pydoc_tools.loaders.CustomPythonLoader
search_p... | [
{
"components": [
{
"doc": "Class representing a sparse embedding.",
"lines": [
4,
26
],
"name": "SparseEmbedding",
"signature": "class SparseEmbedding:",
"type": "class"
},
{
"doc": ":param indices: List of indices of... | [
"test/dataclasses/test_document.py::test_document_str[doc0-content:",
"test/dataclasses/test_document.py::test_document_str[doc1-dataframe:",
"test/dataclasses/test_document.py::test_document_str[doc2-blob:",
"test/dataclasses/test_document.py::test_document_str[doc3-content:",
"test/dataclasses/test_docume... | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
feat: introduce `SparseEmbedding`
### Related Issues
- part of #7355
### Proposed Changes:
Introduce a new class to store sparse embeddings.
Contains two fields: `indices` and `values`, whic... | f4d9c2bb917be0ffe132dffcc2ad4f1b0fcc5967 | |
deepset-ai__haystack-7381 | 7,381 | deepset-ai/haystack | null | f69c3e5cd26046b826927a39cad02af93b2ccbbf | 2024-03-19T14:33:17Z | diff --git a/haystack/components/evaluators/__init__.py b/haystack/components/evaluators/__init__.py
new file mode 100644
index 0000000000..9550a5f42d
--- /dev/null
+++ b/haystack/components/evaluators/__init__.py
@@ -0,0 +1,3 @@
+from .answer_exact_match import AnswerExactMatchEvaluator
+
+__all__ = ["AnswerExactMatch... | diff --git a/test/components/evaluators/test_answer_exact_match.py b/test/components/evaluators/test_answer_exact_match.py
new file mode 100644
index 0000000000..c179c74a25
--- /dev/null
+++ b/test/components/evaluators/test_answer_exact_match.py
@@ -0,0 +1,61 @@
+import pytest
+
+from haystack.components.evaluators im... | diff --git a/releasenotes/notes/exact-match-evaluator-197bb87b65e19d0c.yaml b/releasenotes/notes/exact-match-evaluator-197bb87b65e19d0c.yaml
new file mode 100644
index 0000000000..ad380617d9
--- /dev/null
+++ b/releasenotes/notes/exact-match-evaluator-197bb87b65e19d0c.yaml
@@ -0,0 +1,6 @@
+---
+features:
+ - |
+ Ad... | [
{
"components": [
{
"doc": "Evaluator that checks if the predicted answers matches any of the ground truth answers exactly.\nThe result is a number from 0.0 to 1.0, it represents the proportion of questions where any predicted answer\nmatched one of the ground truth answers.\nEach question can hav... | [
"test/components/evaluators/test_answer_exact_match.py::test_run_with_all_matching",
"test/components/evaluators/test_answer_exact_match.py::test_run_with_no_matching",
"test/components/evaluators/test_answer_exact_match.py::test_run_with_partial_matching",
"test/components/evaluators/test_answer_exact_match.... | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Add `AnswerExactMatchEvaluator`
### Related Issues
- fixes #6067
### Proposed Changes:
Add `AnswerExactMatchEvaluator`. This Component calculates the Exact Match metrics given a list of ques... | Here is the discussion in the issues of the pull request.
<issues>
Implement function to calculate Exact Match metric
As specified in proposal #5794 we need to implement a function to calculate the Exact Match metric.
Ideally the function should be part of the private interface and called only through the `calculate... | f4d9c2bb917be0ffe132dffcc2ad4f1b0fcc5967 |
sphinx-doc__sphinx-12131 | 12,131 | sphinx-doc/sphinx | 7.3 | aaecc9376d0662aeca5d3bd7c9d9fa36d6398478 | 2024-03-18T19:49:32Z | diff --git a/CHANGES.rst b/CHANGES.rst
index 8ffe9365d67..04733657806 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -22,6 +22,9 @@ Deprecated
Features added
--------------
+* #12131: Added :confval:`show_warning_types` configuration option.
+ Patch by Chris Sewell.
+
* #11701: HTML Search: Adopt the new `<search>... | diff --git a/tests/test_util/test_util_logging.py b/tests/test_util/test_util_logging.py
index 4d506a8a862..8c621880313 100644
--- a/tests/test_util/test_util_logging.py
+++ b/tests/test_util/test_util_logging.py
@@ -10,7 +10,7 @@
from sphinx.errors import SphinxWarning
from sphinx.testing.util import strip_escseq
f... | diff --git a/CHANGES.rst b/CHANGES.rst
index 8ffe9365d67..04733657806 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -22,6 +22,9 @@ Deprecated
Features added
--------------
+* #12131: Added :confval:`show_warning_types` configuration option.
+ Patch by Chris Sewell.
+
* #11701: HTML Search: Adopt the new `<search>... | [
{
"components": [
{
"doc": "",
"lines": [
526,
541
],
"name": "WarningLogRecordTranslator.filter",
"signature": "def filter(self, record: SphinxWarningLogRecord) -> bool:",
"type": "function"
}
],
"file": "sphinx/util/loggin... | [
"tests/test_util/test_util_logging.py::test_show_warning_types"
] | [
"tests/test_util/test_util_logging.py::test_info_and_warning",
"tests/test_util/test_util_logging.py::test_Exception",
"tests/test_util/test_util_logging.py::test_verbosity_filter",
"tests/test_util/test_util_logging.py::test_nonl_info_log",
"tests/test_util/test_util_logging.py::test_once_warning_log",
"... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
✨ Add `show_warning_types` configuration variable
This PR add the `show_warning_types` config variable which when set to `True`, prepends the type and subtype (if set) to warning messages.
For exampl... | Here is the discussion in the issues of the pull request.
<issues>
Show warnings with their "type" and "subtype"?
Similar to #8813, just for warnings instead of exceptions:
Currently, warning messages are shown like this:
```
WARNING: Some warning message
```
If a warning can be disabled, I think it would be... | aaecc9376d0662aeca5d3bd7c9d9fa36d6398478 |
conan-io__conan-15888 | 15,888 | conan-io/conan | null | bdcc67e6055e923d79e3a95767f7027e84ac29ec | 2024-03-18T11:32:44Z | diff --git a/conans/client/conanfile/configure.py b/conans/client/conanfile/configure.py
index 210e0f5f1bd..116a879a820 100644
--- a/conans/client/conanfile/configure.py
+++ b/conans/client/conanfile/configure.py
@@ -7,6 +7,8 @@
def run_configure_method(conanfile, down_options, profile_options, ref):
""" Run all ... | diff --git a/conans/test/integration/build_requires/build_requires_test.py b/conans/test/integration/build_requires/build_requires_test.py
index da3a5af71e4..b11bda489e8 100644
--- a/conans/test/integration/build_requires/build_requires_test.py
+++ b/conans/test/integration/build_requires/build_requires_test.py
@@ -581... | [
{
"components": [
{
"doc": "",
"lines": [
578,
579
],
"name": "Requirements.__len__",
"signature": "def __len__(self):",
"type": "function"
}
],
"file": "conans/model/requires.py"
}
] | [
"conans/test/integration/build_requires/build_requires_test.py::test_requirement_in_wrong_method"
] | [
"conans/test/integration/build_requires/build_requires_test.py::test_conanfile_txt",
"conans/test/integration/build_requires/build_requires_test.py::test_complete",
"conans/test/integration/build_requires/build_requires_test.py::test_dependents_new_buildenv",
"conans/test/integration/build_requires/build_requ... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Warn on misplaced requirement function calls
Changelog: Feature: Warn on misplaced requirement function calls
Docs: Omit
Only open question is the warn_tag. Is deprecated appropiate?
----------
</... | 4a5b19a75db9225316c8cb022a2dfb9705a2af34 | ||
conan-io__conan-15876 | 15,876 | conan-io/conan | null | 7f0f1b2844b0892408bb5deefe04b78e60403a9f | 2024-03-14T21:44:26Z | diff --git a/conan/cli/printers/graph.py b/conan/cli/printers/graph.py
index 6513636f8d4..404ca7c97f5 100644
--- a/conan/cli/printers/graph.py
+++ b/conan/cli/printers/graph.py
@@ -80,6 +80,17 @@ def _format_resolved(title, reqs_to_print):
reason = f": {reason}" if reason else ""
output.info("... | diff --git a/conans/test/integration/options/options_test.py b/conans/test/integration/options/options_test.py
index 9a7b417b085..65f4d77e794 100644
--- a/conans/test/integration/options/options_test.py
+++ b/conans/test/integration/options/options_test.py
@@ -739,3 +739,30 @@ def test_wrong_option_syntax_no_trace(self... | [
{
"components": [
{
"doc": "Store the discrepancies of options when closing a diamond, to later report\nthem. This list is not exhaustive, only the diamond vertix, not other transitives",
"lines": [
105,
123
],
"name": "DepsGraphBuilder._save_options_con... | [
"conans/test/integration/options/options_test.py::TestConflictOptionsWarnings::test_options_warnings"
] | [
"conans/test/integration/options/options_test.py::OptionsTest::test_any",
"conans/test/integration/options/options_test.py::OptionsTest::test_define_nested_option_not_freeze",
"conans/test/integration/options/options_test.py::OptionsTest::test_del_options_configure",
"conans/test/integration/options/options_t... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
print options conflicts
Changelog: Feature: Print options conflicts in the graph caused by different branches recipes defining options values.
Docs: https://github.com/conan-io/docs/pull/3643
Clos... | 4a5b19a75db9225316c8cb022a2dfb9705a2af34 | ||
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 *... | [] | [
"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 | |
google-deepmind__optax-865 | 865 | google-deepmind/optax | null | f45b2eb82ffdb8c22d57923b5039000539bed4bc | 2024-03-13T20:28:19Z | diff --git a/docs/api/utilities.rst b/docs/api/utilities.rst
index fbc1b497e..a7d423021 100644
--- a/docs/api/utilities.rst
+++ b/docs/api/utilities.rst
@@ -106,6 +106,7 @@ Tree
tree_ones_like
tree_random_like
tree_scalar_mul
+ tree_set
tree_sub
tree_sum
tree_vdot
@@ -155,6 +156,10 @@ T... | diff --git a/optax/tree_utils/_state_utils_test.py b/optax/tree_utils/_state_utils_test.py
index 9597f99c5..0a945760d 100644
--- a/optax/tree_utils/_state_utils_test.py
+++ b/optax/tree_utils/_state_utils_test.py
@@ -244,6 +244,12 @@ def test_map_non_params_to_none(self):
def test_tree_get_all_with_path(self):
... | diff --git a/docs/api/utilities.rst b/docs/api/utilities.rst
index fbc1b497e..a7d423021 100644
--- a/docs/api/utilities.rst
+++ b/docs/api/utilities.rst
@@ -106,6 +106,7 @@ Tree
tree_ones_like
tree_random_like
tree_scalar_mul
+ tree_set
tree_sub
tree_sum
tree_vdot
@@ -155,6 +156,10 @@ T... | [
{
"components": [
{
"doc": "Creates a copy of tree with some leaves replaced as specified by kwargs.\n\nRaises a ``KeyError`` if some keys in ``kwargs`` are not present in the tree.\n\nExamples:\n >>> import jax.numpy as jnp\n >>> import optax\n >>> params = jnp.array([1., 2., 3.])\n >>> opt =... | [
"optax/tree_utils/_state_utils_test.py::StateUtilsTest::test_tree_get_all_with_path",
"optax/tree_utils/_state_utils_test.py::StateUtilsTest::test_tree_set"
] | [
"optax/tree_utils/_state_utils_test.py::StateUtilsTest::test_adam",
"optax/tree_utils/_state_utils_test.py::StateUtilsTest::test_dict_based_optimizers",
"optax/tree_utils/_state_utils_test.py::StateUtilsTest::test_inject_hparams",
"optax/tree_utils/_state_utils_test.py::StateUtilsTest::test_map_non_params_to_... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Utility to set value in a pytree (and so in state)
Utility to set value in a pytree (and so in state)
----------
</request>
There are several new functions or classes that need to be implemented, u... | 1e08bccf195ac54e7d9d766eb5e69345bf0e3230 | |
tobymao__sqlglot-3133 | 3,133 | tobymao/sqlglot | null | 4bf862ba5294ac0f319487b33b7f90ff718509f4 | 2024-03-13T12:16:10Z | diff --git a/sqlglot/dialects/snowflake.py b/sqlglot/dialects/snowflake.py
index 1815477928..a18cfbed48 100644
--- a/sqlglot/dialects/snowflake.py
+++ b/sqlglot/dialects/snowflake.py
@@ -91,14 +91,6 @@ def _build_if_from_nullifzero(args: t.List) -> exp.If:
return exp.If(this=cond, true=exp.Null(), false=seq_get(ar... | diff --git a/tests/dialects/test_bigquery.py b/tests/dialects/test_bigquery.py
index eb2ef3a582..a9ef96ee0f 100644
--- a/tests/dialects/test_bigquery.py
+++ b/tests/dialects/test_bigquery.py
@@ -662,6 +662,13 @@ def test_bigquery(self):
"duckdb": "SELECT {'y': ARRAY(SELECT {'b': 1} FROM x)} FROM z",
... | [] | [
"tests/dialects/test_bigquery.py::TestBigQuery::test_bigquery",
"tests/dialects/test_duckdb.py::TestDuckDB::test_cast",
"tests/dialects/test_presto.py::TestPresto::test_cast",
"tests/dialects/test_snowflake.py::TestSnowflake::test_ddl",
"tests/dialects/test_snowflake.py::TestSnowflake::test_snowflake"
] | [
"tests/dialects/test_bigquery.py::TestBigQuery::test_errors",
"tests/dialects/test_bigquery.py::TestBigQuery::test_group_concat",
"tests/dialects/test_bigquery.py::TestBigQuery::test_json_object",
"tests/dialects/test_bigquery.py::TestBigQuery::test_merge",
"tests/dialects/test_bigquery.py::TestBigQuery::te... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Feat!(snowflake): iceberg ddl, structured types, cast rename/keep fields, drop fix
Snowflake added support Iceberg tables and structured types, so now `ARRAY(INT)` is valid. This PR:
- Adds support... | 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 489c1662d41..18c243d431d 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 00000000000..feaa7340d6a
--- /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 ... | [
{
"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 | ||
googleapis__python-aiplatform-3422 | 3,422 | googleapis/python-aiplatform | null | 47d435bce4b5206910e77df03a99730d62484e5b | 2024-03-12T17:22:31Z | diff --git a/samples/model-builder/vector_search/vector_search_create_index_endpoint_sample.py b/samples/model-builder/vector_search/vector_search_create_index_endpoint_sample.py
new file mode 100644
index 0000000000..43d809ee8f
--- /dev/null
+++ b/samples/model-builder/vector_search/vector_search_create_index_endpoint... | diff --git a/samples/model-builder/conftest.py b/samples/model-builder/conftest.py
index 750e682e20..398f3ac7bc 100644
--- a/samples/model-builder/conftest.py
+++ b/samples/model-builder/conftest.py
@@ -1248,8 +1248,31 @@ def mock_index_endpoint_init(mock_index_endpoint):
@pytest.fixture
def mock_index_endpoint_fin... | [
{
"components": [
{
"doc": "Create a vector search index endpoint.\n\nArgs:\n project (str): Required. Project ID\n location (str): Required. The region name\n display_name (str): Required. The index endpoint display name",
"lines": [
19,
39
],
... | [
"samples/model-builder/vector_search/vector_search_create_index_endpoint_sample_test.py::test_vector_search_create_index_endpoint_sample",
"samples/model-builder/vector_search/vector_search_create_index_sample_test.py::test_vector_search_create_index_sample",
"samples/model-builder/vector_search/vector_search_d... | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
chore: adding code samples for vector search create index, create index endpoint, deploy index
chore: adding code samples for vector search create index, create index endpoint, deploy index
---------... | 67358fa6a830eb842f6b52d09061af4a41b54af6 | ||
tobymao__sqlglot-3116 | 3,116 | tobymao/sqlglot | null | c4e7bbfd3d88f3efb1fea806f85091dbe32379cf | 2024-03-11T09:24:51Z | diff --git a/sqlglot/expressions.py b/sqlglot/expressions.py
index 92a9e7a4d0..665f524434 100644
--- a/sqlglot/expressions.py
+++ b/sqlglot/expressions.py
@@ -1580,6 +1580,15 @@ class EncodeColumnConstraint(ColumnConstraintKind):
pass
+# https://www.postgresql.org/docs/current/sql-createtable.html#SQL-CREATETA... | diff --git a/tests/dialects/test_postgres.py b/tests/dialects/test_postgres.py
index 0b87693ea4..45264f44d1 100644
--- a/tests/dialects/test_postgres.py
+++ b/tests/dialects/test_postgres.py
@@ -130,6 +130,18 @@ def test_postgres(self):
self.validate_identity(
"SELECT * FROM foo, LATERAL (SELECT *... | [] | [
"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: Adding EXCLUDE constraint support
Fixes #3097
The syntax for the `EXCLUDE` table constraint is the following:
```
[CONSTRAINT constraint_name] EXCLUDE [ USING index_method ] ( exclude_el... | Here is the discussion in the issues of the pull request.
<issues>
EXCLUDE indexes support for PostgreSQL dialect
Thanks for adding INCLUDE indexes in #2855, we've updated and now it works. There are [EXCLUDE indexes in PostgreSQL](https://www.postgresql.org/docs/current/sql-createtable.html#SQL-CREATETABLE-EXCLUDE), w... | ceb42fabad60312699e4b15936aeebac00e22e4d | |
tobymao__sqlglot-3101 | 3,101 | tobymao/sqlglot | null | 8a34fb433bc33551febe96665e16668de73e5bd6 | 2024-03-08T03:15:05Z | diff --git a/sqlglot/dialects/tsql.py b/sqlglot/dialects/tsql.py
index b6f491f900..20f27740e6 100644
--- a/sqlglot/dialects/tsql.py
+++ b/sqlglot/dialects/tsql.py
@@ -862,12 +862,12 @@ def timestampfromparts_sql(self, expression: exp.TimestampFromParts) -> str:
return rename_func("DATETIMEFROMPARTS")(sel... | diff --git a/tests/test_transpile.py b/tests/test_transpile.py
index 49deda9e8d..2354a80c82 100644
--- a/tests/test_transpile.py
+++ b/tests/test_transpile.py
@@ -428,7 +428,8 @@ def test_comments(self):
"""SELECT
'hotel1' AS hotel,
*
-FROM dw_1_dw_1_1.exactonline_1.transactionlines /*
+FROM dw_1_dw_... | [] | [
"tests/test_transpile.py::TestTranspile::test_comments"
] | [
"tests/test_transpile.py::TestTranspile::test_alias",
"tests/test_transpile.py::TestTranspile::test_alter",
"tests/test_transpile.py::TestTranspile::test_command_identity",
"tests/test_transpile.py::TestTranspile::test_error_level",
"tests/test_transpile.py::TestTranspile::test_extract",
"tests/test_trans... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
feat: no more recursion for union generation
{}
----------
</request>
There are several new functions or classes that need to be implemented, using the definitions below:
<<NEW DEFINITIONS>>
There ... | ceb42fabad60312699e4b15936aeebac00e22e4d | ||
tobymao__sqlglot-3089 | 3,089 | tobymao/sqlglot | null | d898f559fac44789da08689e835619f978c05a3e | 2024-03-06T16:35:36Z | diff --git a/sqlglot/dialects/__init__.py b/sqlglot/dialects/__init__.py
index 276ad59cb3..29c6580012 100644
--- a/sqlglot/dialects/__init__.py
+++ b/sqlglot/dialects/__init__.py
@@ -61,6 +61,7 @@ class Generator(Generator):
----
"""
+from sqlglot.dialects.athena import Athena
from sqlglot.dialects.bigquery import... | diff --git a/tests/dialects/test_athena.py b/tests/dialects/test_athena.py
new file mode 100644
index 0000000000..99e36f2155
--- /dev/null
+++ b/tests/dialects/test_athena.py
@@ -0,0 +1,16 @@
+from tests.dialects.test_dialect import Validator
+
+
+class TestAthena(Validator):
+ dialect = "athena"
+ maxDiff = None... | [] | [
"tests/dialects/test_athena.py::TestAthena::test_athena"
] | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Feat: add Athena dialect
Fixes #3087
----------
</request>
There are several new functions or classes that need to be implemented, using the definitions below:
<<NEW DEFINITIONS>>
There are several... | Here is the discussion in the issues of the pull request.
<issues>
Support User Defined Functions on Athena Dialect
It looks like sqlglot is not able to parse [AWS Athena's user defined functions syntax](https://docs.aws.amazon.com/athena/latest/ug/querying-udf.html):
```py
from sqlglot import parse
from sqlglot.d... | ceb42fabad60312699e4b15936aeebac00e22e4d | |
pgmpy__pgmpy-1742 | 1,742 | pgmpy/pgmpy | null | 687e13a812eae747d6fa321ec021ec44021e0e67 | 2024-03-05T10:37:00Z | diff --git a/pgmpy/inference/ExactInference.py b/pgmpy/inference/ExactInference.py
index 7224bac99..0680f7f95 100644
--- a/pgmpy/inference/ExactInference.py
+++ b/pgmpy/inference/ExactInference.py
@@ -1249,7 +1249,7 @@ class BeliefPropagationWithMessageParsing(Inference):
Parameters
----------
model: Fac... | diff --git a/pgmpy/tests/test_inference/test_ExactInference.py b/pgmpy/tests/test_inference/test_ExactInference.py
index 52e1d5f35..ee372a108 100644
--- a/pgmpy/tests/test_inference/test_ExactInference.py
+++ b/pgmpy/tests/test_inference/test_ExactInference.py
@@ -1144,11 +1144,11 @@ def setUp(self):
self.beli... | [
{
"components": [
{
"doc": "Checks the virtual evidence's format is correct. Each evidence must:\n- Be a TabularCPD instance\n- Be targeted to a single variable\n- Be defined on a variable which is in the model\n- Have the same cardinality as its corresponding variable in the model\n\nParameters\n... | [
"pgmpy/tests/test_inference/test_ExactInference.py::TestBeliefPropagationWithMessageParsing::test_query_allows_multiple_virtual_evidence_per_variable",
"pgmpy/tests/test_inference/test_ExactInference.py::TestBeliefPropagationWithMessageParsing::test_query_error_obs_var_has_evidence",
"pgmpy/tests/test_inference... | [
"pgmpy/tests/test_inference/test_ExactInference.py::TestVariableElimination::test_elimination_order",
"pgmpy/tests/test_inference/test_ExactInference.py::TestVariableElimination::test_induced_graph",
"pgmpy/tests/test_inference/test_ExactInference.py::TestVariableElimination::test_induced_width",
"pgmpy/tests... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Feature/Factor Graph BP: Add virtual evidence
This PR adds capacity to handle virtual evidence on the factor graph BP.
I defined virtual evidence as a list of tabular CPD to be consistent with the cu... | cf8d0f12e2e5be62b01ff8fded85f3f64eab1e84 | ||
tobymao__sqlglot-3072 | 3,072 | tobymao/sqlglot | null | 223a4751f88809710872fa7d757d22d9eeeb4f40 | 2024-03-03T11:04:04Z | diff --git a/sqlglot/dialects/snowflake.py b/sqlglot/dialects/snowflake.py
index 85ed6705e6..1cf94a4854 100644
--- a/sqlglot/dialects/snowflake.py
+++ b/sqlglot/dialects/snowflake.py
@@ -670,6 +670,7 @@ class Tokenizer(tokens.Tokenizer):
"RENAME": TokenType.REPLACE,
"RM": TokenType.COMMAND,
... | diff --git a/tests/dialects/test_snowflake.py b/tests/dialects/test_snowflake.py
index 4cb0159e9f..b14eb38c61 100644
--- a/tests/dialects/test_snowflake.py
+++ b/tests/dialects/test_snowflake.py
@@ -1099,6 +1099,15 @@ def test_ddl(self):
write={"snowflake": "CREATE TABLE a (b INT)"},
)
+ ... | [] | [
"tests/dialects/test_snowflake.py::TestSnowflake::test_ddl"
] | [
"tests/dialects/test_snowflake.py::TestSnowflake::test_describe_table",
"tests/dialects/test_snowflake.py::TestSnowflake::test_flatten",
"tests/dialects/test_snowflake.py::TestSnowflake::test_historical_data",
"tests/dialects/test_snowflake.py::TestSnowflake::test_match_recognize",
"tests/dialects/test_snow... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
feat(snowflake): parse CREATE SEQUENCE
see https://docs.snowflake.com/en/sql-reference/sql/create-sequence
partially resolves #2954
----------
</request>
There are several new functions or classe... | Here is the discussion in the issues of the pull request.
<issues>
support parsing sequence related statements
**Is your feature request related to a problem? Please describe.**
When using fakesnow for unit testing we discovered that `CREATE SEQUENCE seq1` is currently not supported by sqlglot. As is accessing sequenc... | ceb42fabad60312699e4b15936aeebac00e22e4d | |
pgmpy__pgmpy-1740 | 1,740 | pgmpy/pgmpy | null | e11c33d7a2288c8b94b502485e338833646e8214 | 2024-03-01T19:07:23Z | diff --git a/.gitignore b/.gitignore
index 540035c64..1b133ceaa 100644
--- a/.gitignore
+++ b/.gitignore
@@ -39,3 +39,6 @@ nosetests.xml
# Auto examples generated
docs/auto_examples/*
docs/examples/*
+
+# Macos files
+.DS_Store
diff --git a/pgmpy/inference/ExactInference.py b/pgmpy/inference/ExactInference.py
index ... | diff --git a/pgmpy/tests/test_inference/test_ExactInference.py b/pgmpy/tests/test_inference/test_ExactInference.py
index 2be65a318..52e1d5f35 100644
--- a/pgmpy/tests/test_inference/test_ExactInference.py
+++ b/pgmpy/tests/test_inference/test_ExactInference.py
@@ -6,7 +6,8 @@
from pgmpy.factors.discrete import Discr... | diff --git a/.gitignore b/.gitignore
index 540035c64..1b133ceaa 100644
--- a/.gitignore
+++ b/.gitignore
@@ -39,3 +39,6 @@ nosetests.xml
# Auto examples generated
docs/auto_examples/*
docs/examples/*
+
+# Macos files
+.DS_Store
| [
{
"components": [
{
"doc": "Class for performing efficient inference using Belief Propagation method on factor graphs.\n\nThe message-parsing algorithm recursively parses the factor graph to propagate the\nmodel's beliefs to infer the posterior distribution of the queried variable. The recursion\n... | [
"pgmpy/tests/test_inference/test_ExactInference.py::TestVariableElimination::test_elimination_order",
"pgmpy/tests/test_inference/test_ExactInference.py::TestVariableElimination::test_induced_graph",
"pgmpy/tests/test_inference/test_ExactInference.py::TestVariableElimination::test_induced_width",
"pgmpy/tests... | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Feature/Faster Belief Propagation with message parsing & recursion
### Summary
The currently implemented BP is great but I faced limitations when increasing either the number of nodes (>18) or when i... | Here is the discussion in the issues of the pull request.
<issues>
Feature: belief propagation with message parsing on factor graphs
Hi, I'm currently extending this library with belief propagation on factor graphs, using message parsing. This complements the currently implemented belief propagation which uses variable... | cf8d0f12e2e5be62b01ff8fded85f3f64eab1e84 |
huggingface__huggingface_hub-2079 | 2,079 | huggingface/huggingface_hub | null | e699a4e1a1e1fff71afb9b92097067f04ba283c3 | 2024-03-01T17:19:09Z | diff --git a/docs/source/en/guides/integrations.md b/docs/source/en/guides/integrations.md
index 045b8c4327..e64bd0b8a9 100644
--- a/docs/source/en/guides/integrations.md
+++ b/docs/source/en/guides/integrations.md
@@ -148,7 +148,7 @@ are ready to go. You don't need to worry about stuff like repo creation, commits
of ... | diff --git a/tests/test_hub_mixin_pytorch.py b/tests/test_hub_mixin_pytorch.py
index bff22bae36..9fe623bc30 100644
--- a/tests/test_hub_mixin_pytorch.py
+++ b/tests/test_hub_mixin_pytorch.py
@@ -3,7 +3,7 @@
import struct
import unittest
from pathlib import Path
-from typing import TypeVar
+from typing import Any, Ty... | diff --git a/docs/source/en/guides/integrations.md b/docs/source/en/guides/integrations.md
index 045b8c4327..e64bd0b8a9 100644
--- a/docs/source/en/guides/integrations.md
+++ b/docs/source/en/guides/integrations.md
@@ -148,7 +148,7 @@ are ready to go. You don't need to worry about stuff like repo creation, commits
of ... | [
{
"components": [
{
"doc": "Inspect __init__ signature only once when subclassing.",
"lines": [
103,
110
],
"name": "ModelHubMixin.__init_subclass__",
"signature": "def __init_subclass__(cls) -> None:",
"type": "function"
},
{... | [
"tests/test_utils_typing.py::test_is_jsonable_success[123]",
"tests/test_utils_typing.py::test_is_jsonable_success[3.14]",
"tests/test_utils_typing.py::test_is_jsonable_success[Hello,",
"tests/test_utils_typing.py::test_is_jsonable_success[True]",
"tests/test_utils_typing.py::test_is_jsonable_success[None]"... | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Correctly inject config in `PytorchModelHubMixin`
Solves https://github.com/huggingface/huggingface_hub/pull/2079.
With this PR, users don't have to rely on a `config` parameter to configure their... | 4058e1f97ebe256b2f3006d4bc31be275c66df6b | |
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 | ||
conan-io__conan-15775 | 15,775 | conan-io/conan | null | 0d09f6bc9d97bea13e2ddfae32295261d49fb8f6 | 2024-02-28T15:22:32Z | diff --git a/conan/internal/internal_tools.py b/conan/internal/internal_tools.py
new file mode 100644
index 00000000000..03a4cc0c01b
--- /dev/null
+++ b/conan/internal/internal_tools.py
@@ -0,0 +1,18 @@
+from conans.errors import ConanException
+
+universal_arch_separator = '|'
+
+
+def is_universal_arch(settings_value... | diff --git a/conans/test/functional/toolchains/cmake/test_universal_binaries.py b/conans/test/functional/toolchains/cmake/test_universal_binaries.py
new file mode 100644
index 00000000000..b4743c93030
--- /dev/null
+++ b/conans/test/functional/toolchains/cmake/test_universal_binaries.py
@@ -0,0 +1,101 @@
+import os
+im... | [
{
"components": [
{
"doc": "",
"lines": [
6,
18
],
"name": "is_universal_arch",
"signature": "def is_universal_arch(settings_value, valid_definitions):",
"type": "function"
}
],
"file": "conan/internal/internal_tools.py"
}... | [
"conans/test/unittests/tools/apple/test_apple_tools.py::test_tools_apple_is_apple_os",
"conans/test/unittests/tools/apple/test_apple_tools.py::test_tools_apple_to_apple_arch",
"conans/test/unittests/tools/apple/test_apple_tools.py::test_fix_shared_install_name_no_libraries",
"conans/test/unittests/tools/apple... | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Minimal proof of concept of universal binaries support for CMakeToolchain
Changelog: Feature: Add basic support in CMakeToolchain for universal binaries.
Docs: https://github.com/conan-io/docs/pull/3... | 4a5b19a75db9225316c8cb022a2dfb9705a2af34 | ||
joke2k__faker-1999 | 1,999 | joke2k/faker | null | a8e137a1fe2bf1d02b4322cc2152a40634b2b3bd | 2024-02-26T22:56:14Z | diff --git a/faker/providers/bank/uk_UA/__init__.py b/faker/providers/bank/uk_UA/__init__.py
index 3b53dd45f4..5f5a560fea 100644
--- a/faker/providers/bank/uk_UA/__init__.py
+++ b/faker/providers/bank/uk_UA/__init__.py
@@ -5,7 +5,83 @@ class Provider(BankProvider):
"""Implement bank provider for ``uk_UA`` locale.
... | diff --git a/tests/providers/test_credit_card.py b/tests/providers/test_credit_card.py
index 6cd379345b..a0c8fab3b6 100644
--- a/tests/providers/test_credit_card.py
+++ b/tests/providers/test_credit_card.py
@@ -4,6 +4,7 @@
from faker.providers.bank.ru_RU import Provider as RuRuBankProvider
from faker.providers.cred... | [
{
"components": [
{
"doc": "Generate a bank name.",
"lines": [
85,
87
],
"name": "Provider.bank",
"signature": "def bank(self) -> str:",
"type": "function"
}
],
"file": "faker/providers/bank/uk_UA/__init__.py"
},
{
"... | [
"tests/providers/test_credit_card.py::TestUkUa::test_maestro",
"tests/providers/test_credit_card.py::TestUkUa::test_prostir",
"tests/providers/test_credit_card.py::TestUkUa::test_credit_card_full"
] | [
"tests/providers/test_credit_card.py::TestCreditCardProvider::test_mastercard",
"tests/providers/test_credit_card.py::TestCreditCardProvider::test_visa13",
"tests/providers/test_credit_card.py::TestCreditCardProvider::test_visa16",
"tests/providers/test_credit_card.py::TestCreditCardProvider::test_visa19",
... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
feat(uk_UA-credit-cards) Add Uk-UA credit card provider
### Add UA Credit card provider
Add tests
Add bank list
Add translit function
----------
</request>
There are several new functions or cla... | 6edfdbf6ae90b0153309e3bf066aa3b2d16494a7 | ||
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.
 -> exp.Expression:
return exp.DateDiff(this=seq_get(args, 2), expression=seq_get(args, 1),... | diff --git a/tests/dialects/test_duckdb.py b/tests/dialects/test_duckdb.py
index 5a81320e9b..fe7cc3d53e 100644
--- a/tests/dialects/test_duckdb.py
+++ b/tests/dialects/test_duckdb.py
@@ -174,7 +174,6 @@ def test_duckdb(self):
},
)
- self.validate_identity("SELECT i FROM RANGE(5) AS _(i) O... | [] | [
"tests/dialects/test_duckdb.py::TestDuckDB::test_duckdb",
"tests/dialects/test_sqlite.py::TestSQLite::test_warnings"
] | [
"tests/dialects/test_duckdb.py::TestDuckDB::test_array",
"tests/dialects/test_duckdb.py::TestDuckDB::test_array_index",
"tests/dialects/test_duckdb.py::TestDuckDB::test_bool_or",
"tests/dialects/test_duckdb.py::TestDuckDB::test_cast",
"tests/dialects/test_duckdb.py::TestDuckDB::test_encode_decode",
"tests... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Feat: Supporting RANGE <-> GENERATE_SERIES between DuckDB & SQLite
Hi,
The following PR aims to address [discussion#2995 ](https://github.com/tobymao/sqlglot/discussions/2995)
Key changes:
- ... | ceb42fabad60312699e4b15936aeebac00e22e4d | ||
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-7050 | 7,050 | deepset-ai/haystack | null | 0507fce2567b0e8e48ed334469bad16260a8709e | 2024-02-21T09:20:17Z | diff --git a/haystack/components/evaluators/__init__.py b/haystack/components/evaluators/__init__.py
new file mode 100644
index 0000000000..9550a5f42d
--- /dev/null
+++ b/haystack/components/evaluators/__init__.py
@@ -0,0 +1,3 @@
+from .answer_exact_match import AnswerExactMatchEvaluator
+
+__all__ = ["AnswerExactMatch... | diff --git a/test/components/evaluators/test_answer_exact_match.py b/test/components/evaluators/test_answer_exact_match.py
new file mode 100644
index 0000000000..c179c74a25
--- /dev/null
+++ b/test/components/evaluators/test_answer_exact_match.py
@@ -0,0 +1,61 @@
+import pytest
+
+from haystack.components.evaluators im... | diff --git a/releasenotes/notes/exact-match-evaluator-197bb87b65e19d0c.yaml b/releasenotes/notes/exact-match-evaluator-197bb87b65e19d0c.yaml
new file mode 100644
index 0000000000..ad380617d9
--- /dev/null
+++ b/releasenotes/notes/exact-match-evaluator-197bb87b65e19d0c.yaml
@@ -0,0 +1,6 @@
+---
+features:
+ - |
+ Ad... | [
{
"components": [
{
"doc": "Evaluator that checks if the predicted answers matches any of the ground truth answers exactly.\nThe result is a number from 0.0 to 1.0, it represents the proportion of questions where any predicted answer\nmatched one of the ground truth answers.\nEach question can hav... | [
"test/components/evaluators/test_answer_exact_match.py::test_run_with_all_matching",
"test/components/evaluators/test_answer_exact_match.py::test_run_with_no_matching",
"test/components/evaluators/test_answer_exact_match.py::test_run_with_partial_matching",
"test/components/evaluators/test_answer_exact_match.... | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Add `AnswerExactMatchEvaluator`
### Related Issues
- fixes #6067
### Proposed Changes:
Add `AnswerExactMatchEvaluator`. This Component calculates the Exact Match metrics given a list of ques... | Here is the discussion in the issues of the pull request.
<issues>
Implement function to calculate Exact Match metric
As specified in proposal #5794 we need to implement a function to calculate the Exact Match metric.
Ideally the function should be part of the private interface and called only through the `calculate... | f4d9c2bb917be0ffe132dffcc2ad4f1b0fcc5967 |
deepset-ai__haystack-7046 | 7,046 | deepset-ai/haystack | null | 7f4d11c38e9aefdc2152653151bb42f808d87c9b | 2024-02-20T16:07:55Z | diff --git a/haystack/core/pipeline/pipeline.py b/haystack/core/pipeline/pipeline.py
index b4dfebe942..bc33b8a920 100644
--- a/haystack/core/pipeline/pipeline.py
+++ b/haystack/core/pipeline/pipeline.py
@@ -26,6 +26,7 @@
from haystack.marshal import Marshaller, YamlMarshaller
from haystack.telemetry import pipeline_r... | diff --git a/test/conftest.py b/test/conftest.py
index c3400260cb..4ad832f42b 100644
--- a/test/conftest.py
+++ b/test/conftest.py
@@ -1,12 +1,15 @@
from datetime import datetime
from pathlib import Path
+from typing import Generator
from unittest.mock import Mock, patch
import pytest
from openai.types.chat impo... | diff --git a/releasenotes/notes/code-instrumentation-9ef657728bec3508.yaml b/releasenotes/notes/code-instrumentation-9ef657728bec3508.yaml
new file mode 100644
index 0000000000..d3709c2e21
--- /dev/null
+++ b/releasenotes/notes/code-instrumentation-9ef657728bec3508.yaml
@@ -0,0 +1,89 @@
+---
+features:
+ - |
+ Adde... | [
{
"components": [
{
"doc": "Interface for an instrumented operation.",
"lines": [
6,
36
],
"name": "Span",
"signature": "class Span(abc.ABC):",
"type": "class"
},
{
"doc": "Set a single tag on the span.\n\nNote that th... | [
"test/core/pipeline/test_tracing.py::TestTracing::test_with_enabled_tracing",
"test/tracing/test_tracer.py::TestNullTracer::test_tracing",
"test/tracing/test_tracer.py::TestProxyTracer::test_tracing",
"test/tracing/test_tracer.py::TestConfigureTracer::test_enable_tracer",
"test/tracing/test_tracer.py::TestC... | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
feat: implement pipeline tracing
### Related Issues
- related to https://github.com/deepset-ai/haystack/issues/7026
### Proposed Changes:
- add tracing to pipeline runs and components
- add ... | f4d9c2bb917be0ffe132dffcc2ad4f1b0fcc5967 | |
deepset-ai__haystack-7042 | 7,042 | deepset-ai/haystack | null | 05af9c3439b05c8e730a3185fc84e2b45cda22b3 | 2024-02-20T08:45:55Z | diff --git a/haystack/components/evaluators/statistical_evaluator.py b/haystack/components/evaluators/statistical_evaluator.py
index a6c0096410..abf3386872 100644
--- a/haystack/components/evaluators/statistical_evaluator.py
+++ b/haystack/components/evaluators/statistical_evaluator.py
@@ -19,6 +19,7 @@ class Statistic... | diff --git a/test/components/evaluators/test_statistical_evaluator.py b/test/components/evaluators/test_statistical_evaluator.py
index 619b258433..51efb1e98d 100644
--- a/test/components/evaluators/test_statistical_evaluator.py
+++ b/test/components/evaluators/test_statistical_evaluator.py
@@ -189,3 +189,37 @@ def test... | diff --git a/releasenotes/notes/add-mrr-metric-362527e55e21c24c.yaml b/releasenotes/notes/add-mrr-metric-362527e55e21c24c.yaml
new file mode 100644
index 0000000000..2048fcf8d7
--- /dev/null
+++ b/releasenotes/notes/add-mrr-metric-362527e55e21c24c.yaml
@@ -0,0 +1,5 @@
+---
+features:
+ - |
+ Add support for Mean Re... | [
{
"components": [
{
"doc": "Measures the mean reciprocal rank of times a label is present in at least one or more predictions.",
"lines": [
157,
171
],
"name": "StatisticalEvaluator._mrr",
"signature": "def _mrr(labels: List[str], predictions: Li... | [
"test/components/evaluators/test_statistical_evaluator.py::TestStatisticalEvaluatorMRR::test_run",
"test/components/evaluators/test_statistical_evaluator.py::TestStatisticalEvaluatorMRR::test_run_with_empty_labels",
"test/components/evaluators/test_statistical_evaluator.py::TestStatisticalEvaluatorMRR::test_run... | [
"test/components/evaluators/test_statistical_evaluator.py::TestStatisticalEvaluator::test_init_default",
"test/components/evaluators/test_statistical_evaluator.py::TestStatisticalEvaluator::test_init_with_string",
"test/components/evaluators/test_statistical_evaluator.py::TestStatisticalEvaluator::test_to_dict"... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
feat: Add Mean Reciprocal Rank (MRR) metric to `StatisticalEvaluator`
### Related Issues
fixes #6065
### Proposed Changes:
Add support for Mean Reciprocal Rank (MRR) Metric to `StatisticalEva... | Here is the discussion in the issues of the pull request.
<issues>
Implement function to calculate Mean Reciprocal Rank metric
As specified in proposal #5794 we need to implement a function to calculate the Mean Reciprocal Rank metric.
Ideally the function should be part of the private interface and called only thro... | f4d9c2bb917be0ffe132dffcc2ad4f1b0fcc5967 |
deepset-ai__haystack-7038 | 7,038 | deepset-ai/haystack | null | 5910b4adc9b2688155abb8d2290e5cf56833eb0b | 2024-02-19T15:37:23Z | diff --git a/haystack/components/evaluators/statistical_evaluator.py b/haystack/components/evaluators/statistical_evaluator.py
index 6f65fc105b..a6c0096410 100644
--- a/haystack/components/evaluators/statistical_evaluator.py
+++ b/haystack/components/evaluators/statistical_evaluator.py
@@ -1,4 +1,5 @@
import collectio... | diff --git a/test/components/evaluators/test_statistical_evaluator.py b/test/components/evaluators/test_statistical_evaluator.py
index e98899cb71..619b258433 100644
--- a/test/components/evaluators/test_statistical_evaluator.py
+++ b/test/components/evaluators/test_statistical_evaluator.py
@@ -121,3 +121,71 @@ def test... | [
{
"components": [
{
"doc": "Measures how many times a label is present in at least one prediction.\nIf the same label is found in multiple predictions it is only counted once.",
"lines": [
126,
137
],
"name": "StatisticalEvaluator._recall_single_hit",
... | [
"test/components/evaluators/test_statistical_evaluator.py::TestStatisticalEvaluatorRecallSingleHit::test_run",
"test/components/evaluators/test_statistical_evaluator.py::TestStatisticalEvaluatorRecallSingleHit::test_run_with_empty_labels",
"test/components/evaluators/test_statistical_evaluator.py::TestStatistic... | [
"test/components/evaluators/test_statistical_evaluator.py::TestStatisticalEvaluator::test_init_default",
"test/components/evaluators/test_statistical_evaluator.py::TestStatisticalEvaluator::test_init_with_string",
"test/components/evaluators/test_statistical_evaluator.py::TestStatisticalEvaluator::test_to_dict"... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
feat: Add Recall Multi Hit and Single Hit metric in `StatisticalEvaluator`
### Related Issues
- fixes #6064
### Proposed Changes:
Add support for Recall Single Hit and Recall Multi Hit metric... | Here is the discussion in the issues of the pull request.
<issues>
Implement function to calculate Recall metric
As specified in proposal #5794 we need to implement a function to calculate the Recall metric.
Ideally the function should be part of the private interface and called only through the `calculate_metrics` ... | f4d9c2bb917be0ffe132dffcc2ad4f1b0fcc5967 | |
sphinx-doc__sphinx-11989 | 11,989 | sphinx-doc/sphinx | 7.4 | e7beb8bc5c647d15fef9b5a2a9136b6a605d35db | 2024-02-18T23:36:36Z | diff --git a/CHANGES.rst b/CHANGES.rst
index 1f178f5c200..ab609469f98 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -74,6 +74,9 @@ Features added
* #11592: Add :confval:`coverage_modules` to the coverage builder
to allow explicitly specifying which modules should be documented.
Patch by Stephen Finucane.
+* #789... | diff --git a/tests/roots/test-domain-py/index.rst b/tests/roots/test-domain-py/index.rst
index b24bbea244a..71e45f744a6 100644
--- a/tests/roots/test-domain-py/index.rst
+++ b/tests/roots/test-domain-py/index.rst
@@ -8,3 +8,4 @@ test-domain-py
module_option
abbr
canonical
+ type_alias
diff --git a/tes... | diff --git a/CHANGES.rst b/CHANGES.rst
index 1f178f5c200..ab609469f98 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -74,6 +74,9 @@ Features added
* #11592: Add :confval:`coverage_modules` to the coverage builder
to allow explicitly specifying which modules should be documented.
Patch by Stephen Finucane.
+* #789... | [
{
"components": [
{
"doc": "Description of a type alias.",
"lines": [
392,
428
],
"name": "PyTypeAlias",
"signature": "class PyTypeAlias(PyObject):",
"type": "class"
},
{
"doc": "",
"lines": [
400,
... | [
"tests/test_domains/test_domain_py.py::test_domain_py_xrefs",
"tests/test_domains/test_domain_py.py::test_domain_py_objects",
"tests/test_domains/test_domain_py.py::test_domain_py_find_obj",
"tests/test_domains/test_domain_py_pyobject.py::test_py_type_alias",
"tests/test_domains/test_domain_py_pyobject.py::... | [
"tests/test_domains/test_domain_py.py::test_function_signatures",
"tests/test_domains/test_domain_py.py::test_domain_py_xrefs_abbreviations",
"tests/test_domains/test_domain_py.py::test_resolve_xref_for_properties",
"tests/test_domains/test_domain_py.py::test_get_full_qualified_name",
"tests/test_domains/te... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Add py:type directive and role for documenting type aliases
### Feature or Bugfix
- Feature
### Purpose
This pull request adds a `py:type` directive for documenting type aliases (https://typing.r... | Here is the discussion in the issues of the pull request.
<issues>
introduce directive for type alias
There's no clear way to document a type alias as distinct from a module-level variable
I suggest adding a `:type:` directive that distinguishes an alias, like
```
DEFAULT_NUMBER_FACTORY = int
""" :var: zero-argum... | 35e7bfc347f845deff50787f0cd0340ea2ea0a5d |
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 | ||
deepset-ai__haystack-6997 | 6,997 | deepset-ai/haystack | null | cf221a970196f3768002378127f6618e1f3d97d0 | 2024-02-15T09:58:16Z | diff --git a/haystack/components/preprocessors/__init__.py b/haystack/components/preprocessors/__init__.py
index d1ed7a96ec..bf24cf2cb2 100644
--- a/haystack/components/preprocessors/__init__.py
+++ b/haystack/components/preprocessors/__init__.py
@@ -1,4 +1,5 @@
-from haystack.components.preprocessors.document_cleaner ... | diff --git a/test/components/preprocessors/test_text_cleaner.py b/test/components/preprocessors/test_text_cleaner.py
new file mode 100644
index 0000000000..dea47e6b37
--- /dev/null
+++ b/test/components/preprocessors/test_text_cleaner.py
@@ -0,0 +1,70 @@
+from haystack.components.preprocessors import TextCleaner
+
+
+d... | diff --git a/releasenotes/notes/text-cleaner-eee0eecbdec21427.yaml b/releasenotes/notes/text-cleaner-eee0eecbdec21427.yaml
new file mode 100644
index 0000000000..3e28b27ca5
--- /dev/null
+++ b/releasenotes/notes/text-cleaner-eee0eecbdec21427.yaml
@@ -0,0 +1,6 @@
+---
+features:
+ - |
+ Add `TextCleaner` Component t... | [
{
"components": [
{
"doc": "A preprocessor component to clean text data. It can remove substrings matching a list of regular expressions,\nconvert text to lowercase, remove punctuation, and remove numbers.\nThis is useful to cleanup text data before evaluation.",
"lines": [
9,
... | [
"test/components/preprocessors/test_text_cleaner.py::test_init_default",
"test/components/preprocessors/test_text_cleaner.py::test_run",
"test/components/preprocessors/test_text_cleaner.py::test_run_with_empty_inputs",
"test/components/preprocessors/test_text_cleaner.py::test_run_with_regex",
"test/componen... | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
feat: Add `TextCleaner` component
### Related Issues
- Part of #6903
### Proposed Changes:
Add `TextCleaner` component. This is mostly useful between a generator and an evaluator to cleanup t... | f4d9c2bb917be0ffe132dffcc2ad4f1b0fcc5967 | |
deepset-ai__haystack-6995 | 6,995 | deepset-ai/haystack | null | a7209f64136d7cc8bd446f6801d8695fc367608f | 2024-02-15T06:44:23Z | diff --git a/haystack/components/rankers/__init__.py b/haystack/components/rankers/__init__.py
index d4aeab1d16..bb8c7dd999 100644
--- a/haystack/components/rankers/__init__.py
+++ b/haystack/components/rankers/__init__.py
@@ -1,4 +1,5 @@
+from haystack.components.rankers.lost_in_the_middle import LostInTheMiddleRanker... | diff --git a/test/components/rankers/test_lost_in_the_middle.py b/test/components/rankers/test_lost_in_the_middle.py
new file mode 100644
index 0000000000..d1bae7669d
--- /dev/null
+++ b/test/components/rankers/test_lost_in_the_middle.py
@@ -0,0 +1,104 @@
+import pytest
+from haystack import Document
+from haystack.com... | diff --git a/releasenotes/notes/add-lost-in-the-middle-ranker-976f2e9bf83c3c68.yaml b/releasenotes/notes/add-lost-in-the-middle-ranker-976f2e9bf83c3c68.yaml
new file mode 100644
index 0000000000..83c9e57682
--- /dev/null
+++ b/releasenotes/notes/add-lost-in-the-middle-ranker-976f2e9bf83c3c68.yaml
@@ -0,0 +1,8 @@
+---
+... | [
{
"components": [
{
"doc": "The LostInTheMiddleRanker implements a ranker that reorders documents based on the \"lost in the middle\" order.\n\"Lost in the Middle: How Language Models Use Long Contexts\" paper by Liu et al. aims to lay out paragraphs into LLM\ncontext so that the relevant paragrap... | [
"test/components/rankers/test_lost_in_the_middle.py::TestLostInTheMiddleRanker::test_lost_in_the_middle_order_odd",
"test/components/rankers/test_lost_in_the_middle.py::TestLostInTheMiddleRanker::test_lost_in_the_middle_order_even",
"test/components/rankers/test_lost_in_the_middle.py::TestLostInTheMiddleRanker:... | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
feat: Add Lost In The Middle Ranker
Lost In The Middle Ranker
This ranker ranks documents based on the "Lost in the Middle" order, designed to position "the best" documents (low index in the given ... | f4d9c2bb917be0ffe132dffcc2ad4f1b0fcc5967 | |
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 | ||
deepset-ai__haystack-6977 | 6,977 | deepset-ai/haystack | null | 549021d2fcf26feac772731ae1e5607365be242b | 2024-02-12T16:26:45Z | diff --git a/haystack/components/rankers/meta_field.py b/haystack/components/rankers/meta_field.py
index 57e48995e2..d1a2cc9765 100644
--- a/haystack/components/rankers/meta_field.py
+++ b/haystack/components/rankers/meta_field.py
@@ -1,6 +1,8 @@
import logging
from collections import defaultdict
-from typing import ... | diff --git a/test/components/rankers/test_metafield.py b/test/components/rankers/test_metafield.py
index 1269d3ca83..d729c55b4a 100644
--- a/test/components/rankers/test_metafield.py
+++ b/test/components/rankers/test_metafield.py
@@ -17,12 +17,18 @@ def test_to_dict(self):
"top_k": None,
... | diff --git a/releasenotes/notes/metafieldranker-meta-value-type-365ff1bdb412257b.yaml b/releasenotes/notes/metafieldranker-meta-value-type-365ff1bdb412257b.yaml
new file mode 100644
index 0000000000..f2be1fb87a
--- /dev/null
+++ b/releasenotes/notes/metafieldranker-meta-value-type-365ff1bdb412257b.yaml
@@ -0,0 +1,6 @@
... | [
{
"components": [
{
"doc": "Parse the meta values stored under `self.meta_field` for the Documents provided in `docs_with_meta_field`.",
"lines": [
246,
286
],
"name": "MetaFieldRanker._parse_meta",
"signature": "def _parse_meta( self, docs_with_... | [
"test/components/rankers/test_metafield.py::TestMetaFieldRanker::test_to_dict",
"test/components/rankers/test_metafield.py::TestMetaFieldRanker::test_to_dict_with_custom_init_parameters",
"test/components/rankers/test_metafield.py::TestMetaFieldRanker::test_meta_value_type_float",
"test/components/rankers/tes... | [
"[",
"[100%]",
"test/components/rankers/test_metafield.py::TestMetaFieldRanker::test_run[meta_field_values0-2.1]",
"test/components/rankers/test_metafield.py::TestMetaFieldRanker::test_run[meta_field_values1-8]",
"test/components/rankers/test_metafield.py::TestMetaFieldRanker::test_run_with_weight_equal_to_... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
feat: Meta field ranker add `meta_value_type`
### Related Issues
- resolves the RecentnessRanker in issue https://github.com/deepset-ai/haystack/issues/6673
### Proposed Changes:
<!--- In c... | f4d9c2bb917be0ffe132dffcc2ad4f1b0fcc5967 | |
pvlib__pvlib-python-1969 | 1,969 | pvlib/pvlib-python | 0.9 | c4a2b4bdb99216dbf1bf1dd58c7156f25c0e7458 | 2024-02-10T13:37:29Z | diff --git a/ci/requirements-py3.10.yml b/ci/requirements-py3.10.yml
index cc11e4cb8a..617d89c755 100644
--- a/ci/requirements-py3.10.yml
+++ b/ci/requirements-py3.10.yml
@@ -8,8 +8,8 @@ dependencies:
- ephem
- h5py
- numba
- - numpy >= 1.16.0
- - pandas >= 0.25.0
+ - numpy >= 1.17.3
+ - pand... | diff --git a/pvlib/tests/iotools/test_solargis.py b/pvlib/tests/iotools/test_solargis.py
new file mode 100644
index 0000000000..55882e91c5
--- /dev/null
+++ b/pvlib/tests/iotools/test_solargis.py
@@ -0,0 +1,68 @@
+import pandas as pd
+import pytest
+import pvlib
+import requests
+from ..conftest import (RERUNS, RERUNS_... | diff --git a/ci/requirements-py3.10.yml b/ci/requirements-py3.10.yml
index cc11e4cb8a..617d89c755 100644
--- a/ci/requirements-py3.10.yml
+++ b/ci/requirements-py3.10.yml
@@ -8,8 +8,8 @@ dependencies:
- ephem
- h5py
- numba
- - numpy >= 1.16.0
- - pandas >= 0.25.0
+ - numpy >= 1.17.3
+ - pand... | [
{
"components": [
{
"doc": "",
"lines": [
19,
22
],
"name": "ParameterMap",
"signature": "class ParameterMap:",
"type": "class"
},
{
"doc": "Retrieve irradiance time series data from Solargis.\n\nThe Solargis [1]_ API ... | [
"pvlib/tests/iotools/test_solcast.py::test_solcast2pvlib[in_df0-out_df0]"
] | [
"pvlib/tests/iotools/test_solcast.py::test__get_solcast[live/radiation_and_weather-params0-1234-json_response0]",
"pvlib/tests/iotools/test_solcast.py::test_get_solcast_live[live/radiation_and_weather-get_solcast_live-params0-json_response0-True]",
"pvlib/tests/iotools/test_solcast.py::test_get_solcast_live[liv... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Add get_solargis iotools function
<!-- 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 | |
deepset-ai__haystack-6936 | 6,936 | deepset-ai/haystack | null | 74683fe74d400820a442cca03bb69473824e841a | 2024-02-08T07:50:04Z | diff --git a/haystack/components/converters/__init__.py b/haystack/components/converters/__init__.py
index 24bbdf9c31..61697488ae 100644
--- a/haystack/components/converters/__init__.py
+++ b/haystack/components/converters/__init__.py
@@ -5,6 +5,7 @@
from haystack.components.converters.html import HTMLToDocument
from... | diff --git a/test/components/converters/test_output_adapter.py b/test/components/converters/test_output_adapter.py
new file mode 100644
index 0000000000..795cd30d97
--- /dev/null
+++ b/test/components/converters/test_output_adapter.py
@@ -0,0 +1,107 @@
+import json
+
+import pytest
+
+from haystack import Pipeline, com... | diff --git a/releasenotes/notes/add-output-adapter-5fab4cfcb0218925.yaml b/releasenotes/notes/add-output-adapter-5fab4cfcb0218925.yaml
new file mode 100644
index 0000000000..fba2fdcce3
--- /dev/null
+++ b/releasenotes/notes/add-output-adapter-5fab4cfcb0218925.yaml
@@ -0,0 +1,4 @@
+---
+features:
+ - |
+ Introducing t... | [
{
"components": [
{
"doc": "Exception raised when there is an error during output adaptation.",
"lines": [
12,
13
],
"name": "OutputAdaptationException",
"signature": "class OutputAdaptationException(Exception):",
"type": "class"
},... | [
"test/components/converters/test_output_adapter.py::TestOutputAdapter::test_initialized_with_valid_template_and_output_type",
"test/components/converters/test_output_adapter.py::TestOutputAdapter::test_output_adaptation",
"test/components/converters/test_output_adapter.py::TestOutputAdapter::test_predefined_fil... | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
feat: Add OutputAdapter
Part of https://github.com/deepset-ai/haystack/issues/6938
### Why:
Introduces a new `OutputAdapter` component to facilitate ease of the data flow between components with... | f4d9c2bb917be0ffe132dffcc2ad4f1b0fcc5967 | |
joke2k__faker-1989 | 1,989 | joke2k/faker | null | c5e37d54a4eee1fa9db3f4dcc705da27b03968d6 | 2024-02-06T21:09:31Z | diff --git a/faker/providers/lorem/uk_UA/__init__.py b/faker/providers/lorem/uk_UA/__init__.py
new file mode 100644
index 0000000000..a9ad816de8
--- /dev/null
+++ b/faker/providers/lorem/uk_UA/__init__.py
@@ -0,0 +1,505 @@
+from typing import Dict
+
+from .. import Provider as LoremProvider
+
+
+class Provider(LoremPro... | diff --git a/tests/providers/test_lorem.py b/tests/providers/test_lorem.py
index 40761a27f0..84bc53eb96 100644
--- a/tests/providers/test_lorem.py
+++ b/tests/providers/test_lorem.py
@@ -10,6 +10,7 @@
from faker.providers.lorem.en_US import Provider as EnUsLoremProvider
from faker.providers.lorem.fa_IR import Provide... | [
{
"components": [
{
"doc": "Implement lorem provider for ``uk_UA`` locale.",
"lines": [
6,
505
],
"name": "Provider",
"signature": "class Provider(LoremProvider):",
"type": "class"
}
],
"file": "faker/providers/lorem/uk_UA/_... | [
"tests/providers/test_lorem.py::TestLoremProvider::test_word_with_defaults",
"tests/providers/test_lorem.py::TestLoremProvider::test_word_with_custom_list",
"tests/providers/test_lorem.py::TestLoremProvider::test_words_with_zero_nb",
"tests/providers/test_lorem.py::TestLoremProvider::test_words_with_defaults"... | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
feat(uk_UA-lorem) Add uk_UA lorem provider
### Add uk_UA lorem provider and test
----------
</request>
There are several new functions or classes that need to be implemented, using the definitio... | 6edfdbf6ae90b0153309e3bf066aa3b2d16494a7 | ||
tobymao__sqlglot-2924 | 2,924 | tobymao/sqlglot | null | 838e7800c32ad16074efef6a188ebd89083a9717 | 2024-02-06T21:09:10Z | diff --git a/sqlglot/dialects/hive.py b/sqlglot/dialects/hive.py
index 9daa5acb5d..6337ffd940 100644
--- a/sqlglot/dialects/hive.py
+++ b/sqlglot/dialects/hive.py
@@ -574,6 +574,13 @@ class Generator(generator.Generator):
exp.WithDataProperty: exp.Properties.Location.UNSUPPORTED,
}
+ def ... | diff --git a/tests/dialects/test_dialect.py b/tests/dialects/test_dialect.py
index f4852aea67..e0aaf17962 100644
--- a/tests/dialects/test_dialect.py
+++ b/tests/dialects/test_dialect.py
@@ -1245,6 +1245,7 @@ def test_json(self):
write={
"bigquery": UnsupportedError,
"duck... | [] | [
"tests/dialects/test_dialect.py::TestDialect::test_json",
"tests/test_jsonpath.py::TestJsonpath::test_jsonpath"
] | [
"tests/dialects/test_dialect.py::TestDialect::test_alias",
"tests/dialects/test_dialect.py::TestDialect::test_array",
"tests/dialects/test_dialect.py::TestDialect::test_cast",
"tests/dialects/test_dialect.py::TestDialect::test_cast_to_user_defined_type",
"tests/dialects/test_dialect.py::TestDialect::test_co... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Feat: improve transpilation of JSON path wildcards
I think this is the final item
----------
</request>
There are several new functions or classes that need to be implemented, using the definitions ... | ceb42fabad60312699e4b15936aeebac00e22e4d | ||
deepset-ai__haystack-6927 | 6,927 | deepset-ai/haystack | null | b875eda4af7b7d45ed02fa578bf23fda1f923673 | 2024-02-06T14:43:45Z | diff --git a/haystack/core/component/component.py b/haystack/core/component/component.py
index 95ae87d731..c231e41dfa 100644
--- a/haystack/core/component/component.py
+++ b/haystack/core/component/component.py
@@ -160,6 +160,21 @@ def __call__(cls, *args, **kwargs):
return instance
+def _component_repr(co... | diff --git a/test/core/component/test_component.py b/test/core/component/test_component.py
index bbe2605f03..b093c32b82 100644
--- a/test/core/component/test_component.py
+++ b/test/core/component/test_component.py
@@ -4,6 +4,7 @@
from haystack.core.component import Component, InputSocket, OutputSocket, component
f... | diff --git a/releasenotes/notes/component-repr-a6486af81530bc3b.yaml b/releasenotes/notes/component-repr-a6486af81530bc3b.yaml
new file mode 100644
index 0000000000..3a7439e926
--- /dev/null
+++ b/releasenotes/notes/component-repr-a6486af81530bc3b.yaml
@@ -0,0 +1,6 @@
+---
+enhancements:
+ - |
+ Add `__repr__` to a... | [
{
"components": [
{
"doc": "All Components override their __repr__ method with this one.\nIt prints the component name and the input/output sockets.",
"lines": [
163,
175
],
"name": "_component_repr",
"signature": "def _component_repr(component: ... | [
"test/core/component/test_component.py::test_repr",
"test/core/component/test_component.py::test_repr_added_to_pipeline",
"test/core/component/test_sockets.py::TestSockets::test_repr"
] | [
"test/core/component/test_component.py::test_correct_declaration",
"test/core/component/test_component.py::test_correct_declaration_with_additional_readonly_property",
"test/core/component/test_component.py::test_correct_declaration_with_additional_writable_property",
"test/core/component/test_component.py::t... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
feat: Add `__repr__` method to all Components
### Related Issues
- fixes #6779
### Proposed Changes:
This PR changes the `@component` decorator so all Components have a `__repr__` method that... | Here is the discussion in the issues of the pull request.
<issues>
Enhance Component I/O representation
After #6768 is done we should have a nice way of representing a Component's I/O.
Example:
```py
from haystack.components.converters.txt import TextFileToDocument
converter = TextFileToDocument()
print(conv... | f4d9c2bb917be0ffe132dffcc2ad4f1b0fcc5967 |
prometheus__client_python-1005 | 1,005 | prometheus/client_python | null | b9edc43221101cad593c64d3fe9853760bef135e | 2024-02-06T10:42:38Z | diff --git a/prometheus_client/metrics.py b/prometheus_client/metrics.py
index 34305a17..91cd9ecf 100644
--- a/prometheus_client/metrics.py
+++ b/prometheus_client/metrics.py
@@ -292,6 +292,12 @@ def f():
# Count only one type of exception
with c.count_exceptions(ValueError):
pass
+ ... | diff --git a/tests/test_core.py b/tests/test_core.py
index 6f7c9d1c..30f9e0ad 100644
--- a/tests/test_core.py
+++ b/tests/test_core.py
@@ -43,6 +43,16 @@ def test_increment(self):
self.counter.inc(7)
self.assertEqual(8, self.registry.get_sample_value('c_total'))
+ def test_reset(self):
+ s... | [
{
"components": [
{
"doc": "Reset the counter to zero. Use this when a logical process restarts without restarting the actual python process.",
"lines": [
319,
322
],
"name": "Counter.reset",
"signature": "def reset(self) -> None:",
"type... | [
"tests/test_core.py::TestCounter::test_reset"
] | [
"tests/test_core.py::TestCounter::test_block_decorator",
"tests/test_core.py::TestCounter::test_count_exceptions_not_observable",
"tests/test_core.py::TestCounter::test_exemplar_invalid_label_name",
"tests/test_core.py::TestCounter::test_exemplar_too_long",
"tests/test_core.py::TestCounter::test_exemplar_un... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Reset counter
Adds `.reset()` method to Counter metric.
Closes #995.
----------
</request>
There are several new functions or classes that need to be implemented, using the definitions below:
... | Here is the discussion in the issues of the pull request.
<issues>
Provide a way to reset a Counter metric
Hi. My program performs some lengthy process of many iterations, and I use a Counter to track current iteration. However, it is normal for the process to finish at some point, and then the user can start it again,... | 09a5ae30602a7a81f6174dae4ba08b93ee7feed2 | |
cocotb__cocotb-3702 | 3,702 | cocotb/cocotb | null | fdf7286a3a38b703dc4a3bb7c707bfcd2263773a | 2024-02-06T06:42:22Z | diff --git a/docs/source/newsfragments/3659.feature.rst b/docs/source/newsfragments/3659.feature.rst
new file mode 100644
index 0000000000..772ec771ef
--- /dev/null
+++ b/docs/source/newsfragments/3659.feature.rst
@@ -0,0 +1,1 @@
+:class:`~cocotb.types.Array` now supports equality with :class:`list` and :class:`tuple`.... | diff --git a/tests/pytest/test_array.py b/tests/pytest/test_array.py
index 43c3c0f9c1..123cbacb0c 100644
--- a/tests/pytest/test_array.py
+++ b/tests/pytest/test_array.py
@@ -2,7 +2,7 @@
# Licensed under the Revised BSD License, see LICENSE for details.
# SPDX-License-Identifier: BSD-3-Clause
import pytest
-from coc... | diff --git a/docs/source/newsfragments/3659.feature.rst b/docs/source/newsfragments/3659.feature.rst
new file mode 100644
index 0000000000..772ec771ef
--- /dev/null
+++ b/docs/source/newsfragments/3659.feature.rst
@@ -0,0 +1,1 @@
+:class:`~cocotb.types.Array` now supports equality with :class:`list` and :class:`tuple`.... | [
{
"components": [
{
"doc": "Return the Logic object associated with the repr, enforcing singleton.",
"lines": [
116,
120
],
"name": "Logic._get_object",
"signature": "def _get_object(cls: typing.Type[\"Logic\"], _repr: int) -> \"Logic\":",
... | [
"tests/pytest/test_array.py::test_equality",
"tests/pytest/test_logic_array.py::test_logic_array_literal_casts",
"tests/pytest/test_logic_array.py::test_equality"
] | [
"tests/pytest/test_array.py::test_value_only_construction",
"tests/pytest/test_array.py::test_both_construction",
"tests/pytest/test_array.py::test_bad_construction",
"tests/pytest/test_array.py::test_length",
"tests/pytest/test_array.py::test_range",
"tests/pytest/test_array.py::test_repr_eval",
"tests... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Improvements to `cocotb.types`
Closes #3659. Closes #3696.
Additionally,
* `concat()` was removed. I doubt this was used by anyone and was difficult to type correctly.
* `ArrayLike` trying to be ... | Here is the discussion in the issues of the pull request.
<issues>
Support comparison between `LogicArray` and literal syntaxes
The LogicArray literals include unsigned integers and strings.
```python
assert dut.handle.value == "X10Z"
assert dut.handle.value == 0b1001
```
----------
--------------------
</issues> | d211018226edcc344b86ea3fc5839097498731c6 |
deepset-ai__haystack-6916 | 6,916 | deepset-ai/haystack | null | c3a9dac1969f6af731892ab7194ee242c140fddb | 2024-02-05T13:46:05Z | diff --git a/haystack/core/component/__init__.py b/haystack/core/component/__init__.py
index 3a292edaf0..dea7614129 100644
--- a/haystack/core/component/__init__.py
+++ b/haystack/core/component/__init__.py
@@ -1,7 +1,7 @@
# SPDX-FileCopyrightText: 2022-present deepset GmbH <info@deepset.ai>
#
# SPDX-License-Identif... | diff --git a/haystack/testing/sample_components/repeat.py b/haystack/testing/sample_components/repeat.py
index 73e25097a0..a1f6287982 100644
--- a/haystack/testing/sample_components/repeat.py
+++ b/haystack/testing/sample_components/repeat.py
@@ -9,11 +9,11 @@
@component
class Repeat:
def __init__(self, outputs:... | [
{
"components": [
{
"doc": " This class is used to represent the inputs or outputs of a `Component`.\n Depending on the type passed to the constructor, it will represent either the inputs or the outputs of\n the `Component`.\n\n Usage:\n ```python\n from haystack.components.build... | [
"test/components/builders/test_dynamic_chat_prompt_builder.py::TestDynamicChatPromptBuilder::test_initialization",
"test/components/builders/test_dynamic_chat_prompt_builder.py::TestDynamicChatPromptBuilder::test_non_empty_chat_messages",
"test/components/builders/test_dynamic_chat_prompt_builder.py::TestDynami... | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
feat: Change Component's I/O dunder type
### Proposed Changes:
Change `__haystack_input__` and `__haystack_output__` type from `Dict` to dedicated `Sockets` class.
### How did you test it?
Ad... | f4d9c2bb917be0ffe132dffcc2ad4f1b0fcc5967 | ||
joke2k__faker-1986 | 1,986 | joke2k/faker | null | 24134d754fac1469b25c0fdbc399e9fd39fe0dbd | 2024-02-04T18:33:05Z | diff --git a/faker/providers/automotive/uk_UA/__init__.py b/faker/providers/automotive/uk_UA/__init__.py
new file mode 100644
index 0000000000..55544bd078
--- /dev/null
+++ b/faker/providers/automotive/uk_UA/__init__.py
@@ -0,0 +1,153 @@
+import random
+from typing import Optional
+
+from .. import Provider as Automoti... | diff --git a/tests/providers/test_automotive.py b/tests/providers/test_automotive.py
index ad193bc1f1..d74a3ecc60 100644
--- a/tests/providers/test_automotive.py
+++ b/tests/providers/test_automotive.py
@@ -9,6 +9,7 @@
from faker.providers.automotive.ru_RU import Provider as RuRuAutomotiveProvider
from faker.provider... | [
{
"components": [
{
"doc": "",
"lines": [
7,
153
],
"name": "Provider",
"signature": "class Provider(AutomotiveProvider):",
"type": "class"
},
{
"doc": "",
"lines": [
64,
73
],
... | [
"tests/providers/test_automotive.py::TestArBh::test_license_plate",
"tests/providers/test_automotive.py::TestArBh::test_vin",
"tests/providers/test_automotive.py::TestAzAz::test_license_plate",
"tests/providers/test_automotive.py::TestAzAz::test_vin",
"tests/providers/test_automotive.py::TestSkSk::test_lice... | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
feat(uk_UA-automotive) Add uk_UA automotive provider
### What does this change
Add Uk_UA Automotive provider
### What was wrong
This provider was absent in uk_UA locale
----------
</reque... | 6edfdbf6ae90b0153309e3bf066aa3b2d16494a7 | ||
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 | |
scikit-learn__scikit-learn-28351 | 28,351 | scikit-learn/scikit-learn | 1.5 | 8f96794b635985374bbd3cc99a9bc509104a5769 | 2024-02-02T10:23:31Z | diff --git a/doc/modules/model_evaluation.rst b/doc/modules/model_evaluation.rst
index 59f014b732e35..7caacd697ea1c 100644
--- a/doc/modules/model_evaluation.rst
+++ b/doc/modules/model_evaluation.rst
@@ -2826,6 +2826,51 @@ Here are some usage examples of the :func:`d2_absolute_error_score` function::
|details-end|
... | diff --git a/sklearn/metrics/tests/test_classification.py b/sklearn/metrics/tests/test_classification.py
index 144871c8d02ee..40b762bfa7308 100644
--- a/sklearn/metrics/tests/test_classification.py
+++ b/sklearn/metrics/tests/test_classification.py
@@ -35,7 +35,7 @@
recall_score,
zero_one_loss,
)
-from sklea... | diff --git a/doc/modules/model_evaluation.rst b/doc/modules/model_evaluation.rst
index 59f014b732e35..7caacd697ea1c 100644
--- a/doc/modules/model_evaluation.rst
+++ b/doc/modules/model_evaluation.rst
@@ -2826,6 +2826,51 @@ Here are some usage examples of the :func:`d2_absolute_error_score` function::
|details-end|
... | [
{
"components": [
{
"doc": ":math:`D^2` score function, fraction of log loss explained.\n\nBest possible score is 1.0 and it can be negative (because the model can be\narbitrarily worse). A model that always uses the empirical mean of `y_true` as\nconstant prediction, disregarding the input featur... | [
"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>
FEA Add d2_log_loss_score
<!--
Thanks for contributing a pull request! Please ensure you have taken a look at
the contribution guidelines: https://github.com/scikit-learn/scikit-learn/blob/main/CONT... | c799133710d518f5fba2958bb0e0765ee280df12 | |
conan-io__conan-15573 | 15,573 | conan-io/conan | null | 8aeba3ec6ad5a36c6f57c32d6ede59c2ecc68151 | 2024-01-31T19:05:06Z | diff --git a/conan/cli/commands/graph.py b/conan/cli/commands/graph.py
index 325f1f58643..b8fb4a36bda 100644
--- a/conan/cli/commands/graph.py
+++ b/conan/cli/commands/graph.py
@@ -63,6 +63,9 @@ def graph_build_order(conan_api, parser, subparser, *args):
common_graph_args(subparser)
subparser.add_argument("--... | diff --git a/conans/test/integration/command_v2/test_info_build_order.py b/conans/test/integration/command_v2/test_info_build_order.py
index 70d6dc97b5c..f7fdaff000a 100644
--- a/conans/test/integration/command_v2/test_info_build_order.py
+++ b/conans/test/integration/command_v2/test_info_build_order.py
@@ -2,6 +2,8 @@... | [
{
"components": [
{
"doc": "",
"lines": [
115,
119
],
"name": "_InstallRecipeReference.need_build",
"signature": "def need_build(self):",
"type": "function"
},
{
"doc": "",
"lines": [
223,
2... | [
"conans/test/integration/command_v2/test_info_build_order.py::test_info_build_order",
"conans/test/integration/command_v2/test_info_build_order.py::test_info_build_order_configuration",
"conans/test/integration/command_v2/test_info_build_order.py::TestBuildOrderReduce::test_build_order_reduce[recipe]",
"conan... | [
"conans/test/integration/command_v2/test_info_build_order.py::test_info_build_order_configuration_text_formatter",
"conans/test/integration/command_v2/test_info_build_order.py::test_info_build_order_build_require",
"conans/test/integration/command_v2/test_info_build_order.py::test_info_build_order_options",
"... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
InstallGraph.reduce
Changelog: Feature: Provide a new ``graph build-order --reduce`` argument to reduce the order exclusively to packages that need to be built from source.
Docs: https://github.com/c... | 4a5b19a75db9225316c8cb022a2dfb9705a2af34 | ||
RDFLib__rdflib-2699 | 2,699 | RDFLib/rdflib | null | ce7e41408dd29f907c8ed4e2bff91dc963f114ee | 2024-01-31T15:05:58Z | diff --git a/rdflib/extras/shacl.py b/rdflib/extras/shacl.py
new file mode 100644
index 000000000..6b62b3394
--- /dev/null
+++ b/rdflib/extras/shacl.py
@@ -0,0 +1,92 @@
+"""
+Utilities for interacting with SHACL Shapes Graphs more easily.
+"""
+from __future__ import annotations
+
+from typing import Optional, Union
+
... | diff --git a/test/test_extras/test_shacl_extras.py b/test/test_extras/test_shacl_extras.py
new file mode 100644
index 000000000..417e75b68
--- /dev/null
+++ b/test/test_extras/test_shacl_extras.py
@@ -0,0 +1,218 @@
+from __future__ import annotations
+
+from typing import Union
+
+import pytest
+
+from rdflib import Gr... | [
{
"components": [
{
"doc": "",
"lines": [
14,
15
],
"name": "SHACLPathError",
"signature": "class SHACLPathError(Exception):",
"type": "class"
},
{
"doc": "Parse a valid SHACL path (e.g. the object of a triple with pre... | [
"test/test_extras/test_shacl_extras.py::test_parse_shacl_path[http://example.org/TestPropShape1-http://example.org/pred1]",
"test/test_extras/test_shacl_extras.py::test_parse_shacl_path[http://example.org/TestPropShape2a-expected1]",
"test/test_extras/test_shacl_extras.py::test_parse_shacl_path[http://example.o... | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Add SHACL path to RDFLib Path utility and corresponding tests
<!--
Thank you for your contribution to this project. This project has no formal
funding or full-time maintainers, and relies entirely o... | 0c11debb5178157baeac27b735e49a757916d2a6 | ||
roboflow__supervision-818 | 818 | roboflow/supervision | null | c692d264ae0ea480feb3502a0acdfaa00cf8a6d2 | 2024-01-31T06:51:00Z | diff --git a/docs/detection/tools/save_detections.md b/docs/detection/tools/save_detections.md
new file mode 100644
index 000000000..bdd7c9dc6
--- /dev/null
+++ b/docs/detection/tools/save_detections.md
@@ -0,0 +1,12 @@
+---
+comments: true
+status: new
+---
+
+# Save Detections
+
+<div class="md-typeset">
+ <h2>CSV S... | diff --git a/test/detection/test_csv.py b/test/detection/test_csv.py
new file mode 100644
index 000000000..c34444944
--- /dev/null
+++ b/test/detection/test_csv.py
@@ -0,0 +1,415 @@
+import csv
+import os
+from test.test_utils import mock_detections
+from typing import Any, Dict, List
+
+import pytest
+
+import supervi... | diff --git a/docs/detection/tools/save_detections.md b/docs/detection/tools/save_detections.md
new file mode 100644
index 000000000..bdd7c9dc6
--- /dev/null
+++ b/docs/detection/tools/save_detections.md
@@ -0,0 +1,12 @@
+---
+comments: true
+status: new
+---
+
+# Save Detections
+
+<div class="md-typeset">
+ <h2>CSV S... | [
{
"components": [
{
"doc": "A utility class for saving detection data to a CSV file. This class is designed to\nefficiently serialize detection objects into a CSV format, allowing for the\ninclusion of bounding box coordinates and additional attributes like `confidence`,\n`class_id`, and `tracker_... | [
"test/detection/test_csv.py::test_csv_sink[detections0-custom_data0-second_detections0-second_custom_data0-test_detections.csv-expected_result0]",
"test/detection/test_csv.py::test_csv_sink[detections1-custom_data1-second_detections1-second_custom_data1-test_detections_missing_fields.csv-expected_result1]",
"te... | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
New function [CSVSink] - allowing to serialise Detections to a CSV file
## Description
This PR introduces the `CSVSink` class to address structured logging of object detection data into CSV format,... | 3eb5c0b024e3e46877b7fe4fd66e6177d1308ba0 | |
deepset-ai__haystack-6855 | 6,855 | deepset-ai/haystack | null | ceda4cd6557274b992566d59085be1730f5613f8 | 2024-01-30T13:56:33Z | diff --git a/haystack/utils/__init__.py b/haystack/utils/__init__.py
index e4cdb87d60..df42fc59c8 100644
--- a/haystack/utils/__init__.py
+++ b/haystack/utils/__init__.py
@@ -2,3 +2,4 @@
from haystack.utils.requests_utils import request_with_retry
from haystack.utils.filters import document_matches_filter
from hayst... | diff --git a/test/utils/test_auth.py b/test/utils/test_auth.py
new file mode 100644
index 0000000000..c9221aad9f
--- /dev/null
+++ b/test/utils/test_auth.py
@@ -0,0 +1,63 @@
+import os
+
+import pytest
+
+from haystack.utils.auth import Secret, EnvVarSecret, SecretType, TokenSecret
+
+
+def test_secret_type():
+ for... | diff --git a/releasenotes/notes/secret-handling-for-components-d576a28135a224db.yaml b/releasenotes/notes/secret-handling-for-components-d576a28135a224db.yaml
new file mode 100644
index 0000000000..31e2fa8b38
--- /dev/null
+++ b/releasenotes/notes/secret-handling-for-components-d576a28135a224db.yaml
@@ -0,0 +1,6 @@
+--... | [
{
"components": [
{
"doc": "",
"lines": [
8,
21
],
"name": "SecretType",
"signature": "class SecretType(Enum):",
"type": "class"
},
{
"doc": "",
"lines": [
12,
13
],
"name": ... | [
"test/utils/test_auth.py::test_secret_type",
"test/utils/test_auth.py::test_token_secret",
"test/utils/test_auth.py::test_env_var_secret"
] | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
feat: Implement `Secret` for structured authentication
### Related Issues
- Fixes https://github.com/deepset-ai/haystack/issues/6851
### Proposed Changes:
Expose a `Secret` type to provide co... | f4d9c2bb917be0ffe132dffcc2ad4f1b0fcc5967 | |
deepset-ai__haystack-6836 | 6,836 | deepset-ai/haystack | null | a771d7f01511bcfe05ebd19961ee319865a5f3af | 2024-01-26T16:58:54Z | diff --git a/docs/pydoc/config/retrievers_api.yml b/docs/pydoc/config/retrievers_api.yml
index f7bad19826..35b6e248ef 100644
--- a/docs/pydoc/config/retrievers_api.yml
+++ b/docs/pydoc/config/retrievers_api.yml
@@ -1,7 +1,12 @@
loaders:
- type: haystack_pydoc_tools.loaders.CustomPythonLoader
- search_path: [../.... | diff --git a/test/components/retrievers/test_filter_retriever.py b/test/components/retrievers/test_filter_retriever.py
new file mode 100644
index 0000000000..17765be29d
--- /dev/null
+++ b/test/components/retrievers/test_filter_retriever.py
@@ -0,0 +1,139 @@
+from typing import Dict, Any, List
+
+import pytest
+
+from ... | diff --git a/docs/pydoc/config/retrievers_api.yml b/docs/pydoc/config/retrievers_api.yml
index f7bad19826..35b6e248ef 100644
--- a/docs/pydoc/config/retrievers_api.yml
+++ b/docs/pydoc/config/retrievers_api.yml
@@ -1,7 +1,12 @@
loaders:
- type: haystack_pydoc_tools.loaders.CustomPythonLoader
- search_path: [../.... | [
{
"components": [
{
"doc": "Retrieves documents that match the provided filters.\n\nUsage example:\n```python\nfrom haystack import Document\nfrom haystack.components.retrievers import FilterRetriever\nfrom haystack.document_stores.in_memory import InMemoryDocumentStore\n\ndocs = [\n Document(c... | [
"test/components/retrievers/test_filter_retriever.py::TestFilterRetriever::test_init_default",
"test/components/retrievers/test_filter_retriever.py::TestFilterRetriever::test_init_with_parameters",
"test/components/retrievers/test_filter_retriever.py::TestFilterRetriever::test_to_dict",
"test/components/retri... | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Feat: Add FilterRetriever
### Proposed Changes:
Porting `FilterRetriever` from v1.
### How did you test it?
Unit tests
### Notes for the reviewer
Discussion notes for following points ... | f4d9c2bb917be0ffe132dffcc2ad4f1b0fcc5967 | |
statsmodels__statsmodels-9130 | 9,130 | statsmodels/statsmodels | null | a0eca865c65ef9336c6403f8ff4bc29a1d3ec26b | 2024-01-24T22:24:28Z | diff --git a/statsmodels/genmod/generalized_linear_model.py b/statsmodels/genmod/generalized_linear_model.py
index 4617ad4bc18..6cd29fd7691 100644
--- a/statsmodels/genmod/generalized_linear_model.py
+++ b/statsmodels/genmod/generalized_linear_model.py
@@ -41,6 +41,7 @@
cached_data,
cached_value,
)
+from sta... | diff --git a/statsmodels/genmod/tests/test_glm.py b/statsmodels/genmod/tests/test_glm.py
index fd169d36fd6..b3b6876a43d 100644
--- a/statsmodels/genmod/tests/test_glm.py
+++ b/statsmodels/genmod/tests/test_glm.py
@@ -2661,3 +2661,62 @@ def test_tweedie_score():
nhess = approx_hess_cs(pa, lambda x: model.lo... | [
{
"components": [
{
"doc": "Name of the offset variable if available. If offset is not a pd.Series,\ndefaults to 'offset'.",
"lines": [
1569,
1574
],
"name": "GLM.offset_name",
"signature": "def offset_name(self):",
"type": "function"
... | [
"statsmodels/genmod/tests/test_glm.py::test_names",
"statsmodels/genmod/tests/test_glm.py::test_names_default",
"statsmodels/tools/tests/test_data.py::test_as_array_with_name_series",
"statsmodels/tools/tests/test_data.py::test_as_array_with_name_array"
] | [
"statsmodels/genmod/tests/test_glm.py::TestGlmGaussian::test_params",
"statsmodels/genmod/tests/test_glm.py::TestGlmGaussian::test_standard_errors",
"statsmodels/genmod/tests/test_glm.py::TestGlmGaussian::test_residuals",
"statsmodels/genmod/tests/test_glm.py::TestGlmGaussian::test_aic_R",
"statsmodels/genm... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
ENH: GLM models now save the names of input Pandas Series
Offset, exposure, freq_weights and var_weights have the name of the series saved on the model object. They can be accessed via the class prope... | Here is the discussion in the issues of the pull request.
<issues>
Save the offset name in `GLM` and results wrapper
#### Is your feature request related to a problem? Please describe
Post model training, it is helpful to know which variable was used as the offset. This aids in post model analysis and deployment.
T... | 589f167fed77ebf6031d01ad3de1aa7b0040ced3 | |
google-deepmind__optax-721 | 721 | google-deepmind/optax | null | 437d79cacb115ee2ffcc6430b483a7d068b2b57e | 2024-01-19T10:05:11Z | diff --git a/optax/contrib/__init__.py b/optax/contrib/__init__.py
index b516463e2..f9ed5c47d 100644
--- a/optax/contrib/__init__.py
+++ b/optax/contrib/__init__.py
@@ -22,6 +22,8 @@
from optax.contrib._dadapt_adamw import DAdaptAdamWState
from optax.contrib._mechanic import MechanicState
from optax.contrib._mechani... | diff --git a/optax/contrib/_common_test.py b/optax/contrib/_common_test.py
index 01ac61c3c..4a11a5548 100644
--- a/optax/contrib/_common_test.py
+++ b/optax/contrib/_common_test.py
@@ -34,6 +34,8 @@
dict(opt_name='cocob', opt_kwargs=dict(alpha=100.0, eps=1e-8)),
dict(opt_name='dadapt_adamw', opt_kwargs=dict(l... | [
{
"components": [
{
"doc": "State of the `GradientTransformation` returned by `momo`.",
"lines": [
31,
37
],
"name": "MomoState",
"signature": "class MomoState(NamedTuple):",
"type": "class"
},
{
"doc": "Adaptive Learn... | [
"optax/contrib/_common_test.py::ContribTest::test_optimizers6",
"optax/contrib/_common_test.py::ContribTest::test_optimizers7",
"optax/contrib/_common_test.py::ContribTest::test_optimizers8",
"optax/contrib/_common_test.py::ContribTest::test_optimizers9",
"optax/contrib/_common_test.py::ContribTest::test_op... | [
"optax/contrib/_common_test.py::ContribTest::test_optimizers0",
"optax/contrib/_common_test.py::ContribTest::test_optimizers1",
"optax/contrib/_common_test.py::ContribTest::test_optimizers2",
"optax/contrib/_common_test.py::ContribTest::test_optimizers3",
"optax/contrib/_common_test.py::ContribTest::test_op... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Implementation of MoMo algorithm
Upon suggestion by @fabianp I implemented the MoMo algorithm. MoMo is esentially a Polyak step size for SGD with momentum and for Adam (see https://arxiv.org/abs/2305.... | 1e08bccf195ac54e7d9d766eb5e69345bf0e3230 | ||
sphinx-doc__sphinx-11891 | 11,891 | sphinx-doc/sphinx | 7.3 | 1785fc93520cc7595f740f3270f715d17a67c7df | 2024-01-18T02:03:03Z | diff --git a/sphinx/builders/html/__init__.py b/sphinx/builders/html/__init__.py
index 287bb79ce3c..be2bf09933a 100644
--- a/sphinx/builders/html/__init__.py
+++ b/sphinx/builders/html/__init__.py
@@ -884,7 +884,7 @@ def write_buildinfo(self) -> None:
def cleanup(self) -> None:
# clean up theme stuff
... | diff --git a/tests/test_theming/test_theming.py b/tests/test_theming/test_theming.py
index 0544c710c5f..4bfb48ffbd8 100644
--- a/tests/test_theming/test_theming.py
+++ b/tests/test_theming/test_theming.py
@@ -5,7 +5,8 @@
import pytest
import sphinx.builders.html
-from sphinx.theming import Theme, ThemeError
+from s... | [
{
"components": [
{
"doc": "Remove temporary directories.",
"lines": [
103,
107
],
"name": "Theme._cleanup",
"signature": "def _cleanup(self) -> None:",
"type": "function"
},
{
"doc": "Load built-in themes.",
"... | [
"tests/test_theming/test_theming.py::test_theme_api",
"tests/test_theming/test_theming.py::test_nonexistent_theme_conf",
"tests/test_theming/test_theming.py::test_double_inheriting_theme",
"tests/test_theming/test_theming.py::test_nested_zipped_theme",
"tests/test_theming/test_theming.py::test_staticfiles",... | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Load themes through iteration rather than recursion
To prepare for allowing TOML-based theme definitions.
----------
</request>
There are several new functions or classes that need to be implement... | aaecc9376d0662aeca5d3bd7c9d9fa36d6398478 | ||
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 | |
google-deepmind__optax-718 | 718 | google-deepmind/optax | null | 95af789cb7f1d0279f44e143e3207e2e7b4d70d1 | 2024-01-17T10:39:55Z | diff --git a/docs/api/optimizers.rst b/docs/api/optimizers.rst
index faf536084..5bc93b1f7 100644
--- a/docs/api/optimizers.rst
+++ b/docs/api/optimizers.rst
@@ -22,6 +22,7 @@ Optimizers
noisy_sgd
novograd
optimistic_gradient_descent
+ polyak_sgd
radam
rmsprop
sgd
@@ -101,6 +102,10 @@ Op... | diff --git a/optax/_src/alias_test.py b/optax/_src/alias_test.py
index f80d9b644..c55ca3c2f 100644
--- a/optax/_src/alias_test.py
+++ b/optax/_src/alias_test.py
@@ -60,6 +60,7 @@
dict(opt_name='rprop', opt_kwargs=dict(learning_rate=1e-1)),
dict(opt_name='sm3', opt_kwargs=dict(learning_rate=1.0)),
dict(op... | diff --git a/docs/api/optimizers.rst b/docs/api/optimizers.rst
index faf536084..5bc93b1f7 100644
--- a/docs/api/optimizers.rst
+++ b/docs/api/optimizers.rst
@@ -22,6 +22,7 @@ Optimizers
noisy_sgd
novograd
optimistic_gradient_descent
+ polyak_sgd
radam
rmsprop
sgd
@@ -101,6 +102,10 @@ Op... | [
{
"components": [
{
"doc": "SGD with Polyak step-size.\n\nThis solver implements the SGD with Polyak step size of (Loizou et al. 2021).\nIt sets the step-size as\n\n.. math::\n s \\min\\left\\{\\frac{f(x) - f^\\star}{\\|\\nabla f(x)\\|^2 + \\epsilon},\n \\gamma_{\\max}\\right\\}\\,,\n\nwhere :... | [
"optax/_src/alias_test.py::AliasTest::test_explicit_dtype_None",
"optax/_src/alias_test.py::AliasTest::test_explicit_dtype_bfloat16",
"optax/_src/alias_test.py::AliasTest::test_explicit_dtype_complex64",
"optax/_src/alias_test.py::AliasTest::test_explicit_dtype_float32",
"optax/_src/alias_test.py::AliasTest... | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Implementation of the Polyak SGD solver
Implementation of the Polyak SGD solver
Other changes done to accommodate this solver:
* In the tests, I exposed the objective function instead of just the gr... | 1e08bccf195ac54e7d9d766eb5e69345bf0e3230 | |
conan-io__conan-15453 | 15,453 | conan-io/conan | null | 98d68db7f3a7d6eec4dc463a24839af542fb70cc | 2024-01-14T16:46:58Z | diff --git a/conans/client/graph/compute_pid.py b/conans/client/graph/compute_pid.py
index 0948a03fe3a..a81497bb002 100644
--- a/conans/client/graph/compute_pid.py
+++ b/conans/client/graph/compute_pid.py
@@ -21,7 +21,7 @@ def compute_package_id(node, new_config):
python_requires = getattr(conanfile, "python_req... | diff --git a/conans/test/integration/package_id/package_id_modes_test.py b/conans/test/integration/package_id/package_id_modes_test.py
index 16b01a1284b..f8555058658 100644
--- a/conans/test/integration/package_id/package_id_modes_test.py
+++ b/conans/test/integration/package_id/package_id_modes_test.py
@@ -104,3 +104,... | [
{
"components": [
{
"doc": "",
"lines": [
34,
36
],
"name": "PyRequires.info_requires",
"signature": "def info_requires(self):",
"type": "function"
}
],
"file": "conans/client/graph/python_requires.py"
}
] | [
"conans/test/integration/package_id/package_id_modes_test.py::TestDepDefinedMode::test_dep_python_require_defined"
] | [
"conans/test/integration/package_id/package_id_modes_test.py::test_basic_default_modes_unknown",
"conans/test/integration/package_id/package_id_modes_test.py::test_basic_default_modes_application",
"conans/test/integration/package_id/package_id_modes_test.py::TestDepDefinedMode::test_dep_defined",
"conans/tes... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Feature/python id mode
Changelog: Feature: Recipe ``python_package_id_mode`` for ``python_requires`` recipes, to define per-recipe effect on consumers ``package_id``.
Docs: https://github.com/conan-i... | 4a5b19a75db9225316c8cb022a2dfb9705a2af34 | ||
Textualize__textual-4012 | 4,012 | Textualize/textual | null | 225fa24bdf9fba4e2352962d531d29820da3e761 | 2024-01-12T17:28:09Z | diff --git a/CHANGELOG.md b/CHANGELOG.md
index bc2657ad15..0da115172e 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -18,6 +18,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
- Added `DOMNode.has_pseudo_classes` https://github.com/Textualize/textual/pull/3970
- Added `Widget.allow_focus... | diff --git a/tests/snapshot_tests/snapshot_apps/nested_specificity.py b/tests/snapshot_tests/snapshot_apps/nested_specificity.py
index 0705abfabc..da67cc8dcd 100644
--- a/tests/snapshot_tests/snapshot_apps/nested_specificity.py
+++ b/tests/snapshot_tests/snapshot_apps/nested_specificity.py
@@ -31,14 +31,15 @@ class Nes... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index bc2657ad15..0da115172e 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -18,6 +18,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
- Added `DOMNode.has_pseudo_classes` https://github.com/Textualize/textual/pull/3970
- Added `Widget.allow_focus... | [
{
"components": [
{
"doc": "Focus the first matching node that permits focus.\n\nReturns:\n Query for chaining.",
"lines": [
434,
444
],
"name": "DOMQuery.focus",
"signature": "def focus(self) -> DOMQuery[QueryType]:",
"type": "functio... | [
"tests/test_query.py::test_query",
"tests/test_query.py::test_query_classes",
"tests/test_query.py::test_invalid_query",
"tests/test_signal.py::test_signal_errors",
"tests/test_signal.py::test_repr"
] | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Signal
This is mainly for a new Signal class, and also some fixes / new method
- Adds a Signal class, which will be part of a new "pub sub" system.
- Adds Query.blur and Query.focus
- Fixes rule ... | 86e93536b991014e0ea4bf993068202b446bb698 | |
joke2k__faker-1973 | 1,973 | joke2k/faker | null | 9371a08fe8f7cfe18296fbf363f33e3978898626 | 2024-01-12T13:09:40Z | diff --git a/faker/providers/bank/uk_UA/__init__.py b/faker/providers/bank/uk_UA/__init__.py
new file mode 100644
index 0000000000..3b53dd45f4
--- /dev/null
+++ b/faker/providers/bank/uk_UA/__init__.py
@@ -0,0 +1,11 @@
+from .. import Provider as BankProvider
+
+
+class Provider(BankProvider):
+ """Implement bank pr... | diff --git a/tests/providers/test_bank.py b/tests/providers/test_bank.py
index 3826b82eb3..fe37cb5a1c 100644
--- a/tests/providers/test_bank.py
+++ b/tests/providers/test_bank.py
@@ -22,6 +22,7 @@
from faker.providers.bank.pt_PT import Provider as PtPtBankProvider
from faker.providers.bank.th_TH import Provider as Th... | [
{
"components": [
{
"doc": "Implement bank provider for ``uk_UA`` locale.\nSource for rules for bban format:\nhttps://bank.gov.ua/en/iban",
"lines": [
4,
11
],
"name": "Provider",
"signature": "class Provider(BankProvider):",
"type": "cla... | [
"tests/providers/test_bank.py::TestAzAz::test_bban",
"tests/providers/test_bank.py::TestAzAz::test_iban",
"tests/providers/test_bank.py::TestAzAz::test_bank",
"tests/providers/test_bank.py::TestCsCz::test_bban",
"tests/providers/test_bank.py::TestCsCz::test_iban",
"tests/providers/test_bank.py::TestNoNo::... | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
add bank uk_UA
add provider.bank for uk_UA localization
----------
</request>
There are several new functions or classes that need to be implemented, using the definitions below:
<<NEW DEFINITIONS>... | 6edfdbf6ae90b0153309e3bf066aa3b2d16494a7 | ||
conan-io__conan-15447 | 15,447 | conan-io/conan | null | 98d68db7f3a7d6eec4dc463a24839af542fb70cc | 2024-01-12T09:21:41Z | diff --git a/conan/tools/cmake/presets.py b/conan/tools/cmake/presets.py
index 27792af73b9..c6fd71bd851 100644
--- a/conan/tools/cmake/presets.py
+++ b/conan/tools/cmake/presets.py
@@ -14,9 +14,11 @@
def write_cmake_presets(conanfile, toolchain_file, generator, cache_variables,
- user_preset... | diff --git a/conans/test/integration/toolchains/cmake/test_cmaketoolchain.py b/conans/test/integration/toolchains/cmake/test_cmaketoolchain.py
index 604aaf01d75..3940befd7c9 100644
--- a/conans/test/integration/toolchains/cmake/test_cmaketoolchain.py
+++ b/conans/test/integration/toolchains/cmake/test_cmaketoolchain.py... | [
{
"components": [
{
"doc": "",
"lines": [
187,
197
],
"name": "CMakeToolchain._find_cmake_exe",
"signature": "def _find_cmake_exe(self):",
"type": "function"
}
],
"file": "conan/tools/cmake/toolchain/toolchain.py"
}
] | [
"conans/test/integration/toolchains/cmake/test_cmaketoolchain.py::test_add_cmakeexe_to_presets"
] | [
"conans/test/integration/toolchains/cmake/test_cmaketoolchain.py::test_cross_build",
"conans/test/integration/toolchains/cmake/test_cmaketoolchain.py::test_cross_build_linux_to_macos",
"conans/test/integration/toolchains/cmake/test_cmaketoolchain.py::test_cross_build_user_toolchain",
"conans/test/integration/... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Consider adding cmakeExecutable to presets
Changelog: Feature: Add cmakeExecutable to configure preset.
Docs: https://github.com/conan-io/docs/pull/3548
Closes: https://github.com/conan-io/conan/i... | 4a5b19a75db9225316c8cb022a2dfb9705a2af34 | ||
huggingface__huggingface_hub-1967 | 1,967 | huggingface/huggingface_hub | null | 6b202f198a94609d4a907fd26c65307d275a2d3d | 2024-01-11T14:02:26Z | diff --git a/src/huggingface_hub/__init__.py b/src/huggingface_hub/__init__.py
index 3041e6110f..f4aac31a80 100644
--- a/src/huggingface_hub/__init__.py
+++ b/src/huggingface_hub/__init__.py
@@ -245,6 +245,7 @@
"HfFileSystem",
"HfFileSystemFile",
"HfFileSystemResolvedPath",
+ "HfFileSy... | diff --git a/tests/test_hf_file_system.py b/tests/test_hf_file_system.py
index 00e389a24b..02cf913515 100644
--- a/tests/test_hf_file_system.py
+++ b/tests/test_hf_file_system.py
@@ -1,4 +1,5 @@
import datetime
+import io
import unittest
from typing import Optional
from unittest.mock import patch
@@ -6,7 +7,7 @@
i... | [
{
"components": [
{
"doc": "",
"lines": [
657,
750
],
"name": "HfFileSystemStreamFile",
"signature": "class HfFileSystemStreamFile(fsspec.spec.AbstractBufferedFile):",
"type": "class"
},
{
"doc": "",
"lines": [... | [
"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 HfFileSystemStreamFile
This allows faster file streaming. This is useful for streaming WebDatasets for example
----------
</request>
There are several new functions or classes that need to be im... | 4058e1f97ebe256b2f3006d4bc31be275c66df6b | ||
joke2k__faker-1971 | 1,971 | joke2k/faker | null | 40ed6691b3c0feb230bbdfeb0a47f066f51e7a56 | 2024-01-10T07:38:34Z | diff --git a/faker/providers/currency/fa_IR/__init__.py b/faker/providers/currency/fa_IR/__init__.py
new file mode 100644
index 0000000000..747313be32
--- /dev/null
+++ b/faker/providers/currency/fa_IR/__init__.py
@@ -0,0 +1,8 @@
+from .. import Provider as CurrencyProvider
+
+
+class Provider(CurrencyProvider):
+ p... | diff --git a/tests/providers/test_currency.py b/tests/providers/test_currency.py
index 751117e7e0..862a508141 100644
--- a/tests/providers/test_currency.py
+++ b/tests/providers/test_currency.py
@@ -247,6 +247,23 @@ def test_pricetag(self, faker, num_samples):
assert isinstance(pricetag, str)
+class Te... | [
{
"components": [
{
"doc": "",
"lines": [
4,
8
],
"name": "Provider",
"signature": "class Provider(CurrencyProvider):",
"type": "class"
},
{
"doc": "",
"lines": [
7,
8
],
"na... | [
"tests/providers/test_currency.py::TestFaIr::test_pricetag"
] | [
"tests/providers/test_currency.py::TestCurrencyProvider::test_currency",
"tests/providers/test_currency.py::TestCurrencyProvider::test_currency_code",
"tests/providers/test_currency.py::TestCurrencyProvider::test_currency_name",
"tests/providers/test_currency.py::TestCurrencyProvider::test_currency_code_has_s... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Add fa_IR localization for currency provider
### Add ``fa_IR`` localization in ``currency`` provider
``IRR`` is Iran main currency and looks something like ``1,000,000,000 IRR``,
This PR will add ... | 6edfdbf6ae90b0153309e3bf066aa3b2d16494a7 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.