repo stringlengths 10 39 | pull_number int64 74 29.2k | url stringlengths 37 68 | instance_id stringlengths 14 45 | issue_numbers stringclasses 26
values | base_commit stringlengths 40 40 | patch stringlengths 525 15.9k | test_patch stringlengths 606 17.8k | created_at timestamp[s]date 2015-03-20 20:39:55 2025-01-02 13:53:18 | readmes stringclasses 2
values | files stringlengths 365 430k | non_py_patch stringlengths 0 7.21k | new_components stringlengths 142 6.63k | version stringclasses 37
values | FAIL_TO_PASS stringlengths 13 15.6k | PASS_TO_PASS stringlengths 2 65k | environment_setup_commit stringlengths 40 40 | problem_statement stringlengths 367 40.7k |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
EleutherAI/lm-evaluation-harness | 1,566 | https://github.com/EleutherAI/lm-evaluation-harness/pull/1566 | EleutherAI__lm-evaluation-harness-1566 | [] | 49695e8d94c3ab011b7ae8814d809de30b1b1182 | 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 ... | 2024-03-12T17:35:39 | {"README.md": "<p align=\"center\">\n <a href=\"https://gmago-leway.github.io/fea-bench.github.io/\">\n <img src=\"assets/FEA-Bench-full.png\" style=\"height: 10em\" alt=\"fea-bench\" />\n </a>\n</p>\n\n<p align=\"center\">\n <em>A benchmark that aims to evaluate the capability of implementing new features in the... | {"lm_eval/__main__.py": "import argparse\nimport json\nimport logging\nimport os\nimport re\nimport sys\nfrom functools import partial\nfrom pathlib import Path\nfrom typing import Union\n\nimport numpy as np\n\nfrom lm_eval import evaluator, utils\nfrom lm_eval.evaluator import request_caching_arg_to_dict\nfrom lm_eva... | {"lm_eval/__main__.py": [{"type": "function", "name": "check_argument_types", "lines": [56, 67], "signature": "def check_argument_types(parser: argparse.ArgumentParser):", "doc": "Check to make sure all CLI args are typed, raises error if not"}, {"type": "function", "name": "setup_parser", "lines": [70, 232], "signatur... | null | ["tests/test_cli.py::test_cli_parse_error", "tests/test_cli.py::test_cli_parse_no_error"] | [] | decc533d02222f3b866d9a89263277fe0cc2fcb2 | {"first_commit_time": 1710264318.0, "pr_title": "Proposed approach for testing CLI arg parsing", "pr_body": "See discussion here: https://github.com/EleutherAI/lm-evaluation-harness/issues/1518\r\n\r\nHere's an approach to start testing CLI argument parsing:\r\n\r\n1. Separate out setting up the argument parser in `par... | |
Project-MONAI/MONAI | 465 | https://github.com/Project-MONAI/MONAI/pull/465 | Project-MONAI__MONAI-465 | ["461"] | 718d11abb2310ab74321256032a264488a7883b4 | diff --git a/docs/source/data.rst b/docs/source/data.rst
index 73a6a698bc..d998605bf8 100644
--- a/docs/source/data.rst
+++ b/docs/source/data.rst
@@ -87,3 +87,7 @@ Utilities
.. automodule:: monai.data.utils
:members:
+
+Decathalon DataLoader
+~~~~~~~~~~~~~~~~~~~~~
+.. autofunction:: monai.data.load_decathalon_da... | diff --git a/tests/test_load_decathalon_datalist.py b/tests/test_load_decathalon_datalist.py
new file mode 100644
index 0000000000..4afe151482
--- /dev/null
+++ b/tests/test_load_decathalon_datalist.py
@@ -0,0 +1,104 @@
+# Copyright 2020 MONAI Consortium
+# Licensed under the Apache License, Version 2.0 (the "License")... | 2020-06-01T14:18:19 | {"README.md": "<p align=\"center\">\n <a href=\"https://gmago-leway.github.io/fea-bench.github.io/\">\n <img src=\"assets/FEA-Bench-full.png\" style=\"height: 10em\" alt=\"fea-bench\" />\n </a>\n</p>\n\n<p align=\"center\">\n <em>A benchmark that aims to evaluate the capability of implementing new features in the... | {"docs/source/data.rst": ":github_url: https://github.com/Project-MONAI/MONAI\n\n.. _data:\n\nData\n====\n\nGeneric Interfaces\n------------------\n.. currentmodule:: monai.data\n\n`Dataset`\n~~~~~~~~~\n.. autoclass:: Dataset\n :members:\n :special-members: __getitem__\n\n`PersistentDataset`\n~~~~~~~~~~~~~~~~~~~\n.. ... | diff --git a/docs/source/data.rst b/docs/source/data.rst
index 73a6a698bc..d998605bf8 100644
--- a/docs/source/data.rst
+++ b/docs/source/data.rst
@@ -87,3 +87,7 @@ Utilities
.. automodule:: monai.data.utils
:members:
+
+Decathalon DataLoader
+~~~~~~~~~~~~~~~~~~~~~
+.. autofunction:: monai.data.load_decathalon_da... | {"monai/data/decathalon_dataloader.py": [{"type": "function", "name": "_compute_path", "lines": [16, 25], "signature": "def _compute_path(base_dir, element):", "doc": ""}, {"type": "function", "name": "_append_paths", "lines": [28, 37], "signature": "def _append_paths(base_dir, is_segmentation, items):", "doc": ""}, {"... | null | ["tests/test_load_decathalon_datalist.py::TestLoadDecathalonDatalist::test_cls_values", "tests/test_load_decathalon_datalist.py::TestLoadDecathalonDatalist::test_seg_no_basedir", "tests/test_load_decathalon_datalist.py::TestLoadDecathalonDatalist::test_seg_no_labels", "tests/test_load_decathalon_datalist.py::TestLoadDe... | [] | e73257caa79309dcce1e93abf1632f4bfd75b11f | {"first_commit_time": 1591001255.0, "pr_title": "461 add support to load decathalon datalist", "pr_body": "Fixes #461 .\r\n\r\n### Description\r\nAs Decathalon challenge dataset is very rich and very popular in medical domain, many researchers and students use Decathalon dataset to learn medical DL skills, and we also ... |
PyThaiNLP/pythainlp | 1,054 | https://github.com/PyThaiNLP/pythainlp/pull/1054 | PyThaiNLP__pythainlp-1054 | [] | 2252dee57bd7be9503242fa734bf0abc48c5ddf1 | diff --git a/docs/api/lm.rst b/docs/api/lm.rst
index 471282fd3..063aecb2d 100644
--- a/docs/api/lm.rst
+++ b/docs/api/lm.rst
@@ -6,4 +6,5 @@ pythainlp.lm
Modules
-------
+.. autofunction:: calculate_ngram_counts
.. autofunction:: remove_repeated_ngrams
\ No newline at end of file
diff --git a/pythainlp/lm/__init__... | diff --git a/tests/core/test_lm.py b/tests/core/test_lm.py
index 5d25cc124..9da213d31 100644
--- a/tests/core/test_lm.py
+++ b/tests/core/test_lm.py
@@ -5,10 +5,23 @@
import unittest
-from pythainlp.lm import remove_repeated_ngrams
+from pythainlp.lm import calculate_ngram_counts, remove_repeated_ngrams
class... | 2025-01-02T13:53:18 | {"README.md": "<p align=\"center\">\n <a href=\"https://gmago-leway.github.io/fea-bench.github.io/\">\n <img src=\"assets/FEA-Bench-full.png\" style=\"height: 10em\" alt=\"fea-bench\" />\n </a>\n</p>\n\n<p align=\"center\">\n <em>A benchmark that aims to evaluate the capability of implementing new features in the... | {"docs/api/lm.rst": ".. currentmodule:: pythainlp.lm\n\npythainlp.lm\n============\n\nModules\n-------\n\n.. autofunction:: remove_repeated_ngrams", "pythainlp/lm/__init__.py": "# -*- coding: utf-8 -*-\n# SPDX-FileCopyrightText: 2016-2025 PyThaiNLP Project\n# SPDX-FileType: SOURCE\n# SPDX-License-Identifier: Apache-2.0... | diff --git a/docs/api/lm.rst b/docs/api/lm.rst
index 471282fd3..063aecb2d 100644
--- a/docs/api/lm.rst
+++ b/docs/api/lm.rst
@@ -6,4 +6,5 @@ pythainlp.lm
Modules
-------
+.. autofunction:: calculate_ngram_counts
.. autofunction:: remove_repeated_ngrams
\ No newline at end of file
| {"pythainlp/lm/text_util.py": [{"type": "function", "name": "calculate_ngram_counts", "lines": [10, 32], "signature": "def calculate_ngram_counts( list_words: List[str], n_min: int = 2, n_max: int = 4) -> Dict[Tuple[str], int]:", "doc": "Calculates the counts of n-grams in the list words for the specified range.\n\n:pa... | null | ["tests/core/test_lm.py::LMTestCase::test_calculate_ngram_counts", "tests/core/test_lm.py::LMTestCase::test_remove_repeated_ngrams"] | [] | 2252dee57bd7be9503242fa734bf0abc48c5ddf1 | {"first_commit_time": 1735825940.0, "pr_title": "Add pythainlp.lm.calculate_ngram_counts", "pr_body": "Calculates the counts of n-grams in the list words for the specified range.\r\n\r\n```\r\n>>> from pythainlp.lm import calculate_ngram_counts\r\n>>> a=[\"1\",\"2\",\"3\",\"4\"]\r\n>>> calculate_ngram_counts(a)\r\n{('1... |
RDFLib/rdflib | 1,968 | https://github.com/RDFLib/rdflib/pull/1968 | RDFLib__rdflib-1968 | [] | 131d9e66e8515aa81d776969d42f58c72bc68f86 | diff --git a/CHANGELOG.md b/CHANGELOG.md
index a43d51694..27c9fc414 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -21,6 +21,23 @@ CHANGE BARRIER is intended to reduce the potential for merge conflicts
and will be removed for release.
-->
+
+<!-- -->
+<!-- -->
+<!-- CHANGE BARRIER: START -->
+<!-- -->
+<!-- -->
+
... | diff --git a/test/test_tools/test_chunk_serializer.py b/test/test_tools/test_chunk_serializer.py
new file mode 100644
index 000000000..4f582b192
--- /dev/null
+++ b/test/test_tools/test_chunk_serializer.py
@@ -0,0 +1,173 @@
+from __future__ import annotations
+
+import logging
+import os
+from contextlib import ExitSta... | 2022-05-22T12:06:12 | {"README.md": "<p align=\"center\">\n <a href=\"https://gmago-leway.github.io/fea-bench.github.io/\">\n <img src=\"assets/FEA-Bench-full.png\" style=\"height: 10em\" alt=\"fea-bench\" />\n </a>\n</p>\n\n<p align=\"center\">\n <em>A benchmark that aims to evaluate the capability of implementing new features in the... | {"CHANGELOG.md": "# 2022-10-16 RELEASE MAJOR.MINOR.PATCH\n\n## User facing changes\n\nThis section lists changes that have a potential impact on users of RDFLib,\nchanges with no user impact are not included in this section.\n\n<!--\nPlease add an entry for user facing changes in this section.\n\nNew changes should go ... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index a43d51694..27c9fc414 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -21,6 +21,23 @@ CHANGE BARRIER is intended to reduce the potential for merge conflicts
and will be removed for release.
-->
+
+<!-- -->
+<!-- -->
+<!-- CHANGE BARRIER: START -->
+<!-- -->
+<!-- -->
+
... | {"rdflib/tools/chunk_serializer.py": [{"type": "function", "name": "serialize_in_chunks", "lines": [24, 132], "signature": "def serialize_in_chunks( g: Graph, max_triples: int = 10000, max_file_size_kb: Optional[int] = None, file_name_stem: str = \"chunk\", output_dir: Optional[Path] = None, write_prefixes: bool = Fals... | null | ["test/test_tools/test_chunk_serializer.py::test_chunk_by_triples", "test/test_tools/test_chunk_serializer.py::test_chunk_by_size", "test/test_tools/test_chunk_serializer.py::test_chuking[test_graph_path0-max_triples0-max_file_size_kb0-False-True-1]", "test/test_tools/test_chunk_serializer.py::test_chuking[test_graph_p... | [] | 0c11debb5178157baeac27b735e49a757916d2a6 | {"first_commit_time": 1653220003.0, "pr_title": "add chunk serializer & tests", "pr_body": "# Summary of changes\r\n\r\nThis file provides a single function `serialize_in_chunks()` which can serialize a \r\nGraph into a number of NT files with a maximum number of triples or maximum file size.\r\n\r\nThere is an option ... |
RDFLib/rdflib | 968 | https://github.com/RDFLib/rdflib/pull/968 | RDFLib__rdflib-968 | [] | 0e5efef78702575e4abff4d8076eac4e2bd9d5f0 | diff --git a/rdflib/graph.py b/rdflib/graph.py
index 4a27e6de7..f68300cb1 100644
--- a/rdflib/graph.py
+++ b/rdflib/graph.py
@@ -1269,6 +1269,55 @@ def do_de_skolemize2(t):
return retval
+ def cbd(self, resource):
+ """Retrieves the Concise Bounded Description of a Resource from a Graph
+
+ ... | diff --git a/test/test_graph_cbd.py b/test/test_graph_cbd.py
new file mode 100644
index 000000000..aedc9dd07
--- /dev/null
+++ b/test/test_graph_cbd.py
@@ -0,0 +1,124 @@
+import unittest
+from rdflib import Graph, Namespace
+
+
+class CbdTestCase(unittest.TestCase):
+ """Tests the Graph class' cbd() function"""
+
+ ... | 2020-03-13T11:56:00 | {"README.md": "<p align=\"center\">\n <a href=\"https://gmago-leway.github.io/fea-bench.github.io/\">\n <img src=\"assets/FEA-Bench-full.png\" style=\"height: 10em\" alt=\"fea-bench\" />\n </a>\n</p>\n\n<p align=\"center\">\n <em>A benchmark that aims to evaluate the capability of implementing new features in the... | {"rdflib/graph.py": "from __future__ import absolute_import\nfrom __future__ import division\nfrom __future__ import print_function\n\nfrom rdflib.term import Literal # required for doctests\nassert Literal # avoid warning\nfrom rdflib.namespace import Namespace # required for doctests\nassert Namespace # avoid warni... | {"rdflib/graph.py": [{"type": "function", "name": "Graph.cbd", "lines": [1272, 1319], "signature": "def cbd(self, resource):", "doc": "Retrieves the Concise Bounded Description of a Resource from a Graph\n\nConcise Bounded Description (CBD) is defined in [1] as:\n\nGiven a particular node (the starting node) in a parti... | null | ["test/test_graph_cbd.py::CbdTestCase::testCbd", "test/test_graph_cbd.py::CbdTestCase::testCbdReified"] | [] | 0c11debb5178157baeac27b735e49a757916d2a6 | {"first_commit_time": 1584098175.0, "pr_title": "Concise Bounded Description", "pr_body": "This PR implements a Graph() function cbd() for 'Concise Bounded Description'. It extracts a subgraph from a source graph as per the rules in the W3C member submission [1].\r\n\r\nThis PR includes documentation for the method, te... | |
Textualize/rich | 1,706 | https://github.com/Textualize/rich/pull/1706 | Textualize__rich-1706 | [] | 008854c40772f647dfcb873bc3489e8a1c02d598 | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 77dd5a0a9b..2b1dc69d04 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -24,6 +24,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Allowed `__rich__` to work recursively
- Allowed Text classes to work with sep in print https://githu... | diff --git a/tests/test_text.py b/tests/test_text.py
index 3727d1602c..6eecb9ee73 100644
--- a/tests/test_text.py
+++ b/tests/test_text.py
@@ -95,6 +95,15 @@ def test_from_markup():
assert text._spans == [Span(7, 13, "bold")]
+def test_from_ansi():
+ text = Text.from_ansi("Hello, \033[1mWorld!\033[0m")
+ ... | 2021-11-17T21:21:55 | {"README.md": "<p align=\"center\">\n <a href=\"https://gmago-leway.github.io/fea-bench.github.io/\">\n <img src=\"assets/FEA-Bench-full.png\" style=\"height: 10em\" alt=\"fea-bench\" />\n </a>\n</p>\n\n<p align=\"center\">\n <em>A benchmark that aims to evaluate the capability of implementing new features in the... | {"CHANGELOG.md": "# Changelog\n\nAll notable changes to this project will be documented in this file.\n\nThe format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),\nand this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).\n\n## [10.14.0] - 2021-11-16\n\n### Fixed\n\n... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 77dd5a0a9b..2b1dc69d04 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -24,6 +24,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Allowed `__rich__` to work recursively
- Allowed Text classes to work with sep in print https://githu... | {"rich/text.py": [{"type": "function", "name": "Text.from_ansi", "lines": [246, 277], "signature": "def from_ansi( cls, text: str, *, style: Union[str, Style] = \"\", justify: Optional[\"JustifyMethod\"] = None, overflow: Optional[\"OverflowMethod\"] = None, no_wrap: Optional[bool] = None, end: str = \"\\n\", tab_size:... | null | ["tests/test_text.py::test_from_ansi"] | ["tests/test_text.py::test_span", "tests/test_text.py::test_span_split", "tests/test_text.py::test_span_move", "tests/test_text.py::test_span_right_crop", "tests/test_text.py::test_len", "tests/test_text.py::test_cell_len", "tests/test_text.py::test_bool", "tests/test_text.py::test_str", "tests/test_text.py::test_repr"... | b0661de34bab35af9b4b1d3ba8e28b186b225e84 | {"first_commit_time": 1636564203.0, "pr_title": "Add a Text.from_ansi helper method", "pr_body": "Add a simple little helper to run `AnsiDecoder.decode_line` over \"pre-cooked\" inputs.\r\n\r\nFixes issue: #1670\r\n\r\n## Type of changes\r\n\r\n- [x] Bug fix\r\n- [x] New feature\r\n- [x] Documentation / docstrings\r\n-... |
Textualize/rich | 1,894 | https://github.com/Textualize/rich/pull/1894 | Textualize__rich-1894 | [] | 633faab16dc3a8c01a6562648cc2186c19a476e3 | diff --git a/rich/progress.py b/rich/progress.py
index 1f670db438..fe35b6c175 100644
--- a/rich/progress.py
+++ b/rich/progress.py
@@ -588,12 +588,7 @@ def __init__(
refresh_per_second is None or refresh_per_second > 0
), "refresh_per_second must be > 0"
self._lock = RLock()
- self... | diff --git a/tests/test_progress.py b/tests/test_progress.py
index 2020f91ffb..20b9d32ed4 100644
--- a/tests/test_progress.py
+++ b/tests/test_progress.py
@@ -334,6 +334,32 @@ def test_columns() -> None:
assert result == expected
+def test_using_default_columns() -> None:
+ # can only check types, as the in... | 2022-01-31T14:32:01 | {"README.md": "<p align=\"center\">\n <a href=\"https://gmago-leway.github.io/fea-bench.github.io/\">\n <img src=\"assets/FEA-Bench-full.png\" style=\"height: 10em\" alt=\"fea-bench\" />\n </a>\n</p>\n\n<p align=\"center\">\n <em>A benchmark that aims to evaluate the capability of implementing new features in the... | {"rich/progress.py": "from abc import ABC, abstractmethod\nfrom collections import deque\nfrom collections.abc import Sized\nfrom dataclasses import dataclass, field\nfrom datetime import timedelta\nfrom math import ceil\nfrom threading import Event, RLock, Thread\nfrom types import TracebackType\nfrom typing import (\... | {"rich/progress.py": [{"type": "function", "name": "Progress.get_default_columns", "lines": [612, 639], "signature": "def get_default_columns(cls) -> Tuple[ProgressColumn, ...]:", "doc": "Get the default columns used for a new Progress instance:\n - a text column for the description (TextColumn)\n - the bar itself ... | null | ["tests/test_progress.py::test_using_default_columns"] | ["tests/test_progress.py::test_bar_columns", "tests/test_progress.py::test_text_column", "tests/test_progress.py::test_time_elapsed_column", "tests/test_progress.py::test_time_remaining_column", "tests/test_progress.py::test_renderable_column", "tests/test_progress.py::test_spinner_column", "tests/test_progress.py::tes... | b0661de34bab35af9b4b1d3ba8e28b186b225e84 | {"first_commit_time": 1643639341.0, "pr_title": "Add default_columns classmethod to Progress class", "pr_body": "## Type of changes\r\n\r\n- [ ] Bug fix\r\n- [x] New feature\r\n- [ ] Documentation / docstrings\r\n- [ ] Tests\r\n- [ ] Other\r\n\r\n## Checklist\r\n\r\n- [x] I've run the latest [black](https://github.com/... | |
Textualize/rich | 376 | https://github.com/Textualize/rich/pull/376 | Textualize__rich-376 | [] | a83ee864e67d97be926894c7b5d3cf470194d6c1 | diff --git a/CHANGELOG.md b/CHANGELOG.md
index f813ffeb0a..132fafbbc2 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -18,6 +18,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Addded box.SQUARE_DOUBLE_HEAD
- Added highlighting of EUI-48 and EUI-64 (MAC addresses)
- Added Conso... | diff --git a/tests/test_console.py b/tests/test_console.py
index eca300095a..8dbe06933a 100644
--- a/tests/test_console.py
+++ b/tests/test_console.py
@@ -370,3 +370,10 @@ def mock_pager(content: str) -> None:
console.print("[bold link https:/example.org]Hello World")
assert pager_content == "Hello Worl... | 2020-10-11T16:35:48 | {"README.md": "<p align=\"center\">\n <a href=\"https://gmago-leway.github.io/fea-bench.github.io/\">\n <img src=\"assets/FEA-Bench-full.png\" style=\"height: 10em\" alt=\"fea-bench\" />\n </a>\n</p>\n\n<p align=\"center\">\n <em>A benchmark that aims to evaluate the capability of implementing new features in the... | {"CHANGELOG.md": "# Changelog\n\nAll notable changes to this project will be documented in this file.\n\nThe format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),\nand this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).\n\n## [9.0.0] - unreleased\n\n### Fixed\n\n- ... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index f813ffeb0a..132fafbbc2 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -18,6 +18,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Addded box.SQUARE_DOUBLE_HEAD
- Added highlighting of EUI-48 and EUI-64 (MAC addresses)
- Added Conso... | {"rich/console.py": [{"type": "function", "name": "Console.out", "lines": [1015, 1043], "signature": "def out( self, *objects: Any, sep=\" \", end=\"\\n\", style: Union[str, Style] = None, highlight: bool = True, ) -> None:", "doc": "Output to the terminal. This is a low-level way of writing to the terminal which unlik... | null | ["tests/test_console.py::test_out"] | ["tests/test_console.py::test_dumb_terminal", "tests/test_console.py::test_16color_terminal", "tests/test_console.py::test_truecolor_terminal", "tests/test_console.py::test_console_options_update", "tests/test_console.py::test_init", "tests/test_console.py::test_size", "tests/test_console.py::test_repr", "tests/test_co... | b0661de34bab35af9b4b1d3ba8e28b186b225e84 | {"first_commit_time": 1602433996.0, "pr_title": "console out", "pr_body": "Adds a Console.out method which is like a low-level print does simple styling only.\r\n\r\n## Type of changes\r\n\r\n- [ ] Bug fix\r\n- [x] New feature\r\n- [x] Documentation / docstrings\r\n- [ ] Tests\r\n- [ ] Other\r\n\r\n## Checklist\r\n\r\n... |
Textualize/rich | 901 | https://github.com/Textualize/rich/pull/901 | Textualize__rich-901 | [] | a9c0f917aed8d0bba232b7584742962f03a9a293 | diff --git a/CHANGELOG.md b/CHANGELOG.md
index d8378b729a..acb53b1308 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added
- Added rich.tree
+- Added no_color argument to Console
## [9.6.2] - 2021-01-07
diff --... | diff --git a/tests/test_console.py b/tests/test_console.py
index b82c765911..82bc5b48d4 100644
--- a/tests/test_console.py
+++ b/tests/test_console.py
@@ -467,3 +467,14 @@ def test_console_style() -> None:
expected = "\x1b[31mfoo\x1b[0m\n"
result = console.file.getvalue()
assert result == expected
+
+
+d... | 2021-01-09T16:12:28 | {"README.md": "<p align=\"center\">\n <a href=\"https://gmago-leway.github.io/fea-bench.github.io/\">\n <img src=\"assets/FEA-Bench-full.png\" style=\"height: 10em\" alt=\"fea-bench\" />\n </a>\n</p>\n\n<p align=\"center\">\n <em>A benchmark that aims to evaluate the capability of implementing new features in the... | {"CHANGELOG.md": "# Changelog\n\nAll notable changes to this project will be documented in this file.\n\nThe format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),\nand this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).\n\n## [9.7.0] - Unreleased\n\n### Added\n\n- ... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index d8378b729a..acb53b1308 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added
- Added rich.tree
+- Added no_color argument to Console
## [9.6.2] - 2021-01-07
| {"rich/segment.py": [{"type": "function", "name": "Segment.remove_color", "lines": [344, 363], "signature": "def remove_color(cls, segments: Iterable[\"Segment\"]) -> Iterable[\"Segment\"]:", "doc": "Remove all color from an iterable of segments.\n\nArgs:\n segments (Iterable[Segment]): An iterable segments.\n\nYiel... | null | ["tests/test_console.py::test_no_color", "tests/test_segment.py::test_remove_color", "tests/test_style.py::test_without_color"] | ["tests/test_console.py::test_dumb_terminal", "tests/test_console.py::test_soft_wrap", "tests/test_console.py::test_16color_terminal", "tests/test_console.py::test_truecolor_terminal", "tests/test_console.py::test_console_options_update", "tests/test_console.py::test_init", "tests/test_console.py::test_size", "tests/te... | b0661de34bab35af9b4b1d3ba8e28b186b225e84 | {"first_commit_time": 1610208516.0, "pr_title": "No color", "pr_body": "Fixes https://github.com/willmcgugan/rich/issues/882\r\n\r\nAdds a no_color mode which strips color before render.\r\n\r\n## Type of changes\r\n\r\n- [ ] Bug fix\r\n- [ ] New feature\r\n- [ ] Documentation / docstrings\r\n- [ ] Tests\r\n- [ ] Other... |
Textualize/textual | 1,517 | https://github.com/Textualize/textual/pull/1517 | Textualize__textual-1517 | [] | 779b10a0e8b8581fab512eb684a06eb90381705d | diff --git a/src/textual/app.py b/src/textual/app.py
index b207bbd025..89da6aaf60 100644
--- a/src/textual/app.py
+++ b/src/textual/app.py
@@ -1,6 +1,8 @@
from __future__ import annotations
import asyncio
+from concurrent.futures import Future
+from functools import partial
import inspect
import io
import os
@@ ... | diff --git a/tests/test_concurrency.py b/tests/test_concurrency.py
new file mode 100644
index 0000000000..c73418f2f2
--- /dev/null
+++ b/tests/test_concurrency.py
@@ -0,0 +1,53 @@
+import pytest
+
+from threading import Thread
+from textual.app import App, ComposeResult
+from textual.widgets import TextLog
+
+
+def tes... | 2023-01-07T14:10:40 | {"README.md": "<p align=\"center\">\n <a href=\"https://gmago-leway.github.io/fea-bench.github.io/\">\n <img src=\"assets/FEA-Bench-full.png\" style=\"height: 10em\" alt=\"fea-bench\" />\n </a>\n</p>\n\n<p align=\"center\">\n <em>A benchmark that aims to evaluate the capability of implementing new features in the... | {"src/textual/app.py": "from __future__ import annotations\n\nimport asyncio\nimport inspect\nimport io\nimport os\nimport platform\nimport sys\nimport threading\nimport unicodedata\nimport warnings\nfrom asyncio import Task\nfrom contextlib import asynccontextmanager, redirect_stderr, redirect_stdout\nfrom datetime im... | {"src/textual/app.py": [{"type": "function", "name": "App.call_from_thread", "lines": [614, 657], "signature": "def call_from_thread( self, callback: Callable[..., CallThreadReturnType | Awaitable[CallThreadReturnType]], *args, **kwargs, ) -> CallThreadReturnType:", "doc": "Run a callback from another thread.\n\nLike a... | null | ["tests/test_concurrency.py::test_call_from_thread_app_not_running", "tests/test_concurrency.py::test_call_from_thread"] | [] | 86e93536b991014e0ea4bf993068202b446bb698 | {"first_commit_time": 1673100292.0, "pr_title": "Call from thread method", "pr_body": "This is a step towards having an answer to devs who want to integrate a third-party API with Textual.\r\n\r\nThe `call_from_thread` takes a callback that will be called in the app's loop from a thread. It will block until the callbac... | |
astronomer/astronomer-cosmos | 758 | https://github.com/astronomer/astronomer-cosmos/pull/758 | astronomer__astronomer-cosmos-758 | [] | 9fcee8e785ea3bcb0d19e8d36f3f5b94bedafc98 | diff --git a/cosmos/profiles/athena/access_key.py b/cosmos/profiles/athena/access_key.py
index a8f71c2b7..02de2be24 100644
--- a/cosmos/profiles/athena/access_key.py
+++ b/cosmos/profiles/athena/access_key.py
@@ -3,20 +3,33 @@
from typing import Any
+from cosmos.exceptions import CosmosValueError
+
from ..base im... | diff --git a/tests/profiles/athena/test_athena_access_key.py b/tests/profiles/athena/test_athena_access_key.py
index 22c8efa2c..c224a9d4b 100644
--- a/tests/profiles/athena/test_athena_access_key.py
+++ b/tests/profiles/athena/test_athena_access_key.py
@@ -1,20 +1,49 @@
"Tests for the Athena profile."
import json
-... | 2023-12-11T01:54:27 | {} | {"cosmos/profiles/athena/access_key.py": "\"Maps Airflow AWS connections to a dbt Athena profile using an access key id and secret access key.\"\nfrom __future__ import annotations\n\nfrom typing import Any\n\nfrom ..base import BaseProfileMapping\n\n\nclass AthenaAccessKeyProfileMapping(BaseProfileMapping):\n \"\"\... | diff --git a/pyproject.toml b/pyproject.toml
index c08de4ade..9d367c075 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -57,6 +57,7 @@ dbt-all = [
]
dbt-athena = [
"dbt-athena-community",
+ "apache-airflow-providers-amazon>=8.0.0",
]
dbt-bigquery = [
"dbt-bigquery",
@@ -110,7 +111,6 @@ tests = [
... | {"cosmos/profiles/athena/access_key.py": [{"type": "function", "name": "AthenaAccessKeyProfileMapping.env_vars", "lines": [75, 89], "signature": "def env_vars(self) -> dict[str, str]:", "doc": "Overwrites the env_vars for athena, Returns a dictionary of environment variables that should be set based on the self.tempora... | null | ["tests/profiles/athena/test_athena_access_key.py::test_athena_connection_claiming", "tests/profiles/athena/test_athena_access_key.py::test_athena_profile_args", "tests/profiles/athena/test_athena_access_key.py::test_athena_profile_args_overrides", "tests/profiles/athena/test_athena_access_key.py::test_athena_profile_e... | ["tests/profiles/athena/test_athena_access_key.py::test_athena_profile_mapping_selected"] | c5edba07d2265d5185eaba149a639e8a0740e498 | {"first_commit_time": 1702073118.0, "pr_title": "Athena - Get temporary credentials from the conn_id", "pr_body": "## Description\r\n\r\n<!-- Add a brief but complete description of the change. -->\r\n\r\nPasses the `conn_id` to the `AwsGenericHook` and uses `get_credentials()`, which handles the creation of a session,... |
astropy/astropy | 13,094 | https://github.com/astropy/astropy/pull/13094 | astropy__astropy-13094 | [] | 583464d40b32313da6b864d2f260c06d1a0e67e6 | diff --git a/astropy/wcs/wcs.py b/astropy/wcs/wcs.py
index 6d508279375d..3903ad49cc1c 100644
--- a/astropy/wcs/wcs.py
+++ b/astropy/wcs/wcs.py
@@ -3226,6 +3226,21 @@ def has_spectral(self):
except InconsistentAxisTypesError:
return False
+ @property
+ def temporal(self):
+ """
+ ... | diff --git a/astropy/wcs/tests/test_wcs.py b/astropy/wcs/tests/test_wcs.py
index f51b50906e80..9aca3b34b1de 100644
--- a/astropy/wcs/tests/test_wcs.py
+++ b/astropy/wcs/tests/test_wcs.py
@@ -1534,10 +1534,24 @@ def test_pixlist_wcs_colsel():
_WCSLIB_VER < Version('7.8'),
reason="TIME axis extraction only work... | 2022-04-10T18:52:18 | {} | {"astropy/wcs/wcs.py": "# Licensed under a 3-clause BSD style license - see LICENSE.rst\n\n# Under the hood, there are 3 separate classes that perform different\n# parts of the transformation:\n#\n# - `~astropy.wcs.Wcsprm`: Is a direct wrapper of the core WCS\n# functionality in `wcslib`_. (This includes TPV a... | diff --git a/docs/changes/wcs/13094.feature.rst b/docs/changes/wcs/13094.feature.rst
new file mode 100644
index 000000000000..e6b718e0a4e0
--- /dev/null
+++ b/docs/changes/wcs/13094.feature.rst
@@ -0,0 +1,2 @@
+Add ``temporal`` properties for convenient access of/selection of/testing for
+the ``TIME`` axis introduced i... | {"astropy/wcs/wcs.py": [{"type": "function", "name": "WCS.temporal", "lines": [3230, 3234], "signature": "def temporal(self):", "doc": "A copy of the current WCS with only the time axes included"}, {"type": "function", "name": "WCS.is_temporal", "lines": [3237, 3238], "signature": "def is_temporal(self):", "doc": ""}, ... | 5.0 | ["astropy/wcs/tests/test_wcs.py::test_temporal"] | ["astropy/wcs/tests/test_wcs.py::test_fixes", "astropy/wcs/tests/test_wcs.py::test_outside_sky", "astropy/wcs/tests/test_wcs.py::test_pix2world", "astropy/wcs/tests/test_wcs.py::test_load_fits_path", "astropy/wcs/tests/test_wcs.py::test_dict_init", "astropy/wcs/tests/test_wcs.py::test_extra_kwarg", "astropy/wcs/tests/t... | 7cbba866a8c5749b90a5cb4f9877ddfad2d36037 | {"first_commit_time": 1649160155.0, "pr_title": "Add wcs temporal properties", "pr_body": "### Description\r\nThis PR add \"temporal\" properties to access 'TIME' axis in the WCS. This is the second part of the original PR - https://github.com/astropy/astropy/pull/13062\r\n\r\n### Checklist for package maintainer(s)\r\... |
astropy/astropy | 13,508 | https://github.com/astropy/astropy/pull/13508 | astropy__astropy-13508 | ["13507"] | 093e96735f6bc4dd87f154c54b6c42667489b602 | diff --git a/astropy/time/core.py b/astropy/time/core.py
index 3716665aadde..50be00fcfb2a 100644
--- a/astropy/time/core.py
+++ b/astropy/time/core.py
@@ -1356,6 +1356,82 @@ def sort(self, axis=-1):
return self[self._advanced_index(self.argsort(axis), axis,
keepdims=Tr... | diff --git a/astropy/table/tests/test_info.py b/astropy/table/tests/test_info.py
index 9a2977074bb9..6ea33917c75e 100644
--- a/astropy/table/tests/test_info.py
+++ b/astropy/table/tests/test_info.py
@@ -67,7 +67,7 @@ def test_table_info_stats(table_types):
a = np.array([1, 2, 1, 2], dtype='int32')
b = np.arra... | 2022-07-27T18:03:06 | {} | {"astropy/time/core.py": "# Licensed under a 3-clause BSD style license - see LICENSE.rst\n\"\"\"\nThe astropy.time package provides functionality for manipulating times and\ndates. Specific emphasis is placed on supporting time scales (e.g. UTC, TAI,\nUT1) and time representations (e.g. JD, MJD, ISO 8601) that are use... | diff --git a/docs/changes/time/13508.feature.rst b/docs/changes/time/13508.feature.rst
new file mode 100644
index 000000000000..d6dffaa3b3db
--- /dev/null
+++ b/docs/changes/time/13508.feature.rst
@@ -0,0 +1,1 @@
+Added the ``astropy.time.Time.mean()`` method which also enables the ``numpy.mean()`` function to be used ... | {"astropy/time/core.py": [{"type": "function", "name": "TimeBase.mean", "lines": [1359, 1433], "signature": "def mean(self, axis=None, dtype=None, out=None, keepdims=False, *, where=True):", "doc": "Mean along a given axis.\n\nThis is similar to :meth:`~numpy.ndarray.mean`, but adapted to ensure\nthat the full precisio... | 5.0 | ["astropy/table/tests/test_info.py::test_table_info_stats[unmasked]", "astropy/table/tests/test_info.py::test_table_info_stats[masked]", "astropy/table/tests/test_info.py::test_table_info_stats[subclass]", "astropy/time/tests/test_methods.py::TestArithmetic::test_mean[False-True-None-masked]", "astropy/time/tests/test_... | ["astropy/table/tests/test_info.py::test_table_info_attributes[unmasked]", "astropy/table/tests/test_info.py::test_table_info_attributes[masked]", "astropy/table/tests/test_info.py::test_table_info_attributes[subclass]", "astropy/table/tests/test_info.py::test_data_info", "astropy/table/tests/test_info.py::test_data_in... | 7cbba866a8c5749b90a5cb4f9877ddfad2d36037 | {"first_commit_time": 1658944508.0, "pr_title": "Enabled `np.mean()` function for instances of `astropy.time.Time`.", "pr_body": "<!-- This comments are hidden when you submit the pull request,\r\nso you do not need to remove them! -->\r\n\r\n<!-- Please be sure to check out our contributing guidelines,\r\nhttps://gith... |
astropy/astropy | 13,676 | https://github.com/astropy/astropy/pull/13676 | astropy__astropy-13676 | [] | a30301e5535be2f558cb948da6b3475df4e36a98 | diff --git a/astropy/units/quantity.py b/astropy/units/quantity.py
index 7043156e91d7..0512e969291a 100644
--- a/astropy/units/quantity.py
+++ b/astropy/units/quantity.py
@@ -29,7 +29,7 @@
from .quantity_helper import can_have_arbitrary_unit, check_output, converters_and_unit
from .quantity_helper.function_helpers im... | diff --git a/astropy/units/tests/test_structured.py b/astropy/units/tests/test_structured.py
index fe4134ac05b2..78ab03a7c022 100644
--- a/astropy/units/tests/test_structured.py
+++ b/astropy/units/tests/test_structured.py
@@ -12,6 +12,7 @@
from astropy import units as u
from astropy.tests.helper import check_picklin... | 2022-09-15T19:20:47 | {} | {"astropy/units/quantity.py": "# Licensed under a 3-clause BSD style license - see LICENSE.rst\n\"\"\"\nThis module defines the `Quantity` object, which represents a number with some\nassociated units. `Quantity` objects support operations like ordinary numbers,\nbut will deal with unit conversions internally.\n\"\"\"\... | diff --git a/docs/changes/units/13676.api.rst b/docs/changes/units/13676.api.rst
new file mode 100644
index 000000000000..966372f06cef
--- /dev/null
+++ b/docs/changes/units/13676.api.rst
@@ -0,0 +1,2 @@
+When ``Quantity`` is constructed from a structured array and ``unit`` is
+``None``, the default unit is now structu... | {"astropy/units/structured.py": [{"type": "function", "name": "_structured_unit_like_dtype", "lines": [522, 550], "signature": "def _structured_unit_like_dtype(unit: UnitBase | StructuredUnit, dtype: np.dtype) -> StructuredUnit:", "doc": "Make a `StructuredUnit` of one unit, with the structure of a `numpy.dtype`.\n\nPa... | 5.0 | ["astropy/units/tests/test_structured.py::TestStructuredUnitBasics::test_initialization_and_keying", "astropy/units/tests/test_structured.py::TestStructuredUnitBasics::test_recursive_initialization", "astropy/units/tests/test_structured.py::TestStructuredUnitBasics::test_extreme_recursive_initialization", "astropy/unit... | [] | 7cbba866a8c5749b90a5cb4f9877ddfad2d36037 | {"first_commit_time": 1663269431.0, "pr_title": "structured unit / quantity stuff", "pr_body": "Signed-off-by: Nathaniel Starkman (@nstarman) <nstarkman@protonmail.com>\r\n\r\nNecessary for https://github.com/astropy/astropy/pull/13669\r\n\r\n- Quantity now builds a structured unit if ``unit=None`` in the constructor a... |
astropy/astropy | 14,878 | https://github.com/astropy/astropy/pull/14878 | astropy__astropy-14878 | [] | 88790514bdf248e43c2fb15ee18cfd3390846145 | diff --git a/astropy/table/row.py b/astropy/table/row.py
index 03b7d13219b9..cab570e837c6 100644
--- a/astropy/table/row.py
+++ b/astropy/table/row.py
@@ -106,6 +106,35 @@ def __iter__(self):
for col in self._table.columns.values():
yield col[index]
+ def get(self, key, default=None, /):
+ ... | diff --git a/astropy/table/tests/test_row.py b/astropy/table/tests/test_row.py
index 8ad9f46ba80b..6af2f945a8e7 100644
--- a/astropy/table/tests/test_row.py
+++ b/astropy/table/tests/test_row.py
@@ -372,3 +372,11 @@ def test_uint_indexing():
assert repr(t[1]).splitlines() == trepr
assert repr(t[np.int_(1)]).s... | 2023-05-29T22:12:40 | {} | {"astropy/table/row.py": "# Licensed under a 3-clause BSD style license - see LICENSE.rst\n\nimport collections\nfrom collections import OrderedDict\nfrom operator import index as operator_index\n\nimport numpy as np\n\n\nclass Row:\n \"\"\"A class to represent one row of a Table object.\n\n A Row object is retur... | diff --git a/docs/changes/table/14878.feature.rst b/docs/changes/table/14878.feature.rst
new file mode 100644
index 000000000000..768574409629
--- /dev/null
+++ b/docs/changes/table/14878.feature.rst
@@ -0,0 +1,3 @@
+The new ``Row.get()`` method, analogous to ``dict.get()``, returns the value of
+the specified column f... | {"astropy/table/row.py": [{"type": "function", "name": "Row.get", "lines": [109, 136], "signature": "def get(self, key, default=None, /):", "doc": "Return the value for key if key is in the columns, else default.\n\nParameters\n----------\nkey : `str`, positional-only\n The name of the column to look for.\ndefault :... | 5.2 | ["astropy/table/tests/test_row.py::test_row_get"] | ["astropy/table/tests/test_row.py::test_masked_row_with_object_col", "astropy/table/tests/test_row.py::TestRow::test_subclass[unmasked]", "astropy/table/tests/test_row.py::TestRow::test_subclass[masked]", "astropy/table/tests/test_row.py::TestRow::test_subclass[subclass]", "astropy/table/tests/test_row.py::TestRow::tes... | 32bd0ffb6898c6a57b9ec1a55c13c7a0efe8d273 | {"first_commit_time": 1685467555.0, "pr_title": "Implement `astropy.table.Row.get()`", "pr_body": "### Description\r\n\r\nCurrently code that tries to access a column in a `Row` when the presence of the column is not guaranteed either has to check for the presence of the column beforehand or handle the resulting `KeyEr... |
astropy/astropy | 16,135 | https://github.com/astropy/astropy/pull/16135 | astropy__astropy-16135 | [] | ea875472867f296eee3ed75989ed402d55587940 | 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... | 2024-02-29T23:40:43 | {} | {"astropy/coordinates/representation/cylindrical.py": "# Licensed under a 3-clause BSD style license - see LICENSE.rst\n\"\"\"Cylindrical representations and differentials.\"\"\"\n\nimport operator\n\nimport numpy as np\n\nimport astropy.units as u\nfrom astropy.coordinates.angles import Angle\nfrom astropy.utils.compa... | {"astropy/coordinates/representation/cylindrical.py": [{"type": "function", "name": "CylindricalRepresentation.represent_as", "lines": [138, 152], "signature": "def represent_as(self, other_class, differential_class=None):", "doc": ""}]} | v5.3 | ["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/test_rep... | 2d281019494aaebf522f6626c0dae37510c16688 | {"first_commit_time": 1709249972.0, "pr_title": "feat: fast-path physicsspherical to cylindrical", "pr_body": "- [ ] By checking this box, the PR author has requested that maintainers do **NOT** use the \"Squash and Merge\" button. Maintainers should respect this when possible; however, the final decision is at the dis... | |
astropy/astropy | 16,516 | https://github.com/astropy/astropy/pull/16516 | astropy__astropy-16516 | [] | fb4ff546ebca64c4d92a573e400873aeba1f5766 | diff --git a/astropy/units/equivalencies.py b/astropy/units/equivalencies.py
index f77b195df97d..b6968fc701ea 100644
--- a/astropy/units/equivalencies.py
+++ b/astropy/units/equivalencies.py
@@ -34,6 +34,7 @@
"molar_mass_amu",
"pixel_scale",
"plate_scale",
+ "magnetic_flux_field",
"Equivalency",
... | diff --git a/astropy/units/tests/test_equivalencies.py b/astropy/units/tests/test_equivalencies.py
index bd13257194eb..7aab96eb16cd 100644
--- a/astropy/units/tests/test_equivalencies.py
+++ b/astropy/units/tests/test_equivalencies.py
@@ -1013,3 +1013,17 @@ def test_spectral_density_factor_deprecation():
u... | 2024-05-30T15:25:34 | {} | {"astropy/units/equivalencies.py": "# Licensed under a 3-clause BSD style license - see LICENSE.rst\n\"\"\"A set of standard astronomical equivalencies.\"\"\"\n\nfrom collections import UserList\n\n# THIRD-PARTY\nimport numpy as np\n\n# LOCAL\nfrom astropy.constants import si as _si\nfrom astropy.utils import deprecate... | diff --git a/docs/changes/units/16516.feature.rst b/docs/changes/units/16516.feature.rst
new file mode 100644
index 000000000000..4fa419d8579b
--- /dev/null
+++ b/docs/changes/units/16516.feature.rst
@@ -0,0 +1,2 @@
+Add ``magnetic_flux_field`` equivalency to convert magnetic field between
+magnetic field strength (H) ... | {"astropy/units/equivalencies.py": [{"type": "function", "name": "magnetic_flux_field", "lines": [879, 919], "signature": "def magnetic_flux_field(mu_r=1):", "doc": "Convert magnetic field between magnetic field strength :math:`(\\mathbf{H})` and\nmagnetic flux density :math:`(\\mathbf{B})` using the relationship:\n\n.... | v5.3 | ["astropy/units/tests/test_equivalencies.py::test_magnetic_flux_field"] | ["astropy/units/tests/test_equivalencies.py::test_find_equivalent_units", "astropy/units/tests/test_equivalencies.py::test_dimensionless_angles", "astropy/units/tests/test_equivalencies.py::test_logarithmic[log_unit0]", "astropy/units/tests/test_equivalencies.py::test_logarithmic[log_unit1]", "astropy/units/tests/test_... | 2d281019494aaebf522f6626c0dae37510c16688 | {"first_commit_time": 1717080179.0, "pr_title": "Magnetic flux field equivalency", "pr_body": "<!-- These comments are hidden when you submit the pull request,\r\nso you do not need to remove them! -->\r\n\r\n<!-- Please be sure to check out our contributing guidelines,\r\nhttps://github.com/astropy/astropy/blob/main/C... |
astropy/astropy | 16,677 | https://github.com/astropy/astropy/pull/16677 | astropy__astropy-16677 | [] | f5126c765a6a8db8abc7504275d9c2e90ffbd526 | diff --git a/astropy/modeling/core.py b/astropy/modeling/core.py
index b469f32cdf72..f0fd3619f2d4 100644
--- a/astropy/modeling/core.py
+++ b/astropy/modeling/core.py
@@ -747,6 +747,10 @@ def __init__(self, *args, meta=None, name=None, **kwargs):
self._initialize_slices()
self._initialize_unit_support... | diff --git a/astropy/modeling/tests/test_core.py b/astropy/modeling/tests/test_core.py
index d1dbe011a61e..097a35cd60d2 100644
--- a/astropy/modeling/tests/test_core.py
+++ b/astropy/modeling/tests/test_core.py
@@ -1505,3 +1505,68 @@ def test_model_string_indexing():
assert compound["Model1"] == gauss
asser... | 2024-07-04T20:45:35 | {} | {"astropy/modeling/core.py": "# Licensed under a 3-clause BSD style license - see LICENSE.rst\n\n\"\"\"\nThis module defines base classes for all models. The base class of all\nmodels is `~astropy.modeling.Model`. `~astropy.modeling.FittableModel` is\nthe base class for all fittable models. Fittable models can be line... | diff --git a/docs/changes/modeling/16677.feature.rst b/docs/changes/modeling/16677.feature.rst
new file mode 100644
index 000000000000..8c7d14e8555d
--- /dev/null
+++ b/docs/changes/modeling/16677.feature.rst
@@ -0,0 +1,3 @@
+Added ``Model.has_tied``, ``Model.has_fixed``, and ``Model.has_bounds`` attributes to make
+it... | {"astropy/modeling/core.py": [{"type": "function", "name": "Model.has_fixed", "lines": [1345, 1351], "signature": "def has_fixed(self):", "doc": "Whether the model has any fixed constraints."}, {"type": "function", "name": "Model.has_bounds", "lines": [1354, 1362], "signature": "def has_bounds(self):", "doc": "Whether ... | v5.3 | ["astropy/modeling/tests/test_core.py::test_has_constraints", "astropy/modeling/tests/test_core.py::test_has_constraints_with_sync_constraints"] | ["astropy/modeling/tests/test_core.py::test_Model_instance_repr_and_str", "astropy/modeling/tests/test_core.py::test_Model_array_parameter", "astropy/modeling/tests/test_core.py::test_inputless_model", "astropy/modeling/tests/test_core.py::test_ParametericModel", "astropy/modeling/tests/test_core.py::test_custom_model_... | 2d281019494aaebf522f6626c0dae37510c16688 | {"first_commit_time": 1720086629.0, "pr_title": "Add ``has_tied``, ``has_fixed`` and ``has_bounds`` properties to ``Model``", "pr_body": "*This has been split out from #16673 for ease of review*\r\n\r\nModels include ``tied``, ``fixed``, and ``bounds`` properties that return dictionaries with a summary of which paramet... |
astropy/astropy | 7,970 | https://github.com/astropy/astropy/pull/7970 | astropy__astropy-7970 | [] | e222ffffbab7e38aec2134a31552c99aa90b0047 | diff --git a/CHANGES.rst b/CHANGES.rst
index bbd4ad7014dc..ca55537547af 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -224,6 +224,8 @@ astropy.units
- ``AB`` and ``ST`` are now enabled by default, and have alternate names
``ABflux`` and ``STflux`` [#7891]
+- Added ``littleh`` unit and associated ``with_H0`` equiv... | diff --git a/astropy/units/tests/test_equivalencies.py b/astropy/units/tests/test_equivalencies.py
index 1ddd556627a3..5b7b2a7fe434 100644
--- a/astropy/units/tests/test_equivalencies.py
+++ b/astropy/units/tests/test_equivalencies.py
@@ -10,7 +10,7 @@
# LOCAL
from ... import units as u
-from ... import constants
+... | 2018-10-25T17:06:00 | {} | {"CHANGES.rst": "3.1 (unreleased)\n================\n\nNew Features\n------------\n\nastropy.config\n^^^^^^^^^^^^^^\n\nastropy.constants\n^^^^^^^^^^^^^^^^^\n\nastropy.convolution\n^^^^^^^^^^^^^^^^^^^\n\n- ``convolve`` now accepts any array-like input, not just ``numpy.ndarray`` or\n lists. [#7303]\n\nastropy.coordinat... | diff --git a/CHANGES.rst b/CHANGES.rst
index bbd4ad7014dc..ca55537547af 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -224,6 +224,8 @@ astropy.units
- ``AB`` and ``ST`` are now enabled by default, and have alternate names
``ABflux`` and ``STflux`` [#7891]
+- Added ``littleh`` unit and associated ``with_H0`` equiv... | {"astropy/units/equivalencies.py": [{"type": "function", "name": "with_H0", "lines": [692, 715], "signature": "def with_H0(H0=None):", "doc": "Convert between quantities with little-h and the equivalent physical units.\n\nParameters\n----------\nH0 : `None` or `~astropy.units.Quantity`\n The value of the Hubble cons... | 3.0 | ["astropy/units/tests/test_equivalencies.py::test_littleh"] | ["astropy/units/tests/test_equivalencies.py::test_dimensionless_angles", "astropy/units/tests/test_equivalencies.py::test_logarithmic[log_unit0]", "astropy/units/tests/test_equivalencies.py::test_logarithmic[log_unit1]", "astropy/units/tests/test_equivalencies.py::test_logarithmic[log_unit2]", "astropy/units/tests/test... | 7de4f351b0a2b9b177b5ada1143caca467367cfe | {"first_commit_time": 1540484750.0, "pr_title": "Little h equivalency", "pr_body": "This adds a new `littleh` equivalency. Based on my experience as a grad student, this PR will serve to rescue many students from confusion who are starting with extragalactic or cosmology work!\r\n\r\nThis has been on my to-do list for ... |
aws-powertools/powertools-lambda-python | 5,588 | https://github.com/aws-powertools/powertools-lambda-python/pull/5588 | aws-powertools__powertools-lambda-python-5588 | [] | 3ff5132bdf894fb49da11cfaa7cbff7412d5675c | diff --git a/aws_lambda_powertools/event_handler/appsync.py b/aws_lambda_powertools/event_handler/appsync.py
index 6f1cb72d067..3dbbf207859 100644
--- a/aws_lambda_powertools/event_handler/appsync.py
+++ b/aws_lambda_powertools/event_handler/appsync.py
@@ -53,6 +53,7 @@ def __init__(self):
"""
super()... | diff --git a/tests/functional/event_handler/required_dependencies/appsync/test_appsync_batch_resolvers.py b/tests/functional/event_handler/required_dependencies/appsync/test_appsync_batch_resolvers.py
index c594be54a5b..59c5ec08a15 100644
--- a/tests/functional/event_handler/required_dependencies/appsync/test_appsync_b... | 2024-11-19T12:49:39 | {"README.md": "<p align=\"center\">\n <a href=\"https://gmago-leway.github.io/fea-bench.github.io/\">\n <img src=\"assets/FEA-Bench-full.png\" style=\"height: 10em\" alt=\"fea-bench\" />\n </a>\n</p>\n\n<p align=\"center\">\n <em>A benchmark that aims to evaluate the capability of implementing new features in the... | {"aws_lambda_powertools/event_handler/appsync.py": "from __future__ import annotations\n\nimport asyncio\nimport logging\nimport warnings\nfrom typing import TYPE_CHECKING, Any, Callable\n\nfrom aws_lambda_powertools.event_handler.graphql_appsync.exceptions import InvalidBatchResponse, ResolverNotFoundError\nfrom aws_l... | diff --git a/docs/core/event_handler/appsync.md b/docs/core/event_handler/appsync.md
index a2f29e5dba5..0c556dedfbf 100644
--- a/docs/core/event_handler/appsync.md
+++ b/docs/core/event_handler/appsync.md
@@ -288,6 +288,19 @@ You can use `append_context` when you want to share data between your App and Ro
--8<-- "... | {"aws_lambda_powertools/event_handler/appsync.py": [{"type": "function", "name": "AppSyncResolver.exception_handler", "lines": [481, 504], "signature": "def exception_handler(self, exc_class: type[Exception] | list[type[Exception]]):", "doc": "A decorator function that registers a handler for one or more exception type... | null | ["tests/functional/event_handler/required_dependencies/appsync/test_appsync_batch_resolvers.py::test_exception_handler_with_batch_resolver_and_raise_exception", "tests/functional/event_handler/required_dependencies/appsync/test_appsync_batch_resolvers.py::test_exception_handler_with_batch_resolver_and_no_raise_exceptio... | ["tests/functional/event_handler/required_dependencies/appsync/test_appsync_batch_resolvers.py::test_resolve_batch_processing_with_related_events_one_at_time", "tests/functional/event_handler/required_dependencies/appsync/test_appsync_batch_resolvers.py::test_resolve_batch_processing_with_simple_queries_one_at_time", "... | d1a58cdd12dfcac1e9ce022fe8a29f69ea6007b4 | {"first_commit_time": 1732016649.0, "pr_title": "feat(event_handler): add exception handling mechanism for AppSyncResolver", "pr_body": "<!-- markdownlint-disable MD041 MD043 -->\r\n**Issue number:** #2184\r\n\r\n## Summary\r\n\r\n### Changes\r\n\r\nThis PR introduces a new feature to handle exceptions in `AppSyncResol... |
aws/sagemaker-python-sdk | 3,423 | https://github.com/aws/sagemaker-python-sdk/pull/3423 | aws__sagemaker-python-sdk-3423 | [] | 8dc17fb89fafd3609e14cb1539ae2911be510f2e | diff --git a/doc/frameworks/pytorch/using_pytorch.rst b/doc/frameworks/pytorch/using_pytorch.rst
index 725f34aa5a..f56085f756 100644
--- a/doc/frameworks/pytorch/using_pytorch.rst
+++ b/doc/frameworks/pytorch/using_pytorch.rst
@@ -293,6 +293,121 @@ using two ``ml.p4d.24xlarge`` instances:
pt_estimator.fit("s3://... | diff --git a/tests/conftest.py b/tests/conftest.py
index 249f25cfcb..e92d98112b 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -358,6 +358,11 @@ def huggingface_neuron_latest_inference_py_version():
return "py37"
+@pytest.fixture(scope="module")
+def pytorch_neuron_version():
+ return "1.11"
+
+
... | 2022-10-18T21:48:25 | {} | {"doc/frameworks/pytorch/using_pytorch.rst": "#########################################\nUse PyTorch with the SageMaker Python SDK\n#########################################\n\nWith PyTorch Estimators and Models, you can train and host PyTorch models on Amazon SageMaker.\n\nFor information about supported versions of P... | diff --git a/doc/frameworks/pytorch/using_pytorch.rst b/doc/frameworks/pytorch/using_pytorch.rst
index 725f34aa5a..f56085f756 100644
--- a/doc/frameworks/pytorch/using_pytorch.rst
+++ b/doc/frameworks/pytorch/using_pytorch.rst
@@ -293,6 +293,121 @@ using two ``ml.p4d.24xlarge`` instances:
pt_estimator.fit("s3://... | {"src/sagemaker/image_uris.py": [{"type": "function", "name": "_validate_for_suppported_frameworks_and_instance_type", "lines": [355, 362], "signature": "def _validate_for_suppported_frameworks_and_instance_type(framework, instace_type):", "doc": "Validate if framework is supported for the instance_type"}, {"type": "fu... | null | ["tests/unit/sagemaker/image_uris/test_trainium.py::test_trainium_pytorch"] | [] | 03738861995e0c3fda73958d251e83465aba3c04 | {"first_commit_time": 1661472718.0, "pr_title": "feature: Trainium Neuron support for PyTorch", "pr_body": "*Issue #, if available:*\r\n\r\n*Description of changes:*\r\nAdded the necessary changes to incorporate the `v1.0-pt-1.11.0-tr-neuron-sdk2.3.0-py38` image into the `PyTorch` framework.\r\n\r\n*Testing done:*\r\n\... |
aws/sagemaker-python-sdk | 3,432 | https://github.com/aws/sagemaker-python-sdk/pull/3432 | aws__sagemaker-python-sdk-3432 | [] | 1a39422883c7c7b04865e58fda201bcb93075669 | diff --git a/src/sagemaker/fw_utils.py b/src/sagemaker/fw_utils.py
index dacd0a229c..af48a111bc 100644
--- a/src/sagemaker/fw_utils.py
+++ b/src/sagemaker/fw_utils.py
@@ -134,10 +134,13 @@
"1.12.0",
]
+
TORCH_DISTRIBUTED_SUPPORTED_FRAMEWORK_VERSIONS = ["1.11", "1.11.0"]
+
TRAINIUM_SUPPORTED_DISTRIBUTION_STR... | diff --git a/tests/conftest.py b/tests/conftest.py
index 17a5c1db9c..a54cbfea15 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -308,6 +308,16 @@ def huggingface_pytorch_latest_inference_py_version(huggingface_inference_pytorc
)
+@pytest.fixture(scope="module")
+def graviton_tensorflow_version():
+ ... | 2022-10-21T15:46:55 | {} | {"src/sagemaker/fw_utils.py": "# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\"). You\n# may not use this file except in compliance with the License. A copy of\n# the License is located at\n#\n# http://aws.amazon.com/apache2.0... | diff --git a/src/sagemaker/image_uri_config/pytorch.json b/src/sagemaker/image_uri_config/pytorch.json
index a88f7f1c50..74127a1fda 100644
--- a/src/sagemaker/image_uri_config/pytorch.json
+++ b/src/sagemaker/image_uri_config/pytorch.json
@@ -654,6 +654,51 @@
}
}
},
+ "inference_graviton":... | {"src/sagemaker/image_uris.py": [{"type": "function", "name": "_get_image_scope_for_instance_type", "lines": [295, 301], "signature": "def _get_image_scope_for_instance_type(framework, instance_type, image_scope):", "doc": "Extract the image scope from instance type."}]} | null | ["tests/unit/sagemaker/image_uris/test_graviton.py::test_graviton_tensorflow", "tests/unit/sagemaker/image_uris/test_graviton.py::test_graviton_pytorch"] | [] | 03738861995e0c3fda73958d251e83465aba3c04 | {"first_commit_time": 1665021205.0, "pr_title": "feature: Graviton support for PyTorch and Tensorflow frameworks", "pr_body": "*Issue #, if available:*\r\n\r\n*Description of changes:*\r\nAdded the necessary changes to incorporate the [Graviton instances](https://github.com/aws/deep-learning-containers/releases/tag/v1.... |
boto/boto3 | 605 | https://github.com/boto/boto3/pull/605 | boto__boto3-605 | [] | c0b2d38ccc9f09cbd4af5e05875b620ce2e581f7 | diff --git a/.changes/next-release/feature-DynamoDB.json b/.changes/next-release/feature-DynamoDB.json
new file mode 100644
index 0000000000..e7c6841edc
--- /dev/null
+++ b/.changes/next-release/feature-DynamoDB.json
@@ -0,0 +1,5 @@
+{
+ "category": "DynamoDB",
+ "type": "feature",
+ "description": "Add request au... | diff --git a/tests/functional/docs/test_dynamodb.py b/tests/functional/docs/test_dynamodb.py
index 6bc22ceafe..b751e1fe4e 100644
--- a/tests/functional/docs/test_dynamodb.py
+++ b/tests/functional/docs/test_dynamodb.py
@@ -27,7 +27,7 @@ def test_batch_writer_is_documented(self):
self.assert_contains_lines_in_o... | 2016-04-25T07:38:12 | {} | {".changes/next-release/feature-DynamoDB.json": null, "boto3/dynamodb/table.py": "# Copyright 2015 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\"). You\n# may not use this file except in compliance with the License. A copy of\n# the License... | diff --git a/.changes/next-release/feature-DynamoDB.json b/.changes/next-release/feature-DynamoDB.json
new file mode 100644
index 0000000000..e7c6841edc
--- /dev/null
+++ b/.changes/next-release/feature-DynamoDB.json
@@ -0,0 +1,5 @@
+{
+ "category": "DynamoDB",
+ "type": "feature",
+ "description": "Add request au... | {"boto3/dynamodb/table.py": [{"type": "function", "name": "BatchWriter._add_request_and_process", "lines": [106, 111], "signature": "def _add_request_and_process(self, request):", "doc": ""}, {"type": "function", "name": "BatchWriter._remove_dup_pkeys_request_if_any", "lines": [113, 117], "signature": "def _remove_dup_... | null | ["tests/functional/docs/test_dynamodb.py::TestDynamoDBCustomizations::test_batch_writer_is_documented", "tests/unit/dynamodb/test_table.py::BaseTransformationTest::test_auto_dedup_for_dup_requests"] | ["tests/functional/docs/test_dynamodb.py::TestDynamoDBCustomizations::test_conditions_is_documented", "tests/functional/docs/test_dynamodb.py::TestDynamoDBCustomizations::test_document_interface_is_documented", "tests/unit/dynamodb/test_table.py::BaseTransformationTest::test_all_items_flushed_on_exit", "tests/unit/dyna... | 196a2da7490a1a661a0103b8770bd31e34e147f2 | {"first_commit_time": 1461569146.0, "pr_title": "dynamodb: add request auto de-duplication for batch_writer", "pr_body": "# Motivation\n\nFor scenarios like parsing some values from several sources like server log, user upload data which might contain value duplication, and write them to dynamoDB as unique values.\n\n... |
boto/boto3 | 74 | https://github.com/boto/boto3/pull/74 | boto__boto3-74 | [] | ebc0f95261025aa02c474ec8ffa3e0a0604cb3c6 | diff --git a/boto3/docs.py b/boto3/docs.py
index 9aace7848a..f5535f5e2d 100644
--- a/boto3/docs.py
+++ b/boto3/docs.py
@@ -52,6 +52,7 @@ def py_type_name(type_name):
:rtype: string
"""
return {
+ 'blob': 'bytes',
'character': 'string',
'double': 'float',
'long': 'integer... | diff --git a/tests/unit/resources/test_factory.py b/tests/unit/resources/test_factory.py
index 17b38b11cd..e2aec290f2 100644
--- a/tests/unit/resources/test_factory.py
+++ b/tests/unit/resources/test_factory.py
@@ -553,7 +553,7 @@ def test_resource_loads_waiters(self):
}
}
}
- ... | 2015-03-20T20:39:55 | {} | {"boto3/docs.py": "# Copyright 2014 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\"). You\n# may not use this file except in compliance with the License. A copy of\n# the License is located at\n#\n# http://aws.amazon.com/apache2.0/\n#\n# or ... | {"boto3/docs.py": [{"type": "function", "name": "document_structure", "lines": [623, 688], "signature": "def document_structure(name, shape, indent=0, indent_first=True, parent_type=None, eol='\\n'):", "doc": "Document a nested structure (list or dict) parameter or return value as\na snippet of Python code with dummy p... | null | ["tests/unit/resources/test_factory.py::TestResourceFactory::test_can_instantiate_service_resource", "tests/unit/resources/test_factory.py::TestResourceFactory::test_factory_creates_dangling_resources", "tests/unit/resources/test_factory.py::TestResourceFactory::test_factory_creates_properties", "tests/unit/resources/t... | [] | 196a2da7490a1a661a0103b8770bd31e34e147f2 | {"first_commit_time": 1426883624.0, "pr_title": "Load reference data if a resource path is defined", "pr_body": "This change allows references with a JMESPath query set on the reference\nresource path attribute to be loaded with data at instantiation time if\nthat data is present in the parent (via `meta.data`). If the... | |
conan-io/conan | 10,154 | https://github.com/conan-io/conan/pull/10154 | conan-io__conan-10154 | [] | 51a077458b697dcd39e5eb64f1d33a6c52584081 | diff --git a/conan/tools/files/__init__.py b/conan/tools/files/__init__.py
index d6c2bf10208..7a84ecda977 100644
--- a/conan/tools/files/__init__.py
+++ b/conan/tools/files/__init__.py
@@ -3,3 +3,4 @@
from conan.tools.files.patches import patch, apply_conandata_patches
from conan.tools.files.cpp_package import CppPac... | diff --git a/conans/test/unittests/tools/files/test_symlinks.py b/conans/test/unittests/tools/files/test_symlinks.py
new file mode 100644
index 00000000000..7b7398a85b3
--- /dev/null
+++ b/conans/test/unittests/tools/files/test_symlinks.py
@@ -0,0 +1,122 @@
+import os
+
+import pytest
+
+from conan import tools
+from c... | 2021-12-10T13:11:56 | {} | {"conan/tools/files/__init__.py": "from conan.tools.files.files import load, save, mkdir, ftp_download, download, get, rename, \\\n load_toolchain_args, save_toolchain_args, chdir\nfrom conan.tools.files.patches import patch, apply_conandata_patches\nfrom conan.tools.files.cpp_package import CppPackage\nfrom conan.t... | {"conan/tools/files/symlinks/symlinks.py": [{"type": "function", "name": "get_symlinks", "lines": [4, 10], "signature": "def get_symlinks(base_folder):", "doc": "Return the absolute path to the symlink files in base_folder"}, {"type": "function", "name": "_path_inside", "lines": [13, 16], "signature": "def _path_inside... | null | ["conans/test/unittests/tools/files/test_symlinks.py::test_absolute_to_relative_symlinks", "conans/test/unittests/tools/files/test_symlinks.py::test_remove_external_symlinks", "conans/test/unittests/tools/files/test_symlinks.py::test_remove_broken_symlinks"] | [] | 4a5b19a75db9225316c8cb022a2dfb9705a2af34 | {"first_commit_time": 1639141602.0, "pr_title": "Ported symlinks tools from #10125", "pr_body": "Changelog: Feature: Provided several `conan.tools.files` functions to manage symlinks: Transform absolute to relative symlinks, remove broken symlinks, remove external symlinks and get the symlinks in a folder. These tools ... | |
conan-io/conan | 10,437 | https://github.com/conan-io/conan/pull/10437 | conan-io__conan-10437 | [] | 9c34ea7568ec8b7eb36a3fbc0fd2ec8a30716830 | diff --git a/conan/tools/microsoft/__init__.py b/conan/tools/microsoft/__init__.py
index eb506393f75..e86a8b19dd3 100644
--- a/conan/tools/microsoft/__init__.py
+++ b/conan/tools/microsoft/__init__.py
@@ -1,6 +1,6 @@
from conan.tools.microsoft.toolchain import MSBuildToolchain
from conan.tools.microsoft.msbuild impor... | diff --git a/conans/test/unittests/tools/microsoft/test_msbuild.py b/conans/test/unittests/tools/microsoft/test_msbuild.py
index f6aab1c5dff..14bfbb02a47 100644
--- a/conans/test/unittests/tools/microsoft/test_msbuild.py
+++ b/conans/test/unittests/tools/microsoft/test_msbuild.py
@@ -4,10 +4,10 @@
import pytest
from ... | 2022-01-26T17:39:46 | {} | {"conan/tools/microsoft/__init__.py": "from conan.tools.microsoft.toolchain import MSBuildToolchain\nfrom conan.tools.microsoft.msbuild import MSBuild\nfrom conan.tools.microsoft.msbuilddeps import MSBuildDeps\nfrom conan.tools.microsoft.visual import msvc_runtime_flag, VCVars, is_msvc\nfrom conan.tools.microsoft.subsy... | {"conan/tools/microsoft/visual.py": [{"type": "function", "name": "is_msvc_static_runtime", "lines": [186, 191], "signature": "def is_msvc_static_runtime(conanfile):", "doc": "Validate when building with Visual Studio or msvc and MT on runtime\n:param conanfile: ConanFile instance\n:return: True, if msvc + runtime MT. ... | null | ["conans/test/unittests/tools/microsoft/test_msbuild.py::test_msbuild_cpu_count", "conans/test/unittests/tools/microsoft/test_msbuild.py::test_msbuild_toolset", "conans/test/unittests/tools/microsoft/test_msbuild.py::test_msbuild_toolset_for_intel_cc[icx-Intel", "conans/test/unittests/tools/microsoft/test_msbuild.py::t... | [] | 4a5b19a75db9225316c8cb022a2dfb9705a2af34 | {"first_commit_time": 1643218103.0, "pr_title": "Identify when using static runtime", "pr_body": "Changelog: Feature: Add `is_msvc_static_runtime` method to `conan.tools.microsoft.visual` to identify when using `msvc` with static runtime.\r\nDocs: https://github.com/conan-io/docs/pull/2372\r\n\r\nRelated to discussion ... | |
conan-io/conan | 10,874 | https://github.com/conan-io/conan/pull/10874 | conan-io__conan-10874 | ["10711"] | acf5d9a460adfa16bf95b6aadfc248f7d9ace643 | diff --git a/conan/tools/files/__init__.py b/conan/tools/files/__init__.py
index fcffac80e2e..01f5d8c67ae 100644
--- a/conan/tools/files/__init__.py
+++ b/conan/tools/files/__init__.py
@@ -1,4 +1,4 @@
-from conan.tools.files.files import load, save, mkdir, ftp_download, download, get, rename, \
+from conan.tools.files.... | diff --git a/conans/test/integration/tools/file_tools_test.py b/conans/test/integration/tools/file_tools_test.py
new file mode 100644
index 00000000000..b7d3b80b846
--- /dev/null
+++ b/conans/test/integration/tools/file_tools_test.py
@@ -0,0 +1,30 @@
+import os
+import textwrap
+
+from conans.test.utils.tools import Te... | 2022-03-24T11:52:39 | {} | {"conan/tools/files/__init__.py": "from conan.tools.files.files import load, save, mkdir, ftp_download, download, get, rename, \\\n chdir, unzip, replace_in_file, collect_libs, check_md5, check_sha1, check_sha256\n\nfrom conan.tools.files.patches import patch, apply_conandata_patches\nfrom conan.tools.files.cpp_pack... | {"conan/tools/files/files.py": [{"type": "function", "name": "rmdir", "lines": [64, 65], "signature": "def rmdir(conanfile, path):", "doc": ""}]} | null | ["conans/test/integration/tools/file_tools_test.py::test_file_tools"] | [] | 4a5b19a75db9225316c8cb022a2dfb9705a2af34 | {"first_commit_time": 1648122630.0, "pr_title": "basic conan.tools.files.rmdir", "pr_body": "Changelog: Feature: Added basic `rmdir` tool at `conan.tools.files`.\r\nDocs: https://github.com/conan-io/docs/pull/2470\r\n\r\nClose #10711", "pr_timeline": [], "issues": {"10711": {"issue_title": "[feature] Move [rmdir] to co... | |
conan-io/conan | 11,284 | https://github.com/conan-io/conan/pull/11284 | conan-io__conan-11284 | [] | db343feac208a000bc6546556104a8511a584f1e | diff --git a/conan/tools/gnu/autotools.py b/conan/tools/gnu/autotools.py
index dc93aca2e51..37520577c9e 100644
--- a/conan/tools/gnu/autotools.py
+++ b/conan/tools/gnu/autotools.py
@@ -11,57 +11,47 @@
class Autotools(object):
- def __init__(self, conanfile, namespace=None, build_script_folder=None):
+ def __... | diff --git a/conans/test/functional/toolchains/gnu/autotools/test_basic.py b/conans/test/functional/toolchains/gnu/autotools/test_basic.py
index ec0933fbfdf..3ef85610ae6 100644
--- a/conans/test/functional/toolchains/gnu/autotools/test_basic.py
+++ b/conans/test/functional/toolchains/gnu/autotools/test_basic.py
@@ -7,7... | 2022-05-17T16:50:25 | {} | {"conan/tools/gnu/autotools.py": "import os\n\nfrom conan.tools.build import build_jobs\nfrom conan.tools.files.files import load_toolchain_args\nfrom conans.client.subsystems import subsystem_path, deduce_subsystem\nfrom conans.client.build import join_arguments\nfrom conans.tools import args_to_string\nfrom conan.too... | {"conan/tools/gnu/autotoolstoolchain.py": [{"type": "function", "name": "AutotoolsToolchain._default_configure_shared_flags", "lines": [171, 183], "signature": "def _default_configure_shared_flags(self):", "doc": ""}, {"type": "function", "name": "AutotoolsToolchain._default_configure_install_flags", "lines": [185, 200... | null | ["conans/test/unittests/tools/gnu/autotools_test.py::test_source_folder_works"] | [] | 4a5b19a75db9225316c8cb022a2dfb9705a2af34 | {"first_commit_time": 1652804521.0, "pr_title": "More flexibility in Autotools tools to override arguments and avoid all default arguments", "pr_body": "Changelog: Fix: Use `DESTDIR` argument in `make install` step instead of using the `--prefix` in configure.\r\nChangelog: Feature: More flexibility in Autotools tools ... | |
conan-io/conan | 11,569 | https://github.com/conan-io/conan/pull/11569 | conan-io__conan-11569 | [] | 345be91a038e1bda707e07a19889953412d358dc | diff --git a/conan/tools/files/files.py b/conan/tools/files/files.py
index 7eca6af893f..3f69573b979 100644
--- a/conan/tools/files/files.py
+++ b/conan/tools/files/files.py
@@ -11,6 +11,8 @@
from fnmatch import fnmatch
import six
+from urllib.parse import urlparse
+from urllib.request import url2pathname
from co... | diff --git a/conans/test/unittests/tools/files/test_downloads.py b/conans/test/unittests/tools/files/test_downloads.py
index 30675c976e2..1ec8077ca78 100644
--- a/conans/test/unittests/tools/files/test_downloads.py
+++ b/conans/test/unittests/tools/files/test_downloads.py
@@ -1,4 +1,5 @@
import os
+import platform
... | 2022-07-04T14:24:18 | {} | {"conan/tools/files/files.py": "import configparser\nimport errno\nimport gzip\nimport hashlib\nimport os\nimport platform\nimport shutil\nimport subprocess\nimport sys\nfrom contextlib import contextmanager\nfrom fnmatch import fnmatch\n\nimport six\n\nfrom conan.tools import CONAN_TOOLCHAIN_ARGS_FILE, CONAN_TOOLCHAIN... | {"conan/tools/files/files.py": [{"type": "function", "name": "_copy_local_file_from_uri", "lines": [192, 201], "signature": "def _copy_local_file_from_uri(conanfile, url, file_path, md5=None, sha1=None, sha256=None):", "doc": ""}, {"type": "function", "name": "_path_from_file_uri", "lines": [203, 205], "signature": "de... | null | ["conans/test/unittests/tools/files/test_downloads.py::TestDownload::test_download_localfile", "conans/test/unittests/tools/files/test_downloads.py::TestDownload::test_download_localfile_notfound"] | ["conans/test/unittests/tools/files/test_downloads.py::TestDownload::test_download", "conans/test/unittests/tools/files/test_downloads.py::TestDownload::test_download_iterate_url", "conans/test/unittests/tools/files/test_downloads.py::TestDownload::test_download_forbidden", "conans/test/unittests/tools/files/test_downl... | 4a5b19a75db9225316c8cb022a2dfb9705a2af34 | {"first_commit_time": 1656943741.0, "pr_title": "Add ability to reference files in the local filesystem with file:// s\u2026", "pr_body": "Changelog: Feature: Add ability to download files in the local filesystem using `file://` URIs.\r\nDocs: https://github.com/conan-io/docs/pull/2635\r\nClose https://github.com/conan... | |
conan-io/conan | 11,585 | https://github.com/conan-io/conan/pull/11585 | conan-io__conan-11585 | [] | b20b72beb77c063d8c27c55db37425349e232a26 | diff --git a/conans/client/loader.py b/conans/client/loader.py
index 4fafe819775..d1d89130dd2 100644
--- a/conans/client/loader.py
+++ b/conans/client/loader.py
@@ -8,6 +8,8 @@
import yaml
+from pathlib import Path
+
from conan.tools.cmake import cmake_layout
from conan.tools.google import bazel_layout
from con... | diff --git a/conans/test/integration/conanfile/folders_access_test.py b/conans/test/integration/conanfile/folders_access_test.py
index 3a6a635f81c..741643aa6ab 100644
--- a/conans/test/integration/conanfile/folders_access_test.py
+++ b/conans/test/integration/conanfile/folders_access_test.py
@@ -22,6 +22,7 @@ def packa... | 2022-07-07T14:41:53 | {} | {"conans/client/loader.py": "import fnmatch\nimport imp\nimport inspect\nimport os\nimport sys\nimport types\nimport uuid\n\nimport yaml\n\nfrom conan.tools.cmake import cmake_layout\nfrom conan.tools.google import bazel_layout\nfrom conan.tools.microsoft import vs_layout\nfrom conans.client.conf.required_version impor... | {"conans/model/conan_file.py": [{"type": "function", "name": "ConanFile.source_path", "lines": [263, 265], "signature": "def source_path(self) -> Path:", "doc": ""}, {"type": "function", "name": "ConanFile.export_sources_path", "lines": [275, 277], "signature": "def export_sources_path(self) -> Path:", "doc": ""}, {"ty... | null | ["conans/test/integration/conanfile/folders_access_test.py::TestFoldersAccess::test_build_local_command", "conans/test/integration/conanfile/folders_access_test.py::TestFoldersAccess::test_deploy", "conans/test/integration/conanfile/folders_access_test.py::TestFoldersAccess::test_full_install", "conans/test/integration... | ["conans/test/integration/conanfile/folders_access_test.py::TestFoldersAccess::test_imports_local", "conans/test/integration/conanfile/folders_access_test.py::RecipeFolderTest::test_editable", "conans/test/integration/conanfile/folders_access_test.py::RecipeFolderTest::test_local_flow", "conans/test/integration/conanfi... | 4a5b19a75db9225316c8cb022a2dfb9705a2af34 | {"first_commit_time": 1657204846.0, "pr_title": "Feature : provide Path accesssors", "pr_body": "closes: #11304 \r\n\r\nChangelog: Feature: Provide Path accessors in Conanfile.\r\nDocs: omit\r\n\r\n- [x] Refer to the issue that supports this Pull Request.\r\n- [x] If the issue has missing info, explain the purpose/use ... | |
conan-io/conan | 11,675 | https://github.com/conan-io/conan/pull/11675 | conan-io__conan-11675 | [] | 2e7692bfd24210918d8a1e4203e6e79a0bca7878 | diff --git a/conans/paths/__init__.py b/conans/paths/__init__.py
index 6457f1ad010..5992053360d 100644
--- a/conans/paths/__init__.py
+++ b/conans/paths/__init__.py
@@ -1,7 +1,7 @@
# coding=utf-8
-
import os
import platform
+from pathlib import Path
if platform.system() == "Windows":
from conans.util.windows... | diff --git a/conans/test/unittests/paths/user_home_test.py b/conans/test/unittests/paths/user_home_test.py
new file mode 100644
index 00000000000..8b9912bac7a
--- /dev/null
+++ b/conans/test/unittests/paths/user_home_test.py
@@ -0,0 +1,83 @@
+import os
+import platform
+from pathlib import Path
+
+from conans.paths imp... | 2022-07-20T07:03:56 | {} | {"conans/paths/__init__.py": "# coding=utf-8\n\nimport os\nimport platform\n\nif platform.system() == \"Windows\":\n from conans.util.windows import conan_expand_user\nelse:\n conan_expand_user = os.path.expanduser\n\nDEFAULT_CONAN_HOME = \".conan2\"\n\n\ndef get_conan_user_home():\n user_home = os.getenv(\"CO... | {"conans/paths/__init__.py": [{"type": "function", "name": "get_conan_user_home._find_conanrc_file", "lines": [16, 23], "signature": "def _find_conanrc_file():", "doc": ""}, {"type": "function", "name": "get_conan_user_home._user_home_from_conanrc_file", "lines": [25, 40], "signature": "def _user_home_from_conanrc_file... | null | ["conans/test/unittests/paths/user_home_test.py::test_conanrc_abs_path_get_conan_user_home", "conans/test/unittests/paths/user_home_test.py::test_conanrc_local_path_get_conan_user_home", "conans/test/unittests/paths/user_home_test.py::test_conanrc_local_path_run_conan_subfolder_get_conan_user_home", "conans/test/unitte... | ["conans/test/unittests/paths/user_home_test.py::test_conanrc_wrong_format", "conans/test/unittests/paths/user_home_test.py::test_conanrc_not_existing"] | 4a5b19a75db9225316c8cb022a2dfb9705a2af34 | {"first_commit_time": 1658300211.0, "pr_title": "Add conan.conanrc file to setup the conan user home", "pr_body": "Closes: https://github.com/conan-io/conan/issues/11542\r\n\r\nYou can create a _.conanrc_ file in the folder where you are running conan (or any parent folder), it can have this content:\r\n\r\nSet the con... | |
conan-io/conan | 11,678 | https://github.com/conan-io/conan/pull/11678 | conan-io__conan-11678 | [] | f4d5c49f0fbba650cf5162107f2135ca48336778 | diff --git a/conan/tools/gnu/autotoolstoolchain.py b/conan/tools/gnu/autotoolstoolchain.py
index 52ee17a3939..d10f36d3b05 100644
--- a/conan/tools/gnu/autotoolstoolchain.py
+++ b/conan/tools/gnu/autotoolstoolchain.py
@@ -22,10 +22,10 @@ def __init__(self, conanfile, namespace=None):
self.make_args = []
... | diff --git a/conans/test/integration/toolchains/gnu/test_autotoolstoolchain.py b/conans/test/integration/toolchains/gnu/test_autotoolstoolchain.py
index 7a20a026036..36ede715b8f 100644
--- a/conans/test/integration/toolchains/gnu/test_autotoolstoolchain.py
+++ b/conans/test/integration/toolchains/gnu/test_autotoolstool... | 2022-07-20T08:20:27 | {} | {"conan/tools/gnu/autotoolstoolchain.py": "from conan.tools._check_build_profile import check_using_build_profile\nfrom conan.tools._compilers import architecture_flag, build_type_flags, cppstd_flag, \\\n build_type_link_flags\nfrom conan.tools.apple.apple import apple_min_version_flag, to_apple_arch, \\\n apple_... | {"conan/tools/gnu/autotoolstoolchain.py": [{"type": "function", "name": "AutotoolsToolchain.cxxflags", "lines": [126, 133], "signature": "def cxxflags(self):", "doc": ""}, {"type": "function", "name": "AutotoolsToolchain.cflags", "lines": [136, 142], "signature": "def cflags(self):", "doc": ""}, {"type": "function", "n... | null | ["conans/test/unittests/client/toolchain/autotools/autotools_toolchain_test.py::test_custom_defines", "conans/test/unittests/client/toolchain/autotools/autotools_toolchain_test.py::test_custom_cxxflags", "conans/test/unittests/client/toolchain/autotools/autotools_toolchain_test.py::test_custom_cflags", "conans/test/uni... | ["conans/test/integration/toolchains/gnu/test_autotoolstoolchain.py::test_extra_flags_via_conf", "conans/test/integration/toolchains/gnu/test_autotoolstoolchain.py::test_not_none_values", "conans/test/unittests/client/toolchain/autotools/autotools_toolchain_test.py::test_modify_environment", "conans/test/unittests/clie... | 4a5b19a75db9225316c8cb022a2dfb9705a2af34 | {"first_commit_time": 1658304411.0, "pr_title": "AutotoolsToolchain: empty None values from self fields + Refactor", "pr_body": "Changelog: Bugfix: The `AutotoolsToolchain` now clears `None` values from the attributes `.cxxflags`, `.cflags`, `.ldflags` and `.defines`.\r\nChangelog: Feature: The `AutotoolsToolchain` att... | |
conan-io/conan | 11,908 | https://github.com/conan-io/conan/pull/11908 | conan-io__conan-11908 | [] | a5525e523d2c6a3636a062134364686059ba8863 | diff --git a/conans/client/loader.py b/conans/client/loader.py
index d1d89130dd2..804d73b50d1 100644
--- a/conans/client/loader.py
+++ b/conans/client/loader.py
@@ -2,6 +2,7 @@
import imp
import inspect
import os
+import re
import sys
import types
import uuid
@@ -436,13 +437,20 @@ def _parse_conanfile(conan_file_... | diff --git a/conans/test/integration/conanfile/required_conan_version_test.py b/conans/test/integration/conanfile/required_conan_version_test.py
index 7f0c11f25c7..f0261c11b03 100644
--- a/conans/test/integration/conanfile/required_conan_version_test.py
+++ b/conans/test/integration/conanfile/required_conan_version_tes... | 2022-08-18T11:25:43 | {} | {"conans/client/loader.py": "import fnmatch\nimport imp\nimport inspect\nimport os\nimport sys\nimport types\nimport uuid\n\nimport yaml\n\nfrom pathlib import Path\n\nfrom conan.tools.cmake import cmake_layout\nfrom conan.tools.google import bazel_layout\nfrom conan.tools.microsoft import vs_layout\nfrom conans.client... | {"conans/client/loader.py": [{"type": "function", "name": "_get_required_conan_version_without_loading", "lines": [488, 502], "signature": "def _get_required_conan_version_without_loading(conan_file_path):", "doc": ""}]} | null | ["conans/test/integration/conanfile/required_conan_version_test.py::RequiredConanVersionTest::test_required_conan_version_with_loading_issues"] | ["conans/test/integration/conanfile/required_conan_version_test.py::RequiredConanVersionTest::test_required_conan_version"] | 4a5b19a75db9225316c8cb022a2dfb9705a2af34 | {"first_commit_time": 1660821352.0, "pr_title": "Read required_conan_version in text mode before loading the recipe", "pr_body": "Changelog: Feature: Fail sooner and with a meaningful error if the specified required version is not satisfied.\r\nDocs: omit\r\n\r\nConan will try to read the `required_conan_version` from ... | |
conan-io/conan | 12,094 | https://github.com/conan-io/conan/pull/12094 | conan-io__conan-12094 | [] | 91c5aaf1115fd3a9c9932c8d804a14d894076c49 | diff --git a/conans/model/options.py b/conans/model/options.py
index 642c4afe2d1..8c270238059 100644
--- a/conans/model/options.py
+++ b/conans/model/options.py
@@ -231,6 +231,12 @@ def get_safe(self, attr):
return None
return getattr(self._package_values, attr)
+ def rm_safe(self, attr):
+ ... | diff --git a/conans/test/integration/settings/remove_subsetting_test.py b/conans/test/integration/settings/remove_subsetting_test.py
index 5c8e6d8a275..209838e1b99 100644
--- a/conans/test/integration/settings/remove_subsetting_test.py
+++ b/conans/test/integration/settings/remove_subsetting_test.py
@@ -1,4 +1,5 @@
im... | 2022-09-12T15:01:24 | {} | {"conans/model/options.py": "\nimport fnmatch\n\nimport six\nimport yaml\n\nfrom conans.errors import ConanException\nfrom conans.util.sha import sha1\n\n_falsey_options = [\"false\", \"none\", \"0\", \"off\", \"\"]\n\n\ndef option_wrong_value_msg(name, value, value_range):\n \"\"\" The provided value is not among t... | {"conans/model/options.py": [{"type": "function", "name": "OptionsValues.rm_safe", "lines": [234, 238], "signature": "def rm_safe(self, attr):", "doc": ""}, {"type": "function", "name": "PackageOptions.rm_safe", "lines": [434, 438], "signature": "def rm_safe(self, field):", "doc": ""}, {"type": "function", "name": "Opt... | null | ["conans/test/integration/settings/remove_subsetting_test.py::test_settings_and_options_rm_safe"] | ["conans/test/integration/settings/remove_subsetting_test.py::RemoveSubsettingTest::test_remove_options", "conans/test/integration/settings/remove_subsetting_test.py::RemoveSubsettingTest::test_remove_runtime", "conans/test/integration/settings/remove_subsetting_test.py::RemoveSubsettingTest::test_remove_setting", "con... | 4a5b19a75db9225316c8cb022a2dfb9705a2af34 | {"first_commit_time": 1662544253.0, "pr_title": "[feature] `rm_safe` for settings and options", "pr_body": "Changelog: Feature: Added method `rm_safe` to `settings` and `options`.\r\nDocs: https://github.com/conan-io/docs/pull/2764\r\n\r\nThis feature is trying to avoid this common structure:\r\n\r\n```python\r\n ... | |
conan-io/conan | 12,243 | https://github.com/conan-io/conan/pull/12243 | conan-io__conan-12243 | [] | 6f8f9c5d179ce71877a89826d5275e83e9958f7a | diff --git a/conan/api/subapi/install.py b/conan/api/subapi/install.py
index 18b37a2b3ab..30e79be593b 100644
--- a/conan/api/subapi/install.py
+++ b/conan/api/subapi/install.py
@@ -49,7 +49,7 @@ def install_consumer(self, deps_graph, generators=None, source_folder=None, outp
if deploy:
base_folder... | diff --git a/conans/test/functional/command/test_install_deploy.py b/conans/test/functional/command/test_install_deploy.py
index d004cc0f5de..7800b06e807 100644
--- a/conans/test/functional/command/test_install_deploy.py
+++ b/conans/test/functional/command/test_install_deploy.py
@@ -21,7 +21,8 @@ def test_install_depl... | 2022-10-04T21:25:40 | {} | {"conan/api/subapi/install.py": "import os\n\nfrom conan.api.subapi import api_method\nfrom conan.api.conan_app import ConanApp\nfrom conans.client.cache.cache import ClientCache\nfrom conans.client.generators import write_generators\nfrom conans.client.installer import BinaryInstaller, call_system_requirements\nfrom c... | {"conan/api/subapi/install.py": [{"type": "function", "name": "do_deploys", "lines": [90, 96], "signature": "def do_deploys(conan_api, graph, deploy, deploy_folder):", "doc": ""}]} | null | ["conans/test/functional/command/test_install_deploy.py::test_copy_files_deploy", "conans/test/functional/command/test_install_deploy.py::test_multi_deploy", "conans/test/integration/command/info/info_test.py::TestDeployers::test_custom_deploy"] | ["conans/test/functional/command/test_install_deploy.py::test_builtin_deploy", "conans/test/functional/command/test_install_deploy.py::test_deploy_reference", "conans/test/functional/command/test_install_deploy.py::test_deploy_overwrite", "conans/test/functional/command/test_install_deploy.py::test_deploy_editable", "c... | 4a5b19a75db9225316c8cb022a2dfb9705a2af34 | {"first_commit_time": 1664918507.0, "pr_title": "Add --deploy to graph-info", "pr_body": "How to do some quick ``graph info``, and extract custom information from the graph, in an extensible way?\r\n\r\n- Formatters at the moment are very built-in, and seems difficult to change it\r\n- ``--deploy`` only applies to ``in... | |
conan-io/conan | 12,873 | https://github.com/conan-io/conan/pull/12873 | conan-io__conan-12873 | [] | 6e1f2bb60a430f2567480ddeaba19cafb20fbcb2 | diff --git a/conan/tools/android/__init__.py b/conan/tools/android/__init__.py
new file mode 100644
index 00000000000..c969bbebd07
--- /dev/null
+++ b/conan/tools/android/__init__.py
@@ -0,0 +1,1 @@
+from conan.tools.android.utils import android_abi
diff --git a/conan/tools/android/utils.py b/conan/tools/android/utils.... | diff --git a/conans/test/unittests/tools/android/__init__.py b/conans/test/unittests/tools/android/__init__.py
new file mode 100644
index 00000000000..e69de29bb2d
diff --git a/conans/test/unittests/tools/android/test_android_tools.py b/conans/test/unittests/tools/android/test_android_tools.py
new file mode 100644
index... | 2023-01-09T13:36:32 | {} | {"conan/tools/android/__init__.py": null, "conan/tools/android/utils.py": null, "conan/tools/cmake/toolchain/blocks.py": "import os\nimport re\nimport textwrap\nfrom collections import OrderedDict\n\nfrom jinja2 import Template\n\nfrom conan.tools._compilers import architecture_flag, libcxx_flags\nfrom conan.tools.appl... | {"conan/tools/android/utils.py": [{"type": "function", "name": "android_abi", "lines": [4, 31], "signature": "def android_abi(conanfile, context=\"host\"):", "doc": "Returns Android-NDK ABI\n:param conanfile: ConanFile instance\n:param context: either \"host\", \"build\" or \"target\"\n:return: Android-NDK ABI"}]} | null | ["conans/test/unittests/tools/android/test_android_tools.py::test_tools_android_abi"] | [] | 4a5b19a75db9225316c8cb022a2dfb9705a2af34 | {"first_commit_time": 1673271288.0, "pr_title": "add `conan.tools.android.android_abi()`", "pr_body": "Changelog: Feature: Add `conan.tools.android.android_abi()` function to return the Android standard ABI name based on Conan.\r\nDocs: https://github.com/conan-io/docs/pull/2975\r\n\r\ncloses https://github.com/conan-i... | |
conan-io/conan | 12,886 | https://github.com/conan-io/conan/pull/12886 | conan-io__conan-12886 | [] | 0f73ed743ffd5d9cfeef54bfbc1547d08ce6436d | diff --git a/conan/tools/microsoft/__init__.py b/conan/tools/microsoft/__init__.py
index 79598b28e5f..9c0bb920d5f 100644
--- a/conan/tools/microsoft/__init__.py
+++ b/conan/tools/microsoft/__init__.py
@@ -1,7 +1,7 @@
from conan.tools.microsoft.layout import vs_layout
from conan.tools.microsoft.msbuild import MSBuild
... | diff --git a/conans/test/unittests/tools/microsoft/test_subsystem.py b/conans/test/unittests/tools/microsoft/test_subsystem.py
index 65e5423e8c6..3af3cf3c860 100644
--- a/conans/test/unittests/tools/microsoft/test_subsystem.py
+++ b/conans/test/unittests/tools/microsoft/test_subsystem.py
@@ -2,7 +2,7 @@
import pytes... | 2023-01-11T12:19:11 | {} | {"conan/tools/microsoft/__init__.py": "from conan.tools.microsoft.layout import vs_layout\nfrom conan.tools.microsoft.msbuild import MSBuild\nfrom conan.tools.microsoft.msbuilddeps import MSBuildDeps\nfrom conan.tools.microsoft.subsystems import unix_path\nfrom conan.tools.microsoft.toolchain import MSBuildToolchain\nf... | {"conan/tools/microsoft/subsystems.py": [{"type": "function", "name": "unix_path_package_info_legacy", "lines": [8, 13], "signature": "def unix_path_package_info_legacy(conanfile, path, path_flavor=None):", "doc": ""}]} | null | ["conans/test/unittests/tools/microsoft/test_subsystem.py::test_unix_path[msys2-/c/path/to/stuff]", "conans/test/unittests/tools/microsoft/test_subsystem.py::test_unix_path[msys-/c/path/to/stuff]", "conans/test/unittests/tools/microsoft/test_subsystem.py::test_unix_path[cygwin-/cygdrive/c/path/to/stuff]", "conans/test/... | [] | 4a5b19a75db9225316c8cb022a2dfb9705a2af34 | {"first_commit_time": 1673439456.0, "pr_title": "Add unix_path_package_info_legacy compatibility function", "pr_body": "Changelog: Feature: Add `unix_path_package_info_legacy` function for those cases in which it is used in `package_info` in recipes that require compatibility with Conan 1.x. In Conan 2, path conversion... | |
conan-io/conan | 12,887 | https://github.com/conan-io/conan/pull/12887 | conan-io__conan-12887 | [] | f3fb6c41246669646243f0c7d83c2c444743d896 | diff --git a/conan/tools/microsoft/__init__.py b/conan/tools/microsoft/__init__.py
index 79598b28e5f..9c0bb920d5f 100644
--- a/conan/tools/microsoft/__init__.py
+++ b/conan/tools/microsoft/__init__.py
@@ -1,7 +1,7 @@
from conan.tools.microsoft.layout import vs_layout
from conan.tools.microsoft.msbuild import MSBuild
... | diff --git a/conans/test/unittests/tools/microsoft/test_subsystem.py b/conans/test/unittests/tools/microsoft/test_subsystem.py
index 65e5423e8c6..0e010e23afb 100644
--- a/conans/test/unittests/tools/microsoft/test_subsystem.py
+++ b/conans/test/unittests/tools/microsoft/test_subsystem.py
@@ -1,19 +1,20 @@
+import mock
... | 2023-01-11T12:43:17 | {} | {"conan/tools/microsoft/__init__.py": "from conan.tools.microsoft.layout import vs_layout\nfrom conan.tools.microsoft.msbuild import MSBuild\nfrom conan.tools.microsoft.msbuilddeps import MSBuildDeps\nfrom conan.tools.microsoft.subsystems import unix_path\nfrom conan.tools.microsoft.toolchain import MSBuildToolchain\nf... | {"conan/tools/microsoft/subsystems.py": [{"type": "function", "name": "unix_path_package_info_legacy", "lines": [9, 12], "signature": "def unix_path_package_info_legacy(conanfile, path, path_flavor=None):", "doc": ""}]} | null | ["conans/test/unittests/tools/microsoft/test_subsystem.py::test_unix_path[msys2-/c/path/to/stuff]", "conans/test/unittests/tools/microsoft/test_subsystem.py::test_unix_path[msys-/c/path/to/stuff]", "conans/test/unittests/tools/microsoft/test_subsystem.py::test_unix_path[cygwin-/cygdrive/c/path/to/stuff]", "conans/test/... | [] | 4a5b19a75db9225316c8cb022a2dfb9705a2af34 | {"first_commit_time": 1673429511.0, "pr_title": "Add unix_path_package_info_legacy compatibility function", "pr_body": "Changelog: Feature: Add `unix_path_package_info_legacy` function for those cases in which it is used in `package_info` in recipes that require compatibility with Conan 1.x. In Conan 2, path conversion... | |
conan-io/conan | 12,889 | https://github.com/conan-io/conan/pull/12889 | conan-io__conan-12889 | [] | ea235dc8a4719b71e13d3734855bff4600f62b06 | diff --git a/conan/tools/gnu/autotoolstoolchain.py b/conan/tools/gnu/autotoolstoolchain.py
index 61e159ea4fd..b870bd5b032 100644
--- a/conan/tools/gnu/autotoolstoolchain.py
+++ b/conan/tools/gnu/autotoolstoolchain.py
@@ -224,23 +224,28 @@ def update_autoreconf_args(self, updated_flags):
# FIXME: Remove all these... | diff --git a/conans/test/unittests/tools/gnu/autotoolschain_test.py b/conans/test/unittests/tools/gnu/autotoolschain_test.py
index 026acc933a0..61a20034a2d 100644
--- a/conans/test/unittests/tools/gnu/autotoolschain_test.py
+++ b/conans/test/unittests/tools/gnu/autotoolschain_test.py
@@ -189,20 +189,22 @@ def test_chec... | 2023-01-11T15:05:44 | {} | {"conan/tools/gnu/autotoolstoolchain.py": "from conan.tools._check_build_profile import check_using_build_profile\nfrom conan.tools._compilers import architecture_flag, build_type_flags, cppstd_flag, \\\n build_type_link_flags, libcxx_flags\nfrom conan.tools.apple.apple import apple_min_version_flag, to_apple_arch, ... | {"conan/tools/gnu/autotoolstoolchain.py": [{"type": "function", "name": "AutotoolsToolchain._update_flags._list_to_dict", "lines": [228, 237], "signature": "def _list_to_dict(flags):", "doc": ""}, {"type": "function", "name": "AutotoolsToolchain._update_flags._dict_to_list", "lines": [239, 240], "signature": "def _dict... | null | ["conans/test/unittests/tools/gnu/autotoolschain_test.py::test_update_or_prune_any_args"] | ["conans/test/unittests/tools/gnu/autotoolschain_test.py::test_get_gnu_triplet_for_cross_building", "conans/test/unittests/tools/gnu/autotoolschain_test.py::test_get_toolchain_cppstd", "conans/test/unittests/tools/gnu/autotoolschain_test.py::test_msvc_runtime[static-Debug-MTd]", "conans/test/unittests/tools/gnu/autotoo... | 4a5b19a75db9225316c8cb022a2dfb9705a2af34 | {"first_commit_time": 1669899197.0, "pr_title": "[AutotoolsToolchain] Improve `update_xxxxx_args` behavior", "pr_body": "Changelog: Feature: AutotoolsToolchain helper functions: `update_configure_args`, `update_make_args`, and `update_autoreconf_args` can also add new values\r\nDocs: https://github.com/conan-io/docs/pu... | |
conan-io/conan | 12,980 | https://github.com/conan-io/conan/pull/12980 | conan-io__conan-12980 | [] | 7931acac1b4627f22bc9f3db5cc57d29ddfa16ac | diff --git a/conans/client/cache/cache.py b/conans/client/cache/cache.py
index c29f087bb17..7e6f0bb7804 100644
--- a/conans/client/cache/cache.py
+++ b/conans/client/cache/cache.py
@@ -2,6 +2,7 @@
import platform
from typing import List
+import yaml
from jinja2 import Template
@@ -10,6 +11,7 @@
from conans.cl... | diff --git a/conans/test/integration/settings/test_settings_user.py b/conans/test/integration/settings/test_settings_user.py
new file mode 100644
index 00000000000..e911b14669f
--- /dev/null
+++ b/conans/test/integration/settings/test_settings_user.py
@@ -0,0 +1,54 @@
+import os
+import textwrap
+
+from conans.test.ass... | 2023-01-26T00:38:06 | {} | {"conans/client/cache/cache.py": "import os\nimport platform\nfrom typing import List\n\nfrom jinja2 import Template\n\n\nfrom conan.internal.cache.cache import DataCache, RecipeLayout, PackageLayout\nfrom conans.client.cache.editable import EditablePackages\nfrom conans.client.cache.remote_registry import RemoteRegist... | {"conans/client/cache/cache.py": [{"type": "function", "name": "ClientCache.settings._load_settings", "lines": [208, 212], "signature": "def _load_settings(path):", "doc": ""}, {"type": "function", "name": "ClientCache.settings.appending_recursive_dict_update", "lines": [219, 230], "signature": "def appending_recursive... | null | ["conans/test/integration/settings/test_settings_user.py::test_settings_user", "conans/test/integration/settings/test_settings_user.py::test_settings_user_subdict"] | [] | 4a5b19a75db9225316c8cb022a2dfb9705a2af34 | {"first_commit_time": 1674692646.0, "pr_title": "[develop2] Propose new settings_user.yml", "pr_body": "Changelog: Feature: Users can define their own settings in `settings_user.yml` that will be merged with the Conan `settings.yml`.\r\n\r\nClose https://github.com/conan-io/conan/issues/8261\r\nClose https://github.com... | |
conan-io/conan | 13,354 | https://github.com/conan-io/conan/pull/13354 | conan-io__conan-13354 | [] | d6058bbb690819ded29eb283cd9329a92aea3d56 | diff --git a/conan/api/subapi/config.py b/conan/api/subapi/config.py
index 98faa962e73..f0d9c405e47 100644
--- a/conan/api/subapi/config.py
+++ b/conan/api/subapi/config.py
@@ -21,3 +21,7 @@ def install(self, path_or_url, verify_ssl, config_type=None, args=None,
def get(self, name, default=None, check_type=None):
... | diff --git a/conans/test/integration/command/config_test.py b/conans/test/integration/command/config_test.py
index 1ff1e502137..b47bf91ae2c 100644
--- a/conans/test/integration/command/config_test.py
+++ b/conans/test/integration/command/config_test.py
@@ -108,3 +108,46 @@ def _assert_config_not_exists(path):
_ass... | 2023-03-07T08:38:34 | {} | {"conan/api/subapi/config.py": "from conan.internal.conan_app import ConanApp\n\n\nclass ConfigAPI:\n\n def __init__(self, conan_api):\n self.conan_api = conan_api\n\n def home(self):\n return self.conan_api.cache_folder\n\n def install(self, path_or_url, verify_ssl, config_type=None, args=None,\... | {"conan/api/subapi/config.py": [{"type": "function", "name": "ConfigAPI.show", "lines": [25, 27], "signature": "def show(self, pattern):", "doc": ""}], "conan/cli/commands/config.py": [{"type": "function", "name": "config_show", "lines": [72, 79], "signature": "def config_show(conan_api, parser, subparser, *args):", "d... | null | ["conans/test/integration/command/config_test.py::test_config_show"] | ["conans/test/integration/command/config_test.py::test_missing_subarguments", "conans/test/integration/command/config_test.py::TestConfigHome::test_config_home_default", "conans/test/integration/command/config_test.py::TestConfigHome::test_api_uses_env_var_home", "conans/test/integration/command/config_test.py::test_co... | 4a5b19a75db9225316c8cb022a2dfb9705a2af34 | {"first_commit_time": 1678177288.0, "pr_title": "Add `conan config show <conf>` command", "pr_body": "Changelog: Feature: Add `conan config show <conf>` command.\r\nDocs: https://github.com/conan-io/docs/pull/3091\r\n\r\nLet's you get the value for any given configuration. This is the simplest implementation, which doe... | |
conan-io/conan | 13,509 | https://github.com/conan-io/conan/pull/13509 | conan-io__conan-13509 | [] | 03a29d352ae7d68751336fa10846e8b03ded5537 | diff --git a/conan/tools/files/__init__.py b/conan/tools/files/__init__.py
index 2517002f97d..f47cd2beffd 100644
--- a/conan/tools/files/__init__.py
+++ b/conan/tools/files/__init__.py
@@ -1,5 +1,6 @@
from conan.tools.files.files import load, save, mkdir, rmdir, rm, ftp_download, download, get, \
- rename, chdir, u... | diff --git a/conans/test/functional/tools/scm/test_git.py b/conans/test/functional/tools/scm/test_git.py
index 0b3d822a33f..a4e873b86a1 100644
--- a/conans/test/functional/tools/scm/test_git.py
+++ b/conans/test/functional/tools/scm/test_git.py
@@ -6,6 +6,8 @@
import pytest
import six
+from conans.test.assets.cmake... | 2023-03-23T00:01:46 | {} | {"conan/tools/files/__init__.py": "from conan.tools.files.files import load, save, mkdir, rmdir, rm, ftp_download, download, get, \\\n rename, chdir, unzip, replace_in_file, collect_libs, check_md5, check_sha1, check_sha256\n\nfrom conan.tools.files.patches import patch, apply_conandata_patches, export_conandata_pat... | {"conan/tools/files/files.py": [{"type": "function", "name": "move_folder_contents", "lines": [547, 582], "signature": "def move_folder_contents(src_folder, dst_folder):", "doc": "replaces the current folder contents with the contents of one child folder. This\nis used in the SCM monorepo flow, when it is necessary to ... | null | ["conans/test/functional/tools/scm/test_git.py::TestGitMonorepoSCMFlow::test_full_scm"] | ["conans/test/functional/tools/scm/test_git.py::TestGitBasicCapture::test_capture_commit_local", "conans/test/functional/tools/scm/test_git.py::TestGitBasicCapture::test_capture_remote_url", "conans/test/functional/tools/scm/test_git.py::TestGitBasicCapture::test_capture_remote_pushed_commit", "conans/test/functional/t... | 4a5b19a75db9225316c8cb022a2dfb9705a2af34 | {"first_commit_time": 1679529410.0, "pr_title": "new move_folder_contents() file helper to re-arrange repos", "pr_body": "Changelog: Feature: New ``move_folder_contents()`` file helper to re-arrange repos folders.\r\nDocs: https://github.com/conan-io/docs/pull/3196\r\nClose https://github.com/conan-io/conan/issues/1236... | |
conan-io/conan | 14,233 | https://github.com/conan-io/conan/pull/14233 | conan-io__conan-14233 | [] | 57c7049c758a685cdc02e870eb77617af5e45da6 | diff --git a/conan/tools/gnu/pkgconfigdeps.py b/conan/tools/gnu/pkgconfigdeps.py
index e793711ee81..1aa86e9d472 100644
--- a/conan/tools/gnu/pkgconfigdeps.py
+++ b/conan/tools/gnu/pkgconfigdeps.py
@@ -1,12 +1,13 @@
import os
+import re
import textwrap
from collections import namedtuple
from jinja2 import Template... | diff --git a/conans/test/integration/toolchains/gnu/test_pkgconfigdeps.py b/conans/test/integration/toolchains/gnu/test_pkgconfigdeps.py
index e211bd6e889..fb6bc02c644 100644
--- a/conans/test/integration/toolchains/gnu/test_pkgconfigdeps.py
+++ b/conans/test/integration/toolchains/gnu/test_pkgconfigdeps.py
@@ -94,9 +9... | 2023-07-06T06:04:41 | {"README.md": "<p align=\"center\">\n <a href=\"https://gmago-leway.github.io/fea-bench.github.io/\">\n <img src=\"assets/FEA-Bench-full.png\" style=\"height: 10em\" alt=\"fea-bench\" />\n </a>\n</p>\n\n<p align=\"center\">\n <em>A benchmark that aims to evaluate the capability of implementing new features in the... | {"conan/tools/gnu/pkgconfigdeps.py": "import os\nimport textwrap\nfrom collections import namedtuple\n\nfrom jinja2 import Template, StrictUndefined\n\nfrom conan.internal import check_duplicated_generator\nfrom conan.tools.gnu.gnudeps_flags import GnuDepsFlags\nfrom conan.errors import ConanException\nfrom conans.mode... | {"conan/tools/gnu/pkgconfigdeps.py": [{"type": "function", "name": "_PCContentGenerator._get_pc_variables", "lines": [129, 154], "signature": "def _get_pc_variables(self, cpp_info):", "doc": "Get all the freeform variables defined by Conan and\nusers (through ``pkg_config_custom_content``). This last ones will override... | null | ["conans/test/integration/toolchains/gnu/test_pkgconfigdeps.py::test_empty_dirs", "conans/test/integration/toolchains/gnu/test_pkgconfigdeps.py::test_custom_content", "conans/test/integration/toolchains/gnu/test_pkgconfigdeps.py::test_pkg_config_name_full_aliases"] | ["conans/test/integration/toolchains/gnu/test_pkgconfigdeps.py::test_pkg_config_dirs", "conans/test/integration/toolchains/gnu/test_pkgconfigdeps.py::test_system_libs", "conans/test/integration/toolchains/gnu/test_pkgconfigdeps.py::test_multiple_include", "conans/test/integration/toolchains/gnu/test_pkgconfigdeps.py::t... | 4a5b19a75db9225316c8cb022a2dfb9705a2af34 | {"first_commit_time": 1688557428.0, "pr_title": "[PkgConfigDeps] `pkg_config_custom_content` property overwrites variables", "pr_body": "Changelog: Feature: Let `pkg_config_custom_content` overwrite default `*.pc` variables created by `PkgConfigDeps`.\r\nChangelog: Feature: Let `pkg_config_custom_content` be a dict-lik... | |
conan-io/conan | 15,284 | https://github.com/conan-io/conan/pull/15284 | conan-io__conan-15284 | [] | 98d8f6aaa074b2bf6b827a359daf415f447a86a3 | diff --git a/conan/api/subapi/lockfile.py b/conan/api/subapi/lockfile.py
index e9fc4daf337..7e4bf7de760 100644
--- a/conan/api/subapi/lockfile.py
+++ b/conan/api/subapi/lockfile.py
@@ -88,6 +88,12 @@ def add_lockfile(lockfile=None, requires=None, build_requires=None, python_requi
python_requires=p... | diff --git a/conans/test/integration/lockfile/test_user_overrides.py b/conans/test/integration/lockfile/test_user_overrides.py
index f37a91c4259..53648a5c6c2 100644
--- a/conans/test/integration/lockfile/test_user_overrides.py
+++ b/conans/test/integration/lockfile/test_user_overrides.py
@@ -1,4 +1,7 @@
import json
+i... | 2023-12-16T10:42:15 | {"README.md": "<p align=\"center\">\n <a href=\"https://gmago-leway.github.io/fea-bench.github.io/\">\n <img src=\"assets/FEA-Bench-full.png\" style=\"height: 10em\" alt=\"fea-bench\" />\n </a>\n</p>\n\n<p align=\"center\">\n <em>A benchmark that aims to evaluate the capability of implementing new features in the... | {"conan/api/subapi/lockfile.py": "import os\n\nfrom conan.api.output import ConanOutput\nfrom conan.cli import make_abs_path\nfrom conans.client.graph.graph import Overrides\nfrom conans.errors import ConanException\nfrom conans.model.graph_lock import Lockfile, LOCKFILE\n\n\nclass LockfileAPI:\n\n def __init__(self... | {"conan/api/subapi/lockfile.py": [{"type": "function", "name": "LockfileAPI.remove_lockfile", "lines": [92, 95], "signature": "def remove_lockfile(lockfile, requires=None, build_requires=None, python_requires=None):", "doc": ""}], "conan/cli/commands/lock.py": [{"type": "function", "name": "lock_remove", "lines": [129,... | null | ["conans/test/integration/lockfile/test_user_overrides.py::TestLockRemove::test_lock_remove[--requires=math/*-removed0]", "conans/test/integration/lockfile/test_user_overrides.py::TestLockRemove::test_lock_remove[--requires=math/2.0-removed1]", "conans/test/integration/lockfile/test_user_overrides.py::TestLockRemove::t... | ["conans/test/integration/lockfile/test_user_overrides.py::test_user_overrides", "conans/test/integration/lockfile/test_user_overrides.py::test_user_build_overrides", "conans/test/integration/lockfile/test_user_overrides.py::test_user_python_overrides", "conans/test/integration/lockfile/test_user_overrides.py::test_add... | 4a5b19a75db9225316c8cb022a2dfb9705a2af34 | {"first_commit_time": 1702723238.0, "pr_title": "new lock remove command", "pr_body": "Changelog: Feature: New ``conan lock remove`` command to remove requires from lockfiles.\r\nDocs: https://github.com/conan-io/docs/pull/3496\r\n\r\nI am proposing this PR to close:\r\n\r\nClose https://github.com/conan-io/conan/issue... | |
conan-io/conan | 15,731 | https://github.com/conan-io/conan/pull/15731 | conan-io__conan-15731 | [] | 1763159dc74a54cb4920a55a7620557687e1dc25 | 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... | 2024-02-22T07:51:29 | {} | {"conan/tools/build/__init__.py": "from conan.tools.build.cpu import build_jobs\nfrom conan.tools.build.cross_building import cross_building, can_run\nfrom conan.tools.build.cppstd import check_min_cppstd, valid_min_cppstd, default_cppstd, \\\n supported_cppstd\nfrom conan.tools.build.stdcpp_library import stdcpp_li... | {"conan/tools/build/flags.py": [{"type": "function", "name": "cppstd_flag", "lines": [4, 16], "signature": "def cppstd_flag(conanfile):", "doc": "Returns flags specific to the C++ standard based on the ``conanfile.settings.compiler``,\n``conanfile.settings.compiler.version`` and ``conanfile.settings.compiler.cppstd``.\... | null | ["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_cppstd_... | [] | 4a5b19a75db9225316c8cb022a2dfb9705a2af34 | {"first_commit_time": 1708587880.0, "pr_title": "Backport cppstd_flag from Conan 2.x", "pr_body": "Related to the PR #15710, this PR backports the method available in Conan 2.x\r\n\r\nIn Conan 1.x we have [cppstd_flag](https://docs.conan.io/1/reference/tools.html#tools-cppstd-flag) available already, but it receives `s... | |
conan-io/conan | 16,231 | https://github.com/conan-io/conan/pull/16231 | conan-io__conan-16231 | [] | 80fee05d5811608511bbb30a965afd66bdc13311 | diff --git a/conan/tools/cmake/cmakedeps/templates/__init__.py b/conan/tools/cmake/cmakedeps/templates/__init__.py
index 64e90955bf1..f1cd8ba1b49 100644
--- a/conan/tools/cmake/cmakedeps/templates/__init__.py
+++ b/conan/tools/cmake/cmakedeps/templates/__init__.py
@@ -24,6 +24,12 @@ def root_target_name(self):
def... | diff --git a/conans/test/integration/toolchains/cmake/cmakedeps/test_cmakedeps.py b/conans/test/integration/toolchains/cmake/cmakedeps/test_cmakedeps.py
index f8a7eddf5b1..53dee803222 100644
--- a/conans/test/integration/toolchains/cmake/cmakedeps/test_cmakedeps.py
+++ b/conans/test/integration/toolchains/cmake/cmakede... | 2024-05-09T12:29:23 | {"README.md": "<p align=\"center\">\n <a href=\"https://gmago-leway.github.io/fea-bench.github.io/\">\n <img src=\"assets/FEA-Bench-full.png\" style=\"height: 10em\" alt=\"fea-bench\" />\n </a>\n</p>\n\n<p align=\"center\">\n <em>A benchmark that aims to evaluate the capability of implementing new features in the... | {"conan/tools/cmake/cmakedeps/templates/__init__.py": "import jinja2\nfrom jinja2 import Template\n\nfrom conan.errors import ConanException\n\n\nclass CMakeDepsFileTemplate(object):\n\n def __init__(self, cmakedeps, require, conanfile, generating_module=False):\n self.cmakedeps = cmakedeps\n self.requ... | {"conan/tools/cmake/cmakedeps/templates/__init__.py": [{"type": "function", "name": "CMakeDepsFileTemplate.additional_variables_prefixes", "lines": [28, 31], "signature": "def additional_variables_prefixes(self):", "doc": ""}]} | null | ["conans/test/integration/toolchains/cmake/cmakedeps/test_cmakedeps.py::test_cmakedeps_set_legacy_variable_name"] | ["conans/test/integration/toolchains/cmake/cmakedeps/test_cmakedeps.py::test_package_from_system", "conans/test/integration/toolchains/cmake/cmakedeps/test_cmakedeps.py::test_test_package", "conans/test/integration/toolchains/cmake/cmakedeps/test_cmakedeps.py::test_components_error", "conans/test/integration/toolchains... | 4a5b19a75db9225316c8cb022a2dfb9705a2af34 | {"first_commit_time": 1715257479.0, "pr_title": "Add property to change the CMake variable names generated with CMakeDeps", "pr_body": "Changelog: Feature: Add `cmake_additional_variables_prefixes` variable to CMakeDeps generator to allow adding extra names for declared CMake variables.\r\nDocs: https://github.com/cona... | |
conan-io/conan | 16,871 | https://github.com/conan-io/conan/pull/16871 | conan-io__conan-16871 | [] | d99c7149ff64c2dd98b5d9752f5308f8ffd70474 | diff --git a/conans/client/graph/build_mode.py b/conans/client/graph/build_mode.py
index f7a3cd61f81..8efbd99da3b 100644
--- a/conans/client/graph/build_mode.py
+++ b/conans/client/graph/build_mode.py
@@ -16,6 +16,8 @@ def __init__(self, params):
self.patterns = []
self.build_missing_patterns = []
... | diff --git a/test/integration/package_id/compatible_test.py b/test/integration/package_id/compatible_test.py
index 5e27f7816f6..b7719e41711 100644
--- a/test/integration/package_id/compatible_test.py
+++ b/test/integration/package_id/compatible_test.py
@@ -448,3 +448,173 @@ def test_compatibility_msvc_and_cppstd(self):... | 2024-08-25T21:10:13 | {"README.md": "<p align=\"center\">\n <a href=\"https://gmago-leway.github.io/fea-bench.github.io/\">\n <img src=\"assets/FEA-Bench-full.png\" style=\"height: 10em\" alt=\"fea-bench\" />\n </a>\n</p>\n\n<p align=\"center\">\n <em>A benchmark that aims to evaluate the capability of implementing new features in the... | {"conans/client/graph/build_mode.py": "from conans.errors import ConanException\nfrom conans.model.recipe_ref import ref_matches\n\n\nclass BuildMode:\n \"\"\" build_mode => [\"*\"] if user wrote \"--build=*\"\n => [\"hello\", \"bye\"] if user wrote \"--build hello --build bye\"\n ... | {"conans/client/graph/build_mode.py": [{"type": "function", "name": "BuildMode.allowed_compatible", "lines": [104, 113], "signature": "def allowed_compatible(self, conanfile):", "doc": ""}], "conans/client/graph/graph_binaries.py": [{"type": "function", "name": "GraphBinariesAnalyzer._find_build_compatible_binary", "li... | null | ["test/integration/package_id/compatible_test.py::TestCompatibleBuild::test_build_compatible", "test/integration/package_id/compatible_test.py::TestCompatibleBuild::test_build_compatible_cant_build", "test/integration/package_id/compatible_test.py::TestCompatibleBuild::test_build_compatible_cant_build2", "test/integrat... | ["test/integration/package_id/compatible_test.py::CompatibleIDsTest::test_build_missing", "test/integration/package_id/compatible_test.py::CompatibleIDsTest::test_compatible_diamond", "test/integration/package_id/compatible_test.py::CompatibleIDsTest::test_compatible_lockfile", "test/integration/package_id/compatible_t... | 4a5b19a75db9225316c8cb022a2dfb9705a2af34 | {"first_commit_time": 1724225223.0, "pr_title": "Feature/build compatibles", "pr_body": "Changelog: Feature: Allow building a compatible package still of the current profile one.\r\nDocs: Omit\r\n\r\nLets keep this not documented at the moment, as there is a gap in ``conan graph build-order``\r\n\r\nClose https://githu... | |
deepset-ai/haystack | 6,758 | https://github.com/deepset-ai/haystack/pull/6758 | deepset-ai__haystack-6758 | ["6588"] | 88191e74bf72345924ed703c65edb9fdf6bd8edd | 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... | 2024-01-17T14:05:22 | {"README.md": "<p align=\"center\">\n <a href=\"https://gmago-leway.github.io/fea-bench.github.io/\">\n <img src=\"assets/FEA-Bench-full.png\" style=\"height: 10em\" alt=\"fea-bench\" />\n </a>\n</p>\n\n<p align=\"center\">\n <em>A benchmark that aims to evaluate the capability of implementing new features in the... | {"haystack/components/converters/html.py": "import logging\nfrom pathlib import Path\nfrom typing import Any, Dict, List, Optional, Union, Literal\nfrom boilerpy3 import extractors\n\nfrom haystack import Document, component\nfrom haystack.dataclasses import ByteStream\nfrom haystack.components.converters.utils import ... | {"haystack/components/converters/html.py": [{"type": "function", "name": "HTMLToDocument.to_dict", "lines": [52, 53], "signature": "def to_dict(self) -> Dict[str, Any]:", "doc": ""}, {"type": "function", "name": "HTMLToDocument.from_dict", "lines": [56, 57], "signature": "def from_dict(cls, data: Dict[str, Any]) -> \"H... | null | ["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/components/converte... | f4d9c2bb917be0ffe132dffcc2ad4f1b0fcc5967 | {"first_commit_time": 1705500015.0, "pr_title": "feat: Add serde methods to `HTMLToDocument`", "pr_body": "### Related Issues\r\n\r\n- fixes #6588\r\n\r\n### How did you test it?\r\n\r\n<!-- unit tests, integration tests, manual verification, instructions for manual tests -->\r\nUnit.\r\n\r\n### Checklist\r\n\r\n- I ha... | |
deepset-ai/haystack | 7,009 | https://github.com/deepset-ai/haystack/pull/7009 | deepset-ai__haystack-7009 | [] | a7209f64136d7cc8bd446f6801d8695fc367608f | 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... | 2024-02-16T09:06:38 | {"README.md": "<p align=\"center\">\n <a href=\"https://gmago-leway.github.io/fea-bench.github.io/\">\n <img src=\"assets/FEA-Bench-full.png\" style=\"height: 10em\" alt=\"fea-bench\" />\n </a>\n</p>\n\n<p align=\"center\">\n <em>A benchmark that aims to evaluate the capability of implementing new features in the... | {"haystack/dataclasses/byte_stream.py": "from dataclasses import dataclass, field\nfrom pathlib import Path\nfrom typing import Optional, Dict, Any\n\n\n@dataclass\nclass ByteStream:\n \"\"\"\n Base data class representing a binary object in the Haystack API.\n \"\"\"\n\n data: bytes\n meta: Dict[str, An... | {"haystack/dataclasses/byte_stream.py": [{"type": "function", "name": "ByteStream.to_string", "lines": [53, 61], "signature": "def to_string(self, encoding: str = \"utf-8\") -> str:", "doc": "Convert the ByteStream to a string, metadata will not be included.\n\n:param encoding: The encoding used to convert the bytes to... | null | ["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"] | f4d9c2bb917be0ffe132dffcc2ad4f1b0fcc5967 | {"first_commit_time": 1708073900.0, "pr_title": "feat: Add ByteStream to_string method", "pr_body": "### Why:\r\nAdds `to_string` method in the `ByteStream` class which arises from the requirement to convert byte data back into its original string format for certain use cases. This enhancement provides a convenient and... | |
deepset-ai/haystack | 7,902 | https://github.com/deepset-ai/haystack/pull/7902 | deepset-ai__haystack-7902 | [] | 57c1d47c7d55caf1385e8315e18bab2bfe1ce2f6 | diff --git a/haystack/document_stores/types/filter_policy.py b/haystack/document_stores/types/filter_policy.py
index b30b9d3352..a2be576d20 100644
--- a/haystack/document_stores/types/filter_policy.py
+++ b/haystack/document_stores/types/filter_policy.py
@@ -3,6 +3,7 @@
# SPDX-License-Identifier: Apache-2.0
from en... | diff --git a/test/document_stores/test_filter_policy.py b/test/document_stores/test_filter_policy.py
new file mode 100644
index 0000000000..b7efcd0672
--- /dev/null
+++ b/test/document_stores/test_filter_policy.py
@@ -0,0 +1,45 @@
+# SPDX-FileCopyrightText: 2022-present deepset GmbH <info@deepset.ai>
+#
+# SPDX-License... | 2024-06-20T11:21:56 | {"README.md": "<p align=\"center\">\n <a href=\"https://gmago-leway.github.io/fea-bench.github.io/\">\n <img src=\"assets/FEA-Bench-full.png\" style=\"height: 10em\" alt=\"fea-bench\" />\n </a>\n</p>\n\n<p align=\"center\">\n <em>A benchmark that aims to evaluate the capability of implementing new features in the... | {"haystack/document_stores/types/filter_policy.py": "# SPDX-FileCopyrightText: 2022-present deepset GmbH <info@deepset.ai>\n#\n# SPDX-License-Identifier: Apache-2.0\n\nfrom enum import Enum\n\n\nclass FilterPolicy(Enum):\n \"\"\"\n Policy to determine how filters are applied in retrievers interacting with documen... | diff --git a/releasenotes/notes/add-apply_filter_policy-function-ae3152e6afe0ca57.yaml b/releasenotes/notes/add-apply_filter_policy-function-ae3152e6afe0ca57.yaml
new file mode 100644
index 0000000000..c890a44297
--- /dev/null
+++ b/releasenotes/notes/add-apply_filter_policy-function-ae3152e6afe0ca57.yaml
@@ -0,0 +1,4 ... | {"haystack/document_stores/types/filter_policy.py": [{"type": "function", "name": "apply_filter_policy", "lines": [39, 61], "signature": "def apply_filter_policy( filter_policy: FilterPolicy, init_filters: Optional[Dict[str, Any]] = None, runtime_filters: Optional[Dict[str, Any]] = None, ) -> Optional[Dict[str, Any]]:"... | null | ["test/document_stores/test_filter_policy.py::test_replace_policy_with_both_filters", "test/document_stores/test_filter_policy.py::test_merge_policy_with_both_filters", "test/document_stores/test_filter_policy.py::test_replace_policy_with_only_init_filters", "test/document_stores/test_filter_policy.py::test_merge_polic... | [] | f4d9c2bb917be0ffe132dffcc2ad4f1b0fcc5967 | {"first_commit_time": 1718881866.0, "pr_title": "feat: Add apply_filter_policy function", "pr_body": "Added the apply_filter_policy function to standardize the application of filter policies across all document store-specific retrievers, allowing for consistent handling of initial and runtime filters based on the chose... |
deepset-ai/haystack | 7,920 | https://github.com/deepset-ai/haystack/pull/7920 | deepset-ai__haystack-7920 | [] | c51f8ffb865db54f39103a202d2b6ba81fc68fb9 | diff --git a/haystack/components/fetchers/link_content.py b/haystack/components/fetchers/link_content.py
index b658ff2450..ccc698f613 100644
--- a/haystack/components/fetchers/link_content.py
+++ b/haystack/components/fetchers/link_content.py
@@ -4,6 +4,7 @@
from collections import defaultdict
from concurrent.futur... | diff --git a/test/components/fetchers/test_link_content_fetcher.py b/test/components/fetchers/test_link_content_fetcher.py
index ac99bc4cfa..c6a4d5c55f 100644
--- a/test/components/fetchers/test_link_content_fetcher.py
+++ b/test/components/fetchers/test_link_content_fetcher.py
@@ -46,10 +46,12 @@ def test_init(self):
... | 2024-06-24T14:22:50 | {"README.md": "<p align=\"center\">\n <a href=\"https://gmago-leway.github.io/fea-bench.github.io/\">\n <img src=\"assets/FEA-Bench-full.png\" style=\"height: 10em\" alt=\"fea-bench\" />\n </a>\n</p>\n\n<p align=\"center\">\n <em>A benchmark that aims to evaluate the capability of implementing new features in the... | {"haystack/components/fetchers/link_content.py": "# SPDX-FileCopyrightText: 2022-present deepset GmbH <info@deepset.ai>\n#\n# SPDX-License-Identifier: Apache-2.0\n\nfrom collections import defaultdict\nfrom concurrent.futures import ThreadPoolExecutor\nfrom typing import Callable, Dict, List, Optional, Tuple\n\nimport ... | diff --git a/releasenotes/notes/link-content-fetcher-enhancements-49babe1c60888043.yaml b/releasenotes/notes/link-content-fetcher-enhancements-49babe1c60888043.yaml
new file mode 100644
index 0000000000..d6a7d24285
--- /dev/null
+++ b/releasenotes/notes/link-content-fetcher-enhancements-49babe1c60888043.yaml
@@ -0,0 +1... | {"haystack/components/fetchers/link_content.py": [{"type": "function", "name": "LinkContentFetcher._resolve_handler", "lines": [223, 244], "signature": "def _resolve_handler(self, content_type: str) -> Callable[[Response], ByteStream]:", "doc": "Resolves the handler for the given content type.\n\nFirst, it tries to fin... | null | ["test/components/fetchers/test_link_content_fetcher.py::TestLinkContentFetcher::test_init"] | ["[", "test/components/fetchers/test_link_content_fetcher.py::TestLinkContentFetcher::test_init_with_params", "test/components/fetchers/test_link_content_fetcher.py::TestLinkContentFetcher::test_run_text", "test/components/fetchers/test_link_content_fetcher.py::TestLinkContentFetcher::test_run_html", "test/components/f... | f4d9c2bb917be0ffe132dffcc2ad4f1b0fcc5967 | {"first_commit_time": 1719236919.0, "pr_title": "feat: Improve LinkContentFetcher content type handling", "pr_body": "### Why:\r\nEnhances `LinkContentFetcher` to broaden its content handling capabilities. The primary motivation behind these changes is to allow more content type support utilizing pattern matching for c... |
deepset-ai/haystack | 7,933 | https://github.com/deepset-ai/haystack/pull/7933 | deepset-ai__haystack-7933 | [] | 8b9eddcd948e972c844e03000c2802e85e462c2a | diff --git a/haystack/components/preprocessors/document_splitter.py b/haystack/components/preprocessors/document_splitter.py
index f5e048db6e..200fa8aa92 100644
--- a/haystack/components/preprocessors/document_splitter.py
+++ b/haystack/components/preprocessors/document_splitter.py
@@ -90,38 +90,38 @@ def run(self, doc... | diff --git a/test/components/preprocessors/test_document_splitter.py b/test/components/preprocessors/test_document_splitter.py
index 4351457f79..d6fcaa9d1c 100644
--- a/test/components/preprocessors/test_document_splitter.py
+++ b/test/components/preprocessors/test_document_splitter.py
@@ -7,6 +7,28 @@
from haystack.c... | 2024-06-26T08:47:37 | {"README.md": "<p align=\"center\">\n <a href=\"https://gmago-leway.github.io/fea-bench.github.io/\">\n <img src=\"assets/FEA-Bench-full.png\" style=\"height: 10em\" alt=\"fea-bench\" />\n </a>\n</p>\n\n<p align=\"center\">\n <em>A benchmark that aims to evaluate the capability of implementing new features in the... | {"haystack/components/preprocessors/document_splitter.py": "# SPDX-FileCopyrightText: 2022-present deepset GmbH <info@deepset.ai>\n#\n# SPDX-License-Identifier: Apache-2.0\n\nfrom copy import deepcopy\nfrom typing import Dict, List, Literal, Tuple\n\nfrom more_itertools import windowed\n\nfrom haystack import Document,... | diff --git a/releasenotes/notes/add-split_id_and_overlap_to_DocumentSplitter-8180ad8f13495741.yaml b/releasenotes/notes/add-split_id_and_overlap_to_DocumentSplitter-8180ad8f13495741.yaml
new file mode 100644
index 0000000000..e3eba2d57b
--- /dev/null
+++ b/releasenotes/notes/add-split_id_and_overlap_to_DocumentSplitter... | {"haystack/components/preprocessors/document_splitter.py": [{"type": "function", "name": "DocumentSplitter._add_split_overlap_information", "lines": [199, 221], "signature": "def _add_split_overlap_information( current_doc: Document, current_doc_start_idx: int, previous_doc: Document, previous_doc_start_idx: int ):", "... | null | ["test/components/preprocessors/test_document_splitter.py::TestDocumentSplitter::test_add_split_overlap_information"] | ["test/components/preprocessors/test_document_splitter.py::TestDocumentSplitter::test_non_text_document", "test/components/preprocessors/test_document_splitter.py::TestDocumentSplitter::test_single_doc", "test/components/preprocessors/test_document_splitter.py::TestDocumentSplitter::test_empty_list", "test/components/p... | f4d9c2bb917be0ffe132dffcc2ad4f1b0fcc5967 | {"first_commit_time": 1719248237.0, "pr_title": "feat : adding `split_id` and `split_overlap` to `DocumentSplitter`", "pr_body": "### Related Issues\r\n\r\n- fixes [#7389](https://github.com/deepset-ai/haystack/issues/7389)\r\n\r\n### Proposed Changes:\r\n\r\nWhen a `split_overlap` is set each produced chunk Document w... |
deepset-ai/haystack | 8,042 | https://github.com/deepset-ai/haystack/pull/8042 | deepset-ai__haystack-8042 | [] | 031b0bfbd836f128736220589917a62c43c9c512 | diff --git a/haystack/document_stores/types/__init__.py b/haystack/document_stores/types/__init__.py
index df2032f79c..ed6becf8b4 100644
--- a/haystack/document_stores/types/__init__.py
+++ b/haystack/document_stores/types/__init__.py
@@ -2,8 +2,8 @@
#
# SPDX-License-Identifier: Apache-2.0
-from .filter_policy impo... | diff --git a/test/document_stores/test_filter_policy.py b/test/document_stores/test_filter_policy.py
index b7efcd0672..d775ee356e 100644
--- a/test/document_stores/test_filter_policy.py
+++ b/test/document_stores/test_filter_policy.py
@@ -3,43 +3,178 @@
# SPDX-License-Identifier: Apache-2.0
import pytest
-from typi... | 2024-07-18T09:14:08 | {"README.md": "<p align=\"center\">\n <a href=\"https://gmago-leway.github.io/fea-bench.github.io/\">\n <img src=\"assets/FEA-Bench-full.png\" style=\"height: 10em\" alt=\"fea-bench\" />\n </a>\n</p>\n\n<p align=\"center\">\n <em>A benchmark that aims to evaluate the capability of implementing new features in the... | {"haystack/document_stores/types/__init__.py": "# SPDX-FileCopyrightText: 2022-present deepset GmbH <info@deepset.ai>\n#\n# SPDX-License-Identifier: Apache-2.0\n\nfrom .filter_policy import FilterPolicy\nfrom .policy import DuplicatePolicy\nfrom .protocol import DocumentStore\n\n__all__ = [\"DocumentStore\", \"Duplicat... | diff --git a/releasenotes/notes/implement-merge-filter-logic-99e6785a78f80ae9.yaml b/releasenotes/notes/implement-merge-filter-logic-99e6785a78f80ae9.yaml
new file mode 100644
index 0000000000..c90479c2c6
--- /dev/null
+++ b/releasenotes/notes/implement-merge-filter-logic-99e6785a78f80ae9.yaml
@@ -0,0 +1,4 @@
+---
+enh... | {"haystack/document_stores/types/filter_policy.py": [{"type": "function", "name": "is_comparison_filter", "lines": [43, 50], "signature": "def is_comparison_filter(filter_item: Dict[str, Any]) -> bool:", "doc": "Check if the given filter is a comparison filter.\n\n:param filter_item: The filter to check.\n:returns: Tru... | null | ["[", "test/document_stores/test_filter_policy.py::test_merge_two_comparison_filters", "test/document_stores/test_filter_policy.py::test_merge_init_comparison_and_runtime_logical_filters", "test/document_stores/test_filter_policy.py::test_merge_runtime_comparison_and_init_logical_filters_with_string_operators", "test/d... | [] | f4d9c2bb917be0ffe132dffcc2ad4f1b0fcc5967 | {"first_commit_time": 1721293309.0, "pr_title": "feat: Implement apply_filter_policy and FilterPolicy.MERGE for the new filters", "pr_body": "### Why:\r\nImplements proper merging of new filters.\r\n\r\n- fixes: https://github.com/deepset-ai/haystack/issues/7995\r\n\r\n### What:\r\n- Implemented new utility functions t... |
deepset-ai/haystack | 8,103 | https://github.com/deepset-ai/haystack/pull/8103 | deepset-ai__haystack-8103 | [] | e17d0c41926849975166e70ec46411f402c8098e | diff --git a/haystack/components/preprocessors/document_cleaner.py b/haystack/components/preprocessors/document_cleaner.py
index 233dfed50a..282728ea74 100644
--- a/haystack/components/preprocessors/document_cleaner.py
+++ b/haystack/components/preprocessors/document_cleaner.py
@@ -6,7 +6,8 @@
from copy import deepcop... | diff --git a/test/components/preprocessors/test_document_cleaner.py b/test/components/preprocessors/test_document_cleaner.py
index 0acd9e8e8c..9bd5df549e 100644
--- a/test/components/preprocessors/test_document_cleaner.py
+++ b/test/components/preprocessors/test_document_cleaner.py
@@ -139,3 +139,68 @@ def test_keep_id... | 2024-07-29T04:06:24 | {"README.md": "<p align=\"center\">\n <a href=\"https://gmago-leway.github.io/fea-bench.github.io/\">\n <img src=\"assets/FEA-Bench-full.png\" style=\"height: 10em\" alt=\"fea-bench\" />\n </a>\n</p>\n\n<p align=\"center\">\n <em>A benchmark that aims to evaluate the capability of implementing new features in the... | {"haystack/components/preprocessors/document_cleaner.py": "# SPDX-FileCopyrightText: 2022-present deepset GmbH <info@deepset.ai>\n#\n# SPDX-License-Identifier: Apache-2.0\n\nimport re\nfrom copy import deepcopy\nfrom functools import partial, reduce\nfrom itertools import chain\nfrom typing import Generator, List, Opti... | diff --git a/releasenotes/notes/add-unicode-normalization-and-ascii-mode-to-document-cleaner-ba536b46e499663c.yaml b/releasenotes/notes/add-unicode-normalization-and-ascii-mode-to-document-cleaner-ba536b46e499663c.yaml
new file mode 100644
index 0000000000..d4d28ee47b
--- /dev/null
+++ b/releasenotes/notes/add-unicode-... | {"haystack/components/preprocessors/document_cleaner.py": [{"type": "function", "name": "DocumentCleaner._validate_params", "lines": [82, 90], "signature": "def _validate_params(self, unicode_normalization: Optional[str]):", "doc": "Validate the parameters of the DocumentCleaner.\n\n:param unicode_normalization: Unicod... | null | ["test/components/preprocessors/test_document_cleaner.py::TestDocumentCleaner::test_unicode_normalization", "test/components/preprocessors/test_document_cleaner.py::TestDocumentCleaner::test_ascii_only"] | ["[", "test/components/preprocessors/test_document_cleaner.py::TestDocumentCleaner::test_init", "test/components/preprocessors/test_document_cleaner.py::TestDocumentCleaner::test_non_text_document", "test/components/preprocessors/test_document_cleaner.py::TestDocumentCleaner::test_single_document", "test/components/pre... | f4d9c2bb917be0ffe132dffcc2ad4f1b0fcc5967 | {"first_commit_time": 1722225270.0, "pr_title": "feat: add unicode normalization & ascii_only mode for DocumentCleaner", "pr_body": "### Proposed Changes:\r\n\r\nAdded two new parameters to the `DocumentCleaner` Component, `unicode_normalization` and `ascii_only`.\r\n\r\n`unicode_normalization` allows to normalize unic... |
deepset-ai/haystack | 8,336 | https://github.com/deepset-ai/haystack/pull/8336 | deepset-ai__haystack-8336 | [] | 5514676b5ecea45c5b93da75bfa271059f89197d | diff --git a/haystack/components/preprocessors/document_splitter.py b/haystack/components/preprocessors/document_splitter.py
index c0c39ea82f..556878a965 100644
--- a/haystack/components/preprocessors/document_splitter.py
+++ b/haystack/components/preprocessors/document_splitter.py
@@ -3,11 +3,13 @@
# SPDX-License-Ide... | diff --git a/test/components/preprocessors/test_document_splitter.py b/test/components/preprocessors/test_document_splitter.py
index d9fa85f005..7c942ab4cc 100644
--- a/test/components/preprocessors/test_document_splitter.py
+++ b/test/components/preprocessors/test_document_splitter.py
@@ -1,10 +1,18 @@
# SPDX-FileCop... | 2024-09-05T20:21:06 | {"README.md": "<p align=\"center\">\n <a href=\"https://gmago-leway.github.io/fea-bench.github.io/\">\n <img src=\"assets/FEA-Bench-full.png\" style=\"height: 10em\" alt=\"fea-bench\" />\n </a>\n</p>\n\n<p align=\"center\">\n <em>A benchmark that aims to evaluate the capability of implementing new features in the... | {"haystack/components/preprocessors/document_splitter.py": "# SPDX-FileCopyrightText: 2022-present deepset GmbH <info@deepset.ai>\n#\n# SPDX-License-Identifier: Apache-2.0\n\nfrom copy import deepcopy\nfrom typing import Dict, List, Literal, Tuple\n\nfrom more_itertools import windowed\n\nfrom haystack import Document,... | diff --git a/releasenotes/notes/feat-documentsplitter-add-split-by-function-77501f439b63bb49.yaml b/releasenotes/notes/feat-documentsplitter-add-split-by-function-77501f439b63bb49.yaml
new file mode 100644
index 0000000000..e8b170442a
--- /dev/null
+++ b/releasenotes/notes/feat-documentsplitter-add-split-by-function-77... | {"haystack/components/preprocessors/document_splitter.py": [{"type": "function", "name": "DocumentSplitter.to_dict", "lines": [249, 262], "signature": "def to_dict(self) -> Dict[str, Any]:", "doc": "Serializes the component to a dictionary."}, {"type": "function", "name": "DocumentSplitter.from_dict", "lines": [265, 27... | null | ["test/components/preprocessors/test_document_splitter.py::TestDocumentSplitter::test_split_by_function", "test/components/preprocessors/test_document_splitter.py::TestDocumentSplitter::test_to_dict", "test/components/preprocessors/test_document_splitter.py::TestDocumentSplitter::test_to_dict_with_splitting_function", ... | ["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/components/p... | f4d9c2bb917be0ffe132dffcc2ad4f1b0fcc5967 | {"first_commit_time": 1725555637.0, "pr_title": "feat : DocumentSplitter, adding the option to split_by function", "pr_body": "### Proposed Changes:\r\n\r\nAdding the possibility to pass a function and personalise the way in which DocumentSplitter defines a unit.\r\n\r\nThis means a user can, for example, use the follo... |
django/django | 16,369 | https://github.com/django/django/pull/16369 | django__django-16369 | ["33662"] | ab7a85ac297464df82d8363455609979ca3603db | diff --git a/django/contrib/sitemaps/__init__.py b/django/contrib/sitemaps/__init__.py
index 3d276b60d490..df57f1cd5c70 100644
--- a/django/contrib/sitemaps/__init__.py
+++ b/django/contrib/sitemaps/__init__.py
@@ -92,6 +92,10 @@ def _get(self, name, item, default=None):
return attr(item)
return a... | diff --git a/tests/sitemaps_tests/test_http.py b/tests/sitemaps_tests/test_http.py
index 8c16f66896bd..12e387757be7 100644
--- a/tests/sitemaps_tests/test_http.py
+++ b/tests/sitemaps_tests/test_http.py
@@ -10,7 +10,7 @@
from django.utils.formats import localize
from .base import SitemapTestsBase
-from .models impo... | 2022-12-07T15:09:14 | {} | {"django/contrib/sitemaps/__init__.py": "import warnings\nfrom urllib.parse import urlencode\nfrom urllib.request import urlopen\n\nfrom django.apps import apps as django_apps\nfrom django.conf import settings\nfrom django.core import paginator\nfrom django.core.exceptions import ImproperlyConfigured\nfrom django.urls ... | diff --git a/docs/ref/contrib/sitemaps.txt b/docs/ref/contrib/sitemaps.txt
index d3225405a38d..7dc3dced5183 100644
--- a/docs/ref/contrib/sitemaps.txt
+++ b/docs/ref/contrib/sitemaps.txt
@@ -311,6 +311,15 @@ Note:
The latest ``lastmod`` returned by calling the method with all
items returned by :me... | {"django/contrib/sitemaps/__init__.py": [{"type": "function", "name": "Sitemap.get_languages_for_item", "lines": [95, 97], "signature": "def get_languages_for_item(self, item):", "doc": "Languages for which this item is displayed."}]} | 4.2 | ["A i18n sitemap index in which item can be chosen to be displayed for a"] | ["A simple sitemap index can be rendered with a custom template", "test_simple_sitemap_custom_index_warning (sitemaps_tests.test_http.DeprecatedTests)", "A i18n sitemap with alternate/hreflang links can be rendered.", "A i18n sitemap index with limited languages can be rendered.", "A i18n sitemap index with x-default c... | 016bead6a23989adec5c7ee6948db7ce2fc5e89b | {"first_commit_time": 1666366604.0, "pr_title": "Fixed #33662 -- Allowed Sitemap to customize languages for each item.", "pr_body": "[ticket #33662 : Choose which items are displayed per language in Sitemap ](https://code.djangoproject.com/ticket/33662)", "pr_timeline": [], "issues": {"33662": {"issue_title": "Choose ... |
docker/docker-py | 1,230 | https://github.com/docker/docker-py/pull/1230 | docker__docker-py-1230 | [] | 52c2cc845346884218f566eeaeee5a5ca3e714ab | diff --git a/docker/api/swarm.py b/docker/api/swarm.py
index 7481c67532..2fc877448a 100644
--- a/docker/api/swarm.py
+++ b/docker/api/swarm.py
@@ -69,6 +69,13 @@ def nodes(self, filters=None):
return self._result(self._get(url, params=params), True)
+ @utils.minimum_version('1.24')
+ def update_node(... | diff --git a/tests/integration/swarm_test.py b/tests/integration/swarm_test.py
index 8c62f2ec06..7f02c71170 100644
--- a/tests/integration/swarm_test.py
+++ b/tests/integration/swarm_test.py
@@ -1,3 +1,4 @@
+import copy
import docker
import pytest
@@ -138,3 +139,26 @@ def test_inspect_node(self):
node_data... | 2016-09-27T18:37:20 | {"README.md": "<p align=\"center\">\n <a href=\"https://gmago-leway.github.io/fea-bench.github.io/\">\n <img src=\"assets/FEA-Bench-full.png\" style=\"height: 10em\" alt=\"fea-bench\" />\n </a>\n</p>\n\n<p align=\"center\">\n <em>A benchmark that aims to evaluate the capability of implementing new features in the... | {"docker/api/swarm.py": "import logging\nfrom six.moves import http_client\nfrom .. import utils\nlog = logging.getLogger(__name__)\n\n\nclass SwarmApiMixin(object):\n\n def create_swarm_spec(self, *args, **kwargs):\n return utils.SwarmSpec(*args, **kwargs)\n\n @utils.minimum_version('1.24')\n def init_... | diff --git a/docs/api.md b/docs/api.md
index 1699344a66..5cadb83081 100644
--- a/docs/api.md
+++ b/docs/api.md
@@ -1129,6 +1129,11 @@ Update resource configs of one or more containers.
**Returns** (dict): Dictionary containing a `Warnings` key.
+## update_node
+
+Update a node.
+See the [Swarm documentation](swarm... | {"docker/api/swarm.py": [{"type": "function", "name": "SwarmApiMixin.update_node", "lines": [73, 77], "signature": "def update_node(self, node_id, version, node_spec=None):", "doc": ""}]} | null | ["tests/unit/swarm_test.py::SwarmTest::test_node_update"] | [] | 26753c81defff28a1a38a34788e9653c8eb87c3d | {"first_commit_time": 1474661279.0, "pr_title": "enable setting of node labels #1225", "pr_body": "Added update_node function to enable setting labels on nodes. This\nexposes the Update a Node function from the Docker API and should\nenable promoting/demoting manager nodes inside a swarm.\n\nSigned-off-by: Nathan Shir... |
embeddings-benchmark/mteb | 1,256 | https://github.com/embeddings-benchmark/mteb/pull/1256 | embeddings-benchmark__mteb-1256 | [] | f04279d5975f4a5c7fd5f5f284bfe14303b8f2a0 | diff --git a/README.md b/README.md
index e35ad3bdbc..a7eb03e4f2 100644
--- a/README.md
+++ b/README.md
@@ -378,6 +378,7 @@ df = results_to_dataframe(results)
| Documentation | |
| ------------------------------ | ---------------------- |
| 📋 [Tasks] | Overview of available ta... | diff --git a/tests/test_cli.py b/tests/test_cli.py
index fdcd1b014a..1d0400e985 100644
--- a/tests/test_cli.py
+++ b/tests/test_cli.py
@@ -22,6 +22,15 @@ def test_available_tasks():
), "Sample task Banking77Classification task not found in available tasks"
+def test_available_benchmarks():
+ command = f"{sy... | 2024-09-29T12:28:20 | {"README.md": "<p align=\"center\">\n <a href=\"https://gmago-leway.github.io/fea-bench.github.io/\">\n <img src=\"assets/FEA-Bench-full.png\" style=\"height: 10em\" alt=\"fea-bench\" />\n </a>\n</p>\n\n<p align=\"center\">\n <em>A benchmark that aims to evaluate the capability of implementing new features in the... | {"README.md": "<h1 align=\"center\">Massive Text Embedding Benchmark</h1>\n\n<p align=\"center\">\n <a href=\"https://github.com/embeddings-benchmark/mteb/releases\">\n <img alt=\"GitHub release\" src=\"https://img.shields.io/github/release/embeddings-benchmark/mteb.svg\">\n </a>\n <a href=\"https://arx... | diff --git a/README.md b/README.md
index e35ad3bdbc..a7eb03e4f2 100644
--- a/README.md
+++ b/README.md
@@ -378,6 +378,7 @@ df = results_to_dataframe(results)
| Documentation | |
| ------------------------------ | ---------------------- |
| 📋 [Tasks] | Overview of available ta... | {"mteb/cli.py": [{"type": "function", "name": "available_benchmarks", "lines": [155, 158], "signature": "def available_benchmarks(args: argparse.Namespace) -> None:", "doc": ""}, {"type": "function", "name": "add_available_benchmarks_parser", "lines": [215, 221], "signature": "def add_available_benchmarks_parser(subpar... | null | ["tests/test_cli.py::test_available_benchmarks"] | ["tests/test_cli.py::test_available_tasks", "tests/test_cli.py::test_run_task[average_word_embeddings_komninos-BornholmBitextMining-21eec43590414cb8e3a6f654857abed0483ae36e]", "tests/test_cli.py::test_run_task[intfloat/multilingual-e5-small-BornholmBitextMining-e4ce9877abf3edfe10b0d82785e83bdcb973e22e]", "tests/test_cl... | b580b95fc91a7e7e675d27c3ae9a9df64ddad169 | {"first_commit_time": 1727606088.0, "pr_title": "fix: Add listing all available benchmarks CLI option", "pr_body": "<!-- If you are submitting a dataset or a model for the model registry please use the corresponding checklists below otherwise feel free to remove them. -->\r\n\r\n<!-- add additional description, questio... |
fairlearn/fairlearn | 1,436 | https://github.com/fairlearn/fairlearn/pull/1436 | fairlearn__fairlearn-1436 | [] | 403da1fec74bdf2da28dc49487ccd72caa6f6976 | diff --git a/fairlearn/metrics/_disaggregated_result.py b/fairlearn/metrics/_disaggregated_result.py
index cab28bf04..b78f0ca51 100644
--- a/fairlearn/metrics/_disaggregated_result.py
+++ b/fairlearn/metrics/_disaggregated_result.py
@@ -2,6 +2,8 @@
# Licensed under the MIT License.
from __future__ import annotations
... | diff --git a/test/unit/metrics/test_disaggregated_result.py b/test/unit/metrics/test_disaggregated_result.py
index 7c1486f72..1969f95cb 100644
--- a/test/unit/metrics/test_disaggregated_result.py
+++ b/test/unit/metrics/test_disaggregated_result.py
@@ -1,11 +1,13 @@
# Copyright (c) Microsoft Corporation and Fairlearn ... | 2024-11-10T17:43:48 | {} | {"fairlearn/metrics/_disaggregated_result.py": "# Copyright (c) Microsoft Corporation and Fairlearn contributors.\n# Licensed under the MIT License.\nfrom __future__ import annotations\n\nimport logging\nfrom typing import Literal\n\nimport numpy as np\nimport pandas as pd\n\nfrom ._annotated_metric_function import Ann... | {"fairlearn/metrics/_disaggregated_result.py": [{"type": "function", "name": "DisaggregatedResult._apply_functions", "lines": [350, 392], "signature": "def _apply_functions( *, data: pd.DataFrame, annotated_functions: dict[str, AnnotatedMetricFunction], grouping_names: list[str] | None, ) -> pd.Series | pd.DataFrame:",... | null | ["test/unit/metrics/test_disaggregated_result.py::test_apply_functions_with_no_grouping[None-expected0]", "test/unit/metrics/test_disaggregated_result.py::test_apply_functions_with_no_grouping[grouping_names1-expected1]", "test/unit/metrics/test_disaggregated_result.py::test_apply_functions_with_grouping[grouping_names... | ["test/unit/metrics/test_disaggregated_result.py::TestErrorMessages::test_bad_grouping", "test/unit/metrics/test_disaggregated_result.py::TestErrorMessages::test_bad_difference_method", "test/unit/metrics/test_disaggregated_result.py::TestErrorMessages::test_bad_difference_errors", "test/unit/metrics/test_disaggregated... | 403da1fec74bdf2da28dc49487ccd72caa6f6976 | {"first_commit_time": 1731257114.0, "pr_title": "refactor: simplify disaggregated result", "pr_body": "## Description\r\n- Simplified code complexity by using pandas built-in methods.\r\n- Refactored the common logic in initializing the `overall` and `by_group` inside `.create`.\r\n- Added unit tests to cover the latt... | |
falconry/falcon | 1,174 | https://github.com/falconry/falcon/pull/1174 | falconry__falcon-1174 | ["1132"] | 919fd3f5a3129d04f1c7d23f5eff440ec4598e35 | diff --git a/falcon/request.py b/falcon/request.py
index b1f92e12f..5bc5d412a 100644
--- a/falcon/request.py
+++ b/falcon/request.py
@@ -26,7 +26,8 @@
import io
NativeStream = io.BufferedReader
-from wsgiref.validate import InputWrapper # NOQA: I202
+from uuid import UUID # NOQA: I202
+from wsgiref.valida... | diff --git a/tests/test_query_params.py b/tests/test_query_params.py
index e90567d4b..348577333 100644
--- a/tests/test_query_params.py
+++ b/tests/test_query_params.py
@@ -1,4 +1,5 @@
from datetime import date, datetime
+from uuid import UUID
try:
import ujson as json
@@ -72,7 +73,7 @@ class TestQueryParams(o... | 2017-12-18T22:06:28 | {} | {"falcon/request.py": "# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, s... | {"falcon/request.py": [{"type": "function", "name": "Request.get_param_as_uuid", "lines": [1277, 1339], "signature": "def get_param_as_uuid(self, name, required=False, store=None):", "doc": "Return the value of a query string parameter as an UUID.\n\nThe value to convert must conform to the standard UUID string\nrepres... | null | ["tests/test_query_params.py::TestQueryParams::test_required[get_param_as_uuid-simulate_request_get_query_params]", "tests/test_query_params.py::TestQueryParams::test_required[get_param_as_uuid-simulate_request_post_query_params]", "tests/test_query_params.py::TestQueryParams::test_uuid[simulate_request_get_query_param... | ["tests/test_query_params.py::TestQueryParams::test_none[simulate_request_get_query_params]", "tests/test_query_params.py::TestQueryParams::test_none[simulate_request_post_query_params]", "tests/test_query_params.py::TestQueryParams::test_blank[simulate_request_get_query_params]", "tests/test_query_params.py::TestQuery... | 77d5e6394a88ead151c9469494749f95f06b24bf | {"first_commit_time": 1513634618.0, "pr_title": "feat(Request): Add get_param_as_uuid()", "pr_body": "Closes #1132", "pr_timeline": [{"time": 1513635609.0, "comment": "# [Codecov](https://codecov.io/gh/falconry/falcon/pull/1174?src=pr&el=h1) Report\n> Merging [#1174](https://codecov.io/gh/falconry/falcon/pull/1174?src=... | |
falconry/falcon | 1,603 | https://github.com/falconry/falcon/pull/1603 | falconry__falcon-1603 | [] | b68c4ff5b8ddf83f84d0e9d7875fb478995a70eb | diff --git a/docs/_newsfragments/1603-smart-exception-handler-precedence.feature.rst b/docs/_newsfragments/1603-smart-exception-handler-precedence.feature.rst
new file mode 100644
index 000000000..ba23500ae
--- /dev/null
+++ b/docs/_newsfragments/1603-smart-exception-handler-precedence.feature.rst
@@ -0,0 +1,1 @@
+Exce... | diff --git a/tests/test_error_handlers.py b/tests/test_error_handlers.py
index b46d72185..35aac39fe 100644
--- a/tests/test_error_handlers.py
+++ b/tests/test_error_handlers.py
@@ -91,14 +91,14 @@ def test_subclass_error(self, client):
assert result.status_code == 723
assert result.text == 'error: Cus... | 2019-11-02T15:26:06 | {} | {"docs/_newsfragments/1603-smart-exception-handler-precedence.feature.rst": null, "falcon/app.py": "# Copyright 2013 by Rackspace Hosting, Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the Lice... | diff --git a/docs/_newsfragments/1603-smart-exception-handler-precedence.feature.rst b/docs/_newsfragments/1603-smart-exception-handler-precedence.feature.rst
new file mode 100644
index 000000000..ba23500ae
--- /dev/null
+++ b/docs/_newsfragments/1603-smart-exception-handler-precedence.feature.rst
@@ -0,0 +1,1 @@
+Exce... | {"falcon/app.py": [{"type": "function", "name": "App._find_error_handler", "lines": [807, 821], "signature": "def _find_error_handler(self, ex):", "doc": ""}]} | null | ["tests/test_error_handlers.py::TestErrorHandler::test_error_precedence_subclass_order_indifference"] | ["tests/test_error_handlers.py::TestErrorHandler::test_caught_error", "tests/test_error_handlers.py::TestErrorHandler::test_uncaught_python_error[None-application/json-{\"]", "tests/test_error_handlers.py::TestErrorHandler::test_uncaught_python_error[get_headers1-application/json-{\"]", "tests/test_error_handlers.py::T... | 77d5e6394a88ead151c9469494749f95f06b24bf | {"first_commit_time": 1572728034.0, "pr_title": "feat(API): on exception, select most specific error handler available", "pr_body": "# Summary of Changes\r\n\r\nRather than selecting error handlers in LIFO order of registration, select the error handler corresponding to the nearest direct ancestor of the exception type... |
falconry/falcon | 640 | https://github.com/falconry/falcon/pull/640 | falconry__falcon-640 | [] | 0fefca82a3e1f6f35f147af01c7daeebb0414d87 | diff --git a/falcon/request.py b/falcon/request.py
index 0a2eb8d34..3312667f7 100644
--- a/falcon/request.py
+++ b/falcon/request.py
@@ -27,9 +27,9 @@
import mimeparse
import six
-from falcon.errors import *
+from falcon.errors import * # NOQA
from falcon import util
-from falcon.util.uri import parse_query_strin... | diff --git a/tests/test_access_route.py b/tests/test_access_route.py
new file mode 100644
index 000000000..90fa871f9
--- /dev/null
+++ b/tests/test_access_route.py
@@ -0,0 +1,74 @@
+from falcon.request import Request
+import falcon.testing as testing
+
+
+class TestAccessRoute(testing.TestBase):
+
+ def test_remote_... | 2015-10-27T00:17:50 | {"README.md": "<p align=\"center\">\n <a href=\"https://gmago-leway.github.io/fea-bench.github.io/\">\n <img src=\"assets/FEA-Bench-full.png\" style=\"height: 10em\" alt=\"fea-bench\" />\n </a>\n</p>\n\n<p align=\"center\">\n <em>A benchmark that aims to evaluate the capability of implementing new features in the... | {"falcon/request.py": "# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, s... | {"falcon/request.py": [{"type": "function", "name": "Request.access_route", "lines": [527, 568], "signature": "def access_route(self):", "doc": "A list of all addresses from client to the last proxy server.\n\nInspired by werkzeug's ``access_route``.\n\nNote:\n The list may contain string(s) other than IPv4 / IPv6 a... | null | ["tests/test_access_route.py::TestAccessRoute::test_malformed_rfc_forwarded", "tests/test_access_route.py::TestAccessRoute::test_remote_addr", "tests/test_access_route.py::TestAccessRoute::test_remote_addr_only", "tests/test_access_route.py::TestAccessRoute::test_rfc_forwarded", "tests/test_access_route.py::TestAccessR... | [] | 77d5e6394a88ead151c9469494749f95f06b24bf | {"first_commit_time": 1441828951.0, "pr_title": "Add `access_route` and `remote_addr` to Request object", "pr_body": "which is similar to Werkzeug but more powerful\n\nSupported:\n1. fetch from \"Forwarded\" header (defined by RFC7239)\n2. fetch from \"X-Forwarded-For\" header\n3. fetch from \"X-Read-IP\" header\n4. fe... | |
google-deepmind/optax | 1,063 | https://github.com/google-deepmind/optax/pull/1063 | google-deepmind__optax-1063 | [] | ee63e4500fbd412d778a1ea143237007e45a5628 | diff --git a/docs/api/utilities.rst b/docs/api/utilities.rst
index b199697f6..c792944fd 100644
--- a/docs/api/utilities.rst
+++ b/docs/api/utilities.rst
@@ -101,6 +101,7 @@ Tree
tree_mul
tree_ones_like
tree_random_like
+ tree_split_key_like
tree_scalar_mul
tree_set
tree_sub
@@ -153,6 +1... | diff --git a/optax/tree_utils/_random_test.py b/optax/tree_utils/_random_test.py
index 25ea580aa..077ca678a 100644
--- a/optax/tree_utils/_random_test.py
+++ b/optax/tree_utils/_random_test.py
@@ -22,6 +22,7 @@
import jax.numpy as jnp
import jax.random as jrd
import jax.tree_util as jtu
+import numpy as np
from opt... | 2024-09-17T21:50:23 | {"README.md": "<p align=\"center\">\n <a href=\"https://gmago-leway.github.io/fea-bench.github.io/\">\n <img src=\"assets/FEA-Bench-full.png\" style=\"height: 10em\" alt=\"fea-bench\" />\n </a>\n</p>\n\n<p align=\"center\">\n <em>A benchmark that aims to evaluate the capability of implementing new features in the... | {"docs/api/utilities.rst": "Utilities\n=========\n\nGeneral\n-------\n\n.. currentmodule:: optax\n\n.. autosummary::\n scale_gradient\n value_and_grad_from_state\n\nScale gradient\n~~~~~~~~~~~~~~\n.. autofunction:: scale_gradient\n\nValue and grad from state\n~~~~~~~~~~~~~~~~~~~~~~~~~\n.. autofunction:: value_and... | diff --git a/docs/api/utilities.rst b/docs/api/utilities.rst
index b199697f6..c792944fd 100644
--- a/docs/api/utilities.rst
+++ b/docs/api/utilities.rst
@@ -101,6 +101,7 @@ Tree
tree_mul
tree_ones_like
tree_random_like
+ tree_split_key_like
tree_scalar_mul
tree_set
tree_sub
@@ -153,6 +1... | {"optax/tree_utils/_random.py": [{"type": "function", "name": "tree_split_key_like", "lines": [24, 38], "signature": "def tree_split_key_like( rng_key: chex.PRNGKey, target_tree: chex.ArrayTree ) -> chex.ArrayTree:", "doc": "Split keys to match structure of target tree.\n\nArgs:\n rng_key: the key to split.\n target_... | null | ["optax/tree_utils/_random_test.py::RandomTest::test_tree_split_key_like"] | ["optax/tree_utils/_random_test.py::RandomTest::test_tree_random_like0", "optax/tree_utils/_random_test.py::RandomTest::test_tree_random_like1", "optax/tree_utils/_random_test.py::RandomTest::test_tree_random_like10", "optax/tree_utils/_random_test.py::RandomTest::test_tree_random_like11", "optax/tree_utils/_random_tes... | 1e08bccf195ac54e7d9d766eb5e69345bf0e3230 | {"first_commit_time": 1726621485.0, "pr_title": "Add optax.tree_utils.tree_random_split.", "pr_body": "This exposes the formerly private function `_tree_rng_keys_split` in [`optax/tree_utils/_random.py`](https://github.com/google-deepmind/optax/blob/main/optax/tree_utils/_random.py) to the public API.\r\n\r\nI've found... |
google-deepmind/optax | 632 | https://github.com/google-deepmind/optax/pull/632 | google-deepmind__optax-632 | [] | 35920a3712d71992429dc0bd605e75d31cbe2b21 | diff --git a/optax/__init__.py b/optax/__init__.py
index 0b373684d..6f844478d 100644
--- a/optax/__init__.py
+++ b/optax/__init__.py
@@ -17,6 +17,7 @@
from optax import contrib
from optax import losses
from optax import monte_carlo
+from optax import projections
from optax import schedules
from optax import second... | diff --git a/optax/projections/_projections_test.py b/optax/projections/_projections_test.py
new file mode 100644
index 000000000..15d4f1204
--- /dev/null
+++ b/optax/projections/_projections_test.py
@@ -0,0 +1,47 @@
+# Copyright 2021 DeepMind Technologies Limited. All Rights Reserved.
+#
+# Licensed under the Apache L... | 2023-11-13T14:40:27 | {"README.md": "<p align=\"center\">\n <a href=\"https://gmago-leway.github.io/fea-bench.github.io/\">\n <img src=\"assets/FEA-Bench-full.png\" style=\"height: 10em\" alt=\"fea-bench\" />\n </a>\n</p>\n\n<p align=\"center\">\n <em>A benchmark that aims to evaluate the capability of implementing new features in the... | {"optax/__init__.py": "# Copyright 2019 DeepMind Technologies Limited. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICE... | {"optax/projections/_projections.py": [{"type": "function", "name": "projection_non_negative", "lines": [24, 39], "signature": "def projection_non_negative(pytree: Any) -> Any:", "doc": "Projection onto the non-negative orthant.\n\n.. math::\n\n \\underset{p}{\\text{argmin}} ~ ||x - p||_2^2 \\quad\n \\textrm{subject ... | null | ["optax/projections/_projections_test.py::ProjectionsTest::test_projection_non_negative"] | [] | 1e08bccf195ac54e7d9d766eb5e69345bf0e3230 | {"first_commit_time": 1699961528.0, "pr_title": "Start optax.projections subpackage and add projection_non_negative.", "pr_body": "Start optax.projections subpackage and add projection_non_negative.\n\nIn the future, this subpackage will contain more projections (projection_simplex, projection_l1_ball, etc) as well as ... | |
google-deepmind/optax | 897 | https://github.com/google-deepmind/optax/pull/897 | google-deepmind__optax-897 | [] | 246f002a64e21bcc8f0b1a3390eb4ee13da83ed5 | 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(... | 2024-04-01T20:30:36 | {"README.md": "<p align=\"center\">\n <a href=\"https://gmago-leway.github.io/fea-bench.github.io/\">\n <img src=\"assets/FEA-Bench-full.png\" style=\"height: 10em\" alt=\"fea-bench\" />\n </a>\n</p>\n\n<p align=\"center\">\n <em>A benchmark that aims to evaluate the capability of implementing new features in the... | {"docs/api/losses.rst": "Losses\n======\n\n.. currentmodule:: optax\n\n.. autosummary::\n convex_kl_divergence\n cosine_distance\n cosine_similarity\n ctc_loss\n ctc_loss_with_forward_probs\n hinge_loss\n huber_loss\n kl_divergence\n l2_loss\n log_cosh\n safe_softmax_cross_entropy\n ... | 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... | {"optax/losses/_self_supervised.py": [{"type": "function", "name": "ntxent", "lines": [23, 86], "signature": "def ntxent( embeddings: chex.Array, labels: chex.Array, temperature: chex.Numeric = 0.07 ) -> chex.Numeric:", "doc": "Normalized temperature scaled cross entropy loss (NT-Xent).\n\nReferences:\n T. Chen et al ... | null | ["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.py::Soft... | [] | 1e08bccf195ac54e7d9d766eb5e69345bf0e3230 | {"first_commit_time": 1711497974.0, "pr_title": "Added a NTXent loss", "pr_body": "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 ton of tests for this outside a batched test. Let me know i... |
googleapis/python-aiplatform | 4,748 | https://github.com/googleapis/python-aiplatform/pull/4748 | googleapis__python-aiplatform-4748 | [] | 91d837ece0c02c381cda9fbe9c0c839f9986f182 | diff --git a/samples/model-builder/vector_search/vector_search_find_neighbors_sample.py b/samples/model-builder/vector_search/vector_search_find_neighbors_sample.py
index f2bcb4ad3a..31417cbe58 100644
--- a/samples/model-builder/vector_search/vector_search_find_neighbors_sample.py
+++ b/samples/model-builder/vector_sea... | diff --git a/samples/model-builder/test_constants.py b/samples/model-builder/test_constants.py
index 3a7d3ed3c3..5930d8394d 100644
--- a/samples/model-builder/test_constants.py
+++ b/samples/model-builder/test_constants.py
@@ -382,14 +382,18 @@
# Vector Search
VECTOR_SEARCH_INDEX = "123"
VECTOR_SEARCH_INDEX_DATAPOIN... | 2024-12-05T14:26:24 | {} | {"samples/model-builder/vector_search/vector_search_find_neighbors_sample.py": "# Copyright 2023 Google LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# https://www.apache.... | {"samples/model-builder/vector_search/vector_search_find_neighbors_sample.py": [{"type": "function", "name": "vector_search_find_neighbors_hybrid_queries", "lines": [67, 123], "signature": "def vector_search_find_neighbors_hybrid_queries( project: str, location: str, index_endpoint_name: str, deployed_index_id: str, nu... | null | ["samples/model-builder/vector_search/vector_search_find_neighbors_sample_test.py::test_vector_search_find_neighbors_sample", "samples/model-builder/vector_search/vector_search_find_neighbors_sample_test.py::test_vector_search_find_neighbors_hybrid_sample", "samples/model-builder/vector_search/vector_search_find_neighb... | ["samples/model-builder/vector_search/vector_search_find_neighbors_sample_test.py::test_vector_search_find_neighbors_jwt_sample", "samples/model-builder/vector_search/vector_search_match_sample_test.py::test_vector_search_match_hybrid_queries_sample", "samples/model-builder/vector_search/vector_search_match_sample_test... | 67358fa6a830eb842f6b52d09061af4a41b54af6 | {"first_commit_time": 1734029128.0, "pr_title": "chore: Samples - Add vector search sample for filtering and crowding", "pr_body": "chore: Samples - Add vector search sample for filtering and crowding\n", "pr_timeline": [{"time": 1734028399.0, "comment": "<!-- probot comment [11299897]-->\nHere is the summary of change... | |
graphql-python/graphene | 1,506 | https://github.com/graphql-python/graphene/pull/1506 | graphql-python__graphene-1506 | [] | 8ede21e06381c096589c424960a6cfaca304badb | diff --git a/graphene/types/inputobjecttype.py b/graphene/types/inputobjecttype.py
index 5d2785105..fdf38ba05 100644
--- a/graphene/types/inputobjecttype.py
+++ b/graphene/types/inputobjecttype.py
@@ -14,6 +14,31 @@ class InputObjectTypeOptions(BaseOptions):
container = None # type: InputObjectTypeContainer
+... | diff --git a/graphene/types/tests/conftest.py b/graphene/types/tests/conftest.py
new file mode 100644
index 000000000..43f7d7268
--- /dev/null
+++ b/graphene/types/tests/conftest.py
@@ -0,0 +1,12 @@
+import pytest
+from graphql import Undefined
+
+from graphene.types.inputobjecttype import set_input_object_type_default... | 2023-05-29T18:07:14 | {"README.md": "<p align=\"center\">\n <a href=\"https://gmago-leway.github.io/fea-bench.github.io/\">\n <img src=\"assets/FEA-Bench-full.png\" style=\"height: 10em\" alt=\"fea-bench\" />\n </a>\n</p>\n\n<p align=\"center\">\n <em>A benchmark that aims to evaluate the capability of implementing new features in the... | {"graphene/types/inputobjecttype.py": "from .base import BaseOptions, BaseType\nfrom .inputfield import InputField\nfrom .unmountedtype import UnmountedType\nfrom .utils import yank_fields_from_attrs\n\n# For static type checking with Mypy\nMYPY = False\nif MYPY:\n from typing import Dict, Callable # NOQA\n\n\nclas... | {"graphene/types/inputobjecttype.py": [{"type": "function", "name": "set_input_object_type_default_value", "lines": [29, 39], "signature": "def set_input_object_type_default_value(default_value):", "doc": "Change the sentinel value returned by non-specified fields in an InputObjectType\nUseful to differentiate between ... | null | ["graphene/types/tests/test_inputobjecttype.py::test_generate_inputobjecttype", "graphene/types/tests/test_inputobjecttype.py::test_generate_inputobjecttype_with_meta", "graphene/types/tests/test_inputobjecttype.py::test_generate_inputobjecttype_with_fields", "graphene/types/tests/test_inputobjecttype.py::test_ordered_... | [] | 8ede21e06381c096589c424960a6cfaca304badb | {"first_commit_time": 1668102812.0, "pr_title": "Allow the user to change InputObjectType's default value on non-specified inputs to a sentinel value", "pr_body": "This PR aims to remove the ambiguity that happens with `InputObjectType`s when accessing optional fields using the `input.<attribute>` \"dot access\" syntax... | |
huggingface/accelerate | 255 | https://github.com/huggingface/accelerate/pull/255 | huggingface__accelerate-255 | [] | 4fc586f5af650a5711dc907fb613367d2f009c9a | diff --git a/src/accelerate/accelerator.py b/src/accelerate/accelerator.py
index b841bc809f9..1254c19e9af 100644
--- a/src/accelerate/accelerator.py
+++ b/src/accelerate/accelerator.py
@@ -22,6 +22,7 @@
from packaging import version
+from .checkpointing import load_accelerator_state, save_accelerator_state
from .... | diff --git a/src/accelerate/checkpointing.py b/src/accelerate/checkpointing.py
new file mode 100644
index 00000000000..37d68b90c25
--- /dev/null
+++ b/src/accelerate/checkpointing.py
@@ -0,0 +1,134 @@
+# Copyright 2022 The HuggingFace Team. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the ... | 2022-02-17T21:06:16 | {"README.md": "<p align=\"center\">\n <a href=\"https://gmago-leway.github.io/fea-bench.github.io/\">\n <img src=\"assets/FEA-Bench-full.png\" style=\"height: 10em\" alt=\"fea-bench\" />\n </a>\n</p>\n\n<p align=\"center\">\n <em>A benchmark that aims to evaluate the capability of implementing new features in the... | {"src/accelerate/accelerator.py": "# Copyright 2021 The HuggingFace Team. All rights reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/L... | {"src/accelerate/accelerator.py": [{"type": "function", "name": "Accelerator.save_state", "lines": [565, 578], "signature": "def save_state(self, output_dir: str):", "doc": "Saves the current states of the model, optimizer, scaler, and RNG generators.\n\nArgs:\n output_dir (:obj:`str` or :obj:`os.PathLike`):\n ... | null | ["tests/test_state_checkpointing.py::CheckpointTest::test_can_resume_training"] | [] | 08101b9dde2b1a9658c2e363e3e9f5663ba06073 | {"first_commit_time": 1645041954.0, "pr_title": "Add in checkpointing capability", "pr_body": "Closes https://github.com/huggingface/accelerate/issues/171\r\n\r\nThis PR adds in two functions, `Accelerator.save_state` and `Accelerator.load_state`, which will go through and checkpoint the current state of everything acc... | |
huggingface/accelerate | 991 | https://github.com/huggingface/accelerate/pull/991 | huggingface__accelerate-991 | [] | 5858ac62b4546547fa69ffbf9a7f8bd1d1b1f43c | diff --git a/src/accelerate/accelerator.py b/src/accelerate/accelerator.py
index 7075c4dcdb6..ec29ac07bce 100644
--- a/src/accelerate/accelerator.py
+++ b/src/accelerate/accelerator.py
@@ -18,11 +18,13 @@
import shutil
import sys
import warnings
+from collections import OrderedDict
from contextlib import contextman... | diff --git a/tests/test_accelerator.py b/tests/test_accelerator.py
index 19d6c1655b4..511d4daae62 100644
--- a/tests/test_accelerator.py
+++ b/tests/test_accelerator.py
@@ -1,3 +1,6 @@
+import json
+import os
+import tempfile
import unittest
import torch
@@ -17,6 +20,15 @@ def create_components():
return model... | 2023-01-19T20:16:40 | {"README.md": "<p align=\"center\">\n <a href=\"https://gmago-leway.github.io/fea-bench.github.io/\">\n <img src=\"assets/FEA-Bench-full.png\" style=\"height: 10em\" alt=\"fea-bench\" />\n </a>\n</p>\n\n<p align=\"center\">\n <em>A benchmark that aims to evaluate the capability of implementing new features in the... | {"src/accelerate/accelerator.py": "# Copyright 2021 The HuggingFace Team. All rights reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/L... | {"src/accelerate/accelerator.py": [{"type": "function", "name": "Accelerator.register_save_state_pre_hook", "lines": [1622, 1652], "signature": "def register_save_state_pre_hook(self, hook: Callable[..., None]) -> hooks.RemovableHandle:", "doc": "Registers a pre hook to be run before `save_checkpoint` is called in [`Ac... | null | ["tests/test_accelerator.py::AcceleratorTester::test_save_load_model_with_hooks"] | ["tests/test_accelerator.py::AcceleratorTester::test_free_memory_dereferences_prepared_components", "tests/test_accelerator.py::AcceleratorTester::test_prepared_objects_are_referenced", "tests/test_accelerator.py::AcceleratorTester::test_save_load_model"] | 08101b9dde2b1a9658c2e363e3e9f5663ba06073 | {"first_commit_time": 1674159358.0, "pr_title": "Saving and loading state hooks", "pr_body": "With this design we would have the necessary freedom to save & load models as wished in `diffusers`. \r\n\r\nPossible solution to: https://github.com/huggingface/accelerate/issues/976\r\nThe idea would be for loading:\r\n- loo... | |
huggingface/datasets | 214 | https://github.com/huggingface/datasets/pull/214 | huggingface__datasets-214 | [] | f9ef1ee270848e322f06e546751aeffde67349c5 | diff --git a/datasets/wikipedia/wikipedia.py b/datasets/wikipedia/wikipedia.py
index 5733781ccf8..6f36e2bc534 100644
--- a/datasets/wikipedia/wikipedia.py
+++ b/datasets/wikipedia/wikipedia.py
@@ -25,9 +25,9 @@
import xml.etree.cElementTree as etree
import apache_beam as beam
-import mwparserfromhell
import six
... | diff --git a/tests/test_arrow_dataset.py b/tests/test_arrow_dataset.py
new file mode 100644
index 00000000000..88142afd586
--- /dev/null
+++ b/tests/test_arrow_dataset.py
@@ -0,0 +1,114 @@
+import os
+import tempfile
+from unittest import TestCase
+
+import numpy as np
+import pyarrow as pa
+
+from nlp.arrow_reader imp... | 2020-05-28T16:21:40 | {"README.md": "<p align=\"center\">\n <a href=\"https://gmago-leway.github.io/fea-bench.github.io/\">\n <img src=\"assets/FEA-Bench-full.png\" style=\"height: 10em\" alt=\"fea-bench\" />\n </a>\n</p>\n\n<p align=\"center\">\n <em>A benchmark that aims to evaluate the capability of implementing new features in the... | {"datasets/wikipedia/wikipedia.py": "# coding=utf-8\n# Copyright 2020 The TensorFlow Datasets Authors and the HuggingFace NLP Authors.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#... | {"src/nlp/arrow_dataset.py": [{"type": "function", "name": "Dataset.filter", "lines": [562, 623], "signature": "def filter(self, function, with_indices=False, **kwargs):", "doc": "Apply a filter function to all the elements in the table in batches\nand update the table so that the dataset only includes examples accordi... | null | ["tests/test_arrow_dataset.py::BaseDatasetTest::test_filter"] | ["tests/test_arrow_dataset.py::BaseDatasetTest::test_map", "tests/test_arrow_dataset.py::BaseDatasetTest::test_map_batched", "tests/test_arrow_dataset.py::BaseDatasetTest::test_remove_colums"] | 5142a8cf61d8a4495eda3d91dc4283a6df01ea14 | {"first_commit_time": 1590682463.0, "pr_title": "[arrow_dataset.py] add new filter function", "pr_body": "The `.map()` function is super useful, but can IMO a bit tedious when filtering certain examples.\r\nI think, filtering out examples is also a very common operation people would like to perform on datasets.\r\n\r\n... | |
huggingface/datasets | 6,318 | https://github.com/huggingface/datasets/pull/6318 | huggingface__datasets-6318 | [] | 3aeb078ba1afd713e901df43343c160877403d07 | diff --git a/src/datasets/utils/py_utils.py b/src/datasets/utils/py_utils.py
index 912824fa7f3..243bc0f99c9 100644
--- a/src/datasets/utils/py_utils.py
+++ b/src/datasets/utils/py_utils.py
@@ -736,6 +736,29 @@ def proxy(func):
return proxy
+if config.DILL_VERSION < version.parse("0.3.6"):
+
+ @pklregister(s... | diff --git a/tests/test_fingerprint.py b/tests/test_fingerprint.py
index 5538f27554e..f4d5d65744e 100644
--- a/tests/test_fingerprint.py
+++ b/tests/test_fingerprint.py
@@ -2,6 +2,7 @@
import os
import pickle
import subprocess
+from functools import partial
from hashlib import md5
from pathlib import Path
from te... | 2023-10-19T12:19:13 | {"README.md": "<p align=\"center\">\n <a href=\"https://gmago-leway.github.io/fea-bench.github.io/\">\n <img src=\"assets/FEA-Bench-full.png\" style=\"height: 10em\" alt=\"fea-bench\" />\n </a>\n</p>\n\n<p align=\"center\">\n <em>A benchmark that aims to evaluate the capability of implementing new features in the... | {"src/datasets/utils/py_utils.py": "# Copyright 2020 The HuggingFace Datasets Authors and the TensorFlow Datasets Authors.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http... | {"src/datasets/utils/py_utils.py": [{"type": "function", "name": "_save_set", "lines": [753, 759], "signature": "def _save_set(pickler, obj):", "doc": ""}]} | null | ["tests/test_fingerprint.py::HashingTest::test_set_stable"] | ["tests/test_fingerprint.py::RecurseDumpTest::test_dump_ignores_line_definition_of_function", "tests/test_fingerprint.py::RecurseDumpTest::test_dump_ipython_function", "tests/test_fingerprint.py::RecurseDumpTest::test_recurse_dump_for_class", "tests/test_fingerprint.py::RecurseDumpTest::test_recurse_dump_for_function",... | 5142a8cf61d8a4495eda3d91dc4283a6df01ea14 | {"first_commit_time": 1697717923.0, "pr_title": "Deterministic set hash", "pr_body": "Sort the items in a set according to their `datasets.fingerprint.Hasher.hash` hash to get a deterministic hash of sets.\r\n\r\nThis is useful to get deterministic hashes of tokenizers that use a trie based on python sets.\r\n\r\nrepor... | |
huggingface/huggingface_hub | 2,027 | https://github.com/huggingface/huggingface_hub/pull/2027 | huggingface__huggingface_hub-2027 | [] | 0c272d506e390f2d7b9dac68159595845c7f8e3b | 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):
... | 2024-02-14T18:00:11 | {"README.md": "<p align=\"center\">\n <a href=\"https://gmago-leway.github.io/fea-bench.github.io/\">\n <img src=\"assets/FEA-Bench-full.png\" style=\"height: 10em\" alt=\"fea-bench\" />\n </a>\n</p>\n\n<p align=\"center\">\n <em>A benchmark that aims to evaluate the capability of implementing new features in the... | {"src/huggingface_hub/hf_file_system.py": "import copy\nimport os\nimport re\nimport tempfile\nfrom collections import deque\nfrom dataclasses import dataclass, field\nfrom datetime import datetime\nfrom itertools import chain\nfrom typing import Any, Dict, List, NoReturn, Optional, Tuple, Union\nfrom urllib.parse impo... | {"src/huggingface_hub/hf_file_system.py": [{"type": "function", "name": "HfFileSystem.url", "lines": [580, 592], "signature": "def url(self, path: str) -> str:", "doc": "Get the HTTP URL of the given path"}, {"type": "function", "name": "HfFileSystemFile.url", "lines": [670, 671], "signature": "def url(self) -> str:", ... | null | ["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", "tests/test_... | 4058e1f97ebe256b2f3006d4bc31be275c66df6b | {"first_commit_time": 1707932256.0, "pr_title": "Add `HfFileSystem.url` method", "pr_body": "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 `fsspec` paths as input/output (e.g., `webdataset`, `polars`, ... | |
huggingface/pytorch-image-models | 876 | https://github.com/huggingface/pytorch-image-models/pull/876 | huggingface__pytorch-image-models-876 | [] | b5bf4dce98a09cb25a274f360c08f23998faedb8 | diff --git a/timm/utils/model.py b/timm/utils/model.py
index bd46e2f49c..ffe66049c2 100644
--- a/timm/utils/model.py
+++ b/timm/utils/model.py
@@ -2,9 +2,15 @@
Hacked together by / Copyright 2020 Ross Wightman
"""
-from .model_ema import ModelEma
+from logging import root
+from typing import Sequence
+
import torc... | diff --git a/tests/test_utils.py b/tests/test_utils.py
new file mode 100644
index 0000000000..b0f890d2fe
--- /dev/null
+++ b/tests/test_utils.py
@@ -0,0 +1,57 @@
+from torch.nn.modules.batchnorm import BatchNorm2d
+from torchvision.ops.misc import FrozenBatchNorm2d
+
+import timm
+from timm.utils.model import freeze, u... | 2021-09-21T11:53:01 | {"README.md": "<p align=\"center\">\n <a href=\"https://gmago-leway.github.io/fea-bench.github.io/\">\n <img src=\"assets/FEA-Bench-full.png\" style=\"height: 10em\" alt=\"fea-bench\" />\n </a>\n</p>\n\n<p align=\"center\">\n <em>A benchmark that aims to evaluate the capability of implementing new features in the... | {"timm/utils/model.py": "\"\"\" Model / state_dict utils\n\nHacked together by / Copyright 2020 Ross Wightman\n\"\"\"\nfrom .model_ema import ModelEma\nimport torch \nimport fnmatch\n\ndef unwrap_model(model):\n if isinstance(model, ModelEma):\n return unwrap_model(model.ema)\n else:\n return model.... | {"timm/utils/model.py": [{"type": "function", "name": "freeze_batch_norm_2d", "lines": [100, 130], "signature": "def freeze_batch_norm_2d(module):", "doc": "Converts all `BatchNorm2d` and `SyncBatchNorm` layers of provided module into `FrozenBatchNorm2d`. If `module` is\nitself an instance of either `BatchNorm2d` or `S... | null | ["tests/test_utils.py::test_freeze_unfreeze"] | [] | 9260cf517d6ba597b33ad1bbf7dbff9d0ccadd75 | {"first_commit_time": 1632224802.0, "pr_title": "Helper to freeze specific model layers", "pr_body": "Currently in draft for visibility.\r\n\r\nAdds freeze/unfreeze to timm.utils. These let you provide a list of modules or module names for which to freeze parameters.\r\n\r\n- [x] Resolve the ugliness of what to do if u... | |
joke2k/faker | 1,350 | https://github.com/joke2k/faker/pull/1350 | joke2k__faker-1350 | [] | d6117b28b36dd4f3ead76026654000ba9f410c3c | diff --git a/faker/providers/misc/__init__.py b/faker/providers/misc/__init__.py
index cb129ce5b8..68ca213d37 100644
--- a/faker/providers/misc/__init__.py
+++ b/faker/providers/misc/__init__.py
@@ -2,6 +2,7 @@
import hashlib
import io
import json
+import re
import string
import tarfile
import uuid
@@ -399,12 +40... | diff --git a/tests/providers/test_misc.py b/tests/providers/test_misc.py
index d51d80c3f5..d54dfa2b0b 100644
--- a/tests/providers/test_misc.py
+++ b/tests/providers/test_misc.py
@@ -477,11 +477,13 @@ def test_json_multiple_rows(self, faker_with_foobar):
assert isinstance(json_data, list) and len(json_data) ... | 2020-12-17T05:00:02 | {} | {"faker/providers/misc/__init__.py": "import csv\nimport hashlib\nimport io\nimport json\nimport string\nimport tarfile\nimport uuid\nimport zipfile\n\nfrom .. import BaseProvider\n\nlocalized = True\n\ncsv.register_dialect('faker-csv', csv.excel, quoting=csv.QUOTE_ALL)\n\n\nclass Provider(BaseProvider):\n\n def boo... | {"faker/providers/misc/__init__.py": [{"type": "function", "name": "Provider._value_format_selection", "lines": [565, 593], "signature": "def _value_format_selection(self, definition, **kwargs):", "doc": "Formats the string in different ways depending on it's contents.\n\nThe return can be the '@word' itself, a '{{ tok... | null | ["tests/providers/test_misc.py::TestMiscProvider::test_json_passthrough_values"] | ["tests/providers/test_misc.py::TestMiscProvider::test_uuid4_str", "tests/providers/test_misc.py::TestMiscProvider::test_uuid4_int", "tests/providers/test_misc.py::TestMiscProvider::test_uuid4_uuid_object", "tests/providers/test_misc.py::TestMiscProvider::test_uuid4_seedability", "tests/providers/test_misc.py::TestMisc... | 6edfdbf6ae90b0153309e3bf066aa3b2d16494a7 | {"first_commit_time": 1608179533.0, "pr_title": "FW and JSON Improvements", "pr_body": "### What does this changes\r\nThe Format Value Selector was a bit clunky, and needed some updating. It now allows for strings to be fixed or pinned to a static value by using '@', to begin with.\r\n\r\n**Example:**\r\n```python\r\n... | |
joke2k/faker | 1,783 | https://github.com/joke2k/faker/pull/1783 | joke2k__faker-1783 | [] | 348708251a1093fb83c5b7cf83c1fb210a62125d | diff --git a/faker/providers/misc/__init__.py b/faker/providers/misc/__init__.py
index b37953ab9d..5fd22ea0f6 100644
--- a/faker/providers/misc/__init__.py
+++ b/faker/providers/misc/__init__.py
@@ -488,6 +488,21 @@ def psv(
delimiter="|",
)
+ def json_bytes(
+ self,
+ data_colu... | diff --git a/tests/providers/test_misc.py b/tests/providers/test_misc.py
index 695defe7f2..f50822f39a 100644
--- a/tests/providers/test_misc.py
+++ b/tests/providers/test_misc.py
@@ -697,6 +697,13 @@ def test_json_type_integrity_datetime_no_encoder(self, faker_with_foobar):
with pytest.raises(TypeError):
... | 2023-01-12T11:33:31 | {} | {"faker/providers/misc/__init__.py": "import csv\nimport hashlib\nimport io\nimport json\nimport os\nimport re\nimport string\nimport tarfile\nimport uuid\nimport zipfile\n\nfrom typing import Any, Callable, Dict, List, Optional, Sequence, Set, Tuple, Type, Union\n\nfrom faker.exceptions import UnsupportedFeature\n\nfr... | {"faker/providers/misc/__init__.py": [{"type": "function", "name": "Provider.json_bytes", "lines": [491, 504], "signature": "def json_bytes( self, data_columns: Optional[List] = None, num_rows: int = 10, indent: Optional[int] = None, cls: Optional[Type[json.JSONEncoder]] = None, ) -> bytes:", "doc": "Generate random JS... | null | ["tests/providers/test_misc.py::TestMiscProvider::test_json_bytes"] | ["tests/providers/test_misc.py::TestMiscProvider::test_uuid4_str", "tests/providers/test_misc.py::TestMiscProvider::test_uuid4_int", "tests/providers/test_misc.py::TestMiscProvider::test_uuid4_uuid_object", "tests/providers/test_misc.py::TestMiscProvider::test_uuid4_seedability", "tests/providers/test_misc.py::TestMisc... | 6edfdbf6ae90b0153309e3bf066aa3b2d16494a7 | {"first_commit_time": 1673523064.0, "pr_title": "Add method to generate JSON as bytes", "pr_body": "### What does this change\r\n\r\nAdd wrapper method around the JSON provider to generate JSON as bytes.\r\n\r\n### What was wrong\r\n\r\nI use Faker through factory boy and couldn't find a convenient way to achieve that.... | |
joke2k/faker | 1,848 | https://github.com/joke2k/faker/pull/1848 | joke2k__faker-1848 | [] | d93d8a0d42b7a92d8b386d73c85886b2633124e7 | diff --git a/faker/providers/phone_number/en_US/__init__.py b/faker/providers/phone_number/en_US/__init__.py
index bb0b77df84..ac1367e8bf 100644
--- a/faker/providers/phone_number/en_US/__init__.py
+++ b/faker/providers/phone_number/en_US/__init__.py
@@ -37,3 +37,14 @@ class Provider(PhoneNumberProvider):
"001... | diff --git a/tests/providers/test_phone_number.py b/tests/providers/test_phone_number.py
index 8fd54ec316..1bb38daf9e 100644
--- a/tests/providers/test_phone_number.py
+++ b/tests/providers/test_phone_number.py
@@ -364,3 +364,18 @@ def test_phone_number(self, faker, num_samples):
for _ in range(num_samples):
... | 2023-04-22T05:52:53 | {} | {"faker/providers/phone_number/en_US/__init__.py": "from .. import Provider as PhoneNumberProvider\n\n\nclass Provider(PhoneNumberProvider):\n formats = (\n # Standard 10-digit phone number formats\n \"##########\",\n \"##########\",\n \"###-###-####\",\n \"###-###-####\",\n ... | {"faker/providers/phone_number/en_US/__init__.py": [{"type": "function", "name": "Provider.basic_phone_number", "lines": [48, 50], "signature": "def basic_phone_number(self) -> str:", "doc": ""}]} | null | ["tests/providers/test_phone_number.py::TestEnUs::test_basic_phone_number"] | ["tests/providers/test_phone_number.py::TestPhoneNumber::test_country_calling_code", "tests/providers/test_phone_number.py::TestPhoneNumber::test_msisdn", "tests/providers/test_phone_number.py::TestAzAz::test_phone_number", "tests/providers/test_phone_number.py::TestAzAz::test_cellphone_number", "tests/providers/test_p... | 6edfdbf6ae90b0153309e3bf066aa3b2d16494a7 | {"first_commit_time": 1682142233.0, "pr_title": "add a separate basic number format for US", "pr_body": "issue ticket: https://github.com/joke2k/faker/issues/1847\r\n\r\n### What does this change\r\n\r\nAdds a 'basic phone number' type to en_US to comply with some form requirements, as well as a unit test.\r\n\r\n### W... | |
joke2k/faker | 494 | https://github.com/joke2k/faker/pull/494 | joke2k__faker-494 | ["493"] | d06d05f415e97b15f21683c991511c24e12c8304 | diff --git a/faker/providers/file/__init__.py b/faker/providers/file/__init__.py
index b19a3c563c..4f4c14cef0 100644
--- a/faker/providers/file/__init__.py
+++ b/faker/providers/file/__init__.py
@@ -201,3 +201,16 @@ def file_extension(cls, category=None):
"""
category = category if category else cls.r... | diff --git a/tests/providers/file.py b/tests/providers/file.py
new file mode 100644
index 0000000000..1a1617bac6
--- /dev/null
+++ b/tests/providers/file.py
@@ -0,0 +1,25 @@
+from __future__ import unicode_literals
+
+import unittest
+import re
+
+from faker import Factory
+from faker.providers.file import Provider as ... | 2017-04-06T18:16:03 | {} | {"faker/providers/file/__init__.py": "# coding=utf-8\nfrom __future__ import unicode_literals\nfrom collections import OrderedDict\n\nfrom .. import BaseProvider\nfrom ..lorem.la import Provider as WordProvider\n\n\nclass Provider(BaseProvider):\n application_mime_types = (\n\n \"application/atom+xml\", # Ato... | {"faker/providers/file/__init__.py": [{"type": "function", "name": "Provider.file_path", "lines": [206, 216], "signature": "def file_path(cls, depth=1, category=None, extension=None):", "doc": ":param category: audio|image|office|text|video\n:param extension: file extension\n:param depth: depth of the file (depth >= 0)... | null | ["tests/providers/file.py::TestFile::test_file_path"] | [] | 6edfdbf6ae90b0153309e3bf066aa3b2d16494a7 | {"first_commit_time": 1491502337.0, "pr_title": "[close #493] adding_file_path_provider", "pr_body": "Issue #493 \r\n\r\nAdding a file path provider in file provider.", "pr_timeline": [{"time": 1491728077.0, "comment": "Thank you! "}], "issues": {"493": {"issue_title": "Add a file path provider", "issue_body": "In the ... | |
joke2k/faker | 738 | https://github.com/joke2k/faker/pull/738 | joke2k__faker-738 | [] | 5159a00f3965fca5d3c5a73c6e352a00d16d37bd | diff --git a/faker/providers/file/__init__.py b/faker/providers/file/__init__.py
index a6ab2777e8..594151cd38 100644
--- a/faker/providers/file/__init__.py
+++ b/faker/providers/file/__init__.py
@@ -1,5 +1,7 @@
# coding=utf-8
from __future__ import unicode_literals
+
+import string
from collections import OrderedDic... | diff --git a/tests/providers/test_file.py b/tests/providers/test_file.py
index cca458d0bf..767d48ecc1 100644
--- a/tests/providers/test_file.py
+++ b/tests/providers/test_file.py
@@ -22,3 +22,27 @@ def test_file_path(self):
self.assertTrue(re.search(r'\/\w+\/\w+\.pdf', file_path))
file_path = ... | 2018-04-06T13:01:29 | {} | {"faker/providers/file/__init__.py": "# coding=utf-8\nfrom __future__ import unicode_literals\nfrom collections import OrderedDict\n\nfrom .. import BaseProvider\n\n\nclass Provider(BaseProvider):\n application_mime_types = (\n\n \"application/atom+xml\", # Atom feeds\n \"application/ecmascript\",\n ... | {"faker/providers/file/__init__.py": [{"type": "function", "name": "Provider.unix_device", "lines": [231, 238], "signature": "def unix_device(self, prefix=None):", "doc": ":param prefix: sd|vd|xvd"}, {"type": "function", "name": "Provider.unix_partition", "lines": [240, 246], "signature": "def unix_partition(self, pref... | null | ["tests/providers/test_file.py::TestFile::test_unix_device", "tests/providers/test_file.py::TestFile::test_unix_partition"] | ["tests/providers/test_file.py::TestFile::test_file_path"] | 6edfdbf6ae90b0153309e3bf066aa3b2d16494a7 | {"first_commit_time": 1523019530.0, "pr_title": "Added Unix device & partition", "pr_body": "### What does this changes\r\n\r\nI added:\r\n- File.unix_device : To create Unix device path. ie: /dev/sda, /dev/xvde, etc\r\n- File.unix_partition: To create Unix partition path. ie: /dev/vdc1, /dev/sdb1, etc\r\n\r\nWith test... | |
joke2k/faker | 739 | https://github.com/joke2k/faker/pull/739 | joke2k__faker-739 | [] | 5159a00f3965fca5d3c5a73c6e352a00d16d37bd | diff --git a/faker/providers/__init__.py b/faker/providers/__init__.py
index 417a033e7c..3a12f97eba 100644
--- a/faker/providers/__init__.py
+++ b/faker/providers/__init__.py
@@ -91,6 +91,14 @@ def random_letter(self):
return self.generator.random.choice(
getattr(string, 'letters', string.ascii_le... | diff --git a/tests/test_base_provider.py b/tests/test_base_provider.py
index e45c6692f6..e604912ba0 100644
--- a/tests/test_base_provider.py
+++ b/tests/test_base_provider.py
@@ -105,3 +105,20 @@ def test_hexify(self):
for c in hexified:
self.assertIn(c, string.hexdigits[:-6].upper())
... | 2018-04-06T13:22:46 | {} | {"faker/providers/__init__.py": "# coding=utf-8\n\nfrom collections import Counter\nimport re\nimport string\n\nfrom faker.utils.distribution import choice_distribution\n\n\n_re_hash = re.compile(r'#')\n_re_perc = re.compile(r'%')\n_re_excl = re.compile(r'!')\n_re_at = re.compile(r'@')\n_re_qm = re.compile(r'\\?')\n_re... | {"faker/providers/__init__.py": [{"type": "function", "name": "BaseProvider.random_lowercase_letter", "lines": [94, 96], "signature": "def random_lowercase_letter(self):", "doc": "Returns a random lowercase letter (between a-z)."}, {"type": "function", "name": "BaseProvider.random_uppercase_letter", "lines": [98, 100],... | null | ["tests/test_base_provider.py::TestBaseProvider::test_random_lowercase_letter", "tests/test_base_provider.py::TestBaseProvider::test_random_uppercase_letter"] | ["tests/test_base_provider.py::TestBaseProvider::test_bothify_empty_text", "tests/test_base_provider.py::TestBaseProvider::test_bothify_mixed_values", "tests/test_base_provider.py::TestBaseProvider::test_bothify_only_letters", "tests/test_base_provider.py::TestBaseProvider::test_hexify", "tests/test_base_provider.py::T... | 6edfdbf6ae90b0153309e3bf066aa3b2d16494a7 | {"first_commit_time": 1523020761.0, "pr_title": "Added random lower and uppercase letters", "pr_body": "### What does this changes\r\n\r\nAdded method to get lowercase and uppercase ASCII letters.\r\n\r\n### What was wrong\r\n\r\nIn my previous PR (#738), I wanted to have a random ASCII letter,\r\nBut have to import st... | |
joke2k/faker | 874 | https://github.com/joke2k/faker/pull/874 | joke2k__faker-874 | [] | 02f678a3d15041e3aa10b226faae88e7d28d6696 | diff --git a/faker/providers/company/ja_JP/__init__.py b/faker/providers/company/ja_JP/__init__.py
index 649fafadaa..b650fb06f7 100644
--- a/faker/providers/company/ja_JP/__init__.py
+++ b/faker/providers/company/ja_JP/__init__.py
@@ -5,10 +5,15 @@
class Provider(CompanyProvider):
formats = (
- '{{compan... | diff --git a/tests/providers/test_company.py b/tests/providers/test_company.py
index ca6b220b55..0334a08719 100644
--- a/tests/providers/test_company.py
+++ b/tests/providers/test_company.py
@@ -37,15 +37,19 @@ def setUp(self):
def test_company(self):
prefixes = JaProvider.company_prefixes
-
pr... | 2018-12-02T08:23:21 | {} | {"faker/providers/company/ja_JP/__init__.py": "# -*- coding: utf-8 -*-\nfrom __future__ import unicode_literals\nfrom .. import Provider as CompanyProvider\n\n\nclass Provider(CompanyProvider):\n formats = (\n '{{company_prefix}} {{last_name}}',\n )\n\n company_prefixes = ('株式会社', '有限会社', '合同会社')\n\n ... | {"faker/providers/company/ja_JP/__init__.py": [{"type": "function", "name": "Provider.company_category", "lines": [18, 19], "signature": "def company_category(self):", "doc": ""}]} | null | ["tests/providers/test_company.py::TestJaJP::test_company"] | ["tests/providers/test_company.py::TestFiFI::test_company_business_id", "tests/providers/test_company.py::TestPtBR::test_pt_BR_cnpj", "tests/providers/test_company.py::TestPtBR::test_pt_BR_company_id", "tests/providers/test_company.py::TestPtBR::test_pt_BR_company_id_checksum", "tests/providers/test_company.py::TestHuH... | 6edfdbf6ae90b0153309e3bf066aa3b2d16494a7 | {"first_commit_time": 1543492138.0, "pr_title": "Add categories to Japanese company provider", "pr_body": "### What does this changes\r\n\r\nAdded variety of Japanese company names.\r\n\r\nThe category list is from Ruby Faker. https://github.com/stympy/faker/blob/master/lib/locales/ja.yml#L28\r\n\r\n### What was wrong\... | |
joke2k/faker | 964 | https://github.com/joke2k/faker/pull/964 | joke2k__faker-964 | ["931"] | 89eefd7962928b3150e72707fc8718613ab63e63 | diff --git a/faker/providers/person/pl_PL/__init__.py b/faker/providers/person/pl_PL/__init__.py
index 49c622df8a..025b50f135 100644
--- a/faker/providers/person/pl_PL/__init__.py
+++ b/faker/providers/person/pl_PL/__init__.py
@@ -21,28 +21,6 @@ def checksum_identity_card_number(characters):
return check_digit
... | diff --git a/tests/providers/test_person.py b/tests/providers/test_person.py
index 3767ef4d89..90b8d4c2ca 100644
--- a/tests/providers/test_person.py
+++ b/tests/providers/test_person.py
@@ -4,9 +4,14 @@
import re
import unittest
-
+import datetime
import six
+try:
+ from unittest import mock
+except ImportEr... | 2019-05-27T10:39:41 | {} | {"faker/providers/person/pl_PL/__init__.py": "# coding=utf-8\nfrom __future__ import unicode_literals\nfrom .. import Provider as PersonProvider\n\n\ndef checksum_identity_card_number(characters):\n \"\"\"\n Calculates and returns a control digit for given list of characters basing on Identity Card Number standar... | {"faker/providers/person/pl_PL/__init__.py": [{"type": "function", "name": "Provider.pesel_compute_check_digit", "lines": [707, 709], "signature": "def pesel_compute_check_digit(pesel):", "doc": ""}, {"type": "function", "name": "Provider.pwz_doctor_compute_check_digit", "lines": [743, 744], "signature": "def pwz_docto... | null | ["tests/providers/test_person.py::TestPlPL::test_pesel_birth_date", "tests/providers/test_person.py::TestPlPL::test_pesel_sex_female", "tests/providers/test_person.py::TestPlPL::test_pesel_sex_male", "tests/providers/test_person.py::TestPlPL::test_pwz_doctor", "tests/providers/test_person.py::TestPlPL::test_pwz_doctor_... | ["tests/providers/test_person.py::TestAr::test_first_name", "tests/providers/test_person.py::TestAr::test_last_name", "tests/providers/test_person.py::TestJaJP::test_person", "tests/providers/test_person.py::TestNeNP::test_names", "tests/providers/test_person.py::TestFiFI::test_gender_first_names", "tests/providers/tes... | 6edfdbf6ae90b0153309e3bf066aa3b2d16494a7 | {"first_commit_time": 1558951622.0, "pr_title": "add pwz generator and date_of_brith and sex asargument to pesel (`pl_PL`)", "pr_body": "What does this changes\r\n\r\n- `Person` in `pl_PL`\r\n\r\nWhat was wrong\r\n\r\n- it wasn't possible to generate pesel number for given date of birth and/or sex\r\n- generator for a ... | |
lark-parser/lark | 1,467 | https://github.com/lark-parser/lark/pull/1467 | lark-parser__lark-1467 | ["1466"] | 5faea9223cc54d1dbd0985cf830d05a10a7729ec | diff --git a/.gitignore b/.gitignore
index 26275e4b..d4e64180 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,6 +1,7 @@
*.pyc
*.pyo
/.tox
+/lark.egg-info/**
/lark_parser.egg-info/**
tags
.vscode
diff --git a/lark/tree.py b/lark/tree.py
index 76f8738e..9dccadd7 100644
--- a/lark/tree.py
+++ b/lark/tree.py
@@ -3,8 +... | diff --git a/tests/test_trees.py b/tests/test_trees.py
index 1f69869e..55fdae91 100644
--- a/tests/test_trees.py
+++ b/tests/test_trees.py
@@ -17,6 +17,11 @@
class TestTrees(TestCase):
def setUp(self):
self.tree1 = Tree('a', [Tree(x, y) for x, y in zip('bcd', 'xyz')])
+ self.tree2 = Tree('a', [
+ ... | 2024-09-11T20:10:22 | {"README.md": "<p align=\"center\">\n <a href=\"https://gmago-leway.github.io/fea-bench.github.io/\">\n <img src=\"assets/FEA-Bench-full.png\" style=\"height: 10em\" alt=\"fea-bench\" />\n </a>\n</p>\n\n<p align=\"center\">\n <em>A benchmark that aims to evaluate the capability of implementing new features in the... | {".gitignore": "*.pyc\n*.pyo\n/.tox\n/lark_parser.egg-info/**\ntags\n.vscode\n.idea\n.ropeproject\n.cache\n.mypy_cache\n/dist\n/build\ndocs/_build\ndocs/examples\n", "lark/tree.py": "import sys\nfrom copy import deepcopy\n\nfrom typing import List, Callable, Iterator, Union, Optional, Generic, TypeVar, TYPE_CHECKING\n\... | diff --git a/.gitignore b/.gitignore
index 26275e4b..d4e64180 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,6 +1,7 @@
*.pyc
*.pyo
/.tox
+/lark.egg-info/**
/lark_parser.egg-info/**
tags
.vscode
| {"lark/tree.py": [{"type": "function", "name": "Tree.find_token", "lines": [176, 184], "signature": "def find_token(self, token_type: str) -> Iterator[_Leaf_T]:", "doc": "Returns all tokens whose type equals the given token_type.\n\nThis is a recursive function that will find tokens in all the subtrees.\n\nExample:\n ... | null | ["tests/test_trees.py::TestTrees::test_find_token"] | ["tests/test_trees.py::TestTrees::test_copy", "tests/test_trees.py::TestTrees::test_deepcopy", "tests/test_trees.py::TestTrees::test_discard", "tests/test_trees.py::TestTrees::test_eq", "tests/test_trees.py::TestTrees::test_inline_static", "tests/test_trees.py::TestTrees::test_interp", "tests/test_trees.py::TestTrees::... | 5faea9223cc54d1dbd0985cf830d05a10a7729ec | {"first_commit_time": 1726085281.0, "pr_title": "Add Tree.find_token() method", "pr_body": "Resolves #1466.", "pr_timeline": [{"time": 1726085481.0, "comment": "I put this method outside of \"standalone\" scope as it uses `scan_values()` that is not included as well. Not sure if this is correct."}, {"time": 1726085550.... |
lark-parser/lark | 466 | https://github.com/lark-parser/lark/pull/466 | lark-parser__lark-466 | [] | f07359c31683805f4004fe2d6f37dec84b7c094f | diff --git a/lark/visitors.py b/lark/visitors.py
index 7d40e7479..c6e4f6bed 100644
--- a/lark/visitors.py
+++ b/lark/visitors.py
@@ -186,6 +186,11 @@ def visit(self, tree):
self._call_userfunc(subtree)
return tree
+ def visit_topdown(self,tree):
+ for subtree in tree.iter_subtrees_topd... | diff --git a/tests/test_trees.py b/tests/test_trees.py
index 4216bd6c5..edd2a8b91 100644
--- a/tests/test_trees.py
+++ b/tests/test_trees.py
@@ -7,7 +7,7 @@
import functools
from lark.tree import Tree
-from lark.visitors import Transformer, Interpreter, visit_children_decor, v_args, Discard
+from lark.visitors impo... | 2019-10-31T12:19:33 | {"README.md": "<p align=\"center\">\n <a href=\"https://gmago-leway.github.io/fea-bench.github.io/\">\n <img src=\"assets/FEA-Bench-full.png\" style=\"height: 10em\" alt=\"fea-bench\" />\n </a>\n</p>\n\n<p align=\"center\">\n <em>A benchmark that aims to evaluate the capability of implementing new features in the... | {"lark/visitors.py": "from functools import wraps\n\nfrom .utils import smart_decorator\nfrom .tree import Tree\nfrom .exceptions import VisitError, GrammarError\nfrom .lexer import Token\n\n###{standalone\nfrom inspect import getmembers, getmro\n\nclass Discard(Exception):\n pass\n\n# Transformers\n\nclass Transfor... | {"lark/visitors.py": [{"type": "function", "name": "Visitor.visit_topdown", "lines": [189, 192], "signature": "def visit_topdown(self,tree):", "doc": ""}, {"type": "function", "name": "Visitor_Recursive.visit_topdown", "lines": [209, 216], "signature": "def visit_topdown(self,tree):", "doc": ""}]} | null | ["tests/test_trees.py::TestTrees::test_visitor"] | ["tests/test_trees.py::TestTrees::test_deepcopy", "tests/test_trees.py::TestTrees::test_discard", "tests/test_trees.py::TestTrees::test_interp", "tests/test_trees.py::TestTrees::test_iter_subtrees", "tests/test_trees.py::TestTrees::test_iter_subtrees_topdown", "tests/test_trees.py::TestTrees::test_partial", "tests/test... | 5faea9223cc54d1dbd0985cf830d05a10a7729ec | {"first_commit_time": 1572648811.0, "pr_title": "added visit_topdown methods to Visitor classes", "pr_body": "I think it would be useful have visit_top_down methods in visitors.", "pr_timeline": [{"time": 1572556797.0, "comment": "Looks good, but please include a test that shows that it works. You can reuse the test us... | |
matplotlib/matplotlib | 19,646 | https://github.com/matplotlib/matplotlib/pull/19646 | matplotlib__matplotlib-19646 | [] | bd7df784719a3393bc7d6e7b471fb2b5ed52da50 | diff --git a/lib/matplotlib/patches.py b/lib/matplotlib/patches.py
index a5bb2019db56..e72485915ef3 100644
--- a/lib/matplotlib/patches.py
+++ b/lib/matplotlib/patches.py
@@ -799,6 +799,10 @@ def get_height(self):
"""Return the height of the rectangle."""
return self._height
+ def get_angle(self)... | diff --git a/lib/matplotlib/tests/test_patches.py b/lib/matplotlib/tests/test_patches.py
index 2a908098364e..c54fbe5faea1 100644
--- a/lib/matplotlib/tests/test_patches.py
+++ b/lib/matplotlib/tests/test_patches.py
@@ -76,6 +76,27 @@ def test_rotate_rect():
assert_almost_equal(rect1.get_verts(), new_verts)
+@c... | 2021-03-05T20:31:48 | {} | {"lib/matplotlib/patches.py": "import contextlib\nimport functools\nimport inspect\nimport math\nfrom numbers import Number\nimport textwrap\nfrom collections import namedtuple\n\nimport numpy as np\n\nimport matplotlib as mpl\nfrom . import (_api, artist, cbook, colors, docstring, hatch as mhatch,\n line... | {"lib/matplotlib/patches.py": [{"type": "function", "name": "Rectangle.get_angle", "lines": [802, 804], "signature": "def get_angle(self):", "doc": "Get the rotation angle in degrees."}, {"type": "function", "name": "Rectangle.set_angle", "lines": [816, 823], "signature": "def set_angle(self, angle):", "doc": "Set the ... | 3.3 | ["lib/matplotlib/tests/test_patches.py::test_rotate_rect_draw[png]"] | ["lib/matplotlib/tests/test_patches.py::test_Polygon_close", "lib/matplotlib/tests/test_patches.py::test_rotate_rect", "lib/matplotlib/tests/test_patches.py::test_negative_rect", "lib/matplotlib/tests/test_patches.py::test_clip_to_bbox[png]", "lib/matplotlib/tests/test_patches.py::test_patch_alpha_coloring[png]", "lib/... | 59b32afde60e46407b60c766b878c840a9bfa490 | {"first_commit_time": 1615140549.0, "pr_title": "Add angle setter/getter to Rectangle", "pr_body": "This adds an `angle` property, such that the `Rectangle` is labelled stale when it is updated. All the other properties use `set_` and `get_`, but to maintain backwards compatibility I've used a property here since `Rect... | |
matplotlib/matplotlib | 19,663 | https://github.com/matplotlib/matplotlib/pull/19663 | matplotlib__matplotlib-19663 | [] | bd7df784719a3393bc7d6e7b471fb2b5ed52da50 | diff --git a/lib/matplotlib/colors.py b/lib/matplotlib/colors.py
index 9754d6bf2c56..8f2744013202 100644
--- a/lib/matplotlib/colors.py
+++ b/lib/matplotlib/colors.py
@@ -561,7 +561,7 @@ def _warn_if_global_cmap_modified(cmap):
"colormap. In future versions, you will not be able to "
... | diff --git a/lib/matplotlib/tests/test_colors.py b/lib/matplotlib/tests/test_colors.py
index fff69da380bf..d9c31a148a9b 100644
--- a/lib/matplotlib/tests/test_colors.py
+++ b/lib/matplotlib/tests/test_colors.py
@@ -150,6 +150,16 @@ def test_colormap_copy():
with np.errstate(invalid='ignore'):
ret2 = copie... | 2021-03-07T21:04:50 | {} | {"lib/matplotlib/colors.py": "\"\"\"\nA module for converting numbers or color arguments to *RGB* or *RGBA*.\n\n*RGB* and *RGBA* are sequences of, respectively, 3 or 4 floats in the\nrange 0-1.\n\nThis module includes functions and classes for color specification conversions,\nand for mapping numbers to colors in a 1-D... | {"lib/matplotlib/colors.py": [{"type": "function", "name": "Colormap.copy", "lines": [848, 850], "signature": "def copy(self):", "doc": "Return a copy of the colormap."}]} | 3.3 | ["lib/matplotlib/tests/test_colors.py::test_colormap_copy"] | ["lib/matplotlib/tests/test_colors.py::test_create_lookup_table[5-result0]", "lib/matplotlib/tests/test_colors.py::test_create_lookup_table[2-result1]", "lib/matplotlib/tests/test_colors.py::test_create_lookup_table[1-result2]", "lib/matplotlib/tests/test_colors.py::test_resample", "lib/matplotlib/tests/test_colors.py:... | 59b32afde60e46407b60c766b878c840a9bfa490 | {"first_commit_time": 1615151492.0, "pr_title": "ENH: add a copy method to colormaps", "pr_body": "## PR Summary\r\n\r\nRight now we are deprecating access to the global colormaps, but users can only avoid it by doing `newcmap = copy.copy(cmap)` which is a bit heavy-handed. Here we provide a simple `copy` method to `C... | |
matplotlib/matplotlib | 20,634 | https://github.com/matplotlib/matplotlib/pull/20634 | matplotlib__matplotlib-20634 | [] | 73b7abf14c77014ab2436e7691e19cbee5864f4b | diff --git a/doc/api/next_api_changes/behavior/20634-JKS.rst b/doc/api/next_api_changes/behavior/20634-JKS.rst
new file mode 100644
index 000000000000..ff4046445e42
--- /dev/null
+++ b/doc/api/next_api_changes/behavior/20634-JKS.rst
@@ -0,0 +1,8 @@
+``Type1Font`` objects now decrypt the encrypted part
+----------------... | diff --git a/lib/matplotlib/tests/test_type1font.py b/lib/matplotlib/tests/test_type1font.py
index 5766709c6cf8..99cc3e500b0e 100644
--- a/lib/matplotlib/tests/test_type1font.py
+++ b/lib/matplotlib/tests/test_type1font.py
@@ -15,6 +15,8 @@ def test_Type1Font():
assert font.parts[2] == rawdata[0x8985:0x8ba6]
... | 2021-07-12T17:21:48 | {} | {"doc/api/next_api_changes/behavior/20634-JKS.rst": null, "lib/matplotlib/type1font.py": "\"\"\"\nA class representing a Type 1 font.\n\nThis version reads pfa and pfb files and splits them for embedding in\npdf files. It also supports SlantFont and ExtendFont transformations,\nsimilarly to pdfTeX and friends. There is... | diff --git a/doc/api/next_api_changes/behavior/20634-JKS.rst b/doc/api/next_api_changes/behavior/20634-JKS.rst
new file mode 100644
index 000000000000..ff4046445e42
--- /dev/null
+++ b/doc/api/next_api_changes/behavior/20634-JKS.rst
@@ -0,0 +1,8 @@
+``Type1Font`` objects now decrypt the encrypted part
+----------------... | {"lib/matplotlib/type1font.py": [{"type": "function", "name": "Type1Font._decrypt", "lines": [152, 171], "signature": "def _decrypt(ciphertext, key, ndiscard=4):", "doc": "Decrypt ciphertext using the Type-1 font algorithm\n\nThe algorithm is described in Adobe's \"Adobe Type 1 Font Format\".\nThe key argument can be a... | 3.4 | ["lib/matplotlib/tests/test_type1font.py::test_Type1Font", "lib/matplotlib/tests/test_type1font.py::test_encrypt_decrypt_roundtrip"] | ["lib/matplotlib/tests/test_type1font.py::test_overprecision"] | 7e36e90ae85120bdbef9b57c2a5b35d40ed07710 | {"first_commit_time": 1626109249.0, "pr_title": "Implement Type-1 decryption", "pr_body": "## PR Summary\r\n\r\nImplement decryption of the encrypted part of Type-1 fonts. This is a prerequisite of subsetting (#127) although that will need a lot more code.\r\n\r\nI looked at using fonttools for Type-1 subsetting, but i... |
matplotlib/matplotlib | 21,977 | https://github.com/matplotlib/matplotlib/pull/21977 | matplotlib__matplotlib-21977 | [] | ac2a14581949bcf869e969f28a21ee479d2fc250 | diff --git a/lib/matplotlib/patches.py b/lib/matplotlib/patches.py
index b83714bdcd7b..544a626b8abe 100644
--- a/lib/matplotlib/patches.py
+++ b/lib/matplotlib/patches.py
@@ -806,6 +806,18 @@ def get_xy(self):
"""Return the left and bottom coords of the rectangle as a tuple."""
return self._x0, self._... | diff --git a/lib/matplotlib/tests/test_patches.py b/lib/matplotlib/tests/test_patches.py
index 9487758c8aef..6a8ddc87f3ae 100644
--- a/lib/matplotlib/tests/test_patches.py
+++ b/lib/matplotlib/tests/test_patches.py
@@ -6,7 +6,7 @@
import pytest
import matplotlib as mpl
-from matplotlib.patches import (Annulus, Patc... | 2021-12-16T13:31:39 | {} | {"lib/matplotlib/patches.py": "r\"\"\"\nPatches are `.Artist`\\s with a face color and an edge color.\n\"\"\"\n\nimport contextlib\nimport functools\nimport inspect\nimport math\nfrom numbers import Number\nimport textwrap\nfrom collections import namedtuple\n\nimport numpy as np\n\nimport matplotlib as mpl\nfrom . imp... | {"lib/matplotlib/patches.py": [{"type": "function", "name": "Rectangle.get_corners", "lines": [805, 811], "signature": "def get_corners(self):", "doc": "Return the corners of the rectangle, moving anti-clockwise from\n(x0, y0)."}, {"type": "function", "name": "Rectangle.get_center", "lines": [813, 815], "signature": "d... | 3.5 | ["lib/matplotlib/tests/test_patches.py::test_corner_center"] | ["lib/matplotlib/tests/test_patches.py::test_Polygon_close", "lib/matplotlib/tests/test_patches.py::test_rotate_rect", "lib/matplotlib/tests/test_patches.py::test_rotate_rect_draw[png]", "lib/matplotlib/tests/test_patches.py::test_negative_rect", "lib/matplotlib/tests/test_patches.py::test_clip_to_bbox[png]", "lib/matp... | 3d6c3da884fafae4654df68144391cfe9be6f134 | {"first_commit_time": 1640692899.0, "pr_title": "Add corner coordinate helper methods to Ellipse/Rectangle", "pr_body": "## PR Summary\r\nThis is pulled out of https://github.com/matplotlib/matplotlib/pull/21945 because it's a standalone feature, and I think it's worth the scrutiny of a separate PR.\r\n\r\n## PR Checkl... | |
matplotlib/matplotlib | 23,692 | https://github.com/matplotlib/matplotlib/pull/23692 | matplotlib__matplotlib-23692 | [] | 3d6c3da884fafae4654df68144391cfe9be6f134 | diff --git a/doc/api/axis_api.rst b/doc/api/axis_api.rst
index d950d1e253a4..e7da26a11706 100644
--- a/doc/api/axis_api.rst
+++ b/doc/api/axis_api.rst
@@ -100,6 +100,7 @@ Ticks, tick labels and Offset text
Axis.get_offset_text
Axis.get_tick_padding
+ Axis.get_tick_params
Axis.get_ticklabels
Axis.get... | diff --git a/lib/matplotlib/tests/test_axes.py b/lib/matplotlib/tests/test_axes.py
index 3699c9df133d..aed45743d66b 100644
--- a/lib/matplotlib/tests/test_axes.py
+++ b/lib/matplotlib/tests/test_axes.py
@@ -6452,6 +6452,33 @@ def test_pandas_bar_align_center(pd):
fig.canvas.draw()
+def test_axis_get_tick_param... | 2022-08-20T23:23:12 | {"README.md": "<p align=\"center\">\n <a href=\"https://gmago-leway.github.io/fea-bench.github.io/\">\n <img src=\"assets/FEA-Bench-full.png\" style=\"height: 10em\" alt=\"fea-bench\" />\n </a>\n</p>\n\n<p align=\"center\">\n <em>A benchmark that aims to evaluate the capability of implementing new features in the... | {"doc/api/axis_api.rst": "*******************\n``matplotlib.axis``\n*******************\n\n.. contents:: Table of Contents\n :depth: 3\n :local:\n :backlinks: entry\n\n.. automodule:: matplotlib.axis\n :no-members:\n :no-undoc-members:\n\nInheritance\n===========\n\n.. inheritance-diagram:: Tick Ticker XAxis ... | diff --git a/doc/api/axis_api.rst b/doc/api/axis_api.rst
index d950d1e253a4..e7da26a11706 100644
--- a/doc/api/axis_api.rst
+++ b/doc/api/axis_api.rst
@@ -100,6 +100,7 @@ Ticks, tick labels and Offset text
Axis.get_offset_text
Axis.get_tick_padding
+ Axis.get_tick_params
Axis.get_ticklabels
Axis.get... | {"lib/matplotlib/axis.py": [{"type": "function", "name": "Axis.get_tick_params", "lines": [958, 1010], "signature": "def get_tick_params(self, which='major'):", "doc": "Get appearance parameters for ticks, ticklabels, and gridlines.\n\n.. versionadded:: 3.7\n\nParameters\n----------\nwhich : {'major', 'minor'}, default... | 3.5 | ["lib/matplotlib/tests/test_axes.py::test_axis_get_tick_params"] | ["lib/matplotlib/tests/test_axes.py::test_invisible_axes[png]", "lib/matplotlib/tests/test_axes.py::test_get_labels", "lib/matplotlib/tests/test_axes.py::test_repr", "lib/matplotlib/tests/test_axes.py::test_label_loc_vertical[png]", "lib/matplotlib/tests/test_axes.py::test_label_loc_horizontal[png]", "lib/matplotlib/te... | 3d6c3da884fafae4654df68144391cfe9be6f134 | {"first_commit_time": 1661037601.0, "pr_title": "Add `Axes.get_tick_params()` method.", "pr_body": "## PR Summary\r\nAddresses https://github.com/matplotlib/matplotlib/issues/23603\r\n\r\n- Added `Axis.get_tick_params()` method, which will return `Axis._major_tick_kw` or `Axis._minor_tick_kw` depending on the value of ... |
matplotlib/matplotlib | 25,686 | https://github.com/matplotlib/matplotlib/pull/25686 | matplotlib__matplotlib-25686 | [] | b86ebbafe4673583345d0a01a6ea205af34c58dc | diff --git a/doc/users/next_whats_new/get_suptitle.rst b/doc/users/next_whats_new/get_suptitle.rst
new file mode 100644
index 000000000000..b03ad10b1b4c
--- /dev/null
+++ b/doc/users/next_whats_new/get_suptitle.rst
@@ -0,0 +1,4 @@
+``Figure.get_suptitle()``, ``Figure.get_supxlabel()``, ``Figure.get_supylabel()``
+~~~~~... | diff --git a/lib/matplotlib/tests/test_figure.py b/lib/matplotlib/tests/test_figure.py
index 4188ca878fed..d8f137ddd61a 100644
--- a/lib/matplotlib/tests/test_figure.py
+++ b/lib/matplotlib/tests/test_figure.py
@@ -302,6 +302,19 @@ def test_suptitle_subfigures():
assert sf2.get_facecolor() == (1.0, 1.0, 1.0, 1.0)
... | 2023-04-14T21:31:42 | {"README.md": "<p align=\"center\">\n <a href=\"https://gmago-leway.github.io/fea-bench.github.io/\">\n <img src=\"assets/FEA-Bench-full.png\" style=\"height: 10em\" alt=\"fea-bench\" />\n </a>\n</p>\n\n<p align=\"center\">\n <em>A benchmark that aims to evaluate the capability of implementing new features in the... | {"doc/users/next_whats_new/get_suptitle.rst": null, "lib/matplotlib/figure.py": "\"\"\"\n`matplotlib.figure` implements the following classes:\n\n`Figure`\n Top level `~matplotlib.artist.Artist`, which holds all plot elements.\n Many methods are implemented in `FigureBase`.\n\n`SubFigure`\n A logical figure in... | diff --git a/doc/users/next_whats_new/get_suptitle.rst b/doc/users/next_whats_new/get_suptitle.rst
new file mode 100644
index 000000000000..b03ad10b1b4c
--- /dev/null
+++ b/doc/users/next_whats_new/get_suptitle.rst
@@ -0,0 +1,4 @@
+``Figure.get_suptitle()``, ``Figure.get_supxlabel()``, ``Figure.get_supylabel()``
+~~~~~... | {"lib/matplotlib/figure.py": [{"type": "function", "name": "FigureBase.get_suptitle", "lines": [391, 394], "signature": "def get_suptitle(self):", "doc": "Return the suptitle as string or an empty string if not set."}, {"type": "function", "name": "FigureBase.get_supxlabel", "lines": [406, 409], "signature": "def get_s... | 3.7 | ["lib/matplotlib/tests/test_figure.py::test_get_suptitle_supxlabel_supylabel"] | ["lib/matplotlib/tests/test_figure.py::test_align_labels[png]", "lib/matplotlib/tests/test_figure.py::test_align_labels_stray_axes", "lib/matplotlib/tests/test_figure.py::test_figure_label", "lib/matplotlib/tests/test_figure.py::test_fignum_exists", "lib/matplotlib/tests/test_figure.py::test_clf_keyword", "lib/matplotl... | a4dca24d04f928a9e614db403c716237446140b2 | {"first_commit_time": 1681507590.0, "pr_title": "Add Figure methods get_suptitle(), get_subxlabel(), get_supylabel()", "pr_body": "## PR Summary\r\n\r\nWe had no public API to optain these values. The API is modelled analogous to `Axes.get_title()` / `Axes.get_x/ylabel()`, i.e. returning a string (and not the Text obje... |
matplotlib/matplotlib | 26,293 | https://github.com/matplotlib/matplotlib/pull/26293 | matplotlib__matplotlib-26293 | ["26281", "0000"] | a4dca24d04f928a9e614db403c716237446140b2 | diff --git a/doc/api/axes_api.rst b/doc/api/axes_api.rst
index 3457368fa51c..8b01a120da5b 100644
--- a/doc/api/axes_api.rst
+++ b/doc/api/axes_api.rst
@@ -335,6 +335,8 @@ Autoscaling and margins
Axes.use_sticky_edges
Axes.margins
+ Axes.get_xmargin
+ Axes.get_ymargin
Axes.set_xmargin
Axes.set_ymar... | diff --git a/lib/matplotlib/tests/test_axes.py b/lib/matplotlib/tests/test_axes.py
index 0fcb2eb26cbb..6dea39a702fc 100644
--- a/lib/matplotlib/tests/test_axes.py
+++ b/lib/matplotlib/tests/test_axes.py
@@ -6153,6 +6153,14 @@ def test_margins():
ymax + (ymax - ymin) * 0.5)
+def test_m... | 2023-07-12T06:31:49 | {"README.md": "<p align=\"center\">\n <a href=\"https://gmago-leway.github.io/fea-bench.github.io/\">\n <img src=\"assets/FEA-Bench-full.png\" style=\"height: 10em\" alt=\"fea-bench\" />\n </a>\n</p>\n\n<p align=\"center\">\n <em>A benchmark that aims to evaluate the capability of implementing new features in the... | {"doc/api/axes_api.rst": "*******************\n``matplotlib.axes``\n*******************\n\nThe `~.axes.Axes` class represents one (sub-)plot in a figure. It contains the\nplotted data, axis ticks, labels, title, legend, etc. Its methods are the main\ninterface for manipulating the plot.\n\n.. currentmodule:: matplotlib... | diff --git a/doc/api/axes_api.rst b/doc/api/axes_api.rst
index 3457368fa51c..8b01a120da5b 100644
--- a/doc/api/axes_api.rst
+++ b/doc/api/axes_api.rst
@@ -335,6 +335,8 @@ Autoscaling and margins
Axes.use_sticky_edges
Axes.margins
+ Axes.get_xmargin
+ Axes.get_ymargin
Axes.set_xmargin
Axes.set_ymar... | {"lib/matplotlib/axes/_base.py": [{"type": "function", "name": "_AxesBase.get_xmargin", "lines": [2620, 2634], "signature": "def get_xmargin(self):", "doc": "Retrieve autoscaling margin of the x-axis.\n\n.. versionadded:: 3.9\n\nReturns\n-------\nxmargin : float\n\nSee Also\n--------\nmatplotlib.axes.Axes.set_xmargin"}... | 3.7 | ["lib/matplotlib/tests/test_axes.py::test_margin_getters", "lib/mpl_toolkits/mplot3d/tests/test_axes3d.py::test_margin_getters"] | ["lib/matplotlib/tests/test_axes.py::test_invisible_axes[png]", "lib/matplotlib/tests/test_axes.py::test_get_labels", "lib/matplotlib/tests/test_axes.py::test_repr", "lib/matplotlib/tests/test_axes.py::test_label_loc_vertical[png]", "lib/matplotlib/tests/test_axes.py::test_label_loc_horizontal[png]", "lib/matplotlib/te... | a4dca24d04f928a9e614db403c716237446140b2 | {"first_commit_time": 1689142968.0, "pr_title": "Added get_xmargin(), get_ymargin() and get_zmargin() and tests.", "pr_body": "## PR summary\r\nCloses #26281 by adding `get_xmargin()`, `get_ymargin()` for` _AxesBase` and `get_zmargin()` for `Axes3D`, as well as tests for them. \r\n## PR checklist\r\n<!-- Please mark a... |
open-mmlab/mmengine | 609 | https://github.com/open-mmlab/mmengine/pull/609 | open-mmlab__mmengine-609 | [] | bc37c838d424b3d9ce5cbd4859540cdc03204026 | diff --git a/docs/en/api/utils.rst b/docs/en/api/utils.rst
index 92466352a5..681e15d2c0 100644
--- a/docs/en/api/utils.rst
+++ b/docs/en/api/utils.rst
@@ -109,6 +109,7 @@ Miscellaneous
to_ntuple
check_prerequisites
deprecated_api_warning
+ deprecated_function
has_method
is_method_overridden
im... | diff --git a/tests/test_utils/test_misc.py b/tests/test_utils/test_misc.py
new file mode 100644
index 0000000000..95d7a006bd
--- /dev/null
+++ b/tests/test_utils/test_misc.py
@@ -0,0 +1,285 @@
+# Copyright (c) OpenMMLab. All rights reserved.
+import pytest
+
+from mmengine import MMLogger
+# yapf: disable
+from mmengin... | 2022-10-14T07:40:30 | {"README.md": "<p align=\"center\">\n <a href=\"https://gmago-leway.github.io/fea-bench.github.io/\">\n <img src=\"assets/FEA-Bench-full.png\" style=\"height: 10em\" alt=\"fea-bench\" />\n </a>\n</p>\n\n<p align=\"center\">\n <em>A benchmark that aims to evaluate the capability of implementing new features in the... | {"docs/en/api/utils.rst": ".. role:: hidden\n :class: hidden-section\n\nmmengine.utils\n===================================\n\n.. contents:: mmengine.utils\n :depth: 2\n :local:\n :backlinks: top\n\n.. currentmodule:: mmengine.utils\n\nManager\n----------------\n\n.. autosummary::\n :toctree: generated\n :... | diff --git a/docs/en/api/utils.rst b/docs/en/api/utils.rst
index 92466352a5..681e15d2c0 100644
--- a/docs/en/api/utils.rst
+++ b/docs/en/api/utils.rst
@@ -109,6 +109,7 @@ Miscellaneous
to_ntuple
check_prerequisites
deprecated_api_warning
+ deprecated_function
has_method
is_method_overridden
im... | {"mmengine/utils/misc.py": [{"type": "function", "name": "deprecated_function", "lines": [395, 461], "signature": "def deprecated_function(since: str, removed_in: str, instructions: str) -> Callable:", "doc": "Marks functions as deprecated.\n\nThrow a warning when a deprecated function is called, and add a note in the\... | null | ["tests/test_utils/test_misc.py::test_to_ntuple", "tests/test_utils/test_misc.py::test_iter_cast", "tests/test_utils/test_misc.py::test_is_seq_of", "tests/test_utils/test_misc.py::test_slice_list", "tests/test_utils/test_misc.py::test_concat_list", "tests/test_utils/test_misc.py::test_requires_package", "tests/test_uti... | [] | 53474ef1ba0b166508c231fa525b55b580adf20f | {"first_commit_time": 1665733154.0, "pr_title": "[Enhancement] Add a function to mark the deprecated function.", "pr_body": "Thanks for your contribution and we appreciate it a lot. The following instructions would make your pull request more healthy and more easily get feedback. If you do not understand some items, do... |
pgmpy/pgmpy | 1,753 | https://github.com/pgmpy/pgmpy/pull/1753 | pgmpy__pgmpy-1753 | [] | 7ed0659107c9b3768208d17890a28778001320e9 | 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... | 2024-04-30T06:51:14 | {"README.md": "<p align=\"center\">\n <a href=\"https://gmago-leway.github.io/fea-bench.github.io/\">\n <img src=\"assets/FEA-Bench-full.png\" style=\"height: 10em\" alt=\"fea-bench\" />\n </a>\n</p>\n\n<p align=\"center\">\n <em>A benchmark that aims to evaluate the capability of implementing new features in the... | {"pgmpy/utils/__init__.py": "from .mathext import cartesian, sample_discrete\nfrom .state_name import StateNameMixin\nfrom .check_functions import _check_1d_array_object, _check_length_equal\nfrom .optimizer import optimize, pinverse\nfrom .utils import get_example_model\n\n\n__all__ = [\n \"cartesian\",\n \"samp... | {"pgmpy/utils/utils.py": [{"type": "function", "name": "discretize", "lines": [119, 177], "signature": "def discretize(data, cardinality, labels=dict(), method=\"rounding\"):", "doc": "Discretizes a given continuous dataset.\n\nParameters\n----------\ndata: pandas.DataFrame\n The dataset to discretize. All columns m... | null | ["pgmpy/tests/test_utils/test_utils.py::TestDAGCreation::test_get_example_model", "pgmpy/tests/test_utils/test_utils.py::TestDiscretization::test_rounding_disc"] | [] | cf8d0f12e2e5be62b01ff8fded85f3f64eab1e84 | {"first_commit_time": 1714459855.0, "pr_title": "Adds a function for discretization", "pr_body": "### Your checklist for this pull request\r\nPlease review the [guidelines for contributing](CONTRIBUTING.md) to this repository.\r\n\r\n- [ ] Make sure you are requesting to **pull a topic/feature/bugfix branch** (right si... | |
pgmpy/pgmpy | 1,797 | https://github.com/pgmpy/pgmpy/pull/1797 | pgmpy__pgmpy-1797 | [] | 336c144b95aa21718e1898930934eb63474d1caf | diff --git a/pgmpy/utils/__init__.py b/pgmpy/utils/__init__.py
index adf8bb667..22d901b77 100644
--- a/pgmpy/utils/__init__.py
+++ b/pgmpy/utils/__init__.py
@@ -2,7 +2,7 @@
from .mathext import cartesian, sample_discrete
from .optimizer import optimize, pinverse
from .state_name import StateNameMixin
-from .utils im... | diff --git a/pgmpy/tests/test_utils/test_utils.py b/pgmpy/tests/test_utils/test_utils.py
index 1ab6e78a0..38b1041dd 100644
--- a/pgmpy/tests/test_utils/test_utils.py
+++ b/pgmpy/tests/test_utils/test_utils.py
@@ -1,11 +1,13 @@
+import os
import random
import unittest
import numpy as np
import pandas as pd
+import... | 2024-07-05T15:20:32 | {"README.md": "<p align=\"center\">\n <a href=\"https://gmago-leway.github.io/fea-bench.github.io/\">\n <img src=\"assets/FEA-Bench-full.png\" style=\"height: 10em\" alt=\"fea-bench\" />\n </a>\n</p>\n\n<p align=\"center\">\n <em>A benchmark that aims to evaluate the capability of implementing new features in the... | {"pgmpy/utils/__init__.py": "from .check_functions import _check_1d_array_object, _check_length_equal\nfrom .mathext import cartesian, sample_discrete\nfrom .optimizer import optimize, pinverse\nfrom .state_name import StateNameMixin\nfrom .utils import discretize, get_example_model\n\n__all__ = [\n \"cartesian\",\n... | diff --git a/requirements/runtime.txt b/requirements/runtime.txt
index c91b5f241..b4f6f5af6 100644
--- a/requirements/runtime.txt
+++ b/requirements/runtime.txt
@@ -10,3 +10,4 @@ tqdm>=4.64
joblib>=1.2
opt_einsum>=3.3
xgboost>=2.0.3
+google-generativeai>=0.7.1
| {"pgmpy/utils/utils.py": [{"type": "function", "name": "llm_pairwise_orient", "lines": [182, 232], "signature": "def llm_pairwise_orient( x, y, descriptions, domain=None, llm_model=\"gemini-1.5-flash\", **kwargs ):", "doc": "Asks a Large Language Model (LLM) for the orientation of an edge between `x` and `y`.\n\nParame... | null | ["pgmpy/tests/test_utils/test_utils.py::TestDAGCreation::test_get_example_model", "pgmpy/tests/test_utils/test_utils.py::TestDiscretization::test_rounding_disc"] | [] | cf8d0f12e2e5be62b01ff8fded85f3f64eab1e84 | {"first_commit_time": 1720192812.0, "pr_title": "Adds an LLM based pairwise orientation method", "pr_body": "### Your checklist for this pull request\r\nPlease review the [guidelines for contributing](CONTRIBUTING.md) to this repository.\r\n\r\n- [ ] Make sure you are requesting to **pull a topic/feature/bugfix branch*... |
prometheus/client_python | 302 | https://github.com/prometheus/client_python/pull/302 | prometheus__client_python-302 | [] | 10c8eb4a83069877dc89695fbad236a88e2094f9 | diff --git a/prometheus_client/core.py b/prometheus_client/core.py
index da3034d0..cb1e7c5b 100644
--- a/prometheus_client/core.py
+++ b/prometheus_client/core.py
@@ -185,7 +185,7 @@ def get_sample_value(self, name, labels=None):
REGISTRY = CollectorRegistry(auto_describe=True)
'''The default registry.'''
-_METRIC_... | diff --git a/tests/test_multiprocess.py b/tests/test_multiprocess.py
index ca84913f..501cb62f 100644
--- a/tests/test_multiprocess.py
+++ b/tests/test_multiprocess.py
@@ -1,9 +1,17 @@
from __future__ import unicode_literals
+import glob
import os
import shutil
+import sys
import tempfile
-import unittest
+
+if sy... | 2018-09-05T11:48:04 | {"README.md": "<p align=\"center\">\n <a href=\"https://gmago-leway.github.io/fea-bench.github.io/\">\n <img src=\"assets/FEA-Bench-full.png\" style=\"height: 10em\" alt=\"fea-bench\" />\n </a>\n</p>\n\n<p align=\"center\">\n <em>A benchmark that aims to evaluate the capability of implementing new features in the... | {"prometheus_client/core.py": "#!/usr/bin/python\n\nfrom __future__ import unicode_literals\n\nimport copy\nimport json\nimport math\nimport mmap\nimport os\nimport re\nimport struct\nimport sys\nimport time\nimport types\n\nfrom threading import Lock\nfrom timeit import default_timer\nfrom collections import namedtupl... | {"prometheus_client/core.py": [{"type": "function", "name": "_mmap_key", "lines": [589, 593], "signature": "def _mmap_key(metric_name, name, labelnames, labelvalues):", "doc": "Format a key for use in the mmap file."}], "prometheus_client/multiprocess.py": [{"type": "function", "name": "MultiProcessCollector.merge", "l... | null | ["tests/test_multiprocess.py::TestMultiProcess::test_merge_no_accumulate"] | ["tests/test_multiprocess.py::TestMultiProcess::test_collect", "tests/test_multiprocess.py::TestMultiProcess::test_counter_across_forks", "tests/test_multiprocess.py::TestMultiProcess::test_counter_adds", "tests/test_multiprocess.py::TestMultiProcess::test_gauge_all", "tests/test_multiprocess.py::TestMultiProcess::test... | 09a5ae30602a7a81f6174dae4ba08b93ee7feed2 | {"first_commit_time": 1536147437.0, "pr_title": "Refactor MultiProcessCollector.collect() to allow for arbitrary merging.", "pr_body": "Factors out a merge() method from the previous collect() method, which\r\nis parameterized, and thus can be used for arbitrary merging of samples.\r\nFor motivation, see discussion in ... | |
pvlib/pvlib-python | 1,017 | https://github.com/pvlib/pvlib-python/pull/1017 | pvlib__pvlib-python-1017 | [] | 49da0318256d8b46f90d4b29a7023de680f8410b | diff --git a/docs/examples/plot_passias_diffuse_shading.py b/docs/examples/plot_passias_diffuse_shading.py
new file mode 100644
index 0000000000..989e977fdb
--- /dev/null
+++ b/docs/examples/plot_passias_diffuse_shading.py
@@ -0,0 +1,84 @@
+"""
+Diffuse Self-Shading
+====================
+
+Modeling the reduction in di... | diff --git a/pvlib/tests/test_shading.py b/pvlib/tests/test_shading.py
new file mode 100644
index 0000000000..8a9fd46a69
--- /dev/null
+++ b/pvlib/tests/test_shading.py
@@ -0,0 +1,71 @@
+import numpy as np
+import pandas as pd
+
+from pandas.testing import assert_series_equal
+import pytest
+
+from pvlib import shading... | 2020-08-04T03:27:48 | {"README.md": "<p align=\"center\">\n <a href=\"https://gmago-leway.github.io/fea-bench.github.io/\">\n <img src=\"assets/FEA-Bench-full.png\" style=\"height: 10em\" alt=\"fea-bench\" />\n </a>\n</p>\n\n<p align=\"center\">\n <em>A benchmark that aims to evaluate the capability of implementing new features in the... | {"docs/examples/plot_passias_diffuse_shading.py": null, "docs/sphinx/source/api.rst": ".. currentmodule:: pvlib\n\n#############\nAPI reference\n#############\n\n\nClasses\n=======\n\npvlib-python provides a collection of classes for users that prefer\nobject-oriented programming. These classes can help users keep trac... | diff --git a/docs/sphinx/source/api.rst b/docs/sphinx/source/api.rst
index dd7c618646..a7087edad0 100644
--- a/docs/sphinx/source/api.rst
+++ b/docs/sphinx/source/api.rst
@@ -354,6 +354,12 @@ Effects on PV System Output
soiling.hsu
soiling.kimber
+.. autosummary::
+ :toctree: generated/
+
+ shading.maskin... | {"pvlib/shading.py": [{"type": "function", "name": "masking_angle", "lines": [11, 58], "signature": "def masking_angle(surface_tilt, gcr, slant_height):", "doc": "The elevation angle below which diffuse irradiance is blocked.\n\nThe ``height`` parameter determines how far up the module's surface to\nevaluate the maskin... | 0.7 | ["pvlib/tests/test_shading.py::test_masking_angle_series", "pvlib/tests/test_shading.py::test_masking_angle_scalar", "pvlib/tests/test_shading.py::test_masking_angle_passias_series", "pvlib/tests/test_shading.py::test_masking_angle_passias_scalar", "pvlib/tests/test_shading.py::test_sky_diffuse_passias_series", "pvlib/... | [] | aa1635bcb40dc83f82e9fd72158670c235bfe99b | {"first_commit_time": 1596510520.0, "pr_title": "Add diffuse self-shading functions", "pr_body": " - ~Closes #xxxx~\r\n - [x] I am familiar with the [contributing guidelines](https://pvlib-python.readthedocs.io/en/latest/contributing.html)\r\n - [x] Tests added\r\n - [x] Updates entries to [`docs/sphinx/source/api.rst`... |
pvlib/pvlib-python | 1,045 | https://github.com/pvlib/pvlib-python/pull/1045 | pvlib__pvlib-python-1045 | [] | f8b9c04c13228ae74fa3be1cfb7e03ed4cf4eaa5 | diff --git a/docs/sphinx/source/api.rst b/docs/sphinx/source/api.rst
index 077a5e121d..2e882e9a46 100644
--- a/docs/sphinx/source/api.rst
+++ b/docs/sphinx/source/api.rst
@@ -236,7 +236,10 @@ PV temperature models
temperature.pvsyst_cell
temperature.faiman
temperature.fuentes
+ temperature.ross
pvsyst... | diff --git a/pvlib/tests/test_temperature.py b/pvlib/tests/test_temperature.py
index 411adcfcca..f8ea3a8bc1 100644
--- a/pvlib/tests/test_temperature.py
+++ b/pvlib/tests/test_temperature.py
@@ -124,6 +124,14 @@ def test_faiman_ndarray():
assert_allclose(expected, result, 3)
+def test_ross():
+ result = tem... | 2020-09-04T16:52:57 | {"README.md": "<p align=\"center\">\n <a href=\"https://gmago-leway.github.io/fea-bench.github.io/\">\n <img src=\"assets/FEA-Bench-full.png\" style=\"height: 10em\" alt=\"fea-bench\" />\n </a>\n</p>\n\n<p align=\"center\">\n <em>A benchmark that aims to evaluate the capability of implementing new features in the... | {"docs/sphinx/source/api.rst": ".. currentmodule:: pvlib\n\n#############\nAPI reference\n#############\n\n\nClasses\n=======\n\npvlib-python provides a collection of classes for users that prefer\nobject-oriented programming. These classes can help users keep track of\ndata in a more organized way, and can help to sim... | diff --git a/docs/sphinx/source/api.rst b/docs/sphinx/source/api.rst
index 077a5e121d..2e882e9a46 100644
--- a/docs/sphinx/source/api.rst
+++ b/docs/sphinx/source/api.rst
@@ -236,7 +236,10 @@ PV temperature models
temperature.pvsyst_cell
temperature.faiman
temperature.fuentes
+ temperature.ross
pvsyst... | {"pvlib/temperature.py": [{"type": "function", "name": "ross", "lines": [447, 491], "signature": "def ross(poa_global, temp_air, noct):", "doc": "Calculate cell temperature using the Ross model.\n\nThe Ross model [1]_ assumes the difference between cell temperature\nand ambient temperature is proportional to the plane ... | 0.7 | ["pvlib/tests/test_temperature.py::test_ross"] | ["pvlib/tests/test_temperature.py::test_sapm_cell", "pvlib/tests/test_temperature.py::test_sapm_module", "pvlib/tests/test_temperature.py::test_sapm_cell_from_module", "pvlib/tests/test_temperature.py::test_sapm_ndarray", "pvlib/tests/test_temperature.py::test_sapm_series", "pvlib/tests/test_temperature.py::test_pvsyst... | aa1635bcb40dc83f82e9fd72158670c235bfe99b | {"first_commit_time": 1599238234.0, "pr_title": "add Ross temperature model", "pr_body": " - [x] I am familiar with the [contributing guidelines](https://pvlib-python.readthedocs.io/en/latest/contributing.html)\r\n - [x] Tests added\r\n - [x] Updates entries to [`docs/sphinx/source/api.rst`](https://github.com/pvlib/pv... |
pvlib/pvlib-python | 1,177 | https://github.com/pvlib/pvlib-python/pull/1177 | pvlib__pvlib-python-1177 | [] | 8b98768818ee5ad85d9479877533651a2e9dc2cd | diff --git a/docs/sphinx/source/api.rst b/docs/sphinx/source/api.rst
index 8805d199a4..7ed5ee941d 100644
--- a/docs/sphinx/source/api.rst
+++ b/docs/sphinx/source/api.rst
@@ -238,6 +238,7 @@ PV temperature models
temperature.faiman
temperature.fuentes
temperature.ross
+ temperature.noct_sam
pvsystem.P... | diff --git a/pvlib/tests/test_temperature.py b/pvlib/tests/test_temperature.py
index f8ea3a8bc1..1ce2e69a47 100644
--- a/pvlib/tests/test_temperature.py
+++ b/pvlib/tests/test_temperature.py
@@ -5,7 +5,7 @@
from conftest import DATA_DIR, assert_series_equal
from numpy.testing import assert_allclose
-from pvlib impo... | 2021-02-25T22:32:29 | {"README.md": "<p align=\"center\">\n <a href=\"https://gmago-leway.github.io/fea-bench.github.io/\">\n <img src=\"assets/FEA-Bench-full.png\" style=\"height: 10em\" alt=\"fea-bench\" />\n </a>\n</p>\n\n<p align=\"center\">\n <em>A benchmark that aims to evaluate the capability of implementing new features in the... | {"docs/sphinx/source/api.rst": ".. currentmodule:: pvlib\n\n#############\nAPI reference\n#############\n\n\nClasses\n=======\n\npvlib-python provides a collection of classes for users that prefer\nobject-oriented programming. These classes can help users keep track of\ndata in a more organized way, and can help to sim... | diff --git a/docs/sphinx/source/api.rst b/docs/sphinx/source/api.rst
index 8805d199a4..7ed5ee941d 100644
--- a/docs/sphinx/source/api.rst
+++ b/docs/sphinx/source/api.rst
@@ -238,6 +238,7 @@ PV temperature models
temperature.faiman
temperature.fuentes
temperature.ross
+ temperature.noct_sam
pvsystem.P... | {"pvlib/temperature.py": [{"type": "function", "name": "_adj_for_mounting_standoff", "lines": [711, 718], "signature": "def _adj_for_mounting_standoff(x):", "doc": ""}, {"type": "function", "name": "noct_sam", "lines": [721, 814], "signature": "def noct_sam(poa_global, temp_air, wind_speed, noct, eta_m_ref, effective_i... | 0.8 | ["pvlib/tests/test_temperature.py::test_noct_sam", "pvlib/tests/test_temperature.py::test_noct_sam_against_sam", "pvlib/tests/test_temperature.py::test_noct_sam_options", "pvlib/tests/test_temperature.py::test_noct_sam_errors"] | ["pvlib/tests/test_temperature.py::test_sapm_cell", "pvlib/tests/test_temperature.py::test_sapm_module", "pvlib/tests/test_temperature.py::test_sapm_cell_from_module", "pvlib/tests/test_temperature.py::test_sapm_ndarray", "pvlib/tests/test_temperature.py::test_sapm_series", "pvlib/tests/test_temperature.py::test_pvsyst... | 311781d2380997044da0e484dc90aa146a74ca44 | {"first_commit_time": 1614287349.0, "pr_title": "NOCT cell temperature function", "pr_body": " - ~~[ ] Closes #xxxx~~\r\n - [x] I am familiar with the [contributing guidelines](https://pvlib-python.readthedocs.io/en/latest/contributing.html)\r\n - [x] Tests added\r\n - [x] Updates entries to [`docs/sphinx/source/api.rs... |
pvlib/pvlib-python | 1,179 | https://github.com/pvlib/pvlib-python/pull/1179 | pvlib__pvlib-python-1179 | [] | bee329bd926c308a3e07e9099999fa37634a2f88 | diff --git a/docs/examples/irradiance-decomposition/README.rst b/docs/examples/irradiance-decomposition/README.rst
new file mode 100644
index 0000000000..95f18c9330
--- /dev/null
+++ b/docs/examples/irradiance-decomposition/README.rst
@@ -0,0 +1,3 @@
+Irradiance Decomposition
+------------------------
+
diff --git a/do... | diff --git a/pvlib/tests/test_irradiance.py b/pvlib/tests/test_irradiance.py
index ae3a7ec88a..cffdd23e40 100644
--- a/pvlib/tests/test_irradiance.py
+++ b/pvlib/tests/test_irradiance.py
@@ -804,6 +804,22 @@ def test_erbs():
assert_frame_equal(np.round(out, 0), np.round(expected, 0))
+def test_boland():
+ i... | 2021-02-26T04:41:51 | {"README.md": "<p align=\"center\">\n <a href=\"https://gmago-leway.github.io/fea-bench.github.io/\">\n <img src=\"assets/FEA-Bench-full.png\" style=\"height: 10em\" alt=\"fea-bench\" />\n </a>\n</p>\n\n<p align=\"center\">\n <em>A benchmark that aims to evaluate the capability of implementing new features in the... | {"docs/examples/irradiance-decomposition/README.rst": null, "docs/examples/irradiance-decomposition/plot_diffuse_fraction.py": null, "docs/sphinx/source/reference/irradiance/decomposition.rst": ".. currentmodule:: pvlib\n\n.. _dniestmodels:\n\nDNI estimation models\n---------------------\n\n.. autosummary::\n :toctre... | diff --git a/docs/examples/irradiance-decomposition/README.rst b/docs/examples/irradiance-decomposition/README.rst
new file mode 100644
index 0000000000..95f18c9330
--- /dev/null
+++ b/docs/examples/irradiance-decomposition/README.rst
@@ -0,0 +1,3 @@
+Irradiance Decomposition
+------------------------
+
diff --git a/do... | {"pvlib/irradiance.py": [{"type": "function", "name": "boland", "lines": [2268, 2369], "signature": "def boland(ghi, solar_zenith, datetime_or_doy, a_coeff=8.645, b_coeff=0.613, min_cos_zenith=0.065, max_zenith=87):", "doc": "Estimate DNI and DHI from GHI using the Boland clearness index model.\n\nThe Boland model [1]_... | 0.8 | ["pvlib/tests/test_irradiance.py::test_boland"] | ["pvlib/tests/test_irradiance.py::test_get_extra_radiation[asce-300-1383.636203]", "pvlib/tests/test_irradiance.py::test_get_extra_radiation[asce-300.0-1383.636203]", "pvlib/tests/test_irradiance.py::test_get_extra_radiation[asce-testval2-1383.636203]", "pvlib/tests/test_irradiance.py::test_get_extra_radiation[asce-tes... | 311781d2380997044da0e484dc90aa146a74ca44 | {"first_commit_time": 1614314068.0, "pr_title": "add Boland DF estimation", "pr_body": "<!-- 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 how to accomplish any of the items. Feel free to remove checklist i... |
pvlib/pvlib-python | 1,190 | https://github.com/pvlib/pvlib-python/pull/1190 | pvlib__pvlib-python-1190 | [] | 2a1ed55acdd22bf813cbaa9dab2e7379306cf645 | diff --git a/docs/sphinx/source/api.rst b/docs/sphinx/source/api.rst
index 373c879a49..633a9d8cc0 100644
--- a/docs/sphinx/source/api.rst
+++ b/docs/sphinx/source/api.rst
@@ -268,6 +268,7 @@ Functions relevant for single diode models.
pvsystem.singlediode
pvsystem.v_from_i
pvsystem.max_power_point
+ ivtoo... | diff --git a/pvlib/tests/ivtools/test_sdm.py b/pvlib/tests/ivtools/test_sdm.py
index 67bae225bb..c1df6b1e50 100644
--- a/pvlib/tests/ivtools/test_sdm.py
+++ b/pvlib/tests/ivtools/test_sdm.py
@@ -2,6 +2,7 @@
import pandas as pd
import pytest
+from numpy.testing import assert_allclose
from pvlib.ivtools import sdm... | 2021-03-09T22:52:52 | {"README.md": "<p align=\"center\">\n <a href=\"https://gmago-leway.github.io/fea-bench.github.io/\">\n <img src=\"assets/FEA-Bench-full.png\" style=\"height: 10em\" alt=\"fea-bench\" />\n </a>\n</p>\n\n<p align=\"center\">\n <em>A benchmark that aims to evaluate the capability of implementing new features in the... | {"docs/sphinx/source/api.rst": ".. currentmodule:: pvlib\n\n#############\nAPI reference\n#############\n\n\nClasses\n=======\n\npvlib-python provides a collection of classes for users that prefer\nobject-oriented programming. These classes can help users keep track of\ndata in a more organized way, and can help to sim... | diff --git a/docs/sphinx/source/api.rst b/docs/sphinx/source/api.rst
index 373c879a49..633a9d8cc0 100644
--- a/docs/sphinx/source/api.rst
+++ b/docs/sphinx/source/api.rst
@@ -268,6 +268,7 @@ Functions relevant for single diode models.
pvsystem.singlediode
pvsystem.v_from_i
pvsystem.max_power_point
+ ivtoo... | {"pvlib/ivtools/sdm.py": [{"type": "function", "name": "pvsyst_temperature_coeff", "lines": [1259, 1344], "signature": "def pvsyst_temperature_coeff(alpha_sc, gamma_ref, mu_gamma, I_L_ref, I_o_ref, R_sh_ref, R_sh_0, R_s, cells_in_series, R_sh_exp=5.5, EgRef=1.121, irrad_ref=1000, temp_ref=25):", "doc": "Calculates the ... | 0.8 | ["pvlib/tests/ivtools/test_sdm.py::test_pvsyst_temperature_coeff"] | ["pvlib/tests/ivtools/test_sdm.py::test_fit_cec_sam", "pvlib/tests/ivtools/test_sdm.py::test_fit_cec_sam_estimation_failure", "pvlib/tests/ivtools/test_sdm.py::test_fit_desoto", "pvlib/tests/ivtools/test_sdm.py::test_fit_desoto_failure", "pvlib/tests/ivtools/test_sdm.py::test_fit_desoto_sandia", "pvlib/tests/ivtools/te... | 311781d2380997044da0e484dc90aa146a74ca44 | {"first_commit_time": 1615330167.0, "pr_title": "Function to calculate temperature coefficient of power for pvsyst", "pr_body": " - ~~[ ] Closes #xxxx~~\r\n - [x] I am familiar with the [contributing guidelines](https://pvlib-python.readthedocs.io/en/latest/contributing.html)\r\n - [x] Tests added\r\n - [x] Updates ent... |
pvlib/pvlib-python | 1,562 | https://github.com/pvlib/pvlib-python/pull/1562 | pvlib__pvlib-python-1562 | ["1564"] | eefc35ccecfa92b4eebd19f96f5044f79e6b0bcf | diff --git a/docs/sphinx/source/reference/pv_modeling.rst b/docs/sphinx/source/reference/pv_modeling.rst
index 31c380c1bb..0f33cf8c70 100644
--- a/docs/sphinx/source/reference/pv_modeling.rst
+++ b/docs/sphinx/source/reference/pv_modeling.rst
@@ -28,6 +28,8 @@ Incident angle modifiers
iam.interp
iam.marion_diff... | diff --git a/pvlib/tests/test_iam.py b/pvlib/tests/test_iam.py
index 4310ee837a..df4d9ee877 100644
--- a/pvlib/tests/test_iam.py
+++ b/pvlib/tests/test_iam.py
@@ -322,3 +322,48 @@ def test_marion_integrate_invalid():
with pytest.raises(ValueError):
_iam.marion_integrate(_iam.ashrae, 0, 'bad', 180)
+
+
+... | 2022-09-30T00:13:00 | {"README.md": "<p align=\"center\">\n <a href=\"https://gmago-leway.github.io/fea-bench.github.io/\">\n <img src=\"assets/FEA-Bench-full.png\" style=\"height: 10em\" alt=\"fea-bench\" />\n </a>\n</p>\n\n<p align=\"center\">\n <em>A benchmark that aims to evaluate the capability of implementing new features in the... | {"docs/sphinx/source/reference/pv_modeling.rst": ".. currentmodule:: pvlib\n\nPV Modeling\n===========\n\nClasses\n-------\n\nThe :py:class:`~pvsystem.PVSystem` class provides many methods that\nwrap the functions listed below. See its documentation for details.\n\n.. autosummary::\n :toctree: generated/\n\n pvsyst... | diff --git a/docs/sphinx/source/reference/pv_modeling.rst b/docs/sphinx/source/reference/pv_modeling.rst
index 31c380c1bb..0f33cf8c70 100644
--- a/docs/sphinx/source/reference/pv_modeling.rst
+++ b/docs/sphinx/source/reference/pv_modeling.rst
@@ -28,6 +28,8 @@ Incident angle modifiers
iam.interp
iam.marion_diff... | {"pvlib/iam.py": [{"type": "function", "name": "schlick", "lines": [754, 804], "signature": "def schlick(aoi):", "doc": "Determine incidence angle modifier (IAM) for direct irradiance using the\nSchlick approximation to the Fresnel equations.\n\nThe Schlick approximation was proposed in [1]_ as a computationally\neffic... | 0.8 | ["pvlib/tests/test_iam.py::test_schlick", "pvlib/tests/test_iam.py::test_schlick_diffuse"] | ["pvlib/tests/test_iam.py::test_ashrae", "pvlib/tests/test_iam.py::test_ashrae_scalar", "pvlib/tests/test_iam.py::test_physical", "pvlib/tests/test_iam.py::test_physical_scalar", "pvlib/tests/test_iam.py::test_martin_ruiz", "pvlib/tests/test_iam.py::test_martin_ruiz_exception", "pvlib/tests/test_iam.py::test_martin_rui... | 311781d2380997044da0e484dc90aa146a74ca44 | {"first_commit_time": 1664485363.0, "pr_title": "Implement iam.schlick, iam.schlick_diffuse", "pr_body": " - [x] Closes #1564\r\n - [x] I am familiar with the [contributing guidelines](https://pvlib-python.readthedocs.io/en/latest/contributing.html)\r\n - [x] Tests added\r\n - [x] Updates entries in [`docs/sphinx/sourc... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.