instance_id
stringlengths
13
45
pull_number
int64
7
30.1k
repo
stringclasses
83 values
version
stringclasses
68 values
base_commit
stringlengths
40
40
created_at
stringdate
2013-05-16 18:15:55
2025-01-08 15:12:50
patch
stringlengths
347
35.2k
test_patch
stringlengths
432
113k
non_py_patch
stringlengths
0
18.3k
new_components
listlengths
0
40
FAIL_TO_PASS
listlengths
1
2.53k
PASS_TO_PASS
listlengths
0
1.7k
problem_statement
stringlengths
607
52.7k
hints_text
stringlengths
0
57.4k
environment_setup_commit
stringclasses
167 values
sympy__sympy-23329
23,329
sympy/sympy
1.11
19ed9ef7c0eb8a6e135ef66289c0cb896d800dee
2022-04-07T18:04:34Z
diff --git a/.mailmap b/.mailmap index 1b2177727607..c684fe441b9a 100644 --- a/.mailmap +++ b/.mailmap @@ -831,7 +831,7 @@ Ondřej Čertík <ondrej@certik.cz> <ondrej.certik@gmail.com> Ondřej Čertík <ondrej@certik.cz> <ondrej@certik.us> Ondřej Čertík <ondrej@certik.cz> ondrej.certik <devnull@localhost> Or Dvory <gidesa...
diff --git a/sympy/combinatorics/tests/test_group_numbers.py b/sympy/combinatorics/tests/test_group_numbers.py new file mode 100644 index 000000000000..62de63cbcaad --- /dev/null +++ b/sympy/combinatorics/tests/test_group_numbers.py @@ -0,0 +1,27 @@ +from sympy.combinatorics.group_numbers import (is_nilpotent_number, +...
diff --git a/.mailmap b/.mailmap index 1b2177727607..c684fe441b9a 100644 --- a/.mailmap +++ b/.mailmap @@ -831,7 +831,7 @@ Ondřej Čertík <ondrej@certik.cz> <ondrej.certik@gmail.com> Ondřej Čertík <ondrej@certik.cz> <ondrej@certik.us> Ondřej Čertík <ondrej@certik.cz> ondrej.certik <devnull@localhost> Or Dvory <gidesa...
[ { "components": [ { "doc": "Check whether `n` is a nilpotent number. A number `n` is said to be\nnilpotent if and only if every finite group of order `n` is nilpotent.\nFor more information see [1]_.\n\nExamples\n========\n\n>>> from sympy.combinatorics.group_numbers import is_nilpotent_number\n>>...
[ "test_is_nilpotent_number", "test_is_abelian_number" ]
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Added methods for nilpotent, abelian and cyclic numbers. <!-- Your title above should be a short description of what was changed. Do not include the issue number in the title. --> #### References ...
edf24253833ca153cb6d29ae54092ecebe29614c
astropy__astropy-13076
13,076
astropy/astropy
5.0
2ae987ba1160486e36eb315ee0e9d85cdbea5844
2022-04-07T05:36:36Z
diff --git a/astropy/cosmology/core.py b/astropy/cosmology/core.py index de4a4b0a92f4..a6b5e5daa169 100644 --- a/astropy/cosmology/core.py +++ b/astropy/cosmology/core.py @@ -1,7 +1,10 @@ # Licensed under a 3-clause BSD style license - see LICENSE.rst +from __future__ import annotations + import abc import inspect...
diff --git a/astropy/cosmology/tests/test_core.py b/astropy/cosmology/tests/test_core.py index 8d75e58507db..62daa98e8e7f 100644 --- a/astropy/cosmology/tests/test_core.py +++ b/astropy/cosmology/tests/test_core.py @@ -17,7 +17,7 @@ # LOCAL import astropy.cosmology.units as cu import astropy.units as u -from astropy...
diff --git a/docs/changes/cosmology/13076.feature.rst b/docs/changes/cosmology/13076.feature.rst new file mode 100644 index 000000000000..cc79f44bbfe5 --- /dev/null +++ b/docs/changes/cosmology/13076.feature.rst @@ -0,0 +1,3 @@ +A new property ``equivalent_nonflat`` has been added to flat cosmologies +(``FlatCosmologyM...
[ { "components": [ { "doc": "", "lines": [ 391, 396 ], "name": "FlatCosmologyMixin.__init_subclass__", "signature": "def __init_subclass__(cls: Type[_FlatCosmoT]) -> None:", "type": "function" }, { "doc": "Find the corr...
[ "astropy/cosmology/tests/test_core.py::test_nonflat_cls_multiple_nonflat_inheritance" ]
[ "astropy/cosmology/tests/test_core.py::TestCosmology::test_to_table_bad_index", "astropy/cosmology/tests/test_core.py::TestCosmology::test_to_table_failed_cls", "astropy/cosmology/tests/test_core.py::TestCosmology::test_to_table_cls[QTable]", "astropy/cosmology/tests/test_core.py::TestCosmology::test_to_table...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add property `equivalent_nonflat` to flat cosmologies Signed-off-by: Nathaniel Starkman (@nstarman) <nstarkman@protonmail.com> A new property ``equivalent_nonflat`` has been added to ``FlatCosmolog...
7cbba866a8c5749b90a5cb4f9877ddfad2d36037
astropy__astropy-13075
13,075
astropy/astropy
5.0
c660b079b6472920662ca4a0c731751a0342448c
2022-04-06T19:44:23Z
diff --git a/astropy/cosmology/io/__init__.py b/astropy/cosmology/io/__init__.py index c1dc9d4a9919..30f0469fa1f7 100644 --- a/astropy/cosmology/io/__init__.py +++ b/astropy/cosmology/io/__init__.py @@ -5,4 +5,4 @@ """ # Import to register with the I/O machinery -from . import cosmology, ecsv, mapping, model, row, ...
diff --git a/astropy/cosmology/io/tests/test_.py b/astropy/cosmology/io/tests/test_.py index b43618845e24..1ab029abc73f 100644 --- a/astropy/cosmology/io/tests/test_.py +++ b/astropy/cosmology/io/tests/test_.py @@ -12,7 +12,7 @@ def test_expected_readwrite_io(): """Test that ONLY the expected I/O is registered."""...
diff --git a/docs/changes/cosmology/13075.feature.rst b/docs/changes/cosmology/13075.feature.rst new file mode 100644 index 000000000000..e6206f0aa0ea --- /dev/null +++ b/docs/changes/cosmology/13075.feature.rst @@ -0,0 +1,2 @@ +Cosmology instance can be parsed from or converted to a HTML table using +the new HTML meth...
[ { "components": [ { "doc": "Read a |Cosmology| from an HTML file.\n\nParameters\n----------\nfilename : path-like or file-like\n From where to read the Cosmology.\nindex : int or str or None, optional\n Needed to select the row in tables with multiple rows. ``index`` can be\n an integer f...
[ "astropy/cosmology/io/tests/test_.py::test_expected_readwrite_io", "astropy/cosmology/io/tests/test_.py::test_expected_convert_io", "astropy/cosmology/tests/test_connect.py::TestCosmologyReadWrite::test_readwrite_json_subclass_partial_info[Planck13]", "astropy/cosmology/tests/test_connect.py::TestCosmologyRea...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Register format ``ascii.html`` to ``Cosmology.write`` <!-- This comments are hidden when you submit the pull request, so you do not need to remove them! --> <!-- Please be sure to check out our co...
Here is the discussion in the issues of the pull request. <issues> Register format ``html`` to ``Cosmology.write`` with nice mathjax Cosmology can now read and write to files. It would be nice to register with ``Cosmology.write`` a method for exporting a Cosmology to a HTML table. There are good examples of IO with ...
7cbba866a8c5749b90a5cb4f9877ddfad2d36037
Textualize__rich-2166
2,166
Textualize/rich
null
50a7ec897ed6f1f5022eac2218e3c693115ec420
2022-04-05T11:54:59Z
diff --git a/docs/source/progress.rst b/docs/source/progress.rst index 59813a4738..8d4f81b2ad 100644 --- a/docs/source/progress.rst +++ b/docs/source/progress.rst @@ -91,7 +91,7 @@ Transient progress displays are useful if you want more minimal output in the te Indeterminate progress ~~~~~~~~~~~~~~~~~~~~~~ -When yo...
diff --git a/tests/test_progress.py b/tests/test_progress.py index d3c6171c9c..61e11a9cd8 100644 --- a/tests/test_progress.py +++ b/tests/test_progress.py @@ -3,33 +3,33 @@ import io import os import tempfile -from time import sleep from types import SimpleNamespace import pytest import rich.progress -from ri...
diff --git a/docs/source/progress.rst b/docs/source/progress.rst index 59813a4738..8d4f81b2ad 100644 --- a/docs/source/progress.rst +++ b/docs/source/progress.rst @@ -91,7 +91,7 @@ Transient progress displays are useful if you want more minimal output in the te Indeterminate progress ~~~~~~~~~~~~~~~~~~~~~~ -When yo...
[ { "components": [ { "doc": "A column displaying the progress of a task.", "lines": [ 678, 712 ], "name": "TaskProgressColumn", "signature": "class TaskProgressColumn(TextColumn):", "type": "class" }, { "doc": "", ...
[ "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_compact_time_remaining_column[None---:--]", "tests/test_progress.py::test_compact_...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> [progress] The `total` we pass to a Progress renderable can now be `None` ## Type of changes - [ ] Bug fix - [x] New feature: https://github.com/Textualize/rich/issues/1054 - [ ] Documentation / ...
b0661de34bab35af9b4b1d3ba8e28b186b225e84
conan-io__conan-10972
10,972
conan-io/conan
null
b295f339b25a7306d0cd51b483c2a486bb57de40
2022-04-05T11:19:29Z
diff --git a/conan/tools/microsoft/msbuilddeps.py b/conan/tools/microsoft/msbuilddeps.py index eb27b71c8b7..76a438e986f 100644 --- a/conan/tools/microsoft/msbuilddeps.py +++ b/conan/tools/microsoft/msbuilddeps.py @@ -184,8 +184,7 @@ def join_paths(paths): 'system_libs': "".join([add_valid_ext(sys_dep) for ...
diff --git a/conans/test/functional/toolchains/microsoft/test_msbuildtoolchain.py b/conans/test/functional/toolchains/microsoft/test_msbuildtoolchain.py new file mode 100644 index 00000000000..32fc0799bfc --- /dev/null +++ b/conans/test/functional/toolchains/microsoft/test_msbuildtoolchain.py @@ -0,0 +1,50 @@ +import p...
[ { "components": [ { "doc": "", "lines": [ 128, 163 ], "name": "MSBuildToolchain.context_config_toolchain", "signature": "def context_config_toolchain(self):", "type": "function" }, { "doc": "", "lines": [ ...
[ "conans/test/integration/toolchains/microsoft/test_msbuildtoolchain.py::test_msbuildtoolchain_props_with_extra_flags", "conans/test/unittests/tools/microsoft/test_msbuild.py::test_resource_compile", "conans/test/unittests/tools/microsoft/test_msbuild.py::test_msbuildtoolchain_changing_flags_via_attributes" ]
[ "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_msbu...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> [MSBuildToolchain][conf] Adding extra flags to `MSBuildToolchain` Changelog: Feature: Added `cxxflags`, `cflags`, and `ldflags` attributes to `MSBuildToolchain`. Changelog: Feature: Added mechanism t...
4a5b19a75db9225316c8cb022a2dfb9705a2af34
Textualize__textual-360
360
Textualize/textual
null
ca77f7e24dc3820b7c64085e346e56a3659c4a11
2022-04-04T19:40:01Z
diff --git a/src/textual/color.py b/src/textual/color.py index 2154216cbd..00a51e1969 100644 --- a/src/textual/color.py +++ b/src/textual/color.py @@ -33,6 +33,14 @@ class HSV(NamedTuple): v: float +class Lab(NamedTuple): + """A color in CIE-L*ab format.""" + + L: float + a: float + b: float + + R...
diff --git a/tests/test_color.py b/tests/test_color.py index ac09625c4b..d9bfe3ca4b 100644 --- a/tests/test_color.py +++ b/tests/test_color.py @@ -3,7 +3,7 @@ from rich.color import Color as RichColor from rich.text import Text -from textual.color import Color, ColorPair +from textual.color import Color, ColorPair,...
[ { "components": [ { "doc": "A color in CIE-L*ab format.", "lines": [ 36, 41 ], "name": "Lab", "signature": "class Lab(NamedTuple):", "type": "class" }, { "doc": "Convert an RGB color to the CIE-L*ab format.\n\nUses the...
[ "tests/test_color.py::test_parse[#000000-expected0]", "tests/test_color.py::test_parse[#ffffff-expected1]", "tests/test_color.py::test_parse[#FFFFFF-expected2]", "tests/test_color.py::test_parse[#020304ff-expected3]", "tests/test_color.py::test_parse[#02030400-expected4]", "tests/test_color.py::test_parse...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add conversion to/from the CIE-L*ab color space. This adds a simple `Lab` class to represent colours in the CIE-L*ab colour space and adds two functions to allow for RGB conversion to and from that sp...
86e93536b991014e0ea4bf993068202b446bb698
Project-MONAI__MONAI-4061
4,061
Project-MONAI/MONAI
null
c5bf12021a68fc02cbb8f0c91bfd73fe6245d4c4
2022-04-04T12:31:13Z
diff --git a/docs/source/data.rst b/docs/source/data.rst index 2bdf401c7f..e76eb53f39 100644 --- a/docs/source/data.rst +++ b/docs/source/data.rst @@ -107,16 +107,23 @@ Patch-based dataset .. autoclass:: GridPatchDataset :members: -`PatchIter` -~~~~~~~~~~~ -.. autoclass:: PatchIter - :members: - `PatchDataset` ...
diff --git a/tests/test_grid_dataset.py b/tests/test_grid_dataset.py index 9361d82cdf..4d2d0d6948 100644 --- a/tests/test_grid_dataset.py +++ b/tests/test_grid_dataset.py @@ -14,8 +14,8 @@ import numpy as np -from monai.data import DataLoader, GridPatchDataset, PatchIter -from monai.transforms import RandShiftInte...
diff --git a/docs/source/data.rst b/docs/source/data.rst index 2bdf401c7f..e76eb53f39 100644 --- a/docs/source/data.rst +++ b/docs/source/data.rst @@ -107,16 +107,23 @@ Patch-based dataset .. autoclass:: GridPatchDataset :members: -`PatchIter` -~~~~~~~~~~~ -.. autoclass:: PatchIter - :members: - `PatchDataset` ...
[ { "components": [ { "doc": "Dictionary-based wrapper of :py:class:`monai.data.PatchIter`.\nReturn a patch generator for dictionary data and the coordinate, Typically used\nwith :py:class:`monai.data.GridPatchDataset`.\nSuppose all the expected fields specified by `keys` have same shape.\n\nArgs:\n...
[ "tests/test_grid_dataset.py::TestGridPatchDataset::test_loading_array", "tests/test_grid_dataset.py::TestGridPatchDataset::test_loading_dict", "tests/test_grid_dataset.py::TestGridPatchDataset::test_shape" ]
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> 4060 Add PatchIter and PatchIterd transform Fixes #4060 . ### Description This PR added `PatchIter` and `PatchIterd` transform according to user's feedback. ### Status **Ready** ### Types o...
Here is the discussion in the issues of the pull request. <issues> Add a `dict` version `PatchIterd` **Is your feature request related to a problem? Please describe.** Thanks for user's feedback in https://github.com/Project-MONAI/MONAI/discussions/4058, it would be nice to add a dict version `PatchIterd` with expecte...
e73257caa79309dcce1e93abf1632f4bfd75b11f
pylint-dev__pylint-6131
6,131
pylint-dev/pylint
2.14
d9b74d913e46ba36f4dbe21be5d6d3c719a04824
2022-04-02T11:26:40Z
diff --git a/doc/data/messages/c/confusing-consecutive-elif/bad.py b/doc/data/messages/c/confusing-consecutive-elif/bad.py new file mode 100644 index 0000000000..93e1e2dee8 --- /dev/null +++ b/doc/data/messages/c/confusing-consecutive-elif/bad.py @@ -0,0 +1,6 @@ +def myfunc(shall_continue: bool, shall_exit: bool): + ...
diff --git a/doc/test_messages_documentation.py b/doc/test_messages_documentation.py index e131d318ba..f80542f07d 100644 --- a/doc/test_messages_documentation.py +++ b/doc/test_messages_documentation.py @@ -7,7 +7,7 @@ from collections import Counter from pathlib import Path from typing import Counter as CounterType...
diff --git a/doc/data/messages/c/confusing-consecutive-elif/details.rst b/doc/data/messages/c/confusing-consecutive-elif/details.rst new file mode 100644 index 0000000000..bd2ecc4ee5 --- /dev/null +++ b/doc/data/messages/c/confusing-consecutive-elif/details.rst @@ -0,0 +1,1 @@ +Creating a function for the nested condit...
[ { "components": [ { "doc": "", "lines": [ 1, 6 ], "name": "myfunc", "signature": "def myfunc(shall_continue: bool, shall_exit: bool):", "type": "function" } ], "file": "doc/data/messages/c/confusing-consecutive-elif/bad.py" ...
[ "doc/test_messages_documentation.py::test_code_examples[confusing-consecutive-elif-good]", "doc/test_messages_documentation.py::test_code_examples[confusing-consecutive-elif-bad]" ]
[ "doc/test_messages_documentation.py::test_code_examples[assert-on-tuple-good]", "doc/test_messages_documentation.py::test_code_examples[assert-on-tuple-bad]", "doc/test_messages_documentation.py::test_code_examples[arguments-differ-good]", "doc/test_messages_documentation.py::test_code_examples[arguments-diff...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Enable usage of custom pylintrc file for message documentation tests To ease the process of reviewing your PR, do make sure to complete the following boxes. - [x] Write a good description on what t...
055c1920140ebf36501d30307d5ab86965ae185f
conan-io__conan-10906
10,906
conan-io/conan
null
7c5f0af344ff775d6bbd39795f056f4774d17984
2022-03-28T15:44:19Z
diff --git a/conan/tools/apple/xcodedeps.py b/conan/tools/apple/xcodedeps.py index 74fbc4ae582..bae9fc71caa 100644 --- a/conan/tools/apple/xcodedeps.py +++ b/conan/tools/apple/xcodedeps.py @@ -39,14 +39,15 @@ def _xcconfig_conditional(settings): return "[config={}][arch={}][sdk={}]".format(settings.get_safe("build...
diff --git a/conans/test/functional/toolchains/apple/test_xcodetoolchain.py b/conans/test/functional/toolchains/apple/test_xcodetoolchain.py index 29772e794d8..bf68e54ab79 100644 --- a/conans/test/functional/toolchains/apple/test_xcodetoolchain.py +++ b/conans/test/functional/toolchains/apple/test_xcodetoolchain.py @@ ...
[ { "components": [ { "doc": "", "lines": [ 42, 52 ], "name": "_add_includes_to_file_or_create", "signature": "def _add_includes_to_file_or_create(filename, template, files_to_include):", "type": "function" } ], "file": "conan...
[ "conans/test/integration/toolchains/apple/test_xcodetoolchain.py::test_toolchain_flags" ]
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add extra flags via [conf] into XcodeToolchain Changelog: Feature: Add extra flags via [conf] into XcodeToolchain. Docs: https://github.com/conan-io/docs/pull/2471 Related to: https://github.com/c...
4a5b19a75db9225316c8cb022a2dfb9705a2af34
conan-io__conan-10874
10,874
conan-io/conan
null
acf5d9a460adfa16bf95b6aadfc248f7d9ace643
2022-03-24T11:52:39Z
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...
[ { "components": [ { "doc": "", "lines": [ 64, 65 ], "name": "rmdir", "signature": "def rmdir(conanfile, path):", "type": "function" } ], "file": "conan/tools/files/files.py" } ]
[ "conans/test/integration/tools/file_tools_test.py::test_file_tools" ]
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> basic conan.tools.files.rmdir Changelog: Feature: Added basic `rmdir` tool at `conan.tools.files`. Docs: https://github.com/conan-io/docs/pull/2470 Close #10711 ---------- </request> There are s...
Here is the discussion in the issues of the pull request. <issues> [feature] Move [rmdir] to conan.tools.files Currently, it is missing in the new namespace. ---------- -------------------- </issues>
4a5b19a75db9225316c8cb022a2dfb9705a2af34
RDFLib__rdflib-1773
1,773
RDFLib/rdflib
null
8bad917cbc8213e176a47fd37d24f487485dda17
2022-03-24T02:05:25Z
diff --git a/rdflib/term.py b/rdflib/term.py index b53d9287d..2e577f4db 100644 --- a/rdflib/term.py +++ b/rdflib/term.py @@ -564,7 +564,8 @@ class Literal(Identifier): _language: Optional[str] # NOTE: _datatype should maybe be of type URIRef, and not optional. _datatype: Optional[str] - __slots__ = ("...
diff --git a/test/test_literal/test_literal.py b/test/test_literal/test_literal.py index 990e84645..44c3e25c1 100644 --- a/test/test_literal/test_literal.py +++ b/test/test_literal/test_literal.py @@ -8,16 +8,19 @@ # mypy: warn_return_any, no_implicit_reexport, strict_equality from decimal import Decimal -from typi...
[ { "components": [ { "doc": "For `recognized datatype IRIs\n<https://www.w3.org/TR/rdf11-concepts/#dfn-recognized-datatype-iris>`_,\nthis value will be `True` if the literal is ill formed, otherwise it\nwill be `False`. `Literal.value` (i.e. the `literal value <https://www.w3.org/TR/rdf11-concepts/...
[ "test/test_literal/test_literal.py::TestNewPT::test_ill_formed_literals[true-http://www.w3.org/2001/XMLSchema#boolean-False]", "test/test_literal/test_literal.py::TestNewPT::test_ill_formed_literals[1-http://www.w3.org/2001/XMLSchema#boolean-False]", "test/test_literal/test_literal.py::TestNewPT::test_ill_forme...
[ "test/test_literal/test_literal.py::TestLiteral::test_backslash", "test/test_literal/test_literal.py::TestLiteral::test_literal_from_bool", "test/test_literal/test_literal.py::TestLiteral::test_repr_apostrophe", "test/test_literal/test_literal.py::TestLiteral::test_repr_quote", "test/test_literal/test_liter...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add ability to detect and mark ill-typed literals Add ability to mark ill-typed literals where the lexical value does not match the datatype given if known Parameterized test is included to test fe...
Here is the discussion in the issues of the pull request. <issues> rdflib.Literals need a well-formed / ill-formed status flag I encountered this issue while working on [pySHACL](https://github.com/RDFLib/pySHACL). Specifically, this bug is causing a failure in several of the tests in the standard data-shapes-test-sui...
0c11debb5178157baeac27b735e49a757916d2a6
conan-io__conan-10868
10,868
conan-io/conan
null
f69c0269f9b7b5842f12de2ae444212b9a80a896
2022-03-23T23:22:36Z
diff --git a/conans/client/graph/compatibility.py b/conans/client/graph/compatibility.py new file mode 100644 index 00000000000..d4fee651ce3 --- /dev/null +++ b/conans/client/graph/compatibility.py @@ -0,0 +1,32 @@ +from collections import OrderedDict + +from conans.errors import conanfile_exception_formatter + + +clas...
diff --git a/conans/test/integration/package_id/compatible_test.py b/conans/test/integration/package_id/compatible_test.py index 0ac96707e89..5760dc6b1c4 100644 --- a/conans/test/integration/package_id/compatible_test.py +++ b/conans/test/integration/package_id/compatible_test.py @@ -604,3 +604,45 @@ def test_apple_cla...
[ { "components": [ { "doc": "", "lines": [ 6, 32 ], "name": "BinaryCompatibility", "signature": "class BinaryCompatibility:", "type": "class" }, { "doc": "", "lines": [ 7, 8 ], ...
[ "conans/test/integration/package_id/compatible_test.py::TestNewCompatibility::test_compatible_setting" ]
[ "conans/test/integration/package_id/compatible_test.py::CompatibleIDsTest::test_additional_id_mode", "conans/test/integration/package_id/compatible_test.py::CompatibleIDsTest::test_build_missing", "conans/test/integration/package_id/compatible_test.py::CompatibleIDsTest::test_compatible_diamond", "conans/test...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> backport of compatibility() recipe method Changelog: Feature: Backport of 2.0 compatibility() recipe method. Docs: omit Backport of https://github.com/conan-io/conan/pull/10241 I would probably w...
4a5b19a75db9225316c8cb022a2dfb9705a2af34
conan-io__conan-10867
10,867
conan-io/conan
null
dc92057aa65c15834451e226577465c2f263e122
2022-03-23T22:26:38Z
diff --git a/conan/tools/files/files.py b/conan/tools/files/files.py index 941c7764969..90a7ca3b78a 100644 --- a/conan/tools/files/files.py +++ b/conan/tools/files/files.py @@ -126,7 +126,7 @@ def download(conanfile, url, filename, verify=True, retry=None, retry_wait=None, :return: None """ # TODO: Add a...
diff --git a/conans/test/integration/test_plugin_cmd_wrapper.py b/conans/test/integration/test_plugin_cmd_wrapper.py new file mode 100644 index 00000000000..3912afad037 --- /dev/null +++ b/conans/test/integration/test_plugin_cmd_wrapper.py @@ -0,0 +1,27 @@ +import os +import textwrap + +from conans.test.utils.tools imp...
[ { "components": [ { "doc": "", "lines": [ 16, 28 ], "name": "CmdWrapper", "signature": "class CmdWrapper:", "type": "class" }, { "doc": "", "lines": [ 17, 23 ], "name": "CmdW...
[ "conans/test/integration/test_plugin_cmd_wrapper.py::test_plugin_cmd_wrapper", "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.p...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> [develop2] new cmd_wrapper plugin Close https://github.com/conan-io/conan/issues/10426 ---------- </request> There are several new functions or classes that need to be implemented, using the definit...
4a5b19a75db9225316c8cb022a2dfb9705a2af34
pydata__xarray-6400
6,400
pydata/xarray
2022.03
728b648d5c7c3e22fe3704ba163012840408bf66
2022-03-22T12:57:37Z
diff --git a/doc/whats-new.rst b/doc/whats-new.rst index 39aaf8e2954..e01bdf93b00 100644 --- a/doc/whats-new.rst +++ b/doc/whats-new.rst @@ -32,6 +32,10 @@ New Features - Multi-index levels are now accessible through their own, regular coordinates instead of virtual coordinates (:pull:`5692`). By `Benoît Bovy <h...
diff --git a/xarray/tests/test_formatting.py b/xarray/tests/test_formatting.py index 105cec7e850..efdb8a57288 100644 --- a/xarray/tests/test_formatting.py +++ b/xarray/tests/test_formatting.py @@ -479,6 +479,12 @@ def test_short_numpy_repr() -> None: num_lines = formatting.short_numpy_repr(array).count("\n") +...
diff --git a/doc/whats-new.rst b/doc/whats-new.rst index 39aaf8e2954..e01bdf93b00 100644 --- a/doc/whats-new.rst +++ b/doc/whats-new.rst @@ -32,6 +32,10 @@ New Features - Multi-index levels are now accessible through their own, regular coordinates instead of virtual coordinates (:pull:`5692`). By `Benoît Bovy <h...
[ { "components": [ { "doc": "", "lines": [ 1512, 1522 ], "name": "PandasMultiIndexingAdapter._get_array_subset", "signature": "def _get_array_subset(self) -> np.ndarray:", "type": "function" }, { "doc": "", "lin...
[ "xarray/tests/test_formatting.py::test_short_numpy_repr" ]
[ "xarray/tests/test_formatting.py::TestFormatting::test_get_indexer_at_least_n_items", "xarray/tests/test_formatting.py::TestFormatting::test_first_n_items", "xarray/tests/test_formatting.py::TestFormatting::test_last_n_items", "xarray/tests/test_formatting.py::TestFormatting::test_last_item", "xarray/tests/...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Speed-up multi-index html repr + add display_values_threshold option This adds `PandasMultiIndexingAdapter._repr_html_` that can greatly speed-up the html repr of Xarray objects with multi-indexes. ...
Here is the discussion in the issues of the pull request. <issues> Very poor html repr performance on large multi-indexes <!-- Please include a self-contained copy-pastable example that generates the issue if possible. Please be concise with code posted. See guidelines below on how to provide a good bug report: -...
728b648d5c7c3e22fe3704ba163012840408bf66
pypa__hatch-164
164
pypa/hatch
null
66ff7195edb872fc36dadf61775640aa41820157
2022-03-19T19:37:04Z
diff --git a/docs/environment.md b/docs/environment.md index 313d9328f..f72a58f32 100644 --- a/docs/environment.md +++ b/docs/environment.md @@ -174,18 +174,26 @@ Every environment can define its own set of [matrices](config/environment.md#mat Using the [`env show`](cli/reference.md#hatch-env-show) command would then ...
diff --git a/tests/cli/run/test_run.py b/tests/cli/run/test_run.py index e40474fab..ab68c3cec 100644 --- a/tests/cli/run/test_run.py +++ b/tests/cli/run/test_run.py @@ -391,6 +391,38 @@ def test_error(hatch, helpers, temp_dir, config_file): assert not output_file.is_file() +def test_matrix_no_environments(hatc...
diff --git a/docs/environment.md b/docs/environment.md index 313d9328f..f72a58f32 100644 --- a/docs/environment.md +++ b/docs/environment.md @@ -174,18 +174,26 @@ Every environment can define its own set of [matrices](config/environment.md#mat Using the [`env show`](cli/reference.md#hatch-env-show) command would then ...
[ { "components": [ { "doc": "", "lines": [ 4, 10 ], "name": "parse_variable_filter", "signature": "def parse_variable_filter(argument):", "type": "function" }, { "doc": "", "lines": [ 13, 32 ...
[ "tests/cli/run/test_run.py::test_matrix_no_environments", "tests/cli/run/test_run.py::test_matrix_variable_selection_no_command", "tests/cli/run/test_run.py::test_matrix_variable_selection_duplicate_inclusion", "tests/cli/run/test_run.py::test_matrix_variable_selection_duplicate_exclusion", "tests/cli/run/t...
[ "tests/cli/run/test_run.py::test_automatic_creation", "tests/cli/run/test_run.py::test_enter_project_directory", "tests/cli/run/test_run.py::test_sync_dependencies", "tests/cli/run/test_run.py::test_scripts", "tests/cli/run/test_run.py::test_scripts_specific_environment", "tests/cli/run/test_run.py::test_...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add ability to select specific environments of matrices {} ---------- </request> There are several new functions or classes that need to be implemented, using the definitions below: <<NEW DEFINITIO...
c06c820d722667306f39bda956c58cf4c48d0728
scikit-learn__scikit-learn-22866
22,866
scikit-learn/scikit-learn
1.1
38ff5be25d0164bf9598bcfdde3b791ad6e261b0
2022-03-16T16:29:31Z
diff --git a/doc/modules/classes.rst b/doc/modules/classes.rst index b7000bcf7cbb2..9fe76e2699f05 100644 --- a/doc/modules/classes.rst +++ b/doc/modules/classes.rst @@ -933,6 +933,7 @@ details. metrics.check_scoring metrics.get_scorer + metrics.get_scorer_names metrics.make_scorer Classification metr...
diff --git a/sklearn/metrics/tests/test_score_objects.py b/sklearn/metrics/tests/test_score_objects.py index 3b3caceb9970a..23680e48ae3e7 100644 --- a/sklearn/metrics/tests/test_score_objects.py +++ b/sklearn/metrics/tests/test_score_objects.py @@ -41,7 +41,7 @@ _MultimetricScorer, _check_multimetric_scoring,...
diff --git a/doc/modules/classes.rst b/doc/modules/classes.rst index b7000bcf7cbb2..9fe76e2699f05 100644 --- a/doc/modules/classes.rst +++ b/doc/modules/classes.rst @@ -933,6 +933,7 @@ details. metrics.check_scoring metrics.get_scorer + metrics.get_scorer_names metrics.make_scorer Classification metr...
[ { "components": [ { "doc": "A temporary class to deprecate SCORERS.", "lines": [ 761, 771 ], "name": "_DeprecatedScorers", "signature": "class _DeprecatedScorers(dict):", "type": "class" }, { "doc": "", "lines"...
[ "sklearn/metrics/tests/test_score_objects.py::test_all_scorers_repr", "sklearn/metrics/tests/test_score_objects.py::test_check_scoring_and_check_multimetric_scoring[single_tuple]", "sklearn/metrics/tests/test_score_objects.py::test_check_scoring_and_check_multimetric_scoring[single_list]", "sklearn/metrics/te...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> API get_scorer returns a copy and introduce get_scorer_names __EDIT__: This PR now introduces a new `get_scorer_names`, makes `get_metric` to return a copy, and deprecated `SCORERS`. __OLD__: Th...
Here is the discussion in the issues of the pull request. <issues> Should get_scorer return a deep copy of the scorer object I stumble in something that I am wondering if this is an issue: ```python scorer = get_scorer("roc_auc") # somehow set the pos_label scorer._kwargs["pos_label"] = "xxx" scorer_2 = get_sc...
38ff5be25d0164bf9598bcfdde3b791ad6e261b0
conan-io__conan-10800
10,800
conan-io/conan
null
6ebea89bd1ea05cce7b0213f2cd067f9f666effa
2022-03-16T09:16:38Z
diff --git a/conan/tools/cmake/toolchain/blocks.py b/conan/tools/cmake/toolchain/blocks.py index fc383bcddab..0680d7af4d2 100644 --- a/conan/tools/cmake/toolchain/blocks.py +++ b/conan/tools/cmake/toolchain/blocks.py @@ -547,6 +547,38 @@ def context(self): return {"paths": [ut.replace("\\", "/") for ut in user...
diff --git a/conans/test/integration/toolchains/cmake/test_cmaketoolchain.py b/conans/test/integration/toolchains/cmake/test_cmaketoolchain.py index dad51dde5c2..6aa43d55318 100644 --- a/conans/test/integration/toolchains/cmake/test_cmaketoolchain.py +++ b/conans/test/integration/toolchains/cmake/test_cmaketoolchain.py...
[ { "components": [ { "doc": "This block is adding flags directly from user [conf] section", "lines": [ 550, 578 ], "name": "ExtraFlagsBlock", "signature": "class ExtraFlagsBlock(Block):", "type": "class" }, { "doc": "",...
[ "conans/test/integration/toolchains/cmake/test_cmaketoolchain.py::test_extra_flags_via_conf", "conans/test/integration/toolchains/gnu/test_autotoolstoolchain.py::test_extra_flags_via_conf", "conans/test/integration/toolchains/meson/test_mesontoolchain.py::test_apple_meson_keep_user_custom_flags", "conans/test...
[ "conans/test/integration/toolchains/cmake/test_cmaketoolchain.py::test_cross_build", "conans/test/integration/toolchains/cmake/test_cmaketoolchain.py::test_cross_build_user_toolchain", "conans/test/integration/toolchains/cmake/test_cmaketoolchain.py::test_no_cross_build", "conans/test/integration/toolchains/c...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> [conf] Global flags management Changelog: Feature: Added mechanism to inject extra flags via `[conf]` into several toolchains like `AutotoolsToolchain`, `MesonToolchain` and `CMakeToolchain`. * `to...
4a5b19a75db9225316c8cb022a2dfb9705a2af34
conan-io__conan-10743
10,743
conan-io/conan
null
31a5e7c78e980719be3978595abc5e33fe9c127f
2022-03-09T11:59:47Z
diff --git a/conan/tools/env/environment.py b/conan/tools/env/environment.py index 245aa44db87..f7bc478b727 100644 --- a/conan/tools/env/environment.py +++ b/conan/tools/env/environment.py @@ -4,7 +4,7 @@ from collections import OrderedDict from contextlib import contextmanager -from conan.tools.microsoft.subsystem...
diff --git a/conans/test/unittests/tools/env/test_env.py b/conans/test/unittests/tools/env/test_env.py index 0eeeef81821..4845b58d2c3 100644 --- a/conans/test/unittests/tools/env/test_env.py +++ b/conans/test/unittests/tools/env/test_env.py @@ -7,7 +7,7 @@ from conan.tools.env import Environment from conan.tools.en...
[ { "components": [ { "doc": "", "lines": [ 4, 8 ], "name": "unix_path", "signature": "def unix_path(conanfile, path):", "type": "function" } ], "file": "conan/tools/microsoft/subsystems.py" }, { "components": [ ...
[ "conans/test/unittests/tools/env/test_env.py::test_compose", "conans/test/unittests/tools/env/test_env.py::test_define_append", "conans/test/unittests/tools/env/test_env.py::test_compose_combinations[define-Val1-", "conans/test/unittests/tools/env/test_env.py::test_compose_combinations[append-Val1-", "conan...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Refactor subsystem code Changelog: Feature: New `conan.tool.microsoft.unix_path` to convert paths to any subsystem when using `conanfile.win_bash`. Changelog: Fix: Removed `subsystem_path` from the `...
4a5b19a75db9225316c8cb022a2dfb9705a2af34
pallets__flask-4479
4,479
pallets/flask
2.1
425a62686f094de236a5a9eb1d6885de4730efa5
2022-03-08T21:46:37Z
diff --git a/CHANGES.rst b/CHANGES.rst index e471d6a8a6..bab6690b9a 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -55,6 +55,10 @@ Unreleased - From Werkzeug, for redirect responses the ``Location`` header URL will remain relative, and exclude the scheme and domain, by default. :pr:`4496` +- Add ``Config....
diff --git a/tests/test_config.py b/tests/test_config.py index a3cd3d25bd..bbe4f1e2d3 100644 --- a/tests/test_config.py +++ b/tests/test_config.py @@ -38,6 +38,68 @@ def test_config_from_file(): common_object_test(app) +def test_from_prefixed_env(monkeypatch): + monkeypatch.setenv("FLASK_STRING", "value") +...
diff --git a/CHANGES.rst b/CHANGES.rst index e471d6a8a6..bab6690b9a 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -55,6 +55,10 @@ Unreleased - From Werkzeug, for redirect responses the ``Location`` header URL will remain relative, and exclude the scheme and domain, by default. :pr:`4496` +- Add ``Config....
[ { "components": [ { "doc": "", "lines": [ 10, 14 ], "name": "_json_loads", "signature": "def _json_loads(raw: t.Union[str, bytes]) -> t.Any:", "type": "function" }, { "doc": "Load any environment variables that start w...
[ "tests/test_config.py::test_from_prefixed_env", "tests/test_config.py::test_from_prefixed_env_custom_prefix", "tests/test_config.py::test_from_prefixed_env_nested" ]
[ "tests/test_config.py::test_config_from_pyfile", "tests/test_config.py::test_config_from_object", "tests/test_config.py::test_config_from_file", "tests/test_config.py::test_config_from_mapping", "tests/test_config.py::test_config_from_class", "tests/test_config.py::test_config_from_envvar", "tests/test_...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Allow loading of environment variables into the config This new method will pick out any environment variables with a certain prefix and place them into the config named without the prefix. This mak...
425a62686f094de236a5a9eb1d6885de4730efa5
huggingface__datasets-3862
3,862
huggingface/datasets
null
7085abb8526c3347fb291990d0c4d79e746985ee
2022-03-08T14:53:57Z
diff --git a/docs/source/stream.mdx b/docs/source/stream.mdx index 7a27ec8e03b..d08745a618b 100644 --- a/docs/source/stream.mdx +++ b/docs/source/stream.mdx @@ -91,12 +91,11 @@ You can split your dataset one of two ways: ```py >>> from datasets import interleave_datasets ->>> from itertools import islice >>> en_da...
diff --git a/tests/test_iterable_dataset.py b/tests/test_iterable_dataset.py index 3d619dbe9c4..51f93dca833 100644 --- a/tests/test_iterable_dataset.py +++ b/tests/test_iterable_dataset.py @@ -50,6 +50,15 @@ def dataset(generate_examples_fn): return IterableDataset(ex_iterable, info=DatasetInfo(description="dummy"...
diff --git a/docs/source/stream.mdx b/docs/source/stream.mdx index 7a27ec8e03b..d08745a618b 100644 --- a/docs/source/stream.mdx +++ b/docs/source/stream.mdx @@ -91,12 +91,11 @@ You can split your dataset one of two ways: ```py >>> from datasets import interleave_datasets ->>> from itertools import islice >>> en_da...
[ { "components": [ { "doc": "Add column to Dataset.\n\nArgs:\n name (str): Column name.\n column (list or np.array): Column data to be added.\n\nReturns:\n :class:`IterableDataset`", "lines": [ 610, 626 ], "name": "IterableDataset.add_column", ...
[ "tests/test_iterable_dataset.py::test_iterable_dataset_add_column", "tests/test_iterable_dataset.py::test_iterable_dataset_rename_column", "tests/test_iterable_dataset.py::test_iterable_dataset_rename_columns", "tests/test_iterable_dataset.py::test_iterable_dataset_remove_columns", "tests/test_iterable_data...
[ "tests/test_iterable_dataset.py::test_examples_iterable", "tests/test_iterable_dataset.py::test_examples_iterable_with_kwargs", "tests/test_iterable_dataset.py::test_examples_iterable_shuffle_data_sources", "tests/test_iterable_dataset.py::test_examples_iterable_shuffle_shards_and_metadata", "tests/test_ite...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Manipulate columns on IterableDataset (rename columns, cast, etc.) I added: - add_column - cast - rename_column - rename_columns related to https://github.com/huggingface/datasets/issues/3444 ...
5142a8cf61d8a4495eda3d91dc4283a6df01ea14
huggingface__accelerate-270
270
huggingface/accelerate
null
515fcca9ed2b36c274c595dbdff75f1c2da635de
2022-03-07T19:01:35Z
diff --git a/src/accelerate/accelerator.py b/src/accelerate/accelerator.py index 1254c19e9af..0fd2a5701a7 100644 --- a/src/accelerate/accelerator.py +++ b/src/accelerate/accelerator.py @@ -22,7 +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 index 37d68b90c25..e1a28d108fe 100644 --- a/src/accelerate/checkpointing.py +++ b/src/accelerate/checkpointing.py @@ -14,6 +14,7 @@ import os import random +from pathlib import Path from typing import List import numpy as np @@ -21,7...
[ { "components": [ { "doc": "Makes note of `objects` and will save or load them in during `save_state` or `load_state`.\n\nThese should be utilized when the state is being loaded or saved in the same script. It is not designed to be\nused in different scripts\n\nNote: Every `object` must have a `lo...
[ "tests/test_state_checkpointing.py::CheckpointTest::test_can_resume_training", "tests/test_state_checkpointing.py::CheckpointTest::test_invalid_registration", "tests/test_state_checkpointing.py::CheckpointTest::test_with_scheduler" ]
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Implementation of saving and loading custom states Introduces a `register_for_checkpointing` function, as well as two save/loading functions for those registered objects. Would like an initial rev...
08101b9dde2b1a9658c2e363e3e9f5663ba06073
pypa__hatch-150
150
pypa/hatch
null
aecadf56d2d5054f4686ba0c1c8908f2baa998e2
2022-03-05T22:16:19Z
diff --git a/docs/config/environment.md b/docs/config/environment.md index 860c2d0f7..060c14968 100644 --- a/docs/config/environment.md +++ b/docs/config/environment.md @@ -390,6 +390,28 @@ The following platforms are supported: If unspecified, the environment is assumed to be compatible with all platforms. +## De...
diff --git a/tests/cli/env/test_show.py b/tests/cli/env/test_show.py index 9a84dafcb..c576e38ca 100644 --- a/tests/cli/env/test_show.py +++ b/tests/cli/env/test_show.py @@ -5,7 +5,7 @@ @pytest.fixture(scope='module', autouse=True) -def local_builder(): +def terminal_width(): with EnvVars({'COLUMNS': '200'}): ...
diff --git a/docs/config/environment.md b/docs/config/environment.md index 860c2d0f7..060c14968 100644 --- a/docs/config/environment.md +++ b/docs/config/environment.md @@ -390,6 +390,28 @@ The following platforms are supported: If unspecified, the environment is assumed to be compatible with all platforms. +## De...
[ { "components": [ { "doc": "=== \":octicons-file-code-16: pyproject.toml\"\n\n ```toml\n [tool.hatch.envs.<ENV_NAME>]\n description = ...\n ```\n\n=== \":octicons-file-code-16: hatch.toml\"\n\n ```toml\n [envs.<ENV_NAME>]\n description = ...\n ```", "lines": [ ...
[ "tests/cli/env/test_show.py::test_optional_columns", "tests/env/plugin/test_interface.py::TestDescription::test_default", "tests/env/plugin/test_interface.py::TestDescription::test_not_string", "tests/env/plugin/test_interface.py::TestDescription::test_correct" ]
[ "tests/cli/env/test_show.py::test_default", "tests/cli/env/test_show.py::test_single_only", "tests/cli/env/test_show.py::test_single_and_matrix", "tests/cli/env/test_show.py::test_default_matrix_only", "tests/cli/env/test_show.py::test_all_matrix_types_with_single", "tests/cli/run/test_run.py::test_automa...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add `description` option to environments {} ---------- </request> There are several new functions or classes that need to be implemented, using the definitions below: <<NEW DEFINITIONS>> There are ...
c06c820d722667306f39bda956c58cf4c48d0728
huggingface__datasets-3826
3,826
huggingface/datasets
null
2a5149bef20400d8c1fb57d4fe723b7ef6785359
2022-03-04T16:57:23Z
diff --git a/docs/source/package_reference/main_classes.mdx b/docs/source/package_reference/main_classes.mdx index 36a76a5b57d..8915dec13ef 100644 --- a/docs/source/package_reference/main_classes.mdx +++ b/docs/source/package_reference/main_classes.mdx @@ -152,6 +152,7 @@ The base class [`datasets.IterableDataset`] imp...
diff --git a/tests/test_iterable_dataset.py b/tests/test_iterable_dataset.py index 3d619dbe9c4..c2245e68561 100644 --- a/tests/test_iterable_dataset.py +++ b/tests/test_iterable_dataset.py @@ -11,6 +11,7 @@ BufferShuffledExamplesIterable, CyclingMultiSourcesExamplesIterable, ExamplesIterable, + Filter...
diff --git a/docs/source/package_reference/main_classes.mdx b/docs/source/package_reference/main_classes.mdx index 36a76a5b57d..8915dec13ef 100644 --- a/docs/source/package_reference/main_classes.mdx +++ b/docs/source/package_reference/main_classes.mdx @@ -152,6 +152,7 @@ The base class [`datasets.IterableDataset`] imp...
[ { "components": [ { "doc": "", "lines": [ 267, 331 ], "name": "FilteredExamplesIterable", "signature": "class FilteredExamplesIterable(_BaseExamplesIterable):", "type": "class" }, { "doc": "", "lines": [ ...
[ "tests/test_iterable_dataset.py::test_examples_iterable", "tests/test_iterable_dataset.py::test_examples_iterable_with_kwargs", "tests/test_iterable_dataset.py::test_examples_iterable_shuffle_data_sources", "tests/test_iterable_dataset.py::test_examples_iterable_shuffle_shards_and_metadata", "tests/test_ite...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add IterableDataset.filter _Needs https://github.com/huggingface/datasets/pull/3801 to be merged first_ I added `IterableDataset.filter` with an API that is a subset of `Dataset.filter`: ```python...
5142a8cf61d8a4495eda3d91dc4283a6df01ea14
conan-io__conan-10713
10,713
conan-io/conan
null
3502138d1c339a911c6d1f1b7109c48eed230046
2022-03-03T16:58:53Z
diff --git a/conans/cli/commands/graph.py b/conans/cli/commands/graph.py index 5dac91ffa56..e1b30914549 100644 --- a/conans/cli/commands/graph.py +++ b/conans/cli/commands/graph.py @@ -99,4 +99,11 @@ def graph_info(conan_api, parser, subparser, *args): deps_graph, lockfile = graph_compute(args, conan_api, strict=a...
diff --git a/conans/test/assets/genconanfile.py b/conans/test/assets/genconanfile.py index 686f43d2573..69284f293a3 100644 --- a/conans/test/assets/genconanfile.py +++ b/conans/test/assets/genconanfile.py @@ -34,6 +34,7 @@ def __init__(self, name=None, version=None, new_import=False): self._build_messages = No...
[ { "components": [ { "doc": "Add requires, build-requires or python-requires to existing or new lockfile. Resulting lockfile\nwill be ordereded, newer versions/revisions first.\nReferences can be with our without revisions like \"--requires=pkg/version\", but they\nmust be package references, inclu...
[ "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_lock_requires.py::test_conanfile_txt_deps_ranges[requires]", "conans/test/integration/lockfile/test_lock_requires.py::test_conanfile_txt_deps_ranges[tool_requires]", "conans/test/integration/lockfile/test_lock_requires.py::test_conanfile_txt_deps_ranges_transitive[requires...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> [develop2] proof of concept of adding overrides to lockfiles Via ``conan lock add`` new command Close https://github.com/conan-io/conan/pull/10046 Close https://github.com/conan-io/conan/issues/99...
4a5b19a75db9225316c8cb022a2dfb9705a2af34
conan-io__conan-10659
10,659
conan-io/conan
null
cbbb28978195502cbc43c1f6a8dcafaa91ebb3b6
2022-02-24T16:17:26Z
diff --git a/conan/tools/cmake/layout.py b/conan/tools/cmake/layout.py index 505b077d526..79a89dd60a8 100644 --- a/conan/tools/cmake/layout.py +++ b/conan/tools/cmake/layout.py @@ -3,7 +3,7 @@ from conans.errors import ConanException -def cmake_layout(conanfile, generator=None): +def cmake_layout(conanfile, genera...
diff --git a/conans/test/assets/cmake.py b/conans/test/assets/cmake.py index 687c5cedaa7..08cd07813d1 100644 --- a/conans/test/assets/cmake.py +++ b/conans/test/assets/cmake.py @@ -33,6 +33,7 @@ def gen_cmakelists(language="CXX", verify=True, project="project", libname="myli {% if libsources %} add_...
[ { "components": [ { "doc": "", "lines": [ 7, 14 ], "name": "basic_layout", "signature": "def basic_layout(conanfile, src_folder=\".\"):", "type": "function" } ], "file": "conan/tools/layout/__init__.py" } ]
[ "conans/test/functional/layout/test_build_system_layout_helpers.py::test_cmake_layout_external_sources", "conans/test/functional/layout/test_build_system_layout_helpers.py::test_basic_layout_external_sources[True]", "conans/test/functional/layout/test_build_system_layout_helpers.py::test_basic_layout_external_s...
[ "conans/test/functional/layout/test_build_system_layout_helpers.py::test_layout_in_cache[clion_layout-Debug-x86_64]", "conans/test/functional/layout/test_build_system_layout_helpers.py::test_layout_in_cache[clion_layout-Debug-x86]", "conans/test/functional/layout/test_build_system_layout_helpers.py::test_layout...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> basic_layout and external_sources for cmake_layout, removed meson_layout Changelog: Feature: Added `basic_layout`, removed `meson_layout` and added argument `src_folder` to `cmake_layout`as a shortcut...
4a5b19a75db9225316c8cb022a2dfb9705a2af34
conan-io__conan-10654
10,654
conan-io/conan
null
280c77286697db08be368599daa1c828148d04d1
2022-02-24T11:53:52Z
diff --git a/conans/client/cmd/build.py b/conans/client/cmd/build.py index ee215bf2a57..6cda8eb6c04 100644 --- a/conans/client/cmd/build.py +++ b/conans/client/cmd/build.py @@ -45,12 +45,7 @@ def cmd_build(app, conanfile_path, base_path, source_folder, build_folder, packa # Only base_path and conanfile_path w...
diff --git a/conans/test/functional/layout/test_exports_sources.py b/conans/test/functional/layout/test_exports_sources.py new file mode 100644 index 00000000000..6c08b2c6e11 --- /dev/null +++ b/conans/test/functional/layout/test_exports_sources.py @@ -0,0 +1,58 @@ +import textwrap + +from conans.test.utils.tools impor...
[ { "components": [ { "doc": "returns the base_source folder, that is the containing source folder in the cache\nirrespective of the layout() and where the final self.source_folder (computed with the\nlayout()) points.\nThis can be necessary in the source() or build() methods to locate where exporte...
[ "conans/test/functional/layout/test_exports_sources.py::test_exports_sources_patch", "conans/test/functional/layout/test_in_subfolder.py::test_exports_sources_own_code_in_subfolder" ]
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> proposing base_source_folder, and folders.root Changelog: Feature: Adding ``self.base_source_folder`` for ``exports_sources`` explicit layouts. Changelog: Feature: Adding ``root`` to layout model to ...
4a5b19a75db9225316c8cb022a2dfb9705a2af34
joke2k__faker-1621
1,621
joke2k/faker
null
805f2a1661b93da8a73f6a1112903b429e92e8a0
2022-02-23T11:57:18Z
diff --git a/faker/providers/lorem/fa_IR/__init__.py b/faker/providers/lorem/fa_IR/__init__.py new file mode 100644 index 0000000000..f848d1d8d1 --- /dev/null +++ b/faker/providers/lorem/fa_IR/__init__.py @@ -0,0 +1,925 @@ +from .. import Provider as LoremProvider + + +class Provider(LoremProvider): + """Implement l...
diff --git a/tests/providers/test_lorem.py b/tests/providers/test_lorem.py index 22e3d61533..2e7e8ccd6e 100644 --- a/tests/providers/test_lorem.py +++ b/tests/providers/test_lorem.py @@ -7,6 +7,7 @@ from faker.providers.lorem.cs_CZ import Provider as CsCzLoremProvider from faker.providers.lorem.de_AT import Provider ...
[ { "components": [ { "doc": "Implement lorem provider for ``fa_IR`` locale.\n\nWord list is based on the source(s) below, and some words have been removed\nto make the word list appropriate for public testing.\n\nSources:\n\n- https://1000mostcommonwords.com/1000-most-common-persian-words/", ...
[ "tests/providers/test_lorem.py::TestLoremProvider::test_word_with_defaults", "tests/providers/test_lorem.py::TestLoremProvider::test_word_with_custom_list", "tests/providers/test_lorem.py::TestLoremProvider::test_words_with_zero_nb", "tests/providers/test_lorem.py::TestLoremProvider::test_words_with_defaults"...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> added lorem provider for fa-ir language code added Lorem provider for the Persian language ---------- </request> There are several new functions or classes that need to be implemented, using the def...
6edfdbf6ae90b0153309e3bf066aa3b2d16494a7
Textualize__rich-1992
1,992
Textualize/rich
null
21432b4c6ada8886f64ad20fb6a426f6a7efcdcf
2022-02-22T12:03:08Z
diff --git a/CHANGELOG.md b/CHANGELOG.md index a93d063911..f11ad82e92 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,8 +9,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added +- Added options to TimeRemainingColumn to render a compact time format and render elapsed t...
diff --git a/tests/test_progress.py b/tests/test_progress.py index 2dd53ccd2c..8bbf29b648 100644 --- a/tests/test_progress.py +++ b/tests/test_progress.py @@ -2,6 +2,7 @@ import io from time import sleep +from types import SimpleNamespace import pytest @@ -89,6 +90,33 @@ class FakeTask(Task): assert str(t...
diff --git a/CHANGELOG.md b/CHANGELOG.md index a93d063911..f11ad82e92 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,8 +9,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added +- Added options to TimeRemainingColumn to render a compact time format and render elapsed t...
[ { "components": [ { "doc": "", "lines": [ 356, 364 ], "name": "TimeRemainingColumn.__init__", "signature": "def __init__( self, compact: bool = False, elapsed_when_finished: bool = False, table_column: Optional[Column] = None, ):", "type"...
[ "tests/test_progress.py::test_compact_time_remaining_column[None---:--]", "tests/test_progress.py::test_compact_time_remaining_column[0-00:00]", "tests/test_progress.py::test_compact_time_remaining_column[59-00:59]", "tests/test_progress.py::test_compact_time_remaining_column[71-01:11]", "tests/test_progres...
[ "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_p...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add condensed time column ## Type of changes - [ ] Bug fix - [x] New feature - [ ] Documentation / docstrings - [ ] Tests - [ ] Other ## Checklist - [x] I've run the latest [black](https:...
b0661de34bab35af9b4b1d3ba8e28b186b225e84
sympy__sympy-23135
23,135
sympy/sympy
1.11
dfef951e777dba36ad75162c8dc9402b228d11ed
2022-02-20T23:13:06Z
diff --git a/sympy/tensor/array/arrayop.py b/sympy/tensor/array/arrayop.py index c82b0d8e86b1..d85a68d462ee 100644 --- a/sympy/tensor/array/arrayop.py +++ b/sympy/tensor/array/arrayop.py @@ -331,7 +331,7 @@ def derive_by_array(expr, dx): return diff(expr, dx) -def permutedims(expr, perm): +def permuted...
diff --git a/sympy/tensor/array/expressions/tests/test_array_expressions.py b/sympy/tensor/array/expressions/tests/test_array_expressions.py index ee7ea4051658..63fb79ab7ced 100644 --- a/sympy/tensor/array/expressions/tests/test_array_expressions.py +++ b/sympy/tensor/array/expressions/tests/test_array_expressions.py @...
[ { "components": [ { "doc": "", "lines": [ 713, 723 ], "name": "PermuteDims._get_permutation_from_arguments", "signature": "def _get_permutation_from_arguments(cls, permutation, index_order_old, index_order_new, dim):", "type": "function" ...
[ "test_array_expr_construction_with_functions", "test_permutedims_with_indices" ]
[ "test_array_symbol_and_element", "test_zero_array", "test_one_array", "test_arrayexpr_contraction_construction", "test_arrayexpr_array_flatten", "test_arrayexpr_array_diagonal", "test_arrayexpr_array_shape", "test_arrayexpr_permutedims_sink", "test_arrayexpr_push_indices_up_and_down", "test_arraye...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> PermuteDims: added easier API PermuteDims and permutedims now have an easier API based on index orders. The corresponding permutation is then derived internally. Now you don't need to know the perm...
edf24253833ca153cb6d29ae54092ecebe29614c
sympy__sympy-23111
23,111
sympy/sympy
1.11
b9856408a5b9bf5757fc8b4a682565337f402a8f
2022-02-19T09:31:08Z
diff --git a/sympy/physics/vector/vector.py b/sympy/physics/vector/vector.py index 60e7db06ae7a..fefb2e7d169e 100644 --- a/sympy/physics/vector/vector.py +++ b/sympy/physics/vector/vector.py @@ -1,5 +1,5 @@ from sympy.core.backend import (S, sympify, expand, sqrt, Add, zeros, acos, - ImmutableMatrix as Matrix, _sim...
diff --git a/sympy/physics/vector/tests/test_vector.py b/sympy/physics/vector/tests/test_vector.py index 713884345af9..7f5eec69aa5a 100644 --- a/sympy/physics/vector/tests/test_vector.py +++ b/sympy/physics/vector/tests/test_vector.py @@ -1,5 +1,6 @@ from sympy.core.numbers import (Float, pi) from sympy.core.symbol i...
[ { "components": [ { "doc": "Returns the free dynamic symbols (functions of time ``t``) in the\nmeasure numbers of the vector expressed in the given reference frame.\n\nParameters\n==========\nreference_frame : ReferenceFrame\n The frame with respect to which the free dynamic symbols of the\n ...
[ "test_free_dynamicsymbols" ]
[ "test_Vector", "test_Vector_diffs", "test_vector_var_in_dcm", "test_vector_simplify", "test_vector_evalf", "test_vector_angle" ]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add .free_dynamicsymbols to physics vectors. <!-- Your title above should be a short description of what was changed. Do not include the issue number in the title. --> #### References to other Iss...
edf24253833ca153cb6d29ae54092ecebe29614c
huggingface__accelerate-255
255
huggingface/accelerate
null
4fc586f5af650a5711dc907fb613367d2f009c9a
2022-02-17T21:06:16Z
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 ...
[ { "components": [ { "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 The name of the folder to save all relevant weights and states.", "lines": [ 565, 578 ...
[ "tests/test_state_checkpointing.py::CheckpointTest::test_can_resume_training" ]
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add in checkpointing capability Closes https://github.com/huggingface/accelerate/issues/171 This PR adds in two functions, `Accelerator.save_state` and `Accelerator.load_state`, which will go throu...
08101b9dde2b1a9658c2e363e3e9f5663ba06073
conan-io__conan-10608
10,608
conan-io/conan
null
e661edaa4d8ccd0721525e1705f20178190c0f65
2022-02-17T17:11:38Z
diff --git a/conan/tools/apple/__init__.py b/conan/tools/apple/__init__.py index 06c11573a73..b3a7cb5a388 100644 --- a/conan/tools/apple/__init__.py +++ b/conan/tools/apple/__init__.py @@ -6,3 +6,5 @@ # from conan.tools.apple.apple import apple_deployment_target_flag # from conan.tools.apple.apple import to_apple_arc...
diff --git a/conans/test/functional/toolchains/apple/test_xcodebuild.py b/conans/test/functional/toolchains/apple/test_xcodebuild.py new file mode 100644 index 00000000000..8713f6594a3 --- /dev/null +++ b/conans/test/functional/toolchains/apple/test_xcodebuild.py @@ -0,0 +1,435 @@ +import platform +import textwrap + +i...
[ { "components": [ { "doc": "", "lines": [ 7, 37 ], "name": "XcodeBuild", "signature": "class XcodeBuild(object):", "type": "class" }, { "doc": "", "lines": [ 8, 13 ], "name":...
[ "conans/test/unittests/client/tools/apple/test_xcodebuild.py::test_verbosity[quiet]", "conans/test/unittests/client/tools/apple/test_xcodebuild.py::test_verbosity[verbose]", "conans/test/unittests/client/tools/apple/test_xcodebuild.py::test_verbosity[invalid]", "conans/test/unittests/client/tools/apple/test_x...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add new sdk_version setting for Apple OS's and new XcodeBuild, XcodeToolchain tools Changelog: Feature: Add `sdk_version` setting for `Macos`, `iOS`, `watchOS` and `tvOS`. Changelog: Feature: Add new...
4a5b19a75db9225316c8cb022a2dfb9705a2af34
Textualize__textual-293
293
Textualize/textual
null
0c7c7ac964be831c3b23b076c700d5122dea313a
2022-02-17T11:09:01Z
diff --git a/docs/reference/tabs.md b/docs/reference/tabs.md new file mode 100644 index 0000000000..2f1151c7a6 --- /dev/null +++ b/docs/reference/tabs.md @@ -0,0 +1,1 @@ +::: textual.widgets.tabs.Tabs diff --git a/examples/dev_sandbox.py b/examples/dev_sandbox.py deleted file mode 100644 index 8a43a203e1..0000000000 --...
diff --git a/tests/renderables/test_underline_bar.py b/tests/renderables/test_underline_bar.py index 5c5e4de9ce..549b331e3b 100644 --- a/tests/renderables/test_underline_bar.py +++ b/tests/renderables/test_underline_bar.py @@ -1,3 +1,9 @@ +from unittest.mock import create_autospec + +from rich.console import Console +f...
diff --git a/docs/reference/tabs.md b/docs/reference/tabs.md new file mode 100644 index 0000000000..2f1151c7a6 --- /dev/null +++ b/docs/reference/tabs.md @@ -0,0 +1,1 @@ +::: textual.widgets.tabs.Tabs diff --git a/examples/dev_sandbox.scss b/examples/dev_sandbox.scss deleted file mode 100644 index 987c0f09ec..000000000...
[ { "components": [ { "doc": "", "lines": [ 13, 15 ], "name": "Hr", "signature": "class Hr(Widget):", "type": "class" }, { "doc": "", "lines": [ 14, 15 ], "name": "Hr.render", ...
[ "tests/renderables/test_underline_bar.py::test_clickable_ranges" ]
[ "tests/renderables/test_underline_bar.py::test_no_highlight", "tests/renderables/test_underline_bar.py::test_highlight_from_zero", "tests/renderables/test_underline_bar.py::test_highlight_from_zero_point_five", "tests/renderables/test_underline_bar.py::test_highlight_middle", "tests/renderables/test_underli...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Tabs ## Example The video below shows a few different features: * Clicking on the underline or anywhere on the bar will activate the nearest tab. * Using "left" and "right" arrows on the keyboa...
86e93536b991014e0ea4bf993068202b446bb698
scikit-learn__scikit-learn-22518
22,518
scikit-learn/scikit-learn
1.2
84f8409dc5c485729649c5332e66fd5602549b50
2022-02-17T10:01:39Z
diff --git a/doc/modules/classes.rst b/doc/modules/classes.rst index bc58d50ce8f81..c6838556d50ad 100644 --- a/doc/modules/classes.rst +++ b/doc/modules/classes.rst @@ -954,6 +954,7 @@ details. metrics.average_precision_score metrics.balanced_accuracy_score metrics.brier_score_loss + metrics.class_likelih...
diff --git a/sklearn/metrics/tests/test_classification.py b/sklearn/metrics/tests/test_classification.py index 25c2dcda55d9c..02692806016f1 100644 --- a/sklearn/metrics/tests/test_classification.py +++ b/sklearn/metrics/tests/test_classification.py @@ -26,6 +26,7 @@ from sklearn.metrics import accuracy_score from skl...
diff --git a/doc/modules/classes.rst b/doc/modules/classes.rst index bc58d50ce8f81..c6838556d50ad 100644 --- a/doc/modules/classes.rst +++ b/doc/modules/classes.rst @@ -954,6 +954,7 @@ details. metrics.average_precision_score metrics.balanced_accuracy_score metrics.brier_score_loss + metrics.class_likelih...
[ { "components": [ { "doc": "", "lines": [ 81, 84 ], "name": "scoring", "signature": "def scoring(estimator, X, y):", "type": "function" }, { "doc": "", "lines": [ 87, 94 ], "...
[ "sklearn/metrics/tests/test_classification.py::test_classification_report_dictionary_output", "sklearn/metrics/tests/test_classification.py::test_classification_report_output_dict_empty_input", "sklearn/metrics/tests/test_classification.py::test_classification_report_zero_division_warning[warn]", "sklearn/met...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> FEA Add positive and negative likelihood ratios to metrics <!-- Thanks for contributing a pull request! Please ensure you have taken a look at the contribution guidelines: https://github.com/scikit-...
Here is the discussion in the issues of the pull request. <issues> Add Positive Likelihood Ratio (and negative) to metrics ### Describe the workflow you want to enable For severely imbalanced binary classification settings, the Positive Likelihood Ratio (or negative) are classic performance metrics of a test used for ...
935f7e66068fc130971646225a95ade649f57928
conan-io__conan-10594
10,594
conan-io/conan
null
606ff7ca246a44cec3fdb5b1abe9863dbf0298d3
2022-02-16T12:42:46Z
diff --git a/conan/tools/files/files.py b/conan/tools/files/files.py index a3375b3d7db..07b1a1e9333 100644 --- a/conan/tools/files/files.py +++ b/conan/tools/files/files.py @@ -4,6 +4,7 @@ import hashlib import os import platform +import shutil import subprocess import sys from contextlib import contextmanager @@...
diff --git a/conans/test/functional/tools/scm/__init__.py b/conans/test/functional/tools/scm/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/conans/test/functional/tools/scm/test_git.py b/conans/test/functional/tools/scm/test_git.py new file mode 100644 index 00000000000..2ba29783f57 --- /d...
[ { "components": [ { "doc": "replaces the current folder contents with the contents of one child folder. This\nis used in the SCM monorepo flow, when it is necessary to use one subproject subfolder\nto replace the whole cloned git repo", "lines": [ 499, 513 ], ...
[ "conans/test/functional/tools/scm/test_git.py::TestGitBasicCapture::test_capture_commit_local", "conans/test/functional/tools/scm/test_git.py::TestGitBasicCapture::test_capture_remote_url", "conans/test/functional/tools/scm/test_git.py::TestGitBasicCapture::test_capture_remote_pushed_commit", "conans/test/fun...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> introducing modern conan.tool.scm.Git helper Changelog: Feature: Introduce new ``conan.tools.scm.Git`` helper, for direct use in ``export()`` method to capture git url and commit, and to be used in ``...
4a5b19a75db9225316c8cb022a2dfb9705a2af34
conan-io__conan-10586
10,586
conan-io/conan
null
7b004e4dc5477f5d27f8a267a3ff4e5dfd482187
2022-02-15T16:00:06Z
diff --git a/conan/tools/files/__init__.py b/conan/tools/files/__init__.py index 64500e1ef08..fcffac80e2e 100644 --- a/conan/tools/files/__init__.py +++ b/conan/tools/files/__init__.py @@ -6,3 +6,4 @@ from conan.tools.files.packager import AutoPackager from conan.tools.files.symlinks import symlinks from conan.tools...
diff --git a/conans/test/integration/conanfile/conan_data_test.py b/conans/test/integration/conanfile/conan_data_test.py index 28a60476d65..2511b52059b 100644 --- a/conans/test/integration/conanfile/conan_data_test.py +++ b/conans/test/integration/conanfile/conan_data_test.py @@ -255,3 +255,59 @@ def package(self): ...
[ { "components": [ { "doc": "this only works for updating the conandata on the export() method, it seems it would\nbe plain wrong to try to change it anywhere else", "lines": [ 9, 30 ], "name": "update_conandata", "signature": "def update_conandat...
[ "conans/test/integration/conanfile/conan_data_test.py::test_conandata_update", "conans/test/integration/conanfile/conan_data_test.py::test_conandata_update_error" ]
[ "conans/test/integration/conanfile/conan_data_test.py::ConanDataTest::test_conan_data_as_source", "conans/test/integration/conanfile/conan_data_test.py::ConanDataTest::test_conan_data_as_source_newtools", "conans/test/integration/conanfile/conan_data_test.py::ConanDataTest::test_conan_data_development_flow", ...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> new update_conandata() helper Changelog: Feature: New ``from conan.tools.files import update_conandata()`` helper to add data to ``conandata.yml`` in the ``export()`` method. Docs: https://github.com...
4a5b19a75db9225316c8cb022a2dfb9705a2af34
matplotlib__matplotlib-22452
22,452
matplotlib/matplotlib
3.5
3eadeacc06c9f2ddcdac6ae39819faa9fbee9e39
2022-02-11T20:21:50Z
diff --git a/lib/matplotlib/figure.py b/lib/matplotlib/figure.py index f8aa99d48a09..441ec703d9cc 100644 --- a/lib/matplotlib/figure.py +++ b/lib/matplotlib/figure.py @@ -35,8 +35,10 @@ from matplotlib.axes import Axes, SubplotBase, subplot_class_factory from matplotlib.gridspec import GridSpec -from matplotlib.lay...
diff --git a/lib/matplotlib/tests/test_figure.py b/lib/matplotlib/tests/test_figure.py index ec1a814ebc59..b2da459d6cf9 100644 --- a/lib/matplotlib/tests/test_figure.py +++ b/lib/matplotlib/tests/test_figure.py @@ -17,7 +17,8 @@ from matplotlib.axes import Axes from matplotlib.figure import Figure, FigureBase from m...
[ { "components": [ { "doc": "This layout engine does not adjust the figure layout at all.\n\nThe purpose of this `.LayoutEngine` is to act as a place holder when the\nuser removes a layout engine to ensure an incompatible `.LayoutEngine` can\nnot be set later.\n\nParameters\n----------\nadjust_comp...
[ "lib/matplotlib/tests/test_figure.py::test_align_labels[png]", "lib/matplotlib/tests/test_figure.py::test_align_labels_stray_axes", "lib/matplotlib/tests/test_figure.py::test_figure_label", "lib/matplotlib/tests/test_figure.py::test_fignum_exists", "lib/matplotlib/tests/test_figure.py::test_clf_keyword", ...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> ENH: add ability to remove layout engine ## PR Summary This may be too simplistic as it just sets it to None which gives you ability to "go through zero" and change to an incompatible layout e...
3d6c3da884fafae4654df68144391cfe9be6f134
prompt-toolkit__python-prompt-toolkit-1566
1,566
prompt-toolkit/python-prompt-toolkit
null
700ae9eed535090c84ffcde7003fd3c295b7b1ad
2022-02-10T16:17:55Z
diff --git a/prompt_toolkit/formatted_text/html.py b/prompt_toolkit/formatted_text/html.py index 06c6020f5..9a5213227 100644 --- a/prompt_toolkit/formatted_text/html.py +++ b/prompt_toolkit/formatted_text/html.py @@ -1,4 +1,5 @@ import xml.dom.minidom as minidom +from string import Formatter from typing import Any, L...
diff --git a/tests/test_formatted_text.py b/tests/test_formatted_text.py index 23f5ccfd5..a49c67202 100644 --- a/tests/test_formatted_text.py +++ b/tests/test_formatted_text.py @@ -141,6 +141,9 @@ def test_html_interpolation(): value = HTML("<b>{a}</b><u>{b}</u>").format(a="hello", b="world") assert to_format...
[ { "components": [ { "doc": "", "lines": [ 124, 126 ], "name": "HTMLFormatter", "signature": "class HTMLFormatter(Formatter):", "type": "class" }, { "doc": "", "lines": [ 125, 126 ], ...
[ "tests/test_formatted_text.py::test_html_interpolation" ]
[ "tests/test_formatted_text.py::test_basic_html", "tests/test_formatted_text.py::test_html_with_fg_bg", "tests/test_formatted_text.py::test_ansi_formatting", "tests/test_formatted_text.py::test_ansi_256_color", "tests/test_formatted_text.py::test_ansi_true_color", "tests/test_formatted_text.py::test_interp...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> HTML.format specifiers html_escape parameters after formatting, not before Allows things like HTML("<b>{.3f}</b>").format(3.14159) ---------- </request> There are several new functions or classes...
700ae9eed535090c84ffcde7003fd3c295b7b1ad
Textualize__rich-1941
1,941
Textualize/rich
null
83756d624022d88082cf08ad49613d15b86ced21
2022-02-09T11:41:58Z
diff --git a/CHANGELOG.md b/CHANGELOG.md index fcf58cd7a1..76195aedcb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## Unreleased +### Added + +- Added ProgressColumn `MofNCompleteColumn` to display raw `completed/tota...
diff --git a/tests/test_progress.py b/tests/test_progress.py index 20b9d32ed4..2dd53ccd2c 100644 --- a/tests/test_progress.py +++ b/tests/test_progress.py @@ -16,6 +16,7 @@ TransferSpeedColumn, RenderableColumn, SpinnerColumn, + MofNCompleteColumn, Progress, Task, TextColumn, @@ -311,6 ...
diff --git a/CHANGELOG.md b/CHANGELOG.md index fcf58cd7a1..76195aedcb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## Unreleased +### Added + +- Added ProgressColumn `MofNCompleteColumn` to display raw `completed/tota...
[ { "components": [ { "doc": "Renders completed count/total, e.g. ' 10/1000'.\n\nBest for bounded tasks with int quantities.\n\nSpace pads the completed count so that progress length does not change as task progresses\npast powers of 10.\n\nArgs:\n separator (str, optional): Text to separate com...
[ "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_p...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add MofNCompleteColumn ProgressColumn type ## Type of changes - [ ] Bug fix - [X] New feature - [ ] Documentation / docstrings - [ ] Tests - [ ] Other ## Checklist - [X] I've run the late...
b0661de34bab35af9b4b1d3ba8e28b186b225e84
joke2k__faker-1610
1,610
joke2k/faker
null
fc127fa65b7d16817b1fcea6f4186ef417ed4fcc
2022-02-08T21:58:20Z
diff --git a/faker/providers/lorem/de_AT/__init__.py b/faker/providers/lorem/de_AT/__init__.py new file mode 100644 index 0000000000..c52b5b7d73 --- /dev/null +++ b/faker/providers/lorem/de_AT/__init__.py @@ -0,0 +1,9 @@ +from ..de_DE import Provider as GermanProvider + + +class Provider(GermanProvider): + """Implem...
diff --git a/tests/providers/test_lorem.py b/tests/providers/test_lorem.py index b96a14ca86..0838017e47 100644 --- a/tests/providers/test_lorem.py +++ b/tests/providers/test_lorem.py @@ -4,6 +4,8 @@ from faker.providers.lorem.az_AZ import Provider as AzAzLoremProvider from faker.providers.lorem.cs_CZ import Provide...
[ { "components": [ { "doc": "Implement lorem provider for ``de_DE`` locale.\nUsing the same as in ```de_DE```.", "lines": [ 4, 9 ], "name": "Provider", "signature": "class Provider(GermanProvider):", "type": "class" } ], "fil...
[ "tests/providers/test_lorem.py::TestLoremProvider::test_word_with_defaults", "tests/providers/test_lorem.py::TestLoremProvider::test_word_with_custom_list", "tests/providers/test_lorem.py::TestLoremProvider::test_words_with_zero_nb", "tests/providers/test_lorem.py::TestLoremProvider::test_words_with_defaults"...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Closes #936 Adding lorem support for german This adds lorem support for the german language. As described in #936. It uses 500 words of this site: https://www.gut1.de/grundwortschatz/grundwortschatz-...
Here is the discussion in the issues of the pull request. <issues> wrong language in faker.word() method ### Steps to reproduce 1. from faker import Faker 1. fake = Faker('de_DE') 1. fake.word() ### Expected behavior Generated word should be in German language ### Actual behavior Generated word is in ...
6edfdbf6ae90b0153309e3bf066aa3b2d16494a7
Textualize__textual-269
269
Textualize/textual
null
12bfe8c34acd9977495d2d36612af1241a6797b5
2022-02-07T11:37:25Z
diff --git a/src/textual/renderables/sparkline.py b/src/textual/renderables/sparkline.py new file mode 100644 index 0000000000..22bc959f75 --- /dev/null +++ b/src/textual/renderables/sparkline.py @@ -0,0 +1,127 @@ +from __future__ import annotations + +import statistics +from typing import Sequence, Iterable, Callable,...
diff --git a/tests/renderables/test_sparkline.py b/tests/renderables/test_sparkline.py new file mode 100644 index 0000000000..74f1f2f6bc --- /dev/null +++ b/tests/renderables/test_sparkline.py @@ -0,0 +1,41 @@ +from tests.utilities.render import render +from textual.renderables.sparkline import Sparkline + +GREEN = "\x...
[ { "components": [ { "doc": "A sparkline representing a series of data.\n\nArgs:\n data (Sequence[T]): The sequence of data to render.\n width (int, optional): The width of the sparkline/the number of buckets to partition the data into.\n min_color (Color, optional): The color of values eq...
[ "tests/renderables/test_sparkline.py::test_sparkline_no_data", "tests/renderables/test_sparkline.py::test_sparkline_single_datapoint", "tests/renderables/test_sparkline.py::test_sparkline_two_values_min_max", "tests/renderables/test_sparkline.py::test_sparkline_expand_data_to_width", "tests/renderables/test...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Sparklines Closes #259 ![image](https://user-images.githubusercontent.com/5740731/153031271-b7171195-b117-4f9a-b63d-88a6ce45f1e3.png) ---------- </request> There are several new functions or c...
Here is the discussion in the issues of the pull request. <issues> Sparkline renderable Implement a renderable that generates a sparkline. The input should be a list of floats of any size. The Sparkline renderable should use the same block characters as used in the scrollbar to render a minature graph. ```python ...
86e93536b991014e0ea4bf993068202b446bb698
conan-io__conan-10530
10,530
conan-io/conan
null
ebed0370c439a8274c2992ee41e424438eebd455
2022-02-07T09:04:18Z
diff --git a/conan/tools/files/__init__.py b/conan/tools/files/__init__.py index 7a84ecda977..03e30e82c30 100644 --- a/conan/tools/files/__init__.py +++ b/conan/tools/files/__init__.py @@ -4,3 +4,4 @@ from conan.tools.files.cpp_package import CppPackage from conan.tools.files.packager import AutoPackager from conan....
diff --git a/conans/test/unittests/tools/files/test_tool_copy.py b/conans/test/unittests/tools/files/test_tool_copy.py new file mode 100644 index 00000000000..84f5fc618bf --- /dev/null +++ b/conans/test/unittests/tools/files/test_tool_copy.py @@ -0,0 +1,263 @@ +import mock +import os +import platform +import unittest +...
[ { "components": [ { "doc": "", "lines": [ 9, 18 ], "name": "copy", "signature": "def copy(conanfile, pattern, src, dst, keep_path=True, excludes=None, ignore_case=True, copy_symlink_folders=True):", "type": "function" }, { ...
[ "conans/test/unittests/tools/files/test_tool_copy.py::ToolCopyTest::test_avoid_repeat_copies", "conans/test/unittests/tools/files/test_tool_copy.py::ToolCopyTest::test_basic", "conans/test/unittests/tools/files/test_tool_copy.py::ToolCopyTest::test_basic_with_linked_dir", "conans/test/unittests/tools/files/te...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Ported copy tool from develop2 Changelog: Feature: New `copy` tool at `conan.tools.files` namespace that will replace the `self.copy` in Conan 2.0. Docs: https://github.com/conan-io/docs/pull/2428 D...
4a5b19a75db9225316c8cb022a2dfb9705a2af34
joke2k__faker-1608
1,608
joke2k/faker
null
922261db55539967358401193901a486f0967ef4
2022-02-05T04:30:09Z
diff --git a/faker/providers/lorem/bn_BD/__init__.py b/faker/providers/lorem/bn_BD/__init__.py new file mode 100644 index 0000000000..f49df831e1 --- /dev/null +++ b/faker/providers/lorem/bn_BD/__init__.py @@ -0,0 +1,233 @@ +from .. import Provider as LoremProvider + + +class Provider(LoremProvider): + """Implement l...
diff --git a/tests/providers/test_lorem.py b/tests/providers/test_lorem.py index 0838017e47..22e3d61533 100644 --- a/tests/providers/test_lorem.py +++ b/tests/providers/test_lorem.py @@ -3,6 +3,7 @@ import pytest from faker.providers.lorem.az_AZ import Provider as AzAzLoremProvider +from faker.providers.lorem.bn_BD...
[ { "components": [ { "doc": "Implement lorem provider for ``bn_BD`` locale.", "lines": [ 4, 232 ], "name": "Provider", "signature": "class Provider(LoremProvider):", "type": "class" } ], "file": "faker/providers/lorem/bn_BD/_...
[ "tests/providers/test_lorem.py::TestLoremProvider::test_word_with_defaults", "tests/providers/test_lorem.py::TestLoremProvider::test_word_with_custom_list", "tests/providers/test_lorem.py::TestLoremProvider::test_words_with_zero_nb", "tests/providers/test_lorem.py::TestLoremProvider::test_words_with_defaults"...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Task/jabertuhin/1519/add loremprovider for bn bd ### What does this changes This pull-request resolves issue #1519 . I have created `bn_BD` package under lorem provider. ### What was wrong NA...
6edfdbf6ae90b0153309e3bf066aa3b2d16494a7
sympy__sympy-23014
23,014
sympy/sympy
1.11
69662b4fb4a9c585742da50ff33c5ba896108f23
2022-02-04T20:48:58Z
diff --git a/doc/src/explanation/active-deprecations.md b/doc/src/explanation/active-deprecations.md index fa0328c0fdff..84fda0eb75f9 100644 --- a/doc/src/explanation/active-deprecations.md +++ b/doc/src/explanation/active-deprecations.md @@ -74,6 +74,37 @@ will need to either add a `warnings` filter as above or use py...
diff --git a/sympy/parsing/tests/test_mathematica.py b/sympy/parsing/tests/test_mathematica.py index c6ad496d9491..8f48d93db7fc 100644 --- a/sympy/parsing/tests/test_mathematica.py +++ b/sympy/parsing/tests/test_mathematica.py @@ -1,5 +1,8 @@ -from sympy.parsing.mathematica import mathematica +from sympy import sin, Fu...
diff --git a/doc/src/explanation/active-deprecations.md b/doc/src/explanation/active-deprecations.md index fa0328c0fdff..84fda0eb75f9 100644 --- a/doc/src/explanation/active-deprecations.md +++ b/doc/src/explanation/active-deprecations.md @@ -74,6 +74,37 @@ will need to either add a `warnings` filter as above or use py...
[ { "components": [ { "doc": "", "lines": [ 82, 98 ], "name": "_parse_Function", "signature": "def _parse_Function(*args):", "type": "function" }, { "doc": "", "lines": [ 501, 528 ], ...
[ "test_mathematica", "test_parser_mathematica_tokenizer" ]
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Rewritten Wolfram Mathematica language parser from scratch New Wolfram Mathematica language parser. In theory, it should be able to parse everything. <!-- BEGIN RELEASE NOTES --> * parsing *...
edf24253833ca153cb6d29ae54092ecebe29614c
boto__botocore-2606
2,606
boto/botocore
null
6c6ca961d0ba537b8f5cb8ea004a69b9b5dea10f
2022-02-03T22:56:45Z
diff --git a/.changes/next-release/enhancement-RequestHeader-82118.json b/.changes/next-release/enhancement-RequestHeader-82118.json new file mode 100644 index 0000000000..f6641fedaf --- /dev/null +++ b/.changes/next-release/enhancement-RequestHeader-82118.json @@ -0,0 +1,5 @@ +{ + "type": "enhancement", + "category"...
diff --git a/tests/unit/test_handlers.py b/tests/unit/test_handlers.py index 6d0eb6b41e..19b4fe3706 100644 --- a/tests/unit/test_handlers.py +++ b/tests/unit/test_handlers.py @@ -17,6 +17,7 @@ import copy import os import json +import pytest import botocore import botocore.session @@ -1368,3 +1369,24 @@ def test...
diff --git a/.changes/next-release/enhancement-RequestHeader-82118.json b/.changes/next-release/enhancement-RequestHeader-82118.json new file mode 100644 index 0000000000..f6641fedaf --- /dev/null +++ b/.changes/next-release/enhancement-RequestHeader-82118.json @@ -0,0 +1,5 @@ +{ + "type": "enhancement", + "category"...
[ { "components": [ { "doc": "", "lines": [ 88, 94 ], "name": "add_recursion_detection_header", "signature": "def add_recursion_detection_header(params, **kwargs):", "type": "function" } ], "file": "botocore/handlers.py" } ]
[ "tests/unit/test_handlers.py::test_add_recursion_detection_header[environ0-header_before0-header_after0]", "tests/unit/test_handlers.py::test_add_recursion_detection_header[environ1-header_before1-header_after1]", "tests/unit/test_handlers.py::test_add_recursion_detection_header[environ2-header_before2-header_a...
[ "tests/unit/test_handlers.py::TestHandlers::test_200_response_with_no_error_left_untouched", "tests/unit/test_handlers.py::TestHandlers::test_500_response_can_be_none", "tests/unit/test_handlers.py::TestHandlers::test_500_status_code_set_for_200_response", "tests/unit/test_handlers.py::TestHandlers::test_acce...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Adding recursion detection headers Adding request headers for lambda recursion detection. ---------- </request> There are several new functions or classes that need to be implemented, using the defi...
5e4b564dd0f9aab16a404251ebd3e675c9681492
matplotlib__matplotlib-22387
22,387
matplotlib/matplotlib
3.5
2e70254e860d7946035a3b0e50be9e08e78fd36e
2022-02-03T22:25:29Z
diff --git a/doc/api/colors_api.rst b/doc/api/colors_api.rst index 44f8cca303fd..970986ff4438 100644 --- a/doc/api/colors_api.rst +++ b/doc/api/colors_api.rst @@ -14,27 +14,44 @@ :no-members: :no-inherited-members: -Classes -------- +Color norms +----------- .. autosummary:: :toctree: _as_gen/ :tem...
diff --git a/lib/matplotlib/tests/test_colors.py b/lib/matplotlib/tests/test_colors.py index 80f8b663bdce..c9aed221108e 100644 --- a/lib/matplotlib/tests/test_colors.py +++ b/lib/matplotlib/tests/test_colors.py @@ -1510,3 +1510,43 @@ def test_make_norm_from_scale_name(): logitnorm = mcolors.make_norm_from_scale( ...
diff --git a/doc/api/colors_api.rst b/doc/api/colors_api.rst index 44f8cca303fd..970986ff4438 100644 --- a/doc/api/colors_api.rst +++ b/doc/api/colors_api.rst @@ -14,27 +14,44 @@ :no-members: :no-inherited-members: -Classes -------- +Color norms +----------- .. autosummary:: :toctree: _as_gen/ :tem...
[ { "components": [ { "doc": "Container for sequences of colors that are known to Matplotlib by name.\n\nThe universal registry instance is `matplotlib.color_sequences`. There\nshould be no need for users to instantiate `.ColorSequenceRegistry`\nthemselves.\n\nRead access uses a dict-like interface ...
[ "lib/matplotlib/tests/test_colors.py::test_color_sequences" ]
[ "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...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add a registry for color sequences Color sequences are simply lists of colors, that we store by name in a registry. The registry is modelled similar to the ColormapRegistry to 1) support immutable b...
3d6c3da884fafae4654df68144391cfe9be6f134
conan-io__conan-10507
10,507
conan-io/conan
null
a2e5d1279748956b3878c8de415bf204043a09cd
2022-02-03T17:46:33Z
diff --git a/conans/cli/api/subapi/install.py b/conans/cli/api/subapi/install.py index b04b9be0d58..9edf7a15899 100644 --- a/conans/cli/api/subapi/install.py +++ b/conans/cli/api/subapi/install.py @@ -1,9 +1,13 @@ +import os + from conan import ConanFile from conans.cli.api.subapi import api_method from conans.cli.c...
diff --git a/conans/test/functional/command/test_install_deploy.py b/conans/test/functional/command/test_install_deploy.py new file mode 100644 index 00000000000..6837ef36461 --- /dev/null +++ b/conans/test/functional/command/test_install_deploy.py @@ -0,0 +1,189 @@ +import os +import textwrap + +import pytest + +from ...
[ { "components": [ { "doc": "implements the logic of finding a deployer, with priority:\n- 1) absolute paths\n- 2) relative to cwd\n- 3) in the cache/extensions/deploy folder\n- 4) built-in", "lines": [ 56, 82 ], "name": "_find_deployer", "signatu...
[ "conans/test/functional/command/test_install_deploy.py::test_multi_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_overwrit...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> New Conan 2.0 deployers Close https://github.com/conan-io/conan/issues/10506 New approach for deploy of files: - ``conan install --deploy=mydeploy`` will search for a ``mydeploy.py`` in this ord...
4a5b19a75db9225316c8cb022a2dfb9705a2af34
sqlfluff__sqlfluff-2540
2,540
sqlfluff/sqlfluff
0.9
ef7d86548757fcbc3405ac421c38acefa55db9aa
2022-02-01T20:18:14Z
diff --git a/src/sqlfluff/core/default_config.cfg b/src/sqlfluff/core/default_config.cfg index 2775cba87c9..8a9c5c91960 100644 --- a/src/sqlfluff/core/default_config.cfg +++ b/src/sqlfluff/core/default_config.cfg @@ -143,3 +143,7 @@ unquoted_identifiers_policy = all quoted_identifiers_policy = all allow_space_in_iden...
diff --git a/test/rules/std_L062_test.py b/test/rules/std_L062_test.py new file mode 100644 index 00000000000..a838ad82fc0 --- /dev/null +++ b/test/rules/std_L062_test.py @@ -0,0 +1,20 @@ +"""Tests the python routines within L062.""" +from sqlfluff.core import FluffConfig +from sqlfluff.core import Linter + + +def test...
diff --git a/src/sqlfluff/core/default_config.cfg b/src/sqlfluff/core/default_config.cfg index 2775cba87c9..8a9c5c91960 100644 --- a/src/sqlfluff/core/default_config.cfg +++ b/src/sqlfluff/core/default_config.cfg @@ -143,3 +143,7 @@ unquoted_identifiers_policy = all quoted_identifiers_policy = all allow_space_in_iden...
[ { "components": [ { "doc": "Block a list of configurable words from being used.\n\nThis generic rule can be useful to prevent certain keywords, functions, or objects\nfrom being used. Only whole words can be blocked, not phrases, nor parts of words.\n\nThis block list is case insensitive.\n\nExamp...
[ "test/rules/std_L062_test.py::test__rules__std_L062_raised" ]
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Adds new rule L062 to allow blocking of certain words <!--Thanks for adding this feature!--> <!--Please give the Pull Request a meaningful title for the release notes--> ### Brief summary of the...
Here is the discussion in the issues of the pull request. <issues> New rule: database & schema restrictions _Note: This is for general enhancements to the project. Please use the Bug report template instead to raise parsing/linting/syntax issues for existing supported dialects_ At some companies different databases & ...
ef27896c470cfb694e709d6407da57f22c10de86
Textualize__rich-1894
1,894
Textualize/rich
null
633faab16dc3a8c01a6562648cc2186c19a476e3
2022-01-31T14:32:01Z
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...
[ { "components": [ { "doc": "Get the default columns used for a new Progress instance:\n - a text column for the description (TextColumn)\n - the bar itself (BarColumn)\n - a text column showing completion percentage (TextColumn)\n - an estimated-time-remaining column (TimeRemainingColumn)\...
[ "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_p...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add default_columns classmethod to Progress class ## Type of changes - [ ] Bug fix - [x] New feature - [ ] Documentation / docstrings - [ ] Tests - [ ] Other ## Checklist - [x] I've run t...
b0661de34bab35af9b4b1d3ba8e28b186b225e84
Textualize__textual-246
246
Textualize/textual
null
3574a6da172c98a43f813033f39c610d5a3afd84
2022-01-31T13:04:35Z
diff --git a/src/textual/renderables/__init__.py b/src/textual/renderables/__init__.py new file mode 100644 index 0000000000..e69de29bb2 diff --git a/src/textual/renderables/underline_bar.py b/src/textual/renderables/underline_bar.py new file mode 100644 index 0000000000..59c9e6bb40 --- /dev/null +++ b/src/textual/rend...
diff --git a/tests/renderables/__init__.py b/tests/renderables/__init__.py new file mode 100644 index 0000000000..e69de29bb2 diff --git a/tests/renderables/test_underline_bar.py b/tests/renderables/test_underline_bar.py new file mode 100644 index 0000000000..5c5e4de9ce --- /dev/null +++ b/tests/renderables/test_underli...
[ { "components": [ { "doc": "Thin horizontal bar with a portion highlighted.\n\nArgs:\n highlight_range (tuple[float, float]): The range to highlight. Defaults to ``(0, 0)`` (no highlight)\n highlight_style (StyleType): The style of the highlighted range of the bar.\n background_style (Sty...
[ "tests/renderables/test_underline_bar.py::test_no_highlight", "tests/renderables/test_underline_bar.py::test_highlight_from_zero", "tests/renderables/test_underline_bar.py::test_highlight_from_zero_point_five", "tests/renderables/test_underline_bar.py::test_highlight_middle", "tests/renderables/test_underli...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Underline bar renderable Naming is hard :) more than happy to hear suggestions for the params etc. Closes #238 ---------- </request> There are several new functions or classes that need to be im...
Here is the discussion in the issues of the pull request. <issues> Implement a bar renderable for tabbed dialogs Implement a renderable used to underline tabs in a tabbed dialog. This renderable should use the same unicode characters as Rich progress bars. It should render a line with a portion in a different color ...
86e93536b991014e0ea4bf993068202b446bb698
sympy__sympy-22961
22,961
sympy/sympy
1.10
3e8695add7a25c8d70aeba7d6137496df02863fd
2022-01-30T11:37:34Z
diff --git a/sympy/tensor/array/expressions/__init__.py b/sympy/tensor/array/expressions/__init__.py index d465a542cc64..a45d425018aa 100644 --- a/sympy/tensor/array/expressions/__init__.py +++ b/sympy/tensor/array/expressions/__init__.py @@ -164,6 +164,7 @@ "Reshape", "convert_array_to_matrix", "convert...
diff --git a/sympy/tensor/array/expressions/tests/test_array_expressions.py b/sympy/tensor/array/expressions/tests/test_array_expressions.py index 206f981296d7..ee7ea4051658 100644 --- a/sympy/tensor/array/expressions/tests/test_array_expressions.py +++ b/sympy/tensor/array/expressions/tests/test_array_expressions.py @...
[ { "components": [ { "doc": "", "lines": [ 42, 46 ], "name": "_ArrayExpr.__getitem__", "signature": "def __getitem__(self, item):", "type": "function" }, { "doc": "", "lines": [ 48, 49 ...
[ "test_array_symbol_and_element", "test_arrayexpr_convert_array_element_to_array_expression" ]
[ "test_zero_array", "test_one_array", "test_arrayexpr_contraction_construction", "test_arrayexpr_array_flatten", "test_arrayexpr_array_diagonal", "test_arrayexpr_array_shape", "test_arrayexpr_permutedims_sink", "test_arrayexpr_push_indices_up_and_down", "test_arrayexpr_split_multiple_contractions", ...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Added converter from array expression to indexed Added function `convert_array_to_indexed( ... )` that is able to convert array expressions into an equivalent indexed expression. <!-- BEGIN RELEASE...
3e8695add7a25c8d70aeba7d6137496df02863fd
pvlib__pvlib-python-1395
1,395
pvlib/pvlib-python
0.8
26579bec7e65296223503b9e05da4af914af6777
2022-01-26T20:24:16Z
diff --git a/docs/sphinx/source/reference/iotools.rst b/docs/sphinx/source/reference/iotools.rst index 514aeac2f5..14271cf3ee 100644 --- a/docs/sphinx/source/reference/iotools.rst +++ b/docs/sphinx/source/reference/iotools.rst @@ -31,6 +31,7 @@ of sources and file formats relevant to solar energy modeling. iotools....
diff --git a/pvlib/tests/iotools/test_pvgis.py b/pvlib/tests/iotools/test_pvgis.py index 579c26914c..a5a5e3fbd7 100644 --- a/pvlib/tests/iotools/test_pvgis.py +++ b/pvlib/tests/iotools/test_pvgis.py @@ -9,8 +9,9 @@ import requests from pvlib.iotools import get_pvgis_tmy, read_pvgis_tmy from pvlib.iotools import get_...
diff --git a/docs/sphinx/source/reference/iotools.rst b/docs/sphinx/source/reference/iotools.rst index 514aeac2f5..14271cf3ee 100644 --- a/docs/sphinx/source/reference/iotools.rst +++ b/docs/sphinx/source/reference/iotools.rst @@ -31,6 +31,7 @@ of sources and file formats relevant to solar energy modeling. iotools....
[ { "components": [ { "doc": "Get horizon data from PVGIS.\n\nParameters\n----------\nlatitude : float\n Latitude in degrees north\nlongitude : float\n Longitude in degrees east\nurl: str, default: :const:`pvlib.iotools.pvgis.URL`\n Base URL for PVGIS\nkwargs:\n Passed to requests.get\n\...
[ "pvlib/tests/iotools/test_pvgis.py::test_read_pvgis_hourly[testfile0-expected_radiation_csv-metadata_exp0-inputs_exp0-False-None]", "pvlib/tests/iotools/test_pvgis.py::test_read_pvgis_hourly[testfile1-expected_radiation_csv_mapped-metadata_exp1-inputs_exp1-True-csv]", "pvlib/tests/iotools/test_pvgis.py::test_re...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Adding PVGIS horizon data retrieval method - [x] Closes #1295, #758 - [x] I am familiar with the [contributing guidelines](https://pvlib-python.readthedocs.io/en/latest/contributing.html) - [x] T...
Here is the discussion in the issues of the pull request. <issues> Add retrieval function for horizon profile from MINES Paris Tech <!-- 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 o...
311781d2380997044da0e484dc90aa146a74ca44
conan-io__conan-10437
10,437
conan-io/conan
null
9c34ea7568ec8b7eb36a3fbc0fd2ec8a30716830
2022-01-26T17:39:46Z
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 ...
[ { "components": [ { "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. Otherwise, False", "lines": [ 186, 191 ], "name": "is_msvc_static_runtime", ...
[ "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_msbu...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Identify when using static runtime Changelog: Feature: Add `is_msvc_static_runtime` method to `conan.tools.microsoft.visual` to identify when using `msvc` with static runtime. Docs: https://github.co...
4a5b19a75db9225316c8cb022a2dfb9705a2af34
boto__botocore-2599
2,599
boto/botocore
null
d9d5ade65eeaf01178f6a3f74865ace07164f0f3
2022-01-25T20:57:09Z
diff --git a/.changes/next-release/enhancement-Requestheaders-37145.json b/.changes/next-release/enhancement-Requestheaders-37145.json new file mode 100644 index 0000000000..82bd6bde65 --- /dev/null +++ b/.changes/next-release/enhancement-Requestheaders-37145.json @@ -0,0 +1,5 @@ +{ + "type": "enhancement", + "catego...
diff --git a/tests/functional/test_retry.py b/tests/functional/test_retry.py index c5d59bb334..67ba56ba81 100644 --- a/tests/functional/test_retry.py +++ b/tests/functional/test_retry.py @@ -10,6 +10,8 @@ # distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF # ANY KIND, either express or implied. See...
diff --git a/.changes/next-release/enhancement-Requestheaders-37145.json b/.changes/next-release/enhancement-Requestheaders-37145.json new file mode 100644 index 0000000000..82bd6bde65 --- /dev/null +++ b/.changes/next-release/enhancement-Requestheaders-37145.json @@ -0,0 +1,5 @@ +{ + "type": "enhancement", + "catego...
[ { "components": [ { "doc": "", "lines": [ 134, 144 ], "name": "Endpoint._calculate_ttl", "signature": "def _calculate_ttl(self, response_received_timestamp, date_header, read_timeout):", "type": "function" }, { "doc": ...
[ "tests/functional/test_retry.py::TestRetryHeader::test_amz_sdk_invocation_id_header_persists", "tests/functional/test_retry.py::TestRetryHeader::test_amz_sdk_invocation_id_header_unique_per_invocation", "tests/functional/test_retry.py::TestRetryHeader::test_amz_sdk_request_header", "tests/unit/test_endpoint.p...
[ "tests/functional/test_retry.py::TestLegacyRetry::test_can_clobber_max_attempts_on_session", "tests/functional/test_retry.py::TestLegacyRetry::test_can_override_max_attempts", "tests/functional/test_retry.py::TestLegacyRetry::test_do_not_attempt_retries", "tests/functional/test_retry.py::TestLegacyRetry::test...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Adding retry information headers Adding the following request headers: - `amz-invocation-id`: A uuid unique to each SDK request invocation. - `amz-sdk-request`: Includes the following retry inform...
5e4b564dd0f9aab16a404251ebd3e675c9681492
pvlib__pvlib-python-1391
1,391
pvlib/pvlib-python
0.8
d5d1d66aae4913f0e23b9a79c655efa1bdafe5f4
2022-01-25T02:44:13Z
diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index a9138ca588..f716995416 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -3,7 +3,7 @@ - [ ] Closes #xxxx - [ ] I am familiar with the [contributing guidelines](https://pvlib-python.readthedoc...
diff --git a/pvlib/tests/test_temperature.py b/pvlib/tests/test_temperature.py index 40d0ec2d6f..5630f441e5 100644 --- a/pvlib/tests/test_temperature.py +++ b/pvlib/tests/test_temperature.py @@ -8,6 +8,8 @@ from pvlib import temperature, tools from pvlib._deprecation import pvlibDeprecationWarning +import re + @...
diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index a9138ca588..f716995416 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -3,7 +3,7 @@ - [ ] Closes #xxxx - [ ] I am familiar with the [contributing guidelines](https://pvlib-python.readthedoc...
[ { "components": [ { "doc": "Smooth short-term cell temperature transients using the Prilliman model.\n\nThe Prilliman et al. model [1]_ applies a weighted moving average to\nthe output of a steady-state cell temperature model to account for\na module's thermal inertia by smoothing the cell tempera...
[ "pvlib/tests/test_temperature.py::test_prilliman", "pvlib/tests/test_temperature.py::test_prilliman_coarse", "pvlib/tests/test_temperature.py::test_prilliman_nans" ]
[ "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...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add Prilliman et al transience model to pvlib.temperature - [x] Closes #1081 - [x] I am familiar with the [contributing guidelines](https://pvlib-python.readthedocs.io/en/latest/contributing.html) ...
Here is the discussion in the issues of the pull request. <issues> implement transient moving-average thermal model **New Feature** Implement the [transient moving-average model proposed by Matt Prillman](https://ieeexplore.ieee.org/stamp/stamp.jsp?arnumber=9095219) **Describe the solution you'd like** a new funct...
311781d2380997044da0e484dc90aa146a74ca44
sympy__sympy-22910
22,910
sympy/sympy
1.10
95a0b68b4b67d02102a274620da08c925cc401db
2022-01-24T17:38:08Z
diff --git a/sympy/tensor/array/expressions/array_expressions.py b/sympy/tensor/array/expressions/array_expressions.py index 75f534696d56..a9b9d1af16b6 100644 --- a/sympy/tensor/array/expressions/array_expressions.py +++ b/sympy/tensor/array/expressions/array_expressions.py @@ -7,7 +7,7 @@ import typing -from symp...
diff --git a/sympy/core/tests/test_args.py b/sympy/core/tests/test_args.py index cb7d1c8df613..25d432336627 100644 --- a/sympy/core/tests/test_args.py +++ b/sympy/core/tests/test_args.py @@ -4970,6 +4970,12 @@ def test_sympy__tensor__array__expressions__array_expressions__ArrayElementwiseA assert _test_args(ArrayE...
[ { "components": [ { "doc": "", "lines": [ 1462, 1499 ], "name": "Reshape", "signature": "class Reshape(_CodegenArrayAbstract):", "type": "class" }, { "doc": "", "lines": [ 1464, 1473 ...
[ "test_sympy__tensor__array__expressions__array_expressions__Reshape", "test_array_symbol_and_element", "test_zero_array", "test_one_array", "test_arrayexpr_contraction_construction", "test_arrayexpr_array_flatten", "test_arrayexpr_array_diagonal", "test_arrayexpr_array_shape", "test_arrayexpr_permut...
[ "test_all_classes_are_tested", "test_sympy__algebras__quaternion__Quaternion", "test_sympy__assumptions__assume__AppliedPredicate", "test_predicates", "test_sympy__assumptions__assume__UndefinedPredicate", "test_sympy__assumptions__relation__binrel__AppliedBinaryRelation", "test_sympy__assumptions__wrap...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Added Reshape operator for array expressions Added Reshape operator for array expressions <!-- BEGIN RELEASE NOTES --> NO ENTRY <!-- END RELEASE NOTES --> ---------- </request> There are seve...
3e8695add7a25c8d70aeba7d6137496df02863fd
sqlfluff__sqlfluff-2369
2,369
sqlfluff/sqlfluff
0.8
d974cdaa1c49090fa1460c10d2b9d9ae69cd5fb8
2022-01-20T13:28:17Z
diff --git a/src/sqlfluff/core/rules/functional/segments.py b/src/sqlfluff/core/rules/functional/segments.py index 0a68541bd13..6f19f3ff8ed 100644 --- a/src/sqlfluff/core/rules/functional/segments.py +++ b/src/sqlfluff/core/rules/functional/segments.py @@ -81,6 +81,14 @@ def raw_segments(self) -> "Segments": ...
diff --git a/test/core/rules/functional/test_segments.py b/test/core/rules/functional/test_segments.py index 1644e015fa9..ab7adf4cf20 100644 --- a/test/core/rules/functional/test_segments.py +++ b/test/core/rules/functional/test_segments.py @@ -1,6 +1,7 @@ """Tests for the segments module.""" import pytest +from sq...
[ { "components": [ { "doc": "Recursively crawl for segments of a given type.", "lines": [ 84, 90 ], "name": "Segments.recursive_crawl", "signature": "def recursive_crawl(self, *seg_type: str, recurse_into: bool = True) -> \"Segments\":", "...
[ "test/core/rules/functional/test_segments.py::test_segments_recursive_crawl" ]
[ "test/core/rules/functional/test_segments.py::test_segments_add[lhs0-rhs0-expected0]", "test/core/rules/functional/test_segments.py::test_segments_add[lhs1-rhs1-expected1]", "test/core/rules/functional/test_segments.py::test_segments_add[lhs2-rhs2-expected2]", "test/core/rules/functional/test_segments.py::tes...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Functional API: Segments.recursive_crawl <!--Firstly, thanks for adding this feature! Secondly, please check the key steps against the checklist below to make your contribution easy to merge.--> <!--...
a5c4eae4e3e419fe95460c9afd9cf39a35a470c4
conan-io__conan-10380
10,380
conan-io/conan
null
5c05cd52fb8ab2ee6f43f9cde40b0c5b17595ac0
2022-01-19T18:15:11Z
diff --git a/conan/tools/system/__init__.py b/conan/tools/system/__init__.py new file mode 100644 index 00000000000..ff8204ea6cd --- /dev/null +++ b/conan/tools/system/__init__.py @@ -0,0 +1,1 @@ +from conan.tools.system.package_manager import Apt, Yum, Dnf, Brew, Pkg, PkgUtil, Chocolatey, PacMan, Zypper diff --git a/c...
diff --git a/conans/test/conftest.py b/conans/test/conftest.py index c05ad3e1a1a..c7f06df173b 100644 --- a/conans/test/conftest.py +++ b/conans/test/conftest.py @@ -110,6 +110,8 @@ "Darwin": '/Users/jenkins/bin'}}, }, 'premake': {}, + 'apt_get': { "exe": "apt-get"}, + 'brew'...
diff --git a/conans/requirements.txt b/conans/requirements.txt index 2b43d530f41..3ee8a2a5719 100644 --- a/conans/requirements.txt +++ b/conans/requirements.txt @@ -7,7 +7,7 @@ patch-ng>=1.17.4, <1.18 fasteners>=0.14.1 six>=1.10.0,<=1.16.0 node-semver==0.6.1 -distro>=1.0.2, <=1.6.0 +distro>=1.0.2, <=1.6.0; sys_platf...
[ { "components": [ { "doc": "", "lines": [ 7, 121 ], "name": "_SystemPackageManagerTool", "signature": "class _SystemPackageManagerTool(object):", "type": "class" }, { "doc": "", "lines": [ 15, ...
[ "conans/test/functional/tools/system/package_manager_test.py::test_apt_check", "conans/test/functional/tools/system/package_manager_test.py::test_build_require", "conans/test/integration/tools/system/package_manager_test.py::test_package_manager_platform[Linux-apt-get]", "conans/test/integration/tools/system/...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Redesign SystemPackageTool interface Changelog: Feature: New tools in `conan.tools.system` for invoking system package managers in recipes. Docs: https://github.com/conan-io/docs/pull/2379 To disc...
4a5b19a75db9225316c8cb022a2dfb9705a2af34
Textualize__textual-214
214
Textualize/textual
null
d7bcd0093809a8ef33db2cb905ca09c724afcc7f
2022-01-18T17:33:59Z
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index e2c607c2f5..e26fb347e6 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -11,3 +11,4 @@ repos: rev: 21.8b0 hooks: - id: black + exclude: ^tests/ diff --git a/Makefile b/Makefile index 80cde06d37..16489186e4 ...
diff --git a/tests/test_css_parse.py b/tests/test_css_parse.py new file mode 100644 index 0000000000..f17a0c3e94 --- /dev/null +++ b/tests/test_css_parse.py @@ -0,0 +1,129 @@ +import pytest +from rich.color import Color, ColorType + +from textual.css.scalar import Scalar, Unit +from textual.css.stylesheet import Styles...
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index e2c607c2f5..e26fb347e6 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -11,3 +11,4 @@ repos: rev: 21.8b0 hooks: - id: black + exclude: ^tests/ diff --git a/Makefile b/Makefile index 80cde06d37..16489186e4 ...
[ { "components": [ { "doc": "Exception indicating a general issue with a CSS duration.", "lines": [ 6, 7 ], "name": "DurationError", "signature": "class DurationError(Exception):", "type": "class" }, { "doc": "Indicates...
[ "tests/test_css_parse.py::TestParseTransition::test_various_duration_formats[20-20.0]", "tests/test_css_parse.py::TestParseTransition::test_various_duration_formats[0.1-0.1]", "tests/test_css_parse.py::TestParseTransition::test_no_delay_specified", "tests/test_css_parse.py::TestParseTransition::test_unknown_e...
[ "tests/test_css_parse.py::TestParseText::test_foreground", "tests/test_css_parse.py::TestParseText::test_background", "tests/test_css_parse.py::TestParseOffset::test_composite_rule[-5.5%-parsed_x0--30%-parsed_y0]", "tests/test_css_parse.py::TestParseOffset::test_composite_rule[5%-parsed_x1-40%-parsed_y1]", ...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Splitting out parsing of durations into new token types, avoiding Scalar {} ---------- </request> There are several new functions or classes that need to be implemented, using the definitions below:...
86e93536b991014e0ea4bf993068202b446bb698
sympy__sympy-22872
22,872
sympy/sympy
1.11
e57dc59d377af3692fcc890876eb49b4f89f3679
2022-01-17T13:44:36Z
diff --git a/.mailmap b/.mailmap index edf341362f5a..f64a28e9c044 100644 --- a/.mailmap +++ b/.mailmap @@ -64,8 +64,6 @@ *Marc-Etienne M.Leveille <protonyc@gmail.com> *Ulrich Hecht <ulrich.hecht@gmail.com> 2torus <boris.ettinger@gmail.com> -<felix.kaiser@fxkr.net> <kaiser.fx@gmail.com> -<fredrik.johansson@gmail.com>...
diff --git a/sympy/core/tests/test_containers.py b/sympy/core/tests/test_containers.py index 0863618ea831..daa1be40a9c4 100644 --- a/sympy/core/tests/test_containers.py +++ b/sympy/core/tests/test_containers.py @@ -3,12 +3,14 @@ from sympy.core.basic import Basic from sympy.core.containers import (Dict, Tuple) from ...
diff --git a/.mailmap b/.mailmap index edf341362f5a..f64a28e9c044 100644 --- a/.mailmap +++ b/.mailmap @@ -64,8 +64,6 @@ *Marc-Etienne M.Leveille <protonyc@gmail.com> *Ulrich Hecht <ulrich.hecht@gmail.com> 2torus <boris.ettinger@gmail.com> -<felix.kaiser@fxkr.net> <kaiser.fx@gmail.com> -<fredrik.johansson@gmail.com>...
[ { "components": [ { "doc": "The kind of a Tuple instance.\n\nThe kind of a Tuple is always of :class:`TupleKind` but\nparametrised by the number of elements and the kind of each element.\n\nExamples\n========\n\n>>> from sympy import Tuple, Matrix\n>>> Tuple(1, 2).kind\nTupleKind(NumberKind, Numbe...
[ "test_Tuple", "test_Tuple_contains", "test_Tuple_concatenation", "test_Tuple_equality", "test_Tuple_Eq", "test_Tuple_comparision", "test_Tuple_tuple_count", "test_Tuple_index", "test_Tuple_mul", "test_tuple_wrapper", "test_iterable_is_sequence", "test_TupleKind", "test_Dict", "test_MatrixS...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Created SetKind for Set class #22860 <!-- Your title above should be a short description of what was changed. Do not include the issue number in the title. --> #### References to other Issues or ...
edf24253833ca153cb6d29ae54092ecebe29614c
conan-io__conan-10310
10,310
conan-io/conan
null
f73ada4ca23bfc0c65c944af0b8acb450fe68111
2022-01-11T12:08:21Z
diff --git a/conan/tools/microsoft/__init__.py b/conan/tools/microsoft/__init__.py index 1c0422e0070..155beb03d31 100644 --- a/conan/tools/microsoft/__init__.py +++ b/conan/tools/microsoft/__init__.py @@ -1,5 +1,5 @@ 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 78f0cb959c3..f6aab1c5dff 100644 --- a/conans/test/unittests/tools/microsoft/test_msbuild.py +++ b/conans/test/unittests/tools/microsoft/test_msbuild.py @@ -4,7 +4,7 @@ import pytest from mo...
[ { "components": [ { "doc": "Validate if current compiler in setttings is 'Visual Studio' or 'msvc'\n:param conanfile: ConanFile instance\n:return: True, if the host compiler is related to Visual Studio, otherwise, False.", "lines": [ 177, 183 ], "name": ...
[ "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_msbu...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Validate if settings.compiler is related to Visual Studio Add a new helper to simplify and avoid method copies in Conan Center Index Changelog: Feature: Add `is_msvc` to validate if `settings.compi...
Here is the discussion in the issues of the pull request. <issues> [feature] Tool: is_msvc helper Our friend and great contributor SpaceIm is using a new detection which I believe could be part of the mainstream: ```python @property def _is_msvc(self): return str(self.settings.compiler) in ["Visual Studio", "...
4a5b19a75db9225316c8cb022a2dfb9705a2af34
Textualize__rich-1816
1,816
Textualize/rich
null
d65c3bd53da234a4047c469aa7740e03d1a622f7
2022-01-07T15:04:11Z
diff --git a/CHANGELOG.md b/CHANGELOG.md index abe01b9d04..5350b9f386 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,13 +5,16 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semant...
diff --git a/tests/_card_render.py b/tests/_card_render.py index 232191da0f..ac8d7d42df 100644 --- a/tests/_card_render.py +++ b/tests/_card_render.py @@ -1,1 +1,1 @@ -expected = """\x1b[3m Rich features \x1b[0m\n\x1b[1;31m ...
diff --git a/CHANGELOG.md b/CHANGELOG.md index abe01b9d04..5350b9f386 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,13 +5,16 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semant...
[ { "components": [ { "doc": "Aligns lines to top (adds extra lines to bottom as required).\n\n Args:\n lines (List[List[Segment]]): A list of lines.\n width (int): Desired width.\n height (int, optional): Desired height or None for no change.\n sty...
[ "tests/test_log.py::test_log", "tests/test_segment.py::test_align_top", "tests/test_segment.py::test_align_middle", "tests/test_segment.py::test_align_bottom", "tests/test_table.py::test_vertical_align_top" ]
[ "tests/test_log.py::test_log_caller_frame_info", "tests/test_log.py::test_justify", "tests/test_segment.py::test_repr", "tests/test_segment.py::test_line", "tests/test_segment.py::test_apply_style", "tests/test_segment.py::test_split_lines", "tests/test_segment.py::test_split_and_crop_lines", "tests/t...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Table vertical align Add `vertical_align` parameter to `Table.add_column` ---------- </request> There are several new functions or classes that need to be implemented, using the definitions below: ...
b0661de34bab35af9b4b1d3ba8e28b186b225e84
pydata__xarray-6135
6,135
pydata/xarray
0.20
48290fa14accd3ac87768d3f73d69493b82b0be6
2022-01-04T15:28:16Z
diff --git a/doc/whats-new.rst b/doc/whats-new.rst index a8cd952609c..6c71407cd46 100644 --- a/doc/whats-new.rst +++ b/doc/whats-new.rst @@ -19,9 +19,15 @@ What's New v2022.02.0 (unreleased) ----------------------- + New Features ~~~~~~~~~~~~ +- Enabled multiplying tick offsets by floats. Allows ``float`` ``n``...
diff --git a/xarray/tests/test_cftime_offsets.py b/xarray/tests/test_cftime_offsets.py index 4f94b35e3c3..3879959675f 100644 --- a/xarray/tests/test_cftime_offsets.py +++ b/xarray/tests/test_cftime_offsets.py @@ -18,6 +18,7 @@ QuarterBegin, QuarterEnd, Second, + Tick, YearBegin, YearEnd, ...
diff --git a/doc/whats-new.rst b/doc/whats-new.rst index a8cd952609c..6c71407cd46 100644 --- a/doc/whats-new.rst +++ b/doc/whats-new.rst @@ -19,9 +19,15 @@ What's New v2022.02.0 (unreleased) ----------------------- + New Features ~~~~~~~~~~~~ +- Enabled multiplying tick offsets by floats. Allows ``float`` ``n``...
[ { "components": [ { "doc": "", "lines": [ 177, 208 ], "name": "Tick", "signature": "class Tick(BaseCFTimeOffset):", "type": "class" }, { "doc": "", "lines": [ 180, 193 ], "na...
[ "xarray/tests/test_cftime_offsets.py::test_cftime_offset_constructor_valid_n[<BaseCFTimeOffset:", "xarray/tests/test_cftime_offsets.py::test_cftime_offset_constructor_valid_n[<YearBegin:", "xarray/tests/test_cftime_offsets.py::test_cftime_offset_constructor_valid_n[<YearEnd:", "xarray/tests/test_cftime_offset...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Implement multiplication of cftime Tick offsets by floats <!-- Feel free to remove check-list items aren't relevant to your change --> - [x] Closes #6134 - [x] Tests added - [x] User visible cha...
Here is the discussion in the issues of the pull request. <issues> [FEATURE]: `CFTimeIndex.shift(float)` ### Is your feature request related to a problem? `CFTimeIndex.shift()` allows only `int` but sometimes I'd like to shift by a float e.g. 0.5. For small freqs, that shouldnt be a problem as `pd.Timedelta` allows...
48290fa14accd3ac87768d3f73d69493b82b0be6
scikit-learn__scikit-learn-22118
22,118
scikit-learn/scikit-learn
1.1
142e388fa004e3367fdfc0be4a194be0d0c61c8c
2022-01-03T04:27:26Z
diff --git a/doc/modules/classes.rst b/doc/modules/classes.rst index b7000bcf7cbb2..c3e6c4f2f674b 100644 --- a/doc/modules/classes.rst +++ b/doc/modules/classes.rst @@ -996,6 +996,8 @@ details. metrics.mean_tweedie_deviance metrics.d2_tweedie_score metrics.mean_pinball_loss + metrics.d2_pinball_score + ...
diff --git a/sklearn/metrics/tests/test_common.py b/sklearn/metrics/tests/test_common.py index dfd43ef34096f..1e627f9f86676 100644 --- a/sklearn/metrics/tests/test_common.py +++ b/sklearn/metrics/tests/test_common.py @@ -30,6 +30,8 @@ from sklearn.metrics import confusion_matrix from sklearn.metrics import coverage_e...
diff --git a/doc/modules/classes.rst b/doc/modules/classes.rst index b7000bcf7cbb2..c3e6c4f2f674b 100644 --- a/doc/modules/classes.rst +++ b/doc/modules/classes.rst @@ -996,6 +996,8 @@ details. metrics.mean_tweedie_deviance metrics.d2_tweedie_score metrics.mean_pinball_loss + metrics.d2_pinball_score + ...
[ { "components": [ { "doc": ":math:`D^2` regression score function, fraction of pinball loss explained.\n\nBest possible score is 1.0 and it can be negative (because the model can be\narbitrarily worse). A model that always uses the empirical alpha-quantile of\n`y_true` as constant prediction, disr...
[ "sklearn/metrics/tests/test_common.py::test_symmetry_consistency", "sklearn/metrics/tests/test_common.py::test_symmetric_metric[accuracy_score]", "sklearn/metrics/tests/test_common.py::test_symmetric_metric[cohen_kappa_score]", "sklearn/metrics/tests/test_common.py::test_symmetric_metric[f1_score]", "sklear...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> ENH add D2 pinbal score and D2 absolute error score <!-- Thanks for contributing a pull request! Please ensure you have taken a look at the contribution guidelines: https://github.com/scikit-learn/s...
38ff5be25d0164bf9598bcfdde3b791ad6e261b0
RDFLib__rdflib-1624
1,624
RDFLib/rdflib
null
292a6bcb739ae21a30cdc9a926e74744b943643f
2021-12-28T13:42:12Z
diff --git a/rdflib/plugins/sparql/__init__.py b/rdflib/plugins/sparql/__init__.py index eb9230bf1..97d8c56aa 100644 --- a/rdflib/plugins/sparql/__init__.py +++ b/rdflib/plugins/sparql/__init__.py @@ -35,7 +35,7 @@ from . import operators from . import parserutils -from .processor import prepareQuery, processUpdate...
diff --git a/test/test_sparql_prepare.py b/test/test_sparql_prepare.py new file mode 100644 index 000000000..3a0f51324 --- /dev/null +++ b/test/test_sparql_prepare.py @@ -0,0 +1,43 @@ +import os +from rdflib.plugins.sparql import prepareUpdate, prepareQuery +from rdflib.namespace import FOAF +from rdflib import ( + ...
[ { "components": [ { "doc": "Parse and translate a SPARQL Update", "lines": [ 29, 35 ], "name": "prepareUpdate", "signature": "def prepareUpdate(updateString, initNs={}, base=None):", "type": "function" } ], "file": "rdflib/p...
[ "test/test_sparql_prepare.py::test_prepare_update", "test/test_sparql_prepare.py::test_prepare_query" ]
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Feature prepareupdate Fixes #272 Slightly speculative, other option is close #272 with `wontfix` ## Proposed Changes Basically, follow the pattern established in `prepareQuery` - Create an U...
Here is the discussion in the issues of the pull request. <issues> prepareUpdate method for pre-parsing SPARQL update statements i.e. matching prepareQuery ---------- -------------------- </issues>
0c11debb5178157baeac27b735e49a757916d2a6
boto__botocore-2579
2,579
boto/botocore
null
63107d6f1fbf8a53b23dbf19f49ff849501c8ffd
2021-12-21T21:23:56Z
diff --git a/.changes/next-release/enhancement-JSONFileCache-35511.json b/.changes/next-release/enhancement-JSONFileCache-35511.json new file mode 100644 index 0000000000..115af241fa --- /dev/null +++ b/.changes/next-release/enhancement-JSONFileCache-35511.json @@ -0,0 +1,5 @@ +{ + "type": "enhancement", + "category"...
diff --git a/tests/unit/test_credentials.py b/tests/unit/test_credentials.py index ec9eb97988..08add9b0fd 100644 --- a/tests/unit/test_credentials.py +++ b/tests/unit/test_credentials.py @@ -17,7 +17,9 @@ import tempfile import shutil +import pytest from dateutil.tz import tzlocal, tzutc +from pathlib import Path ...
diff --git a/.changes/next-release/enhancement-JSONFileCache-35511.json b/.changes/next-release/enhancement-JSONFileCache-35511.json new file mode 100644 index 0000000000..115af241fa --- /dev/null +++ b/.changes/next-release/enhancement-JSONFileCache-35511.json @@ -0,0 +1,5 @@ +{ + "type": "enhancement", + "category"...
[ { "components": [ { "doc": "", "lines": [ 311, 317 ], "name": "JSONFileCache.__delitem__", "signature": "def __delitem__(self, cache_key):", "type": "function" } ], "file": "botocore/credentials.py" } ]
[ "tests/unit/test_credentials.py::TestJSONCache::test_can_delete_existing_values", "tests/unit/test_credentials.py::TestJSONCache::test_can_delete_missing_values" ]
[ "tests/unit/test_credentials.py::TestCredentials::test_detect_nonascii_character", "tests/unit/test_credentials.py::TestCredentials::test_unicode_input", "tests/unit/test_credentials.py::TestRefreshableCredentials::test_detect_nonascii_character", "tests/unit/test_credentials.py::TestRefreshableCredentials::t...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add __delitem__ functionality to JSONFileCache This PR should address #2255 by adding the ability to programatically remove keys (and files) from the [JSONFileCache](https://github.com/boto/botocore/b...
5e4b564dd0f9aab16a404251ebd3e675c9681492
sympy__sympy-22713
22,713
sympy/sympy
1.11
d7bddf4f882fe5887638cf3336e7b2f4e989020b
2021-12-19T18:06:05Z
diff --git a/sympy/algebras/quaternion.py b/sympy/algebras/quaternion.py index 2786da640873..c05360595809 100644 --- a/sympy/algebras/quaternion.py +++ b/sympy/algebras/quaternion.py @@ -3,12 +3,13 @@ from sympy.functions.elementary.complexes import (conjugate, im, re, sign) from sympy.functions.elementary.exponentia...
diff --git a/sympy/algebras/tests/test_quaternion.py b/sympy/algebras/tests/test_quaternion.py index 5fb6e08efe0f..82ba57eaab5b 100644 --- a/sympy/algebras/tests/test_quaternion.py +++ b/sympy/algebras/tests/test_quaternion.py @@ -5,7 +5,7 @@ from sympy.functions.elementary.complexes import (Abs, conjugate, im, re, si...
[ { "components": [ { "doc": "Returns scalar part($\\mathbf{S}(q)$) of the quaternion q.\n\nExplanation\n===========\n\nGiven a quaternion $q = a + bi + cj + dk$, returns $\\mathbf{S}(q) = a$.\n\nExamples\n========\n\n>>> from sympy.algebras.quaternion import Quaternion\n>>> q = Quaternion(4, 8, 13,...
[ "test_quaternion_functions" ]
[ "test_quaternion_construction", "test_quaternion_axis_angle", "test_quaternion_axis_angle_simplification", "test_quaternion_complex_real_addition", "test_quaternion_evalf", "test_quaternion_conversions", "test_quaternion_rotation_iss1593", "test_quaternion_multiplication" ]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Quaternion - added Hamilton's "operators" for Quaternion class <!-- Your title above should be a short description of what was changed. Do not include the issue number in the title. --> #### Refer...
edf24253833ca153cb6d29ae54092ecebe29614c
sympy__sympy-22705
22,705
sympy/sympy
1.10
3ff4717b6aef6086e78f01cdfa06f64ae23aed7e
2021-12-18T21:04:49Z
diff --git a/sympy/printing/latex.py b/sympy/printing/latex.py index b2c7850be457..a8a69cd53623 100644 --- a/sympy/printing/latex.py +++ b/sympy/printing/latex.py @@ -2254,6 +2254,10 @@ def _print_ConditionSet(self, s): self._print(s.base_set), self._print(s.condition)) + def _print_Power...
diff --git a/sympy/printing/tests/test_latex.py b/sympy/printing/tests/test_latex.py index 8934fe5c3049..99eb1c68b75e 100644 --- a/sympy/printing/tests/test_latex.py +++ b/sympy/printing/tests/test_latex.py @@ -61,6 +61,8 @@ from sympy.sets.conditionset import ConditionSet from sympy.sets.contains import Contains fr...
[ { "components": [ { "doc": "", "lines": [ 2257, 2259 ], "name": "LatexPrinter._print_PowerSet", "signature": "def _print_PowerSet(self, expr):", "type": "function" }, { "doc": "", "lines": [ 2392, ...
[ "test_latex_powerset", "test_latex_ordinals" ]
[ "test_printmethod", "test_latex_basic", "test_latex_builtins", "test_latex_SingularityFunction", "test_latex_cycle", "test_latex_permutation", "test_latex_Float", "test_latex_vector_expressions", "test_latex_symbols", "test_latex_functions", "test_function_subclass_different_name", "test_hyper...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Added LaTeX printing for PowerSet and ordinals <!-- Your title above should be a short description of what was changed. Do not include the issue number in the title. --> #### References to other I...
3e8695add7a25c8d70aeba7d6137496df02863fd
matplotlib__matplotlib-21977
21,977
matplotlib/matplotlib
3.5
ac2a14581949bcf869e969f28a21ee479d2fc250
2021-12-16T13:31:39Z
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...
[ { "components": [ { "doc": "Return the corners of the rectangle, moving anti-clockwise from\n(x0, y0).", "lines": [ 805, 811 ], "name": "Rectangle.get_corners", "signature": "def get_corners(self):", "type": "function" }, { ...
[ "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]"...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add corner coordinate helper methods to Ellipse/Rectangle ## PR Summary This is pulled out of https://github.com/matplotlib/matplotlib/pull/21945 because it's a standalone feature, and I think it's w...
3d6c3da884fafae4654df68144391cfe9be6f134
Textualize__rich-1759
1,759
Textualize/rich
null
9f43cccfce3b39b8ac637b4e8cdfe2f0946e9c23
2021-12-15T16:18:18Z
diff --git a/CHANGELOG.md b/CHANGELOG.md index 596bd99779..d3967faec4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,7 +5,11 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semanti...
diff --git a/tests/test_progress.py b/tests/test_progress.py index db2e825d3a..d3c6171c9c 100644 --- a/tests/test_progress.py +++ b/tests/test_progress.py @@ -1,11 +1,14 @@ # encoding=utf-8 import io +import os +import tempfile from time import sleep from types import SimpleNamespace import pytest +import ri...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 596bd99779..d3967faec4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,7 +5,11 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semanti...
[ { "components": [ { "doc": "A reader that tracks progress while it's being read from.", "lines": [ 171, 260 ], "name": "_Reader", "signature": "class _Reader(RawIOBase, BinaryIO):", "type": "class" }, { "doc": "", ...
[ "tests/test_progress.py::test_open", "tests/test_progress.py::test_open_text_mode", "tests/test_progress.py::test_wrap_file", "tests/test_progress.py::test_wrap_file_task_total" ]
[ "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_compact_time_remaining_column[None---:--]", "tests/test_progress.py::test_compact_...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add API to support tracking progress while reading from a file ## Type of changes - [ ] Bug fix - [x] New feature - [ ] Documentation / docstrings - [ ] Tests - [ ] Other ## Checklist - [...
b0661de34bab35af9b4b1d3ba8e28b186b225e84
matplotlib__matplotlib-21962
21,962
matplotlib/matplotlib
3.5
b57506eb00afa4b09cda023e4d76ed06ca976217
2021-12-15T11:24:54Z
diff --git a/doc/api/next_api_changes/deprecations/21962-AL.rst b/doc/api/next_api_changes/deprecations/21962-AL.rst new file mode 100644 index 000000000000..e5ddab747b48 --- /dev/null +++ b/doc/api/next_api_changes/deprecations/21962-AL.rst @@ -0,0 +1,5 @@ +``backend_pgf`` +~~~~~~~~~~~~~~~ +The following API elements ...
diff --git a/lib/matplotlib/tests/test_backend_pgf.py b/lib/matplotlib/tests/test_backend_pgf.py index 9b5b0b28ee3f..db094f1d0a8d 100644 --- a/lib/matplotlib/tests/test_backend_pgf.py +++ b/lib/matplotlib/tests/test_backend_pgf.py @@ -11,7 +11,7 @@ import matplotlib.pyplot as plt from matplotlib.testing import _has_t...
diff --git a/doc/api/next_api_changes/deprecations/21962-AL.rst b/doc/api/next_api_changes/deprecations/21962-AL.rst new file mode 100644 index 000000000000..e5ddab747b48 --- /dev/null +++ b/doc/api/next_api_changes/deprecations/21962-AL.rst @@ -0,0 +1,5 @@ +``backend_pgf`` +~~~~~~~~~~~~~~~ +The following API elements ...
[ { "components": [ { "doc": "", "lines": [ 40, 44 ], "name": "__getattr__", "signature": "class __getattr__:", "type": "class" }, { "doc": "Prepare a LaTeX preamble based on the rcParams configuration.", "lines"...
[ "lib/matplotlib/tests/test_backend_pgf.py::test_tex_escape[quad_sum:", "lib/matplotlib/tests/test_backend_pgf.py::test_tex_escape[no", "lib/matplotlib/tests/test_backend_pgf.py::test_tex_escape[with_underscores-with\\\\_underscores]", "lib/matplotlib/tests/test_backend_pgf.py::test_tex_escape[%", "lib/matpl...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Privatize various internal APIs of backend_pgf. ... and merge the now private get_preamble and get_fontspec together. ## PR Summary ## PR Checklist <!-- Please mark any checkboxes that do not...
3d6c3da884fafae4654df68144391cfe9be6f134
sympy__sympy-22661
22,661
sympy/sympy
1.10
81cd2630631e315586f796646a7f9268e71bf484
2021-12-13T09:44:19Z
diff --git a/sympy/printing/latex.py b/sympy/printing/latex.py index c748ebbf5d62..c370bc216353 100644 --- a/sympy/printing/latex.py +++ b/sympy/printing/latex.py @@ -2029,7 +2029,7 @@ def _print_RandomDomain(self, d): if hasattr(d, 'as_boolean'): return '\\text{Domain: }' + self._print(d.as_boole...
diff --git a/sympy/printing/pretty/tests/test_pretty.py b/sympy/printing/pretty/tests/test_pretty.py index 35f4a89046d5..5d19d704fe8d 100644 --- a/sympy/printing/pretty/tests/test_pretty.py +++ b/sympy/printing/pretty/tests/test_pretty.py @@ -66,6 +66,9 @@ from sympy.sets import ImageSet, ProductSet from sympy.sets...
[ { "components": [ { "doc": "", "lines": [ 2473, 2474 ], "name": "LatexPrinter._print_Expectation", "signature": "def _print_Expectation(self, expr):", "type": "function" }, { "doc": "", "lines": [ 247...
[ "test_diffgeom_print_WedgeProduct", "test_symbolic_probability", "test_latex_RandomDomain", "test_latex_symbolic_probability" ]
[ "test_pretty_ascii_str", "test_pretty_unicode_str", "test_upretty_greek", "test_upretty_multiindex", "test_upretty_sub_super", "test_upretty_subs_missing_in_24", "test_missing_in_2X_issue_9047", "test_upretty_modifiers", "test_pretty_Cycle", "test_pretty_Permutation", "test_pretty_basic", "tes...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> LaTeX and pretty printing for symbolic statistics <!-- Your title above should be a short description of what was changed. Do not include the issue number in the title. --> #### References to othe...
3e8695add7a25c8d70aeba7d6137496df02863fd
RDFLib__rdflib-1502
1,502
RDFLib/rdflib
null
4f3b499c80f6d7de127cbf07e8f6b1b50789a087
2021-12-13T00:54:19Z
diff --git a/rdflib/graph.py b/rdflib/graph.py index 87097b1c9..da18a2554 100644 --- a/rdflib/graph.py +++ b/rdflib/graph.py @@ -1528,6 +1528,59 @@ 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..9d02f7c50 --- /dev/null +++ b/test/test_graph_cbd.py @@ -0,0 +1,111 @@ +import pytest +from rdflib import Graph, Namespace + + +"""Tests the Graph class' cbd() function""" + +EX = Namespace("http://ex/") + + +@pytest.fixt...
[ { "components": [ { "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 particular RDF graph (the source graph), a subgraph of that\nparticular graph, taken to co...
[ "test/test_graph_cbd.py::testCbd", "test/test_graph_cbd.py::testCbdReified" ]
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Re-make of nicholascar's “Concise Bounded Description” PR #968 ... which, depite the Github record [1] _didn't_ actually make it into master. [1] https://github.com/RDFLib/rdflib/pull/968/commits/a7...
0c11debb5178157baeac27b735e49a757916d2a6
matplotlib__matplotlib-21935
21,935
matplotlib/matplotlib
3.5
1535cdc3500762088e53178efc22956365dcdac7
2021-12-12T22:40:31Z
diff --git a/lib/matplotlib/artist.py b/lib/matplotlib/artist.py index 20172a286503..a0888fa4ddda 100644 --- a/lib/matplotlib/artist.py +++ b/lib/matplotlib/artist.py @@ -320,23 +320,6 @@ def get_window_extent(self, renderer): """ return Bbox([[0, 0], [0, 0]]) - def _get_clipping_extent_bbox(self...
diff --git a/lib/matplotlib/tests/test_tightlayout.py b/lib/matplotlib/tests/test_tightlayout.py index e9b01b160da1..43ebd535be2b 100644 --- a/lib/matplotlib/tests/test_tightlayout.py +++ b/lib/matplotlib/tests/test_tightlayout.py @@ -342,3 +342,27 @@ def test_manual_colorbar(): fig.colorbar(pts, cax=cax) wit...
[ { "components": [ { "doc": "Return a boolean flag, ``True`` if the artist is clipped to the axes\nand can thus be skipped in layout calculations. Requires `get_clip_on`\nis True, one of `clip_box` or `clip_path` is set, ``clip_box.extents``\nis equivalent to ``ax.bbox.extents`` (if set), and ``cli...
[ "lib/matplotlib/tests/test_tightlayout.py::test_clipped_to_axes" ]
[ "lib/matplotlib/tests/test_tightlayout.py::test_tight_layout1[png]", "lib/matplotlib/tests/test_tightlayout.py::test_tight_layout2[png]", "lib/matplotlib/tests/test_tightlayout.py::test_tight_layout3[png]", "lib/matplotlib/tests/test_tightlayout.py::test_tight_layout4[png]", "lib/matplotlib/tests/test_tight...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Significantly improve tight layout performance for cartopy axes This PR is adapted from SciTools/cartopy#1956 following our discussion there. ## Summary This PR significantly improves the speed ...
3d6c3da884fafae4654df68144391cfe9be6f134
rytilahti__python-miio-1236
1,236
rytilahti/python-miio
null
4342e3df10af78a508796ac44ab9f04986e535dd
2021-12-12T16:47:54Z
diff --git a/miio/integrations/vacuum/roborock/vacuum.py b/miio/integrations/vacuum/roborock/vacuum.py index 657f2191f..de6e67bf3 100644 --- a/miio/integrations/vacuum/roborock/vacuum.py +++ b/miio/integrations/vacuum/roborock/vacuum.py @@ -114,6 +114,15 @@ class MopMode(enum.Enum): Deep = 301 +class MopIntens...
diff --git a/miio/integrations/vacuum/roborock/tests/test_vacuum.py b/miio/integrations/vacuum/roborock/tests/test_vacuum.py index d08d8a586..433062b1a 100644 --- a/miio/integrations/vacuum/roborock/tests/test_vacuum.py +++ b/miio/integrations/vacuum/roborock/tests/test_vacuum.py @@ -7,7 +7,13 @@ from miio import Robo...
[ { "components": [ { "doc": "Mop scrub intensity on S7.", "lines": [ 117, 123 ], "name": "MopIntensity", "signature": "class MopIntensity(enum.Enum):", "type": "class" }, { "doc": "Get mop scrub intensity setting.", ...
[ "miio/integrations/vacuum/roborock/tests/test_vacuum.py::TestVacuum::test_carpet_cleaning_mode", "miio/integrations/vacuum/roborock/tests/test_vacuum.py::TestVacuum::test_goto", "miio/integrations/vacuum/roborock/tests/test_vacuum.py::TestVacuum::test_history", "miio/integrations/vacuum/roborock/tests/test_va...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add Roborock S7 mop scrub intensity The Roborock S7 has the option to control the scrub intensity with four different settings: - Close (raised position) - Mild - Moderate - Intense The way t...
62427d2f796e603520acca3b57b29ec3e6489bca
conan-io__conan-10154
10,154
conan-io/conan
null
51a077458b697dcd39e5eb64f1d33a6c52584081
2021-12-10T13:11:56Z
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...
[ { "components": [ { "doc": "Return the absolute path to the symlink files in base_folder", "lines": [ 4, 10 ], "name": "get_symlinks", "signature": "def get_symlinks(base_folder):", "type": "function" }, { "doc": "", ...
[ "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" ]
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Ported symlinks tools from #10125 Changelog: Feature: Provided several `conan.tools.files` functions to manage symlinks: Transform absolute to relative symlinks, remove broken symlinks, remove externa...
4a5b19a75db9225316c8cb022a2dfb9705a2af34
pydata__xarray-6059
6,059
pydata/xarray
0.20
8f42bfd3a5fd0b1a351b535be207ed4771b02c8b
2021-12-10T01:11:36Z
diff --git a/doc/api.rst b/doc/api.rst index d2c222da4db..7fdd775e168 100644 --- a/doc/api.rst +++ b/doc/api.rst @@ -944,6 +944,7 @@ Dataset DatasetWeighted DatasetWeighted.mean + DatasetWeighted.quantile DatasetWeighted.sum DatasetWeighted.std DatasetWeighted.var @@ -958,6 +959,7 @@ DataArray ...
diff --git a/xarray/tests/test_weighted.py b/xarray/tests/test_weighted.py index 1f065228bc4..63dd1ec0c94 100644 --- a/xarray/tests/test_weighted.py +++ b/xarray/tests/test_weighted.py @@ -194,6 +194,160 @@ def test_weighted_mean_no_nan(weights, expected): assert_equal(expected, result) +@pytest.mark.parametri...
diff --git a/doc/api.rst b/doc/api.rst index d2c222da4db..7fdd775e168 100644 --- a/doc/api.rst +++ b/doc/api.rst @@ -944,6 +944,7 @@ Dataset DatasetWeighted DatasetWeighted.mean + DatasetWeighted.quantile DatasetWeighted.sum DatasetWeighted.std DatasetWeighted.var @@ -958,6 +959,7 @@ DataArray ...
[ { "components": [ { "doc": "Apply a weighted ``quantile`` to a DataArray along some dimension(s).", "lines": [ 311, 444 ], "name": "Weighted._weighted_quantile", "signature": "def _weighted_quantile( self, da: DataArray, q: ArrayLike, dim: Hashab...
[ "xarray/tests/test_weighted.py::test_weighted_quantile_no_nan[weights0-expected0]", "xarray/tests/test_weighted.py::test_weighted_quantile_no_nan[weights1-expected1]", "xarray/tests/test_weighted.py::test_weighted_quantile_zero_weights", "xarray/tests/test_weighted.py::test_weighted_quantile_simple", "xarra...
[ "xarray/tests/test_weighted.py::test_weighted_non_DataArray_weights[True]", "xarray/tests/test_weighted.py::test_weighted_non_DataArray_weights[False]", "xarray/tests/test_weighted.py::test_weighted_weights_nan_raises[weights0-True]", "xarray/tests/test_weighted.py::test_weighted_weights_nan_raises[weights0-F...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Weighted quantile - [x] Tests added - [x] Passes `pre-commit run --all-files` - [x] User visible changes (including notable bug fixes) are documented in `whats-new.rst` - [x] New functions/methods ...
48290fa14accd3ac87768d3f73d69493b82b0be6
Project-MONAI__MONAI-3456
3,456
Project-MONAI/MONAI
null
4b5ad0b3dc926c17d9478ae53f42da7949a2c3e0
2021-12-08T11:12:14Z
diff --git a/docs/source/data.rst b/docs/source/data.rst index 0ab64edb7b..e8c68de853 100644 --- a/docs/source/data.rst +++ b/docs/source/data.rst @@ -21,6 +21,12 @@ Generic Interfaces :members: :special-members: __next__ +`DatasetFunc` +~~~~~~~~~~~~~ +.. autoclass:: DatasetFunc + :members: + :special-members...
diff --git a/tests/test_dataset_func.py b/tests/test_dataset_func.py new file mode 100644 index 0000000000..b3f6b95403 --- /dev/null +++ b/tests/test_dataset_func.py @@ -0,0 +1,52 @@ +# Copyright 2020 - 2021 MONAI Consortium +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file...
diff --git a/docs/source/data.rst b/docs/source/data.rst index 0ab64edb7b..e8c68de853 100644 --- a/docs/source/data.rst +++ b/docs/source/data.rst @@ -21,6 +21,12 @@ Generic Interfaces :members: :special-members: __next__ +`DatasetFunc` +~~~~~~~~~~~~~ +.. autoclass:: DatasetFunc + :members: + :special-members...
[ { "components": [ { "doc": "Execute function on the input dataset and leverage the output to act as a new Dataset.\nIt can be used to load / fetch the basic dataset items, like the list of `image, label` paths.\nOr chain together to execute more complicated logic, like `partition_dataset`, `resamp...
[ "tests/test_dataset_func.py::TestDatasetFunc::test_seg_values", "tests/test_scale_intensity_range_percentilesd.py::TestScaleIntensityRangePercentilesd::test_invalid_instantiation", "tests/test_scale_intensity_range_percentilesd.py::TestScaleIntensityRangePercentilesd::test_relative_scaling", "tests/test_scale...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> 3444 Add DatasetFunc Fixes #3444 . ### Description Thanks for @wyli 's sharing, this PR added the `DatasetFunc` referring to: https://github.com/webdataset/webdataset/blob/master/notebooks/howitw...
Here is the discussion in the issues of the pull request. <issues> Add DecathlonDatalist to enhance decathlon style loading **Is your feature request related to a problem? Please describe.** Currently, we already have several useful utilities to load or sample the decathlon datalist, would be nice to add a class to co...
e73257caa79309dcce1e93abf1632f4bfd75b11f
huggingface__datasets-3387
3,387
huggingface/datasets
null
d3c7b9481d427ce41256edaf6773c47570f06f3b
2021-12-06T07:56:07Z
diff --git a/src/datasets/tasks/__init__.py b/src/datasets/tasks/__init__.py index f3053c2cfdf..7ff448b72e4 100644 --- a/src/datasets/tasks/__init__.py +++ b/src/datasets/tasks/__init__.py @@ -4,29 +4,32 @@ from .automatic_speech_recognition import AutomaticSpeechRecognition from .base import TaskTemplate from .imag...
diff --git a/tests/test_tasks.py b/tests/test_tasks.py index 118b2872d65..7fbf5ce1007 100644 --- a/tests/test_tasks.py +++ b/tests/test_tasks.py @@ -7,6 +7,7 @@ from datasets.tasks import ( AutomaticSpeechRecognition, ImageClassification, + LanguageModeling, QuestionAnsweringExtractive, Summariz...
[ { "components": [ { "doc": "", "lines": [ 9, 18 ], "name": "LanguageModeling", "signature": "class LanguageModeling(TaskTemplate):", "type": "class" }, { "doc": "", "lines": [ 17, 18 ...
[ "tests/test_tasks.py::TestLanguageModeling::test_column_mapping", "tests/test_tasks.py::TestLanguageModeling::test_from_dict", "tests/test_tasks.py::TextClassificationTest::test_column_mapping", "tests/test_tasks.py::TextClassificationTest::test_from_dict", "tests/test_tasks.py::TextClassificationTest::test...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Create Language Modeling task Create Language Modeling task to be able to specify the input "text" column in a dataset. This can be useful for datasets which are not exclusively used for language m...
5142a8cf61d8a4495eda3d91dc4283a6df01ea14
rytilahti__python-miio-1191
1,191
rytilahti/python-miio
null
9ba55a9e33ced679449a98567929598d1461987a
2021-11-28T23:52:53Z
diff --git a/miio/__init__.py b/miio/__init__.py index 5d6bf97c4..a78538e75 100644 --- a/miio/__init__.py +++ b/miio/__init__.py @@ -43,7 +43,7 @@ from miio.integrations.petwaterdispenser import PetWaterDispenser from miio.integrations.vacuum.dreame.dreamevacuum_miot import DreameVacuumMiot from miio.integrations.va...
diff --git a/miio/integrations/vacuum/roborock/tests/test_vacuum.py b/miio/integrations/vacuum/roborock/tests/test_vacuum.py index 3a25c47f5..d08d8a586 100644 --- a/miio/integrations/vacuum/roborock/tests/test_vacuum.py +++ b/miio/integrations/vacuum/roborock/tests/test_vacuum.py @@ -4,13 +4,13 @@ import pytest -f...
diff --git a/pyproject.toml b/pyproject.toml index 9165b1b9e..10e238084 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -13,7 +13,7 @@ packages = [ keywords = ["xiaomi", "miio", "miot", "smart home"] [tool.poetry.scripts] -mirobo = "miio.integrations.roborock.vacuum_cli:cli" +mirobo = "miio.integrations.vacuum....
[ { "components": [ { "doc": "Main class for roborock vacuums (roborock.vacuum.*).", "lines": [ 144, 889 ], "name": "RoborockVacuum", "signature": "class RoborockVacuum(Device):", "type": "class" }, { "doc": "", ...
[ "miio/integrations/vacuum/roborock/tests/test_vacuum.py::TestVacuum::test_carpet_cleaning_mode", "miio/integrations/vacuum/roborock/tests/test_vacuum.py::TestVacuum::test_goto", "miio/integrations/vacuum/roborock/tests/test_vacuum.py::TestVacuum::test_history", "miio/integrations/vacuum/roborock/tests/test_va...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Deprecate roborock specific miio.Vacuum In order to make `Vacuum` as a usable base class for all vacuum implementations in the future, let's inform potential downstream users to convert their code to ...
62427d2f796e603520acca3b57b29ec3e6489bca
scikit-learn__scikit-learn-21701
21,701
scikit-learn/scikit-learn
1.1
a794c58692a1f3e7a85a42d8c7f7ddd5fcf18baa
2021-11-17T22:42:33Z
diff --git a/doc/modules/random_projection.rst b/doc/modules/random_projection.rst index adb2d53bd14d6..7d3341f0244bb 100644 --- a/doc/modules/random_projection.rst +++ b/doc/modules/random_projection.rst @@ -160,3 +160,42 @@ projection transformer:: In Proceedings of the 12th ACM SIGKDD international conference on...
diff --git a/sklearn/tests/test_random_projection.py b/sklearn/tests/test_random_projection.py index a3a6b1ae2a49f..4d21090a3e6fb 100644 --- a/sklearn/tests/test_random_projection.py +++ b/sklearn/tests/test_random_projection.py @@ -1,5 +1,6 @@ import functools from typing import List, Any +import warnings import ...
diff --git a/doc/modules/random_projection.rst b/doc/modules/random_projection.rst index adb2d53bd14d6..7d3341f0244bb 100644 --- a/doc/modules/random_projection.rst +++ b/doc/modules/random_projection.rst @@ -160,3 +160,42 @@ projection transformer:: In Proceedings of the 12th ACM SIGKDD international conference on...
[ { "components": [ { "doc": "Compute the pseudo-inverse of the (densified) components.", "lines": [ 338, 343 ], "name": "BaseRandomProjection._compute_inverse_components", "signature": "def _compute_inverse_components(self):", "type": "fun...
[ "sklearn/tests/test_random_projection.py::test_inverse_transform[42-True-SparseRandomProjection-2-2]", "sklearn/tests/test_random_projection.py::test_inverse_transform[42-True-SparseRandomProjection-2-9]", "sklearn/tests/test_random_projection.py::test_inverse_transform[42-True-SparseRandomProjection-2-10]", ...
[ "sklearn/tests/test_random_projection.py::test_invalid_jl_domain[100-1.1]", "sklearn/tests/test_random_projection.py::test_invalid_jl_domain[100-0.0]", "sklearn/tests/test_random_projection.py::test_invalid_jl_domain[100--0.1]", "sklearn/tests/test_random_projection.py::test_invalid_jl_domain[0-0.5]", "skle...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> ENH Add inverse_transform to random projection transformers #### Reference Issues/PRs Fixes #21687 #### What does this implement/fix? Explain your changes. Adds a `fit_inverse_transform` para...
Here is the discussion in the issues of the pull request. <issues> Add inverse_transform() to random projection classes ### Describe the workflow you want to enable `GaussianRandomProjection` and `SparseRandomProjection` should have an `inverse_transform()` method. ### Describe your proposed solution Simply ad...
38ff5be25d0164bf9598bcfdde3b791ad6e261b0
Textualize__rich-1706
1,706
Textualize/rich
null
008854c40772f647dfcb873bc3489e8a1c02d598
2021-11-17T21:21:55Z
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") + ...
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...
[ { "components": [ { "doc": "Create a Text object from pre-formatted ANSI.\n\nArgs:\n text (str): A string containing ANSI color codes.\n style (Union[str, Style], optional): Base style for text. Defaults to \"\".\n justify (str, optional): Justify method: \"left\", \"center\", \"full\", \...
[ "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_...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add a Text.from_ansi helper method Add a simple little helper to run `AnsiDecoder.decode_line` over "pre-cooked" inputs. Fixes issue: #1670 ## Type of changes - [x] Bug fix - [x] New feature...
b0661de34bab35af9b4b1d3ba8e28b186b225e84
sqlfluff__sqlfluff-1917
1,917
sqlfluff/sqlfluff
0.6
b5d67f1c615d6addd9169845617979d4155591fe
2021-11-16T21:03:18Z
diff --git a/src/sqlfluff/core/default_config.cfg b/src/sqlfluff/core/default_config.cfg index 7aa705fa2b6..1805c701b57 100644 --- a/src/sqlfluff/core/default_config.cfg +++ b/src/sqlfluff/core/default_config.cfg @@ -93,3 +93,6 @@ prefer_count_0 = False [sqlfluff:rules:L052] # Semi-colon formatting approach. semicol...
diff --git a/test/rules/std_L054_test.py b/test/rules/std_L054_test.py new file mode 100644 index 00000000000..64e86c67f05 --- /dev/null +++ b/test/rules/std_L054_test.py @@ -0,0 +1,33 @@ +"""Tests the python routines within L054.""" +import sqlfluff + + +def test__rules__std_L054_raised() -> None: + """Test case fo...
diff --git a/src/sqlfluff/core/default_config.cfg b/src/sqlfluff/core/default_config.cfg index 7aa705fa2b6..1805c701b57 100644 --- a/src/sqlfluff/core/default_config.cfg +++ b/src/sqlfluff/core/default_config.cfg @@ -93,3 +93,6 @@ prefer_count_0 = False [sqlfluff:rules:L052] # Semi-colon formatting approach. semicol...
[ { "components": [ { "doc": "Inconsistent column references in GROUP BY/ORDER BY clauses.\n\n| **Anti-pattern**\n| A mix of implicit and explicit column references are used in a GROUP BY clause.\n\n.. code-block:: sql\n :force:\n\n SELECT\n foo,\n bar,\n sum(baz) AS sum_va...
[ "test/rules/std_L054_test.py::test__rules__std_L054_raised" ]
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> New Rule L054: Inconsistent column references in GROUP BY/ORDER BY clauses. <!--Firstly, thanks for adding this feature! Secondly, please check the key steps against the checklist below to make your c...
d3c40ff6539bdb512211ebf137d7fe3ebc9b585c
pylint-dev__pylint-5315
5,315
pylint-dev/pylint
2.11
0089cf3fd2d53b3c547e873bd9f728244d2c594b
2021-11-15T21:29:43Z
diff --git a/ChangeLog b/ChangeLog index 4a8b2eb81a..478b5587a6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -70,6 +70,9 @@ Release date: TBA Closes #3688 +* Added the ``--enable-all-extensions`` command line option. It will load all available extensions + which can be listed by running ``--list-extensions`` + * ...
diff --git a/tests/test_self.py b/tests/test_self.py index a4a3ac7940..8441a5acb0 100644 --- a/tests/test_self.py +++ b/tests/test_self.py @@ -58,7 +58,7 @@ import pytest from py._path.local import LocalPath # type: ignore -from pylint import modify_sys_path +from pylint import extensions, modify_sys_path from py...
diff --git a/ChangeLog b/ChangeLog index 4a8b2eb81a..478b5587a6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -70,6 +70,9 @@ Release date: TBA Closes #3688 +* Added the ``--enable-all-extensions`` command line option. It will load all available extensions + which can be listed by running ``--list-extensions`` + * ...
[ { "components": [ { "doc": "Callback to load and enable all available extensions", "lines": [ 489, 501 ], "name": "Run.cb_enable_all_extensions", "signature": "def cb_enable_all_extensions(self, option_name: str, value: None) -> None:", "...
[ "tests/test_self.py::TestRunTC::test_enable_all_extensions" ]
[ "tests/test_self.py::TestRunTC::test_pkginfo", "tests/test_self.py::TestRunTC::test_all", "tests/test_self.py::TestRunTC::test_no_ext_file", "tests/test_self.py::TestRunTC::test_w0704_ignored", "tests/test_self.py::TestRunTC::test_exit_zero", "tests/test_self.py::TestRunTC::test_generate_config_option", ...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add ``enable-all-extensions`` option - [x] Add yourself to CONTRIBUTORS if you are a new contributor. - [x] Add a ChangeLog entry describing what your PR does. - [x] If it's a new feature, or an imp...
0089cf3fd2d53b3c547e873bd9f728244d2c594b
RDFLib__rdflib-1463
1,463
RDFLib/rdflib
null
a24d5349863254c07476b71aa7554a745c217abf
2021-11-15T11:48:21Z
diff --git a/rdflib/parser.py b/rdflib/parser.py index f0014150f..f7fb4127a 100644 --- a/rdflib/parser.py +++ b/rdflib/parser.py @@ -19,7 +19,6 @@ from urllib.request import Request from urllib.request import url2pathname -from urllib.parse import urljoin from urllib.request import urlopen from urllib.error impor...
diff --git a/test/jsonld/test_pythonparse.py b/test/jsonld/test_pythonparse.py new file mode 100644 index 000000000..2957cb376 --- /dev/null +++ b/test/jsonld/test_pythonparse.py @@ -0,0 +1,76 @@ +from rdflib import Graph +from rdflib.compare import isomorphic +import json + + +def test_wrap(): + """ + Example of...
[ { "components": [ { "doc": "Constructs an RDFLib Parser InputSource from a Python data structure,\nfor example, loaded from JSON with json.load or json.loads:\n\n>>> import json\n>>> as_string = \"\"\"{\n... \"@context\" : {\"ex\" : \"http://example.com/ns#\"},\n... \"@graph\": [{\"@type\": \"...
[ "test/jsonld/test_pythonparse.py::test_wrap" ]
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> RFC: Add PythonInputSource to create py-based graphs In order to manipulate a JSON-LD structure before creating a graph (specifically to simplify rdf:Seq handling), it is currently necessary to use `...
0c11debb5178157baeac27b735e49a757916d2a6
sympy__sympy-22476
22,476
sympy/sympy
1.10
eb0368b128ffd1a418f977b57ed1ba7b9c0d696c
2021-11-12T17:48:33Z
diff --git a/sympy/matrices/expressions/matexpr.py b/sympy/matrices/expressions/matexpr.py index 43d7164b5b09..78db834466e6 100644 --- a/sympy/matrices/expressions/matexpr.py +++ b/sympy/matrices/expressions/matexpr.py @@ -12,7 +12,7 @@ from sympy.functions import conjugate, adjoint from sympy.functions.special.tenso...
diff --git a/sympy/matrices/expressions/tests/test_derivatives.py b/sympy/matrices/expressions/tests/test_derivatives.py index 4a8a64776540..e60fddebe582 100644 --- a/sympy/matrices/expressions/tests/test_derivatives.py +++ b/sympy/matrices/expressions/tests/test_derivatives.py @@ -3,6 +3,7 @@ http://www.math.uwater...
[ { "components": [ { "doc": "", "lines": [ 534, 578 ], "name": "_matrix_derivative_old_algorithm", "signature": "def _matrix_derivative_old_algorithm(expr, x):", "type": "function" }, { "doc": "", "lines": [ ...
[ "test_matrix_derivative_non_matrix_result", "test_matrix_derivatives_of_traces", "test_derivatives_of_complicated_matrix_expr", "test_mixed_deriv_mixed_expressions", "test_derivatives_matrix_norms", "test_derivatives_elementwise_applyfunc" ]
[ "test_matrix_derivative_by_scalar", "test_matrix_derivative_trivial_cases", "test_matrix_derivative_with_inverse", "test_matrix_derivative_vectors_and_scalars" ]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Matrix expression derivatives are now computed with the array expressions module <!-- BEGIN RELEASE NOTES --> - matrices - Derivatives of matrix expressions are now computed in the array expressio...
3e8695add7a25c8d70aeba7d6137496df02863fd
pydata__xarray-5981
5,981
pydata/xarray
0.20
126051f2bf2ddb7926a7da11b047b852d5ca6b87
2021-11-12T09:44:43Z
diff --git a/xarray/core/common.py b/xarray/core/common.py index 3db9b1cfa0c..cf02bcff77b 100644 --- a/xarray/core/common.py +++ b/xarray/core/common.py @@ -158,6 +158,10 @@ def _repr_html_(self): return f"<pre>{escape(repr(self))}</pre>" return formatting_html.array_repr(self) + def __format...
diff --git a/xarray/tests/test_formatting.py b/xarray/tests/test_formatting.py index 4bbf41c7b38..a5c044d8ea7 100644 --- a/xarray/tests/test_formatting.py +++ b/xarray/tests/test_formatting.py @@ -9,7 +9,7 @@ import xarray as xr from xarray.core import formatting -from . import requires_netCDF4 +from . import requi...
[ { "components": [ { "doc": "", "lines": [ 161, 163 ], "name": "AbstractArray.__format__", "signature": "def __format__(self: Any, format_spec: str) -> str:", "type": "function" } ], "file": "xarray/core/common.py" } ]
[ "xarray/tests/test_formatting.py::TestFormatting::test_array_scalar_format" ]
[ "xarray/tests/test_formatting.py::TestFormatting::test_get_indexer_at_least_n_items", "xarray/tests/test_formatting.py::TestFormatting::test_first_n_items", "xarray/tests/test_formatting.py::TestFormatting::test_last_n_items", "xarray/tests/test_formatting.py::TestFormatting::test_last_item", "xarray/tests/...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Allow string formatting of scalar DataArrays - [x] Closes https://github.com/pydata/xarray/issues/5976 - [x] Tests added - [x] Passes `pre-commit run --all-files` - [ ] User visible changes (includ...
48290fa14accd3ac87768d3f73d69493b82b0be6
sqlfluff__sqlfluff-1840
1,840
sqlfluff/sqlfluff
0.6
5d8032d127db53fd7e2394a3ff8725de8cbe5833
2021-11-07T15:32:05Z
diff --git a/src/sqlfluff/rules/L050.py b/src/sqlfluff/rules/L050.py new file mode 100644 index 00000000000..21cfff09a1f --- /dev/null +++ b/src/sqlfluff/rules/L050.py @@ -0,0 +1,120 @@ +"""Implementation of Rule L050.""" +from typing import Optional + +from sqlfluff.core.rules.base import BaseRule, LintResult, LintFix...
diff --git a/test/rules/std_L003_L036_L039_combo_test.py b/test/rules/std_L003_L036_L039_combo_test.py index 70b99380d0e..01b8d36fd80 100644 --- a/test/rules/std_L003_L036_L039_combo_test.py +++ b/test/rules/std_L003_L036_L039_combo_test.py @@ -32,5 +32,5 @@ def test__rules__std_L003_L036_L039(): SELECT * F...
[ { "components": [ { "doc": "Files must not begin with newlines or whitespace.\n\n| **Anti-pattern**\n| The content in file begins with newlines or whitespace, the ^ represents the beginning of file.\n\n.. code-block:: sql\n :force:\n\n ^\n\n SELECT\n a\n FROM foo\n\n -- Beginn...
[ "test/rules/std_L050_test.py::test__rules__std_L050_jinja_violation_for_custom_config" ]
[ "test/rules/std_L003_L036_L039_combo_test.py::test__rules__std_L003_L036_L039", "test/rules/std_L050_test.py::test__rules__std_L050_no_jinja_violation_for_default_config" ]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> New Rule L050: No leading whitespace <!--Firstly, thanks for adding this feature! Secondly, please check the key steps against the checklist below to make your contribution easy to merge.--> <!--Pl...
d3c40ff6539bdb512211ebf137d7fe3ebc9b585c
sphinx-doc__sphinx-9822
9,822
sphinx-doc/sphinx
4.4
26a4f5d2b83fa55d47d31744089ac14edc08397f
2021-11-06T14:50:44Z
diff --git a/CHANGES b/CHANGES index d2ddae71c86..54b09e55635 100644 --- a/CHANGES +++ b/CHANGES @@ -47,6 +47,8 @@ Features added * #9391: texinfo: improve variable in ``samp`` role * #9578: texinfo: Add :confval:`texinfo_cross_references` to disable cross references for readability with standalone readers +* #982...
diff --git a/tests/roots/test-ext-intersphinx-role/conf.py b/tests/roots/test-ext-intersphinx-role/conf.py new file mode 100644 index 00000000000..a54f5c2ad6b --- /dev/null +++ b/tests/roots/test-ext-intersphinx-role/conf.py @@ -0,0 +1,3 @@ +extensions = ['sphinx.ext.intersphinx'] +# the role should not honor this conf...
diff --git a/CHANGES b/CHANGES index d2ddae71c86..54b09e55635 100644 --- a/CHANGES +++ b/CHANGES @@ -47,6 +47,8 @@ Features added * #9391: texinfo: improve variable in ``samp`` role * #9578: texinfo: Add :confval:`texinfo_cross_references` to disable cross references for readability with standalone readers +* #982...
[ { "components": [ { "doc": "Custom dispatcher for external role.\n\nThis enables :external:***:/:external+***: roles on parsing reST document.", "lines": [ 474, 485 ], "name": "IntersphinxDispatcher", "signature": "class IntersphinxDispatcher(Cus...
[ "tests/test_ext_intersphinx.py::test_intersphinx_role" ]
[ "tests/test_ext_intersphinx.py::test_fetch_inventory_redirection", "tests/test_ext_intersphinx.py::test_missing_reference", "tests/test_ext_intersphinx.py::test_missing_reference_pydomain", "tests/test_ext_intersphinx.py::test_missing_reference_stddomain", "tests/test_ext_intersphinx.py::test_missing_refere...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Intersphinx role (2) Extension of #9062 (not sure if there is a good way simply to reuse that PR somehow) ### Feature or Bugfix - Feature ### Purpose Continuation of the work by @tk0miya in #9...
cee86909b9f4ca338bc41168e91226de520369c6
scikit-learn__scikit-learn-21569
21,569
scikit-learn/scikit-learn
1.1
bacc91cf1d4531bcc91aa60893fdf7df319485ec
2021-11-06T08:15:04Z
diff --git a/doc/whats_new/v1.1.rst b/doc/whats_new/v1.1.rst index 6a5b2d226cabe..5e67916888511 100644 --- a/doc/whats_new/v1.1.rst +++ b/doc/whats_new/v1.1.rst @@ -237,6 +237,15 @@ Changelog instead of `__init__`. :pr:`21434` by :user:`Krum Arnaudov <krumeto>`. +- |Enhancement| Added the `get_feature_names_out...
diff --git a/sklearn/preprocessing/tests/test_function_transformer.py b/sklearn/preprocessing/tests/test_function_transformer.py index b1ba9ebe6b762..525accf4568de 100644 --- a/sklearn/preprocessing/tests/test_function_transformer.py +++ b/sklearn/preprocessing/tests/test_function_transformer.py @@ -176,6 +176,158 @@ d...
diff --git a/doc/whats_new/v1.1.rst b/doc/whats_new/v1.1.rst index 6a5b2d226cabe..5e67916888511 100644 --- a/doc/whats_new/v1.1.rst +++ b/doc/whats_new/v1.1.rst @@ -237,6 +237,15 @@ Changelog instead of `__init__`. :pr:`21434` by :user:`Krum Arnaudov <krumeto>`. +- |Enhancement| Added the `get_feature_names_out...
[ { "components": [ { "doc": "Get output feature names for transformation.\n\nThis method is only defined if `feature_names_out` is not None.\n\nParameters\n----------\ninput_features : array-like of str or None, default=None\n Input feature names.\n\n - If `input_features` is None, then `feat...
[ "sklearn/preprocessing/tests/test_function_transformer.py::test_function_transformer_get_feature_names_out[X0-one-to-one-None-expected0]", "sklearn/preprocessing/tests/test_function_transformer.py::test_function_transformer_get_feature_names_out[X1-one-to-one-None-expected1]", "sklearn/preprocessing/tests/test_...
[ "sklearn/preprocessing/tests/test_function_transformer.py::test_delegate_to_func", "sklearn/preprocessing/tests/test_function_transformer.py::test_np_log", "sklearn/preprocessing/tests/test_function_transformer.py::test_kw_arg", "sklearn/preprocessing/tests/test_function_transformer.py::test_kw_arg_update", ...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> ENH Add get_feature_names_out to FunctionTransformer #### Reference Issues/PRs Follow-up on #18444. Part of #21308. This new feature was discussed in #21079. #### What does this implement/fix?...
38ff5be25d0164bf9598bcfdde3b791ad6e261b0
boto__boto3-3060
3,060
boto/boto3
null
ce777751a762bdf6fc299f53f3f16241f5f63ee0
2021-10-27T01:27:59Z
diff --git a/.changes/next-release/enhancement-Session-24336.json b/.changes/next-release/enhancement-Session-24336.json new file mode 100644 index 0000000000..9e2ef41aa7 --- /dev/null +++ b/.changes/next-release/enhancement-Session-24336.json @@ -0,0 +1,5 @@ +{ + "type": "enhancement", + "category": "Session", + "d...
diff --git a/tests/unit/test_session.py b/tests/unit/test_session.py index 1fd7877f40..94301152d5 100644 --- a/tests/unit/test_session.py +++ b/tests/unit/test_session.py @@ -207,6 +207,17 @@ def test_get_available_regions(self): ) assert partitions == ['foo'] + def test_get_partition_for_region(...
diff --git a/.changes/next-release/enhancement-Session-24336.json b/.changes/next-release/enhancement-Session-24336.json new file mode 100644 index 0000000000..9e2ef41aa7 --- /dev/null +++ b/.changes/next-release/enhancement-Session-24336.json @@ -0,0 +1,5 @@ +{ + "type": "enhancement", + "category": "Session", + "d...
[ { "components": [ { "doc": "Lists the partition name of a particular region.\n\n:type region_name: string\n:param region_name: Name of the region to list partition for (e.g.,\n us-east-1).\n\n:rtype: string\n:return: Returns the respective partition name (e.g., aws).", "lines": [ ...
[ "tests/unit/test_session.py::TestSession::test_get_partition_for_region" ]
[ "tests/unit/test_session.py::TestSession::test_arguments_not_required", "tests/unit/test_session.py::TestSession::test_available_profiles", "tests/unit/test_session.py::TestSession::test_bad_resource_name", "tests/unit/test_session.py::TestSession::test_bad_resource_name_with_no_client_has_simple_err_msg", ...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add get_partition_for_region to Session Following up on boto/botocore#1715 to surface `get_partition_for_region` on the Boto3 session as well. ---------- </request> There are several new functions o...
196a2da7490a1a661a0103b8770bd31e34e147f2
sympy__sympy-22347
22,347
sympy/sympy
1.10
d6ab7d2e9ee8f25c2ed926648d2d3c8700dbaf0c
2021-10-22T01:43:14Z
diff --git a/sympy/__init__.py b/sympy/__init__.py index 8faadb93704d..cabb3f156725 100644 --- a/sympy/__init__.py +++ b/sympy/__init__.py @@ -110,7 +110,7 @@ def __sympy_debug(): from .functions import (factorial, factorial2, rf, ff, binomial, RisingFactorial, FallingFactorial, subfactorial, carmichael, ...
diff --git a/sympy/core/tests/test_args.py b/sympy/core/tests/test_args.py index e9af8c6fb99b..63b80276e236 100644 --- a/sympy/core/tests/test_args.py +++ b/sympy/core/tests/test_args.py @@ -2203,6 +2203,11 @@ def test_sympy__functions__elementary__miscellaneous__MinMaxBase(): pass +def test_sympy__functions__...
[ { "components": [ { "doc": "Returns the remainder when ``p`` is divided by ``q`` where ``p`` is finite\nand ``q`` is not equal to zero. The result, ``p - int(p/q)*q``, has the same sign\nas the divisor.\n\nParameters\n==========\n\np : Expr\n Dividend.\n\nq : Expr\n Divisor.\n\nNotes\n=====\...
[ "test_sympy__functions__elementary__miscellaneous__Rem", "test_Min", "test_Max", "test_minmax_assumptions", "test_issue_8413", "test_root", "test_real_root", "test_rewrite_MaxMin_as_Heaviside", "test_rewrite_MaxMin_as_Piecewise", "test_issue_11099", "test_issue_12638", "test_issue_21399", "t...
[ "test_all_classes_are_tested", "test_sympy__algebras__quaternion__Quaternion", "test_sympy__assumptions__assume__AppliedPredicate", "test_predicates", "test_sympy__assumptions__assume__UndefinedPredicate", "test_sympy__assumptions__relation__binrel__AppliedBinaryRelation", "test_sympy__assumptions__wrap...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Added Rem(ainder) Function <!-- Your title above should be a short description of what was changed. Do not include the issue number in the title. --> #### References to other Issues or PRs <!-- I...
Here is the discussion in the issues of the pull request. <issues> Add Rem(ainder) function? Related to #22089 So far, `Mod(x, y)` has been printed in C as `x % y`. This is only correct if the sign of x and y are the same (or rather both being either non-negative or non-positive). Typically, if a language has suppor...
3e8695add7a25c8d70aeba7d6137496df02863fd
slackapi__python-slack-sdk-1130
1,130
slackapi/python-slack-sdk
null
77e906a2bd0ff3d45c65635476c625c0ed5be3a8
2021-10-21T01:40:02Z
diff --git a/slack_sdk/audit_logs/v1/logs.py b/slack_sdk/audit_logs/v1/logs.py index b5119c919..214f8f077 100644 --- a/slack_sdk/audit_logs/v1/logs.py +++ b/slack_sdk/audit_logs/v1/logs.py @@ -102,6 +102,22 @@ def __init__( self.unknown_fields = kwargs +class ConversationPref: + type: Optional[List[str]...
diff --git a/tests/slack_sdk/audit_logs/test_response.py b/tests/slack_sdk/audit_logs/test_response.py index 9a21d49e7..379455575 100644 --- a/tests/slack_sdk/audit_logs/test_response.py +++ b/tests/slack_sdk/audit_logs/test_response.py @@ -133,6 +133,10 @@ def test_logs_complete(self): self.assertEqual(entry....
[ { "components": [ { "doc": "", "lines": [ 105, 118 ], "name": "ConversationPref", "signature": "class ConversationPref:", "type": "class" }, { "doc": "", "lines": [ 109, 118 ], ...
[ "tests/slack_sdk/audit_logs/test_response.py::TestAuditLogsClient::test_logs_complete" ]
[ "tests/slack_sdk/audit_logs/test_response.py::TestAuditLogsClient::test_logs" ]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Audit Logs API: Add new details properties for channel_posting_permissions_updated action ## Summary This pull request adds two new properties to the Audit Logs API response data class. "who_can_po...
2997a1786c4fd969b00ce69af888ebae8e8ebed0
Project-MONAI__MONAI-3138
3,138
Project-MONAI/MONAI
null
1d3a9d773886dce57afd4a3165fe0e44fc3a50d8
2021-10-15T14:06:30Z
diff --git a/monai/config/__init__.py b/monai/config/__init__.py index e3f623823c..64fdd3d7f0 100644 --- a/monai/config/__init__.py +++ b/monai/config/__init__.py @@ -12,7 +12,9 @@ from .deviceconfig import ( USE_COMPILED, IgniteInfo, + get_config_values, get_gpu_info, + get_optional_config_values...
diff --git a/tests/test_torchscript_utils.py b/tests/test_torchscript_utils.py new file mode 100644 index 0000000000..b9840f68f1 --- /dev/null +++ b/tests/test_torchscript_utils.py @@ -0,0 +1,112 @@ +# Copyright 2020 - 2021 MONAI Consortium +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may n...
[ { "components": [ { "doc": "Save the JIT object (script or trace produced object) `jit_obj` to the given file or stream with metadata\nincluded as a JSON file. The Torchscript format is a zip file which can contain extra file data which is used\nhere as a mechanism for storing metadata about the n...
[ "tests/test_torchscript_utils.py::TestTorchscript::test_load_net_with_metadata", "tests/test_torchscript_utils.py::TestTorchscript::test_load_net_with_metadata_with_extra", "tests/test_torchscript_utils.py::TestTorchscript::test_save_load_more_extra_files", "tests/test_torchscript_utils.py::TestTorchscript::t...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Adding Torchscript utility functions Signed-off-by: Eric Kerfoot <eric.kerfoot@kcl.ac.uk> ### Description Adding metadata to saved Torchscript objects was dicussed as a useful feature with the Dep...
e73257caa79309dcce1e93abf1632f4bfd75b11f
joke2k__faker-1548
1,548
joke2k/faker
null
2c857e1fb64d0797bf352995815dbca56de23b8f
2021-10-11T16:09:22Z
diff --git a/faker/providers/automotive/nl_NL/__init__.py b/faker/providers/automotive/nl_NL/__init__.py new file mode 100644 index 0000000000..3f54070934 --- /dev/null +++ b/faker/providers/automotive/nl_NL/__init__.py @@ -0,0 +1,79 @@ +import re +import string + +from .. import Provider as AutomotiveProvider + + +cla...
diff --git a/tests/providers/test_automotive.py b/tests/providers/test_automotive.py index bda4b6268a..083ddf268f 100644 --- a/tests/providers/test_automotive.py +++ b/tests/providers/test_automotive.py @@ -217,3 +217,35 @@ class TestElGr(_SimpleAutomotiveTestMixin): """Test el_GR automotive provider methods""" ...
[ { "components": [ { "doc": "Implement automotive provider for `nl_NL` locale.\n\nSources:\n- https://en.wikipedia.org/wiki/Vehicle_registration_plates_of_the_Netherlands\n- https://www.cbs.nl/en-gb/figures/detail/82044eng\n\n.. |license_plate_car| replace::\n :meth:`license_plate_car() <faker.pr...
[ "tests/providers/test_automotive.py::TestNlNl::test_license_plate", "tests/providers/test_automotive.py::TestNlNl::test_plate_car", "tests/providers/test_automotive.py::TestNlNl::test_plate_motorbike" ]
[ "tests/providers/test_automotive.py::TestSkSk::test_license_plate", "tests/providers/test_automotive.py::TestPtBr::test_license_plate", "tests/providers/test_automotive.py::TestPtPt::test_license_plate", "tests/providers/test_automotive.py::TestHeIl::test_license_plate", "tests/providers/test_automotive.py:...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Added automotive provider for nl_NL ### What does this change? Added an automotive provider for Dutch (`nl_NL`), which generates license plates for cars, motorbikes and other road vehicles accordin...
6edfdbf6ae90b0153309e3bf066aa3b2d16494a7
joke2k__faker-1544
1,544
joke2k/faker
null
3818045332f4cb2911e5ac18f69e385bf0c51af0
2021-10-10T09:59:09Z
diff --git a/faker/providers/currency/el_GR/__init__.py b/faker/providers/currency/el_GR/__init__.py new file mode 100644 index 0000000000..bfa2e40334 --- /dev/null +++ b/faker/providers/currency/el_GR/__init__.py @@ -0,0 +1,161 @@ +from .. import Provider as CurrencyProvider + + +class Provider(CurrencyProvider): + ...
diff --git a/tests/providers/test_currency.py b/tests/providers/test_currency.py index 9f16c06f95..0238ce1b6c 100644 --- a/tests/providers/test_currency.py +++ b/tests/providers/test_currency.py @@ -378,3 +378,19 @@ def test_pricetag(self, faker, num_samples): for _ in range(num_samples): pricetag...
[ { "components": [ { "doc": "", "lines": [ 4, 160 ], "name": "Provider", "signature": "class Provider(CurrencyProvider):", "type": "class" }, { "doc": "", "lines": [ 157, 160 ], ...
[ "tests/providers/test_currency.py::TestElGr::test_pricetag" ]
[ "tests/providers/test_currency.py::TestCurrencyProvider::test_currency", "tests/providers/test_currency.py::TestCurrencyProvider::test_currency_code", "tests/providers/test_currency.py::TestCurrencyProvider::test_currency_name", "tests/providers/test_currency.py::TestCurrencyProvider::test_currency_symbol_no_...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add `currency` provider for `el_GR` ### What does this changes Add `currency` provider for `el_GR` ### What was wrong Provider did not exist ### How this fixes it Add `currency` provide...
6edfdbf6ae90b0153309e3bf066aa3b2d16494a7
joke2k__faker-1543
1,543
joke2k/faker
null
3818045332f4cb2911e5ac18f69e385bf0c51af0
2021-10-10T09:18:21Z
diff --git a/faker/providers/automotive/el_GR/__init__.py b/faker/providers/automotive/el_GR/__init__.py new file mode 100644 index 0000000000..ebf998bb7b --- /dev/null +++ b/faker/providers/automotive/el_GR/__init__.py @@ -0,0 +1,22 @@ +import re + +from .. import Provider as AutomotiveProvider + + +class Provider(Aut...
diff --git a/tests/providers/test_automotive.py b/tests/providers/test_automotive.py index d64ed4c0de..bda4b6268a 100644 --- a/tests/providers/test_automotive.py +++ b/tests/providers/test_automotive.py @@ -211,3 +211,9 @@ class TestRoRo(_SimpleAutomotiveTestMixin): def perform_extra_checks(self, license_plate, ...
[ { "components": [ { "doc": "Implement automotive provider for ``el_GR`` locale.\n ", "lines": [ 6, 22 ], "name": "Provider", "signature": "class Provider(AutomotiveProvider):", "type": "class" }, { "doc": "Generate ...
[ "tests/providers/test_automotive.py::TestElGr::test_license_plate" ]
[ "tests/providers/test_automotive.py::TestSkSk::test_license_plate", "tests/providers/test_automotive.py::TestPtBr::test_license_plate", "tests/providers/test_automotive.py::TestPtPt::test_license_plate", "tests/providers/test_automotive.py::TestHeIl::test_license_plate", "tests/providers/test_automotive.py:...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add `automotive` provider for `el_GR` ### What does this changes Add `automotive` provider for `el_GR` ### What was wrong Provider was missing ### How this fixes it Add `automotive` pro...
6edfdbf6ae90b0153309e3bf066aa3b2d16494a7
joke2k__faker-1542
1,542
joke2k/faker
null
20a18910bb37f7d8db4080deb2671b1c3a4b31f7
2021-10-10T07:34:13Z
diff --git a/README.rst b/README.rst index fe10cbecc2..4809827141 100644 --- a/README.rst +++ b/README.rst @@ -260,6 +260,31 @@ How to create a Provider fake.foo() # 'bar' + +How to create a Dynamic Provider +------------------------ + +Dynamic providers can read elements from an external source. + +.. code...
diff --git a/tests/providers/test_dynamic.py b/tests/providers/test_dynamic.py new file mode 100644 index 0000000000..7db878ead3 --- /dev/null +++ b/tests/providers/test_dynamic.py @@ -0,0 +1,72 @@ +import pytest + +from faker import Faker +from faker.providers import DynamicProvider + + +class TestDynamicProvider: + ...
diff --git a/README.rst b/README.rst index fe10cbecc2..4809827141 100644 --- a/README.rst +++ b/README.rst @@ -260,6 +260,31 @@ How to create a Provider fake.foo() # 'bar' + +How to create a Dynamic Provider +------------------------ + +Dynamic providers can read elements from an external source. + +.. code...
[ { "components": [ { "doc": "", "lines": [ 498, 552 ], "name": "DynamicProvider", "signature": "class DynamicProvider(BaseProvider):", "type": "class" }, { "doc": "A faker Provider capable of getting a list of elements ...
[ "tests/providers/test_dynamic.py::TestDynamicProvider::test_without_dynamic", "tests/providers/test_dynamic.py::TestDynamicProvider::test_with_dynamic", "tests/providers/test_dynamic.py::TestDynamicProvider::test_dynamic_with_special_provider_name", "tests/providers/test_dynamic.py::TestDynamicProvider::test_...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Dynamic provider ### What does this change do This change introduces a dynamic provider which allows users to create providers on the fly given a set of values. These values are passed to the init ...
6edfdbf6ae90b0153309e3bf066aa3b2d16494a7
joke2k__faker-1541
1,541
joke2k/faker
null
3818045332f4cb2911e5ac18f69e385bf0c51af0
2021-10-09T21:39:08Z
diff --git a/faker/providers/company/el_GR/__init__.py b/faker/providers/company/el_GR/__init__.py new file mode 100644 index 0000000000..f8f323872e --- /dev/null +++ b/faker/providers/company/el_GR/__init__.py @@ -0,0 +1,11 @@ +from .. import Provider as CompanyProvider + + +class Provider(CompanyProvider): + forma...
diff --git a/tests/providers/test_company.py b/tests/providers/test_company.py index 6fb49f72d5..0c1df1046f 100644 --- a/tests/providers/test_company.py +++ b/tests/providers/test_company.py @@ -5,6 +5,7 @@ import pytest +from faker.providers.company.el_GR import Provider as ElGrCompanyProvider from faker.provide...
[ { "components": [ { "doc": "", "lines": [ 4, 11 ], "name": "Provider", "signature": "class Provider(CompanyProvider):", "type": "class" } ], "file": "faker/providers/company/el_GR/__init__.py" } ]
[ "tests/providers/test_company.py::TestFiFi::test_company_business_id", "tests/providers/test_company.py::TestHyAm::test_bs", "tests/providers/test_company.py::TestHyAm::test_catch_phrase", "tests/providers/test_company.py::TestHyAm::test_company", "tests/providers/test_company.py::TestHyAm::test_company_suf...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add `company` provider for `el_GR` ### What does this changes Add `company` provider for `el_GR` ### What was wrong Provider was missing ### How this fixes it Add `company` provider for...
6edfdbf6ae90b0153309e3bf066aa3b2d16494a7
joke2k__faker-1540
1,540
joke2k/faker
null
3818045332f4cb2911e5ac18f69e385bf0c51af0
2021-10-09T21:38:31Z
diff --git a/faker/providers/bank/el_GR/__init__.py b/faker/providers/bank/el_GR/__init__.py new file mode 100644 index 0000000000..1d34c35cc3 --- /dev/null +++ b/faker/providers/bank/el_GR/__init__.py @@ -0,0 +1,8 @@ +from .. import Provider as BankProvider + + +class Provider(BankProvider): + """Implement bank pro...
diff --git a/tests/providers/test_bank.py b/tests/providers/test_bank.py index cd6760ae29..df4629d65f 100644 --- a/tests/providers/test_bank.py +++ b/tests/providers/test_bank.py @@ -4,6 +4,7 @@ from faker.providers.bank import Provider as BankProvider from faker.providers.bank.de_CH import Provider as DeChBankProv...
[ { "components": [ { "doc": "Implement bank provider for ``el_GR`` locale.", "lines": [ 4, 8 ], "name": "Provider", "signature": "class Provider(BankProvider):", "type": "class" } ], "file": "faker/providers/bank/el_GR/__init...
[ "tests/providers/test_bank.py::TestNoNo::test_aba", "tests/providers/test_bank.py::TestNoNo::test_bban", "tests/providers/test_bank.py::TestNoNo::test_iban", "tests/providers/test_bank.py::TestFiFi::test_bban", "tests/providers/test_bank.py::TestFiFi::test_iban", "tests/providers/test_bank.py::TestPlPl::t...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add `bank` provider for `el_GR` ### What does this changes Add `bank` provider for `el_GR` ### What was wrong Provider was missing ### How this fixes it Add `bank` provider for `el_GR` ...
6edfdbf6ae90b0153309e3bf066aa3b2d16494a7