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
conan-io__conan-12980
12,980
conan-io/conan
null
7931acac1b4627f22bc9f3db5cc57d29ddfa16ac
2023-01-26T00:38:06Z
diff --git a/conans/client/cache/cache.py b/conans/client/cache/cache.py index c29f087bb17..7e6f0bb7804 100644 --- a/conans/client/cache/cache.py +++ b/conans/client/cache/cache.py @@ -2,6 +2,7 @@ import platform from typing import List +import yaml from jinja2 import Template @@ -10,6 +11,7 @@ from conans.cl...
diff --git a/conans/test/integration/settings/test_settings_user.py b/conans/test/integration/settings/test_settings_user.py new file mode 100644 index 00000000000..e911b14669f --- /dev/null +++ b/conans/test/integration/settings/test_settings_user.py @@ -0,0 +1,54 @@ +import os +import textwrap + +from conans.test.ass...
[ { "components": [ { "doc": "", "lines": [ 208, 212 ], "name": "ClientCache.settings._load_settings", "signature": "def _load_settings(path):", "type": "function" }, { "doc": "", "lines": [ 219, ...
[ "conans/test/integration/settings/test_settings_user.py::test_settings_user", "conans/test/integration/settings/test_settings_user.py::test_settings_user_subdict" ]
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> [develop2] Propose new settings_user.yml Changelog: Feature: Users can define their own settings in `settings_user.yml` that will be merged with the Conan `settings.yml`. Close https://github.com/c...
4a5b19a75db9225316c8cb022a2dfb9705a2af34
Project-MONAI__MONAI-5890
5,890
Project-MONAI/MONAI
null
cce206386b335b2cef0a7b26ad879a3be5a45212
2023-01-23T12:29:07Z
diff --git a/monai/transforms/__init__.py b/monai/transforms/__init__.py index e519be83a3..2f47f9f9dc 100644 --- a/monai/transforms/__init__.py +++ b/monai/transforms/__init__.py @@ -486,6 +486,7 @@ Lambda, MapLabelValue, RandCuCIM, + RandIdentity, RandImageFilter, RandLambda, RemoveRep...
diff --git a/tests/test_randidentity.py b/tests/test_randidentity.py new file mode 100644 index 0000000000..09dc055b4e --- /dev/null +++ b/tests/test_randidentity.py @@ -0,0 +1,49 @@ +# Copyright (c) MONAI Consortium +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except ...
[ { "components": [ { "doc": "Do nothing to the data. This transform is random, so can be used to stop the caching of any\nsubsequent transforms.", "lines": [ 132, 141 ], "name": "RandIdentity", "signature": "class RandIdentity(RandomizableTrait):"...
[ "tests/test_randidentity.py::TestIdentity::test_caching", "tests/test_randidentity.py::TestIdentity::test_identity" ]
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> add rand identity ### Description Adds `RandIdentity` which can be placed in a sequence of transforms to stop the caching of any results beyond this point. ### Types of changes <!--- Put an `x`...
e73257caa79309dcce1e93abf1632f4bfd75b11f
sympy__sympy-24572
24,572
sympy/sympy
1.12
f900f26b9f1a9adc5e7e9c6942e8c21adb96f2e8
2023-01-22T16:06:49Z
diff --git a/.mailmap b/.mailmap index b700d47b4d05..aeed1235e95b 100644 --- a/.mailmap +++ b/.mailmap @@ -423,6 +423,8 @@ Chak-Pong Chung <chakpongchung@gmail.com> Chanakya-Ekbote <ca10@iitbbs.ac.in> Chancellor Arkantos <Chancellor_Arkantos@hotmail.co.uk> Charalampos Tsiagkalis <ctsiagkalis@uth.gr> ctsiagkalis <490...
diff --git a/sympy/polys/matrices/tests/test_lll.py b/sympy/polys/matrices/tests/test_lll.py new file mode 100644 index 000000000000..9dc8ef4ad275 --- /dev/null +++ b/sympy/polys/matrices/tests/test_lll.py @@ -0,0 +1,92 @@ +from sympy.polys.domains import ZZ, QQ +from sympy.polys.matrices import DM +from sympy.polys.ma...
diff --git a/.mailmap b/.mailmap index b700d47b4d05..aeed1235e95b 100644 --- a/.mailmap +++ b/.mailmap @@ -423,6 +423,8 @@ Chak-Pong Chung <chakpongchung@gmail.com> Chanakya-Ekbote <ca10@iitbbs.ac.in> Chancellor Arkantos <Chancellor_Arkantos@hotmail.co.uk> Charalampos Tsiagkalis <ctsiagkalis@uth.gr> ctsiagkalis <490...
[ { "components": [ { "doc": "", "lines": [ 489, 490 ], "name": "DDM.lll", "signature": "def lll(A, delta=QQ(3, 4)) -> 'DDM':", "type": "function" } ], "file": "sympy/polys/matrices/ddm.py" }, { "components": [ {...
[ "test_lll", "test_lll_linear_dependent", "test_lll_wrong_delta", "test_lll_wrong_shape" ]
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add Lenstra–Lenstra–Lovász (LLL) basis reduction algorithm #### References to other Issues or PRs As was helpfully noted by [oscarbenjamin](https://github.com/oscarbenjamin), please see [#22845](http...
22520ed5f4a9b2b6c4b6b314b4748878f1b4b662
huggingface__accelerate-991
991
huggingface/accelerate
null
5858ac62b4546547fa69ffbf9a7f8bd1d1b1f43c
2023-01-19T20:16:40Z
diff --git a/src/accelerate/accelerator.py b/src/accelerate/accelerator.py index 7075c4dcdb6..ec29ac07bce 100644 --- a/src/accelerate/accelerator.py +++ b/src/accelerate/accelerator.py @@ -18,11 +18,13 @@ import shutil import sys import warnings +from collections import OrderedDict from contextlib import contextman...
diff --git a/tests/test_accelerator.py b/tests/test_accelerator.py index 19d6c1655b4..511d4daae62 100644 --- a/tests/test_accelerator.py +++ b/tests/test_accelerator.py @@ -1,3 +1,6 @@ +import json +import os +import tempfile import unittest import torch @@ -17,6 +20,15 @@ def create_components(): return model...
[ { "components": [ { "doc": "Registers a pre hook to be run before `save_checkpoint` is called in [`Accelerator.save_state`].\n\nArgs:\n hook (`Callable`):\n A function to be called in [`Accelerator.save_state`] before `save_checkpoint`.\n\nThe hook should have the following signature:\n\...
[ "tests/test_accelerator.py::AcceleratorTester::test_save_load_model_with_hooks" ]
[ "tests/test_accelerator.py::AcceleratorTester::test_free_memory_dereferences_prepared_components", "tests/test_accelerator.py::AcceleratorTester::test_prepared_objects_are_referenced", "tests/test_accelerator.py::AcceleratorTester::test_save_load_model" ]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Saving and loading state hooks With this design we would have the necessary freedom to save & load models as wished in `diffusers`. Possible solution to: https://github.com/huggingface/accelerate/...
08101b9dde2b1a9658c2e363e3e9f5663ba06073
tobymao__sqlglot-977
977
tobymao/sqlglot
null
bd4b36fb169cd55a1c5d2f859f571f95e94d05cf
2023-01-19T19:13:05Z
diff --git a/sqlglot/dialects/__init__.py b/sqlglot/dialects/__init__.py index 2e42e7df89..2084681e77 100644 --- a/sqlglot/dialects/__init__.py +++ b/sqlglot/dialects/__init__.py @@ -15,5 +15,6 @@ from sqlglot.dialects.sqlite import SQLite from sqlglot.dialects.starrocks import StarRocks from sqlglot.dialects.tablea...
diff --git a/tests/dialects/test_teradata.py b/tests/dialects/test_teradata.py new file mode 100644 index 0000000000..e56de25318 --- /dev/null +++ b/tests/dialects/test_teradata.py @@ -0,0 +1,23 @@ +from tests.dialects.test_dialect import Validator + + +class TestTeradata(Validator): + dialect = "teradata" + + de...
[]
[ "tests/dialects/test_teradata.py::TestTeradata::test_translate", "tests/dialects/test_teradata.py::TestTeradata::test_update" ]
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add Teradata dialect This pull request: - Adds a Teradata dialect - Parses Teradata's `TRANSLATE` function for casting to a new character set as an `exp.Cast` - Parses Teradata's `UPDATE FROM` sy...
ceb42fabad60312699e4b15936aeebac00e22e4d
softlayer__softlayer-python-1833
1,833
softlayer/softlayer-python
null
4c4cce76b58df949fceb1f8cb67d873e79efb309
2023-01-18T22:38:25Z
diff --git a/SoftLayer/CLI/routes.py b/SoftLayer/CLI/routes.py index 4acaea0ac..d1901df23 100644 --- a/SoftLayer/CLI/routes.py +++ b/SoftLayer/CLI/routes.py @@ -386,6 +386,7 @@ ('vlan:cancel', 'SoftLayer.CLI.vlan.cancel:cli'), ('summary', 'SoftLayer.CLI.summary:cli'), + ('search', 'SoftLayer.CLI.search:c...
diff --git a/tests/CLI/modules/search_tests.py b/tests/CLI/modules/search_tests.py new file mode 100644 index 000000000..22547ada0 --- /dev/null +++ b/tests/CLI/modules/search_tests.py @@ -0,0 +1,19 @@ +""" + SoftLayer.tests.CLI.modules.find_tests + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + :license: MIT, se...
diff --git a/docs/cli/commands.rst b/docs/cli/commands.rst index c1c5bd3fb..d99466770 100644 --- a/docs/cli/commands.rst +++ b/docs/cli/commands.rst @@ -35,3 +35,13 @@ Can be called with an un-authenticated API call. .. click:: SoftLayer.CLI.metadata:cli :prog: metadata :show-nested: + +search +======== + +I...
[ { "components": [ { "doc": "Perform a query against the SoftLayer search database.\n\nRead More: https://sldn.softlayer.com/reference/services/SoftLayer_Search/search/\nExamples:\n slcli search test.com\n slcli search _objectType:SoftLayer_Virtual_Guest test.com\n slcli -vvv search _objec...
[ "tests/CLI/modules/search_tests.py::FindTests::test_find", "tests/CLI/modules/search_tests.py::FindTests::test_find_advanced", "tests/managers/search_tests.py::SearchTests::test_search", "tests/managers/search_tests.py::SearchTests::test_search_advanced", "tests/managers/search_tests.py::SearchTests::test_s...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> feature search [#issue1815](https://github.com/softlayer/softlayer-python/issues/1815) ![image](https://user-images.githubusercontent.com/22535437/213309616-5443d8d6-ae60-49df-b417-f640fa8c61d3.png...
bd1ecce1ec4313b9ceefd3cfea52d1b9274fef9d
Textualize__textual-1605
1,605
Textualize/textual
null
9d58293fd5c007877abe8e58b35049eef1bcbda7
2023-01-18T14:45:46Z
diff --git a/src/textual/__init__.py b/src/textual/__init__.py index cd08af6181..1e926854fb 100644 --- a/src/textual/__init__.py +++ b/src/textual/__init__.py @@ -1,22 +1,34 @@ from __future__ import annotations import inspect -from typing import Callable import rich.repr from rich.console import RenderableType...
diff --git a/tests/test_version.py b/tests/test_version.py new file mode 100644 index 0000000000..dfb0a4b8f3 --- /dev/null +++ b/tests/test_version.py @@ -0,0 +1,41 @@ +import re + +# https://stackoverflow.com/questions/37972029/regex-to-match-pep440-compliant-version-strings +VERSION_PATTERN = r""" + v? + (?: + ...
[ { "components": [ { "doc": "Lazily get the version from whatever API is available.", "lines": [ 18, 29 ], "name": "__getattr__", "signature": "def __getattr__(name: str) -> str:", "type": "function" } ], "file": "src/textual...
[ "tests/test_version.py::test_version" ]
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Added module level getattr to get version Implements a `__version__`, so you can do the following: ``` >>> import textual >>> textual.__version__ '0.10.0' ``` Fixes https://github.com/Textua...
86e93536b991014e0ea4bf993068202b446bb698
mwaskom__seaborn-3225
3,225
mwaskom/seaborn
0.13
a47b97e4b98c809db55cbd283de21acba89fe186
2023-01-17T01:58:28Z
diff --git a/doc/_docstrings/objects.Plot.config.ipynb b/doc/_docstrings/objects.Plot.config.ipynb index 3b0ba2dcef..7230db5c26 100644 --- a/doc/_docstrings/objects.Plot.config.ipynb +++ b/doc/_docstrings/objects.Plot.config.ipynb @@ -22,6 +22,8 @@ "Theme configuration\n", "^^^^^^^^^^^^^^^^^^^\n", "\n", ...
diff --git a/tests/_core/test_plot.py b/tests/_core/test_plot.py index af81685e58..3da7aab583 100644 --- a/tests/_core/test_plot.py +++ b/tests/_core/test_plot.py @@ -14,7 +14,7 @@ from pandas.testing import assert_frame_equal, assert_series_equal from numpy.testing import assert_array_equal, assert_array_almost_equa...
diff --git a/doc/_docstrings/objects.Plot.config.ipynb b/doc/_docstrings/objects.Plot.config.ipynb index 3b0ba2dcef..7230db5c26 100644 --- a/doc/_docstrings/objects.Plot.config.ipynb +++ b/doc/_docstrings/objects.Plot.config.ipynb @@ -22,6 +22,8 @@ "Theme configuration\n", "^^^^^^^^^^^^^^^^^^^\n", "\n", ...
[ { "components": [ { "doc": "Configuration for IPython's rich display hooks.", "lines": [ 216, 220 ], "name": "DisplayConfig", "signature": "class DisplayConfig(TypedDict):", "type": "class" }, { "doc": "", "lin...
[ "tests/_core/test_plot.py::TestDisplayConfig::test_png_format", "tests/_core/test_plot.py::TestDisplayConfig::test_svg_format", "tests/_core/test_plot.py::TestDisplayConfig::test_png_scaling", "tests/_core/test_plot.py::TestDisplayConfig::test_svg_scaling", "tests/_core/test_plot.py::TestDisplayConfig::test...
[ "tests/_core/test_plot.py::TestInit::test_empty", "tests/_core/test_plot.py::TestInit::test_data_only", "tests/_core/test_plot.py::TestInit::test_df_and_named_variables", "tests/_core/test_plot.py::TestInit::test_df_and_mixed_variables", "tests/_core/test_plot.py::TestInit::test_vector_variables_only", "t...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add notebook display configuration for Plot, including SVG output `Plot` renders images in a Jupyter notebook not through the matplotlib "inline" backend but by returning data through the rich display...
e71d95b661a069e85473ad347773d35317611486
mwaskom__seaborn-3223
3,223
mwaskom/seaborn
0.13
623b0b723c671e99f04e8ababf19adc563f30168
2023-01-15T23:01:13Z
diff --git a/doc/_docstrings/objects.Plot.config.ipynb b/doc/_docstrings/objects.Plot.config.ipynb new file mode 100644 index 0000000000..3b0ba2dcef --- /dev/null +++ b/doc/_docstrings/objects.Plot.config.ipynb @@ -0,0 +1,124 @@ +{ + "cells": [ + { + "cell_type": "code", + "execution_count": null, + "id": "a38a6...
diff --git a/tests/_core/test_plot.py b/tests/_core/test_plot.py index d7a950b6ae..af81685e58 100644 --- a/tests/_core/test_plot.py +++ b/tests/_core/test_plot.py @@ -922,6 +922,16 @@ def test_theme_error(self): with pytest.raises(TypeError, match=r"theme\(\) takes 1 positional"): p.theme("arg1", ...
diff --git a/doc/_docstrings/objects.Plot.config.ipynb b/doc/_docstrings/objects.Plot.config.ipynb new file mode 100644 index 0000000000..3b0ba2dcef --- /dev/null +++ b/doc/_docstrings/objects.Plot.config.ipynb @@ -0,0 +1,124 @@ +{ + "cells": [ + { + "cell_type": "code", + "execution_count": null, + "id": "a38a6...
[ { "components": [ { "doc": "Configuration object for the Plot.theme, using matplotlib rc parameters.", "lines": [ 149, 211 ], "name": "ThemeConfig", "signature": "class ThemeConfig(mpl.RcParams):", "type": "class" }, { ...
[ "tests/_core/test_plot.py::TestPlotting::test_theme_validation", "tests/_core/test_plot.py::TestThemeConfig::test_default", "tests/_core/test_plot.py::TestThemeConfig::test_setitem", "tests/_core/test_plot.py::TestThemeConfig::test_update", "tests/_core/test_plot.py::TestThemeConfig::test_reset", "tests/_...
[ "tests/_core/test_plot.py::TestInit::test_empty", "tests/_core/test_plot.py::TestInit::test_data_only", "tests/_core/test_plot.py::TestInit::test_df_and_named_variables", "tests/_core/test_plot.py::TestInit::test_df_and_mixed_variables", "tests/_core/test_plot.py::TestInit::test_vector_variables_only", "t...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add default theme configuration to Plot This PR introduces a mechanism for changing the appearance of _all_ plots made with `so.Plot`. It adds a configuration interface, accessible through `so.Plot.co...
e71d95b661a069e85473ad347773d35317611486
joke2k__faker-1783
1,783
joke2k/faker
null
348708251a1093fb83c5b7cf83c1fb210a62125d
2023-01-12T11:33:31Z
diff --git a/faker/providers/misc/__init__.py b/faker/providers/misc/__init__.py index b37953ab9d..5fd22ea0f6 100644 --- a/faker/providers/misc/__init__.py +++ b/faker/providers/misc/__init__.py @@ -488,6 +488,21 @@ def psv( delimiter="|", ) + def json_bytes( + self, + data_colu...
diff --git a/tests/providers/test_misc.py b/tests/providers/test_misc.py index 695defe7f2..f50822f39a 100644 --- a/tests/providers/test_misc.py +++ b/tests/providers/test_misc.py @@ -697,6 +697,13 @@ def test_json_type_integrity_datetime_no_encoder(self, faker_with_foobar): with pytest.raises(TypeError): ...
[ { "components": [ { "doc": "Generate random JSON structure and return as bytes.\n\nFor more information on the different arguments of this method, refer to\n:meth:`json() <faker.providers.misc.Provider.json>` which is used under the hood.", "lines": [ 491, 504 ]...
[ "tests/providers/test_misc.py::TestMiscProvider::test_json_bytes" ]
[ "tests/providers/test_misc.py::TestMiscProvider::test_uuid4_str", "tests/providers/test_misc.py::TestMiscProvider::test_uuid4_int", "tests/providers/test_misc.py::TestMiscProvider::test_uuid4_uuid_object", "tests/providers/test_misc.py::TestMiscProvider::test_uuid4_seedability", "tests/providers/test_misc.p...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add method to generate JSON as bytes ### What does this change Add wrapper method around the JSON provider to generate JSON as bytes. ### What was wrong I use Faker through factory boy and co...
6edfdbf6ae90b0153309e3bf066aa3b2d16494a7
conan-io__conan-12889
12,889
conan-io/conan
null
ea235dc8a4719b71e13d3734855bff4600f62b06
2023-01-11T15:05:44Z
diff --git a/conan/tools/gnu/autotoolstoolchain.py b/conan/tools/gnu/autotoolstoolchain.py index 61e159ea4fd..b870bd5b032 100644 --- a/conan/tools/gnu/autotoolstoolchain.py +++ b/conan/tools/gnu/autotoolstoolchain.py @@ -224,23 +224,28 @@ def update_autoreconf_args(self, updated_flags): # FIXME: Remove all these...
diff --git a/conans/test/unittests/tools/gnu/autotoolschain_test.py b/conans/test/unittests/tools/gnu/autotoolschain_test.py index 026acc933a0..61a20034a2d 100644 --- a/conans/test/unittests/tools/gnu/autotoolschain_test.py +++ b/conans/test/unittests/tools/gnu/autotoolschain_test.py @@ -189,20 +189,22 @@ def test_chec...
[ { "components": [ { "doc": "", "lines": [ 228, 237 ], "name": "AutotoolsToolchain._update_flags._list_to_dict", "signature": "def _list_to_dict(flags):", "type": "function" }, { "doc": "", "lines": [ ...
[ "conans/test/unittests/tools/gnu/autotoolschain_test.py::test_update_or_prune_any_args" ]
[ "conans/test/unittests/tools/gnu/autotoolschain_test.py::test_get_gnu_triplet_for_cross_building", "conans/test/unittests/tools/gnu/autotoolschain_test.py::test_get_toolchain_cppstd", "conans/test/unittests/tools/gnu/autotoolschain_test.py::test_msvc_runtime[static-Debug-MTd]", "conans/test/unittests/tools/gn...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> [AutotoolsToolchain] Improve `update_xxxxx_args` behavior Changelog: Feature: AutotoolsToolchain helper functions: `update_configure_args`, `update_make_args`, and `update_autoreconf_args` can also ad...
4a5b19a75db9225316c8cb022a2dfb9705a2af34
conan-io__conan-12887
12,887
conan-io/conan
null
f3fb6c41246669646243f0c7d83c2c444743d896
2023-01-11T12:43:17Z
diff --git a/conan/tools/microsoft/__init__.py b/conan/tools/microsoft/__init__.py index 79598b28e5f..9c0bb920d5f 100644 --- a/conan/tools/microsoft/__init__.py +++ b/conan/tools/microsoft/__init__.py @@ -1,7 +1,7 @@ from conan.tools.microsoft.layout import vs_layout from conan.tools.microsoft.msbuild import MSBuild ...
diff --git a/conans/test/unittests/tools/microsoft/test_subsystem.py b/conans/test/unittests/tools/microsoft/test_subsystem.py index 65e5423e8c6..0e010e23afb 100644 --- a/conans/test/unittests/tools/microsoft/test_subsystem.py +++ b/conans/test/unittests/tools/microsoft/test_subsystem.py @@ -1,19 +1,20 @@ +import mock ...
[ { "components": [ { "doc": "", "lines": [ 9, 12 ], "name": "unix_path_package_info_legacy", "signature": "def unix_path_package_info_legacy(conanfile, path, path_flavor=None):", "type": "function" } ], "file": "conan/tools/m...
[ "conans/test/unittests/tools/microsoft/test_subsystem.py::test_unix_path[msys2-/c/path/to/stuff]", "conans/test/unittests/tools/microsoft/test_subsystem.py::test_unix_path[msys-/c/path/to/stuff]", "conans/test/unittests/tools/microsoft/test_subsystem.py::test_unix_path[cygwin-/cygdrive/c/path/to/stuff]", "con...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add unix_path_package_info_legacy compatibility function Changelog: Feature: Add `unix_path_package_info_legacy` function for those cases in which it is used in `package_info` in recipes that require ...
4a5b19a75db9225316c8cb022a2dfb9705a2af34
conan-io__conan-12886
12,886
conan-io/conan
null
0f73ed743ffd5d9cfeef54bfbc1547d08ce6436d
2023-01-11T12:19:11Z
diff --git a/conan/tools/microsoft/__init__.py b/conan/tools/microsoft/__init__.py index 79598b28e5f..9c0bb920d5f 100644 --- a/conan/tools/microsoft/__init__.py +++ b/conan/tools/microsoft/__init__.py @@ -1,7 +1,7 @@ from conan.tools.microsoft.layout import vs_layout from conan.tools.microsoft.msbuild import MSBuild ...
diff --git a/conans/test/unittests/tools/microsoft/test_subsystem.py b/conans/test/unittests/tools/microsoft/test_subsystem.py index 65e5423e8c6..3af3cf3c860 100644 --- a/conans/test/unittests/tools/microsoft/test_subsystem.py +++ b/conans/test/unittests/tools/microsoft/test_subsystem.py @@ -2,7 +2,7 @@ import pytes...
[ { "components": [ { "doc": "", "lines": [ 8, 13 ], "name": "unix_path_package_info_legacy", "signature": "def unix_path_package_info_legacy(conanfile, path, path_flavor=None):", "type": "function" } ], "file": "conan/tools/m...
[ "conans/test/unittests/tools/microsoft/test_subsystem.py::test_unix_path[msys2-/c/path/to/stuff]", "conans/test/unittests/tools/microsoft/test_subsystem.py::test_unix_path[msys-/c/path/to/stuff]", "conans/test/unittests/tools/microsoft/test_subsystem.py::test_unix_path[cygwin-/cygdrive/c/path/to/stuff]", "con...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add unix_path_package_info_legacy compatibility function Changelog: Feature: Add `unix_path_package_info_legacy` function for those cases in which it is used in `package_info` in recipes that require ...
4a5b19a75db9225316c8cb022a2dfb9705a2af34
conan-io__conan-12884
12,884
conan-io/conan
null
f3fb6c41246669646243f0c7d83c2c444743d896
2023-01-11T09:29:03Z
diff --git a/conan/tools/gnu/autotoolstoolchain.py b/conan/tools/gnu/autotoolstoolchain.py index 0a8914df494..61e159ea4fd 100644 --- a/conan/tools/gnu/autotoolstoolchain.py +++ b/conan/tools/gnu/autotoolstoolchain.py @@ -7,7 +7,7 @@ from conan.tools.env import Environment from conan.tools.files.files import save_tool...
diff --git a/conans/test/unittests/tools/gnu/autotoolschain_test.py b/conans/test/unittests/tools/gnu/autotoolschain_test.py index b8f8a4d081a..026acc933a0 100644 --- a/conans/test/unittests/tools/gnu/autotoolschain_test.py +++ b/conans/test/unittests/tools/gnu/autotoolschain_test.py @@ -1,9 +1,29 @@ +from unittest.moc...
[ { "components": [ { "doc": "", "lines": [ 190, 196 ], "name": "AutotoolsToolchain._get_triplets", "signature": "def _get_triplets(self):", "type": "function" }, { "doc": "Helper to update/prune flags from ``self.config...
[ "conans/test/unittests/tools/gnu/autotoolschain_test.py::test_check_configure_args_overwriting_and_deletion", "conans/test/unittests/tools/gnu/autotoolschain_test.py::test_update_or_prune_any_args" ]
[ "conans/test/unittests/tools/gnu/autotoolschain_test.py::test_get_gnu_triplet_for_cross_building", "conans/test/unittests/tools/gnu/autotoolschain_test.py::test_get_toolchain_cppstd", "conans/test/unittests/tools/gnu/autotoolschain_test.py::test_msvc_runtime[static-Debug-MTd]", "conans/test/unittests/tools/gn...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> [AutotoolsToolchain] Added helpers `update_xxxx_args` Changelog: Fix: `AutotoolsToolchain.configure_args` are adequately initialized. Changelog: Feature: Added to AutotoolsToolchain helper functions:...
4a5b19a75db9225316c8cb022a2dfb9705a2af34
softlayer__softlayer-python-1818
1,818
softlayer/softlayer-python
null
8ebebc36df35b308f3eade1a21f1f17e5de45ba2
2023-01-10T21:36:54Z
diff --git a/SoftLayer/CLI/routes.py b/SoftLayer/CLI/routes.py index 4acaea0ac..cefb00dfa 100644 --- a/SoftLayer/CLI/routes.py +++ b/SoftLayer/CLI/routes.py @@ -376,6 +376,7 @@ ('user:vpn-manual', 'SoftLayer.CLI.user.vpn_manual:cli'), ('user:vpn-subnet', 'SoftLayer.CLI.user.vpn_subnet:cli'), ('user:remov...
diff --git a/tests/CLI/modules/user_tests.py b/tests/CLI/modules/user_tests.py index 8823a9876..bb4dd5432 100644 --- a/tests/CLI/modules/user_tests.py +++ b/tests/CLI/modules/user_tests.py @@ -345,6 +345,23 @@ def test_devices_access(self): self.assert_called_with('SoftLayer_User_Customer', 'getDedicatedHosts'...
diff --git a/docs/cli/users.rst b/docs/cli/users.rst index 13e877647..55d0cf399 100644 --- a/docs/cli/users.rst +++ b/docs/cli/users.rst @@ -56,4 +56,8 @@ Version 5.6.0 introduces the ability to interact with user accounts from the cli :prog: user remove-access :show-nested: +.. click:: SoftLayer.CLI.user.g...
[ { "components": [ { "doc": "Grants a user access to a given device.\n\nExample: slcli user grant-access 123456 --hardware 123456789", "lines": [ 18, 42 ], "name": "cli", "signature": "def cli(env, identifier, hardware, virtual, dedicated):", ...
[ "tests/CLI/modules/user_tests.py::UserCLITests::test_grant_access_dedicated", "tests/CLI/modules/user_tests.py::UserCLITests::test_grant_access_hardware", "tests/CLI/modules/user_tests.py::UserCLITests::test_grant_access_virtual", "tests/CLI/modules/user_tests.py::UserCLITests::test_grant_without_device", "...
[ "tests/CLI/modules/user_tests.py::UserCLITests::test_create_user", "tests/CLI/modules/user_tests.py::UserCLITests::test_create_user_and_apikey", "tests/CLI/modules/user_tests.py::UserCLITests::test_create_user_from_user", "tests/CLI/modules/user_tests.py::UserCLITests::test_create_user_generate_password_36", ...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> New Command: `slcli user grant-access` Issue: https://github.com/softlayer/softlayer-python/issues/1816 Observations: `slcli user grant-access` command and unit tests were added ``` slcli user gran...
bd1ecce1ec4313b9ceefd3cfea52d1b9274fef9d
Textualize__textual-1535
1,535
Textualize/textual
null
4c75d1cb4836a6c6acf16d79257b652bb21d2b9b
2023-01-10T10:45:37Z
diff --git a/CHANGELOG.md b/CHANGELOG.md index dfd75338da..8cd10be6fb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/). - Added `TreeNode.parent` -- a read-only property for accessing a node's parent https://github.com/Textualize/textu...
diff --git a/tests/tree/test_tree_get_node_by_id.py b/tests/tree/test_tree_get_node_by_id.py new file mode 100644 index 0000000000..ffee369961 --- /dev/null +++ b/tests/tree/test_tree_get_node_by_id.py @@ -0,0 +1,16 @@ +import pytest +from typing import cast +from textual.widgets import Tree +from textual.widgets._tree...
diff --git a/CHANGELOG.md b/CHANGELOG.md index dfd75338da..8cd10be6fb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/). - Added `TreeNode.parent` -- a read-only property for accessing a node's parent https://github.com/Textualize/textu...
[ { "components": [ { "doc": "Exception raised when referring to an unknown `TreeNode` ID.", "lines": [ 518, 519 ], "name": "Tree.UnknownNodeID", "signature": "class UnknownNodeID(Exception):", "type": "class" }, { "doc"...
[ "tests/tree/test_tree_get_node_by_id.py::test_get_tree_node_by_id" ]
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add `Tree.get_node_by_id` The thinking here is that a user of a Tree may want to relate notes to other parts of their UI, or other data in their application. While this could be done by keeping a refe...
86e93536b991014e0ea4bf993068202b446bb698
conan-io__conan-12873
12,873
conan-io/conan
null
6e1f2bb60a430f2567480ddeaba19cafb20fbcb2
2023-01-09T13:36:32Z
diff --git a/conan/tools/android/__init__.py b/conan/tools/android/__init__.py new file mode 100644 index 00000000000..c969bbebd07 --- /dev/null +++ b/conan/tools/android/__init__.py @@ -0,0 +1,1 @@ +from conan.tools.android.utils import android_abi diff --git a/conan/tools/android/utils.py b/conan/tools/android/utils....
diff --git a/conans/test/unittests/tools/android/__init__.py b/conans/test/unittests/tools/android/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/conans/test/unittests/tools/android/test_android_tools.py b/conans/test/unittests/tools/android/test_android_tools.py new file mode 100644 index...
[ { "components": [ { "doc": "Returns Android-NDK ABI\n:param conanfile: ConanFile instance\n:param context: either \"host\", \"build\" or \"target\"\n:return: Android-NDK ABI", "lines": [ 4, 31 ], "name": "android_abi", "signature": "def android_a...
[ "conans/test/unittests/tools/android/test_android_tools.py::test_tools_android_abi" ]
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> add `conan.tools.android.android_abi()` Changelog: Feature: Add `conan.tools.android.android_abi()` function to return the Android standard ABI name based on Conan. Docs: https://github.com/conan-io/...
4a5b19a75db9225316c8cb022a2dfb9705a2af34
Textualize__textual-1517
1,517
Textualize/textual
null
779b10a0e8b8581fab512eb684a06eb90381705d
2023-01-07T14:10:40Z
diff --git a/src/textual/app.py b/src/textual/app.py index b207bbd025..89da6aaf60 100644 --- a/src/textual/app.py +++ b/src/textual/app.py @@ -1,6 +1,8 @@ from __future__ import annotations import asyncio +from concurrent.futures import Future +from functools import partial import inspect import io import os @@ ...
diff --git a/tests/test_concurrency.py b/tests/test_concurrency.py new file mode 100644 index 0000000000..c73418f2f2 --- /dev/null +++ b/tests/test_concurrency.py @@ -0,0 +1,53 @@ +import pytest + +from threading import Thread +from textual.app import App, ComposeResult +from textual.widgets import TextLog + + +def tes...
[ { "components": [ { "doc": "Run a callback from another thread.\n\nLike asyncio apps in general, Textual apps are not thread-safe. If you call methods\nor set attributes on Textual objects from a thread, you may get unpredictable results.\n\nThis method will ensure that your code is ran within the...
[ "tests/test_concurrency.py::test_call_from_thread_app_not_running", "tests/test_concurrency.py::test_call_from_thread" ]
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Call from thread method This is a step towards having an answer to devs who want to integrate a third-party API with Textual. The `call_from_thread` takes a callback that will be called in the app'...
86e93536b991014e0ea4bf993068202b446bb698
tobymao__sqlglot-899
899
tobymao/sqlglot
null
bac38151a8d72687247922e6898696be43ff4992
2023-01-06T21:54:34Z
diff --git a/sqlglot/dialects/clickhouse.py b/sqlglot/dialects/clickhouse.py index 6e655c2118..3ef467b1f6 100644 --- a/sqlglot/dialects/clickhouse.py +++ b/sqlglot/dialects/clickhouse.py @@ -11,13 +11,6 @@ def _lower_func(sql): return sql[:index].lower() + sql[index:] -def _quantile_sql(self, expression: exp.Q...
diff --git a/tests/dialects/test_clickhouse.py b/tests/dialects/test_clickhouse.py index 801e1af6dc..6801e6f845 100644 --- a/tests/dialects/test_clickhouse.py +++ b/tests/dialects/test_clickhouse.py @@ -15,6 +15,7 @@ def test_clickhouse(self): self.validate_identity("SELECT * FROM foo ASOF JOIN bla") ...
[]
[ "tests/dialects/test_clickhouse.py::TestClickhouse::test_clickhouse" ]
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Refactor clickhouse parametric functions, add quantiles fixes #898 ---------- </request> There are several new functions or classes that need to be implemented, using the definitions below: <<NEW ...
Here is the discussion in the issues of the pull request. <issues> ClickHouse `quantiles` (note the `s`) fails to parse when an alias is present I know I must be very annoying with all these ClickHouse parsing bug reports 😂 `quantile` works: ``` In [17]: import sqlglot as sg In [18]: sg.__version__ Out[18]...
ceb42fabad60312699e4b15936aeebac00e22e4d
tobymao__sqlglot-897
897
tobymao/sqlglot
null
ef992fab86e6e01c226f0235f82bdf4e38c6e680
2023-01-06T20:00:08Z
diff --git a/sqlglot/expressions.py b/sqlglot/expressions.py index 544849bfc5..7d07557d9e 100644 --- a/sqlglot/expressions.py +++ b/sqlglot/expressions.py @@ -457,6 +457,23 @@ def assert_is(self, type_): assert isinstance(self, type_) return self + def dump(self): + """ + Dump this ...
diff --git a/tests/test_serde.py b/tests/test_serde.py new file mode 100644 index 0000000000..603a155312 --- /dev/null +++ b/tests/test_serde.py @@ -0,0 +1,33 @@ +import json +import unittest + +from sqlglot import exp, parse_one +from sqlglot.optimizer.annotate_types import annotate_types +from tests.helpers import lo...
[]
[ "tests/test_serde.py::TestSerDe::test_custom_expression", "tests/test_serde.py::TestSerDe::test_serde", "tests/test_serde.py::TestSerDe::test_type_annotations" ]
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> dump/load Dump/load an AST to/from JSON Context: https://tobiko-data.slack.com/archives/C0448SFS3PF/p1673005789088219 ---------- </request> There are several new functions or classes that need ...
ceb42fabad60312699e4b15936aeebac00e22e4d
wagtail__wagtail-9854
9,854
wagtail/wagtail
null
93166339872df002c1b04e275b096807f73f38d7
2023-01-06T09:25:16Z
diff --git a/docs/advanced_topics/streamfield_migrations.md b/docs/advanced_topics/streamfield_migrations.md index 56871b81ee8d..fd64951d7cd8 100644 --- a/docs/advanced_topics/streamfield_migrations.md +++ b/docs/advanced_topics/streamfield_migrations.md @@ -483,7 +483,15 @@ Block ids are not preserved here since the n...
diff --git a/wagtail/test/streamfield_migrations/testutils.py b/wagtail/test/streamfield_migrations/testutils.py index d5f7668fec9f..744223fabef2 100644 --- a/wagtail/test/streamfield_migrations/testutils.py +++ b/wagtail/test/streamfield_migrations/testutils.py @@ -10,11 +10,7 @@ class MigrationTestMixin: default...
diff --git a/docs/advanced_topics/streamfield_migrations.md b/docs/advanced_topics/streamfield_migrations.md index 56871b81ee8d..fd64951d7cd8 100644 --- a/docs/advanced_topics/streamfield_migrations.md +++ b/docs/advanced_topics/streamfield_migrations.md @@ -483,7 +483,15 @@ Block ids are not preserved here since the n...
[ { "components": [ { "doc": "", "lines": [ 83, 90 ], "name": "MigrateStreamData.migration_name_fragment", "signature": "def migration_name_fragment(self):", "type": "function" } ], "file": "wagtail/blocks/migrations/migrate_o...
[ "wagtail/tests/streamfield_migrations/test_migration_names.py::MigrationNameTest::test_multiple", "wagtail/tests/streamfield_migrations/test_migration_names.py::MigrationNameTest::test_remove", "wagtail/tests/streamfield_migrations/test_migration_names.py::MigrationNameTest::test_rename" ]
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> make streamfield migration names from operations - `operation_name_fragment` property added to operations - `migration_name_fragment` property added to MigrateStreamData - added tests, docs updated ...
3697ee1f2ad9c46325c0a830a41b1317122a4502
Textualize__textual-1495
1,495
Textualize/textual
null
83ce1204b96e9da6bb3415e37306a0af2699c3a6
2023-01-05T21:28:14Z
diff --git a/CHANGELOG.md b/CHANGELOG.md index 7247eca7d6..6d80e2f628 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ### Added - Added public `TreeNode` label access via `TreeNode.label` https://github.com/Textualize/textual/issu...
diff --git a/tests/test_immutable_sequence_view.py b/tests/test_immutable_sequence_view.py new file mode 100644 index 0000000000..5af7f5133a --- /dev/null +++ b/tests/test_immutable_sequence_view.py @@ -0,0 +1,68 @@ +import pytest + +from typing import Sequence +from textual._immutable_sequence_view import ImmutableSeq...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 7247eca7d6..6d80e2f628 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ### Added - Added public `TreeNode` label access via `TreeNode.label` https://github.com/Textualize/textual/issu...
[ { "components": [ { "doc": "Class to wrap a sequence of some sort, but not allow modification.", "lines": [ 10, 68 ], "name": "ImmutableSequenceView", "signature": "class ImmutableSequenceView(Generic[T]):", "type": "class" }, ...
[ "tests/test_immutable_sequence_view.py::test_empty_immutable_sequence", "tests/test_immutable_sequence_view.py::test_non_empty_immutable_sequence", "tests/test_immutable_sequence_view.py::test_no_assign_to_immutable_sequence", "tests/test_immutable_sequence_view.py::test_no_del_from_iummutable_sequence", "t...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add read-only access to the children of a `TreeNode` Adds a generic `ImmutableSequence` wrapper class (name and location totally up for debate, although the name of the class got the nod in a Slack ch...
86e93536b991014e0ea4bf993068202b446bb698
conan-io__conan-12854
12,854
conan-io/conan
null
cd6e7ea13dc070db47174af6e31bd85bae2bf9cd
2023-01-05T16:48:27Z
diff --git a/conan/tools/cmake/toolchain/blocks.py b/conan/tools/cmake/toolchain/blocks.py index 5846f009705..60d9e575916 100644 --- a/conan/tools/cmake/toolchain/blocks.py +++ b/conan/tools/cmake/toolchain/blocks.py @@ -215,6 +215,21 @@ def context(self): return {"arch_flag": arch_flag} +class LinkerScrip...
diff --git a/conans/test/integration/toolchains/cmake/test_cmaketoolchain.py b/conans/test/integration/toolchains/cmake/test_cmaketoolchain.py index dcbc046aa7f..7f2bac7fb99 100644 --- a/conans/test/integration/toolchains/cmake/test_cmaketoolchain.py +++ b/conans/test/integration/toolchains/cmake/test_cmaketoolchain.py...
[ { "components": [ { "doc": "", "lines": [ 218, 230 ], "name": "LinkerScriptsBlock", "signature": "class LinkerScriptsBlock(Block):", "type": "class" }, { "doc": "", "lines": [ 223, 230 ...
[ "conans/test/integration/toolchains/cmake/test_cmaketoolchain.py::test_set_linker_scripts", "conans/test/integration/toolchains/gnu/test_autotoolstoolchain.py::test_linker_scripts_via_conf", "conans/test/integration/toolchains/meson/test_mesontoolchain.py::test_linker_scripts_via_conf", "conans/test/unittests...
[ "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> Add tools.build:linker_scripts conf variable Changelog: Feature: Adds a conf variable for supplying linker scripts to the linker using the `-T` flag. Docs: https://github.com/conan-io/docs/pull/2887...
Here is the discussion in the issues of the pull request. <issues> [feature] CMakeToolchain support for linker scripts When building an ELF executable for bare-metal targets it is normal to include a linker script to define the memory layout of the specific target microcontroller. It is possible to use multiple linker...
4a5b19a75db9225316c8cb022a2dfb9705a2af34
Textualize__textual-1488
1,488
Textualize/textual
null
85afdba12547312a01363b27c6f2ad7540fe5d24
2023-01-05T10:37:15Z
diff --git a/CHANGELOG.md b/CHANGELOG.md index fa82c5ab1a..f852ea6d5a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ### Added +- Added `TreeNode.parent` -- a read-only property for accessing a node's parent https://github.com/Tex...
diff --git a/tests/tree/test_tree_node_parent.py b/tests/tree/test_tree_node_parent.py new file mode 100644 index 0000000000..90353ea92a --- /dev/null +++ b/tests/tree/test_tree_node_parent.py @@ -0,0 +1,10 @@ +from textual.widgets import TreeNode, Tree + +def test_tree_node_parent() -> None: + """It should be possi...
diff --git a/CHANGELOG.md b/CHANGELOG.md index fa82c5ab1a..f852ea6d5a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ### Added +- Added `TreeNode.parent` -- a read-only property for accessing a node's parent https://github.com/Tex...
[ { "components": [ { "doc": "TreeNode[TreeDataType] | None: The parent of the node.", "lines": [ 125, 127 ], "name": "TreeNode.parent", "signature": "def parent(self) -> TreeNode[TreeDataType] | None:", "type": "function" } ], ...
[ "tests/tree/test_tree_node_parent.py::test_tree_node_parent" ]
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add a public read-only parent property to TreeNode See #1397. ---------- </request> There are several new functions or classes that need to be implemented, using the definitions below: <<NEW DEFI...
86e93536b991014e0ea4bf993068202b446bb698
joke2k__faker-1776
1,776
joke2k/faker
null
7e78eef2565c5ce78b879bf271f520e817f55d4f
2023-01-04T21:15:36Z
diff --git a/faker/providers/address/pl_PL/__init__.py b/faker/providers/address/pl_PL/__init__.py index e993e5d5e9..84ac931aa0 100644 --- a/faker/providers/address/pl_PL/__init__.py +++ b/faker/providers/address/pl_PL/__init__.py @@ -675,4 +675,22 @@ def administrative_unit(self) -> str: """ return s...
diff --git a/tests/providers/test_address.py b/tests/providers/test_address.py index 120dee6665..564012c942 100644 --- a/tests/providers/test_address.py +++ b/tests/providers/test_address.py @@ -2220,3 +2220,25 @@ def test_region(self, faker, num_samples): region = faker.region() assert isinst...
[ { "components": [ { "doc": ":example: '62-200'", "lines": [ 678, 682 ], "name": "Provider.postcode", "signature": "def postcode(self) -> str:", "type": "function" }, { "doc": ":example: '62-200'", "lines": [ ...
[ "tests/providers/test_address.py::TestPlPl::test_zipcode", "tests/providers/test_address.py::TestPlPl::test_postalcode" ]
[ "tests/providers/test_address.py::TestBaseProvider::test_alpha_2_country_codes", "tests/providers/test_address.py::TestBaseProvider::test_alpha_2_country_codes_as_default", "tests/providers/test_address.py::TestBaseProvider::test_alpha_3_country_codes", "tests/providers/test_address.py::TestBaseProvider::test...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> feat(pl_PL): add methods: `zipcode` `postcode` `postalcode` ### What does this change Add above methods to Polish locale. ### What was wrong `pl_PL` was missing zipcode methods. ### How th...
6edfdbf6ae90b0153309e3bf066aa3b2d16494a7
saleweaver__python-amazon-sp-api-869
869
saleweaver/python-amazon-sp-api
null
8e9d3cc391b9cb105cac3274decd84c94c9ce201
2023-01-03T20:05:56Z
diff --git a/docs/env_variables.rst b/docs/env_variables.rst index 92d404d3d..3a7c79986 100644 --- a/docs/env_variables.rst +++ b/docs/env_variables.rst @@ -2,16 +2,17 @@ Environment Variables ===================== -===================== ==========================================================================...
diff --git a/tests/client/test_credential_provider.py b/tests/client/test_credential_provider.py new file mode 100644 index 000000000..c47380e0c --- /dev/null +++ b/tests/client/test_credential_provider.py @@ -0,0 +1,54 @@ +import os +from unittest import mock + +from sp_api.base.credential_provider import FromCachedSe...
diff --git a/docs/env_variables.rst b/docs/env_variables.rst index 92d404d3d..3a7c79986 100644 --- a/docs/env_variables.rst +++ b/docs/env_variables.rst @@ -2,16 +2,17 @@ Environment Variables ===================== -===================== ==========================================================================...
[ { "components": [ { "doc": "", "lines": [ 80, 99 ], "name": "BaseFromSecretsCredentialProvider", "signature": "class BaseFromSecretsCredentialProvider(BaseCredentialProvider):", "type": "class" }, { "doc": "", ...
[ "tests/client/test_credential_provider.py::test_from_cached_secrets_cp_without_secret_id_set", "tests/client/test_credential_provider.py::test_from_cached_secrets_cp_without_cache_available", "tests/client/test_credential_provider.py::test_from_cached_secrets_cp_with_cache_available" ]
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> feat: Add support for aws-secretsmanager-caching-python library This change generalizes the implementation of `FromSecretsCredentialProvider`, to provide multiple implementations. Based on it, a new c...
20b116e25e22641d877cfd6b311e14c03879e360
pgmpy__pgmpy-1588
1,588
pgmpy/pgmpy
null
55709c6ba50662bb996a0bd3dd19f7f414fafae1
2023-01-02T17:34:51Z
diff --git a/pgmpy/estimators/ExhaustiveSearch.py b/pgmpy/estimators/ExhaustiveSearch.py index a16fc51a9..baaa94fec 100644 --- a/pgmpy/estimators/ExhaustiveSearch.py +++ b/pgmpy/estimators/ExhaustiveSearch.py @@ -25,7 +25,7 @@ def __init__(self, data, scoring_method=None, use_cache=True, **kwargs): Note th...
diff --git a/pgmpy/tests/test_estimators/test_HillClimbSearch.py b/pgmpy/tests/test_estimators/test_HillClimbSearch.py index db9bde113..e96de4729 100644 --- a/pgmpy/tests/test_estimators/test_HillClimbSearch.py +++ b/pgmpy/tests/test_estimators/test_HillClimbSearch.py @@ -241,7 +241,7 @@ def test_no_legal_operation(sel...
[ { "components": [ { "doc": "", "lines": [ 358, 421 ], "name": "AICScore", "signature": "class AICScore(StructureScore):", "type": "class" }, { "doc": "Class for Bayesian structure scoring for BayesianNetworks with\nDir...
[ "pgmpy/tests/test_estimators/test_HillClimbSearch.py::TestHillClimbEstimator::test_estimate", "pgmpy/tests/test_estimators/test_HillClimbSearch.py::TestHillClimbEstimator::test_estimate_rand", "pgmpy/tests/test_estimators/test_HillClimbSearch.py::TestHillClimbEstimator::test_estimate_titanic", "pgmpy/tests/te...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> New score option: AIC score ### Your checklist for this pull request Please review the [guidelines for contributing](CONTRIBUTING.md) to this repository. - [ ] Make sure you are requesting to **pu...
cf8d0f12e2e5be62b01ff8fded85f3f64eab1e84
tobymao__sqlglot-874
874
tobymao/sqlglot
null
f5f3f84c7343151c5f48da60e8c15df41aadb33a
2023-01-02T17:23:08Z
diff --git a/sqlglot/dialects/postgres.py b/sqlglot/dialects/postgres.py index 15f627bfdb..a092cadb2a 100644 --- a/sqlglot/dialects/postgres.py +++ b/sqlglot/dialects/postgres.py @@ -15,6 +15,15 @@ from sqlglot.tokens import TokenType from sqlglot.transforms import delegate, preprocess +DATE_DIFF_FACTOR = { + "M...
diff --git a/tests/dialects/test_databricks.py b/tests/dialects/test_databricks.py index 2168f55de3..7560d616fa 100644 --- a/tests/dialects/test_databricks.py +++ b/tests/dialects/test_databricks.py @@ -12,6 +12,76 @@ def test_datediff(self): "databricks": "SELECT DATEDIFF(year, 'start', 'end')", ...
[]
[ "tests/dialects/test_databricks.py::TestDatabricks::test_datediff" ]
[ "tests/dialects/test_databricks.py::TestDatabricks::test_add_date" ]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Transpile DATEDIFF to postgres This is a WIP -- thought I'd start a PR early to get some feedback and iterate faster. The units "week", "month", "quarter" and "year" are currently missing from the imp...
ceb42fabad60312699e4b15936aeebac00e22e4d
matplotlib__matplotlib-24849
24,849
matplotlib/matplotlib
3.6
75e2d2202dc19ee39c8b9a80b01475b90f07c75c
2022-12-31T10:19:18Z
diff --git a/lib/matplotlib/collections.py b/lib/matplotlib/collections.py index bf88dd2b68a3..3aa2eba48ff2 100644 --- a/lib/matplotlib/collections.py +++ b/lib/matplotlib/collections.py @@ -9,6 +9,7 @@ line segments). """ +import itertools import math from numbers import Number import warnings @@ -163,6 +164,9 ...
diff --git a/lib/matplotlib/tests/test_collections.py b/lib/matplotlib/tests/test_collections.py index 07e15897454e..115d1c859807 100644 --- a/lib/matplotlib/tests/test_collections.py +++ b/lib/matplotlib/tests/test_collections.py @@ -1,5 +1,6 @@ from datetime import datetime import io +import itertools import re f...
[ { "components": [ { "doc": "", "lines": [ 1477, 1481 ], "name": "LineCollection.set_alpha", "signature": "def set_alpha(self, alpha):", "type": "function" }, { "doc": "Set a color to fill the gaps in the dashed line st...
[ "lib/matplotlib/tests/test_collections.py::test_striped_lines[png-orange]", "lib/matplotlib/tests/test_collections.py::test_striped_lines[png-gapcolor1]" ]
[ "lib/matplotlib/tests/test_collections.py::test__EventCollection__get_props[png]", "lib/matplotlib/tests/test_collections.py::test__EventCollection__set_positions[png]", "lib/matplotlib/tests/test_collections.py::test__EventCollection__add_positions[png]", "lib/matplotlib/tests/test_collections.py::test__Even...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Stripey `LineCollection` ## PR Summary Closes #24796. Following #23208, which implemented the `gapcolor` property for `Line2D`, this PR implements `gapcolor` for `LineCollection`. So we can set...
Here is the discussion in the issues of the pull request. <issues> [Bug]: gapcolor not supported for LineCollections ### Bug summary [LineCollection](https://github.com/matplotlib/matplotlib/blob/509315008ce383f7fb5b2dbbdc2a5a966dd83aad/lib/matplotlib/collections.py#L1351) doesn't have a `get_gapcolor` or `set_gapco...
75e2d2202dc19ee39c8b9a80b01475b90f07c75c
sympy__sympy-24437
24,437
sympy/sympy
1.12
9b9786518d3475751e66e11d3e3592091e3160b3
2022-12-29T22:56:10Z
diff --git a/sympy/utilities/iterables.py b/sympy/utilities/iterables.py index 144713d4fe47..a0eb4cece751 100644 --- a/sympy/utilities/iterables.py +++ b/sympy/utilities/iterables.py @@ -3,7 +3,6 @@ chain, combinations, combinations_with_replacement, cycle, islice, permutations, product ) - # For backwards ...
diff --git a/sympy/utilities/tests/test_iterables.py b/sympy/utilities/tests/test_iterables.py index 77c6e7b1ee80..8e527a447e75 100644 --- a/sympy/utilities/tests/test_iterables.py +++ b/sympy/utilities/tests/test_iterables.py @@ -19,7 +19,8 @@ prefixes, reshape, rotate_left, rotate_right, runs, sift, strongl...
[ { "components": [ { "doc": "Returns the partition of sequence $l$ into $n$ bins\n\nExplanation\n===========\n\nGiven the sequence $l_1 \\cdots l_m \\in V^+$ where\n$V^+$ is the Kleene plus of $V$\n\nThe set of $n$ partitions of $l$ is defined as:\n\n.. math::\n \\{(s_1, \\cdots, s_n) | s_1 \\in...
[ "test_deprecated_iterables", "test_is_palindromic", "test_flatten", "test_iproduct", "test_group", "test_subsets", "test_variations", "test_cartes", "test_filter_symbols", "test_numbered_symbols", "test_sift", "test_take", "test_dict_merge", "test_prefixes", "test_postfixes", "test_top...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Decompose partition utility from `kbins` <!-- Your title above should be a short description of what was changed. Do not include the issue number in the title. --> #### References to other Issues ...
22520ed5f4a9b2b6c4b6b314b4748878f1b4b662
pvlib__pvlib-python-1628
1,628
pvlib/pvlib-python
0.8
311781d2380997044da0e484dc90aa146a74ca44
2022-12-29T18:04:25Z
diff --git a/docs/sphinx/source/reference/effects_on_pv_system_output/spectrum.rst b/docs/sphinx/source/reference/effects_on_pv_system_output/spectrum.rst index b6fe7f4684..ed6cdc0b51 100644 --- a/docs/sphinx/source/reference/effects_on_pv_system_output/spectrum.rst +++ b/docs/sphinx/source/reference/effects_on_pv_syst...
diff --git a/pvlib/tests/test_atmosphere.py b/pvlib/tests/test_atmosphere.py index 3518ccb7d6..46db622ee5 100644 --- a/pvlib/tests/test_atmosphere.py +++ b/pvlib/tests/test_atmosphere.py @@ -9,6 +9,8 @@ from pvlib import atmosphere +from pvlib._deprecation import pvlibDeprecationWarning + def test_pres2alt(): ...
diff --git a/docs/sphinx/source/reference/effects_on_pv_system_output/spectrum.rst b/docs/sphinx/source/reference/effects_on_pv_system_output/spectrum.rst index b6fe7f4684..ed6cdc0b51 100644 --- a/docs/sphinx/source/reference/effects_on_pv_system_output/spectrum.rst +++ b/docs/sphinx/source/reference/effects_on_pv_syst...
[ { "components": [ { "doc": "Spectral mismatch modifier based on precipitable water and absolute\n(pressure-adjusted) airmass.\n\nEstimates a spectral mismatch modifier :math:`M` representing the effect on\nmodule short circuit current of variation in the spectral\nirradiance. :math:`M` is estimat...
[ "pvlib/tests/test_atmosphere.py::test_first_solar_spectral_correction_deprecated", "pvlib/tests/test_pvsystem.py::test_sapm_spectral_loss_deprecated", "pvlib/tests/test_pvsystem.py::test_PVSystem_sapm_spectral_loss", "pvlib/tests/test_pvsystem.py::test_PVSystem_first_solar_spectral_loss[module_parameters0-mul...
[ "pvlib/tests/test_atmosphere.py::test_pres2alt", "pvlib/tests/test_atmosphere.py::test_alt2pres", "pvlib/tests/test_atmosphere.py::test_airmass[simple-expected0]", "pvlib/tests/test_atmosphere.py::test_airmass[kasten1966-expected1]", "pvlib/tests/test_atmosphere.py::test_airmass[youngirvine1967-expected2]",...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Migrate spectral modifier functions to pvlib.spectrum - ~[ ] Closes #xxxx~ - [x] I am familiar with the [contributing guidelines](https://pvlib-python.readthedocs.io/en/latest/contributing.html) ...
311781d2380997044da0e484dc90aa146a74ca44
tobymao__sqlglot-858
858
tobymao/sqlglot
null
6e4c0ef48ab0db1a336d634273dab35de17c80bc
2022-12-28T22:32:11Z
diff --git a/sqlglot/expressions.py b/sqlglot/expressions.py index 701abb0ff4..888c4fc48d 100644 --- a/sqlglot/expressions.py +++ b/sqlglot/expressions.py @@ -1337,7 +1337,7 @@ def with_( "group": False, "having": False, "qualify": False, - "window": False, + "windows": False, "distribute": Fa...
diff --git a/tests/test_build.py b/tests/test_build.py index b014a3ab0c..a1a268ded6 100644 --- a/tests/test_build.py +++ b/tests/test_build.py @@ -481,6 +481,19 @@ def test_build(self): ), (lambda: exp.delete("y", where="x > 1"), "DELETE FROM y WHERE x > 1"), (lambda: exp.delete("...
[]
[ "tests/test_build.py::TestBuild::test_build" ]
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add a window clause builder to Select. A few comments about this PR: * The argument to Select used everywhere else in the code was `windows`, so I updated `QUERY_MODIFIERS` to reflect that. * I ha...
ceb42fabad60312699e4b15936aeebac00e22e4d
matplotlib__matplotlib-24728
24,728
matplotlib/matplotlib
3.6
5a34696d712dcb9c939e726e234e28a3135974ff
2022-12-14T18:56:39Z
diff --git a/doc/api/axes_api.rst b/doc/api/axes_api.rst index 07586690347f..3457368fa51c 100644 --- a/doc/api/axes_api.rst +++ b/doc/api/axes_api.rst @@ -110,11 +110,12 @@ Statistics :template: autosummary.rst :nosignatures: + Axes.ecdf Axes.boxplot Axes.violinplot - Axes.violin Axes.bxp + ...
diff --git a/lib/matplotlib/tests/test_axes.py b/lib/matplotlib/tests/test_axes.py index bd26419dee4d..b68ebcf57ba7 100644 --- a/lib/matplotlib/tests/test_axes.py +++ b/lib/matplotlib/tests/test_axes.py @@ -8448,3 +8448,36 @@ def test_rc_axes_label_formatting(): assert ax.xaxis.label.get_color() == 'red' asse...
diff --git a/doc/api/axes_api.rst b/doc/api/axes_api.rst index 07586690347f..3457368fa51c 100644 --- a/doc/api/axes_api.rst +++ b/doc/api/axes_api.rst @@ -110,11 +110,12 @@ Statistics :template: autosummary.rst :nosignatures: + Axes.ecdf Axes.boxplot Axes.violinplot - Axes.violin Axes.bxp + ...
[ { "components": [ { "doc": "Compute and plot the empirical cumulative distribution function of *x*.\n\n.. versionadded:: 3.8\n\nParameters\n----------\nx : 1d array-like\n The input data. Infinite entries are kept (and move the relevant\n end of the ecdf from 0/1), but NaNs and masked value...
[ "lib/matplotlib/tests/test_axes.py::test_ecdf[png]", "lib/matplotlib/tests/test_axes.py::test_ecdf_invalid" ]
[ "lib/matplotlib/tests/test_axes.py::test_invisible_axes[png]", "lib/matplotlib/tests/test_axes.py::test_get_labels", "lib/matplotlib/tests/test_axes.py::test_repr", "lib/matplotlib/tests/test_axes.py::test_label_loc_vertical[png]", "lib/matplotlib/tests/test_axes.py::test_label_loc_horizontal[png]", "lib/...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add Axes.ecdf() method. ## PR Summary See discussion at #16561 (attn @Wrzlprmft). I chose to implement remove_redundant (under the name "compress") as I can see cases where it would be helpful for...
75e2d2202dc19ee39c8b9a80b01475b90f07c75c
joke2k__faker-1767
1,767
joke2k/faker
null
5a00c1f31728af97b84a02ca0e629f761f441157
2022-12-14T16:39:24Z
diff --git a/faker/providers/address/en_CA/__init__.py b/faker/providers/address/en_CA/__init__.py index 4602bb0ead..f2ac4cafb7 100644 --- a/faker/providers/address/en_CA/__init__.py +++ b/faker/providers/address/en_CA/__init__.py @@ -2,6 +2,8 @@ from typing import Optional +from faker.providers import ElementsTyp...
diff --git a/tests/providers/test_address.py b/tests/providers/test_address.py index 564012c942..d9cf2e8b25 100644 --- a/tests/providers/test_address.py +++ b/tests/providers/test_address.py @@ -26,6 +26,7 @@ from faker.providers.address.es_MX import Provider as EsMxAddressProvider from faker.providers.address.fa_IR ...
[ { "components": [ { "doc": "", "lines": [ 6, 81 ], "name": "Provider", "signature": "class Provider(EnCaProvider):", "type": "class" }, { "doc": "", "lines": [ 74, 75 ], "nam...
[ "tests/providers/test_address.py::TestBaseProvider::test_alpha_2_country_codes", "tests/providers/test_address.py::TestBaseProvider::test_alpha_2_country_codes_as_default", "tests/providers/test_address.py::TestBaseProvider::test_alpha_3_country_codes", "tests/providers/test_address.py::TestBaseProvider::test...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> add code and test suite for fr_CA address provider Add a new address provider for `fr_CA` with the appropriate tests. ---------- </request> There are several new functions or classes that need to be...
6edfdbf6ae90b0153309e3bf066aa3b2d16494a7
Project-MONAI__MONAI-5738
5,738
Project-MONAI/MONAI
null
c5ea694985dc1e8eeef075da3a65b2c2fc2f9a8e
2022-12-14T14:52:53Z
diff --git a/monai/utils/__init__.py b/monai/utils/__init__.py index 6dc12a0254..1dd7e40930 100644 --- a/monai/utils/__init__.py +++ b/monai/utils/__init__.py @@ -12,7 +12,7 @@ # have to explicitly bring these in here to resolve circular import issues from .aliases import alias, resolve_name from .decorators import ...
diff --git a/tests/test_deprecated.py b/tests/test_deprecated.py index c94c300175..286ec4f8a5 100644 --- a/tests/test_deprecated.py +++ b/tests/test_deprecated.py @@ -12,7 +12,7 @@ import unittest import warnings -from monai.utils import DeprecatedError, deprecated, deprecated_arg +from monai.utils import Deprecate...
[ { "components": [ { "doc": "Marks a particular arguments default of a callable as deprecated. It is changed from `old_default` to `new_default`\nin version `changed`.\n\nWhen the decorated definition is called, a `warning_category` is issued if `since` is given,\nthe default is not explicitly set ...
[ "tests/test_deprecated.py::TestDeprecatedRC::test_warning", "tests/test_deprecated.py::TestDeprecatedRC::test_warning_beyond", "tests/test_deprecated.py::TestDeprecatedRC::test_warning_last", "tests/test_deprecated.py::TestDeprecatedRC::test_warning_milestone", "tests/test_deprecated.py::TestDeprecated::tes...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Utility function to warn changes in default arguments Fixes #5653. ### Description A new utility decorator that enables us to warn users of a changing default argument. Current implementation d...
Here is the discussion in the issues of the pull request. <issues> utility function to warn changes in default arguments **Is your feature request related to a problem? Please describe.** https://github.com/Project-MONAI/MONAI/blob/e8c624769b30f55f265995e1c4ff899ead7ff19e/monai/utils/deprecate_utils.py#L119-L127 the ...
e73257caa79309dcce1e93abf1632f4bfd75b11f
huggingface__huggingface_hub-1266
1,266
huggingface/huggingface_hub
null
8475bd7e69abac982781319304c344546093afaf
2022-12-14T13:37:21Z
diff --git a/src/huggingface_hub/_commit_api.py b/src/huggingface_hub/_commit_api.py index 50c04215cf..fd62ca34b0 100644 --- a/src/huggingface_hub/_commit_api.py +++ b/src/huggingface_hub/_commit_api.py @@ -6,24 +6,20 @@ import os import warnings from collections import defaultdict -from concurrent import futures -f...
diff --git a/tests/test_utils_tqdm.py b/tests/test_utils_tqdm.py index 3d1020e15c..7ebeba4adb 100644 --- a/tests/test_utils_tqdm.py +++ b/tests/test_utils_tqdm.py @@ -1,4 +1,7 @@ +import tempfile +import time import unittest +from pathlib import Path from unittest.mock import patch import pytest @@ -9,6 +12,7 @@ ...
[ { "components": [ { "doc": "", "lines": [ 331, 340 ], "name": "upload_lfs_files._inner_upload_lfs_object", "signature": "def _inner_upload_lfs_object(batch_action):", "type": "function" } ], "file": "src/huggingface_hub/_com...
[ "tests/test_utils_tqdm.py::TestTqdmUtils::test_cannot_disable_tqdm_when_env_variable_is_set", "tests/test_utils_tqdm.py::TestTqdmUtils::test_cannot_enable_tqdm_when_env_variable_is_set", "tests/test_utils_tqdm.py::TestTqdmUtils::test_tqdm_can_be_disabled_when_globally_enabled", "tests/test_utils_tqdm.py::Test...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Progress bar when uploading LFS files Resolve #1244 (cc @sijunhe). Add 2 progress bars when creating a commit. A "main" one showing how much LFS files must be uploaded + 1 progress for each individ...
Here is the discussion in the issues of the pull request. <issues> http-based upload function should have a progress bar and show upload speed **Is your feature request related to a problem? Please describe.** When uploading big model files, it'd be good to have feedback and UI elements to show the progress and the up...
4058e1f97ebe256b2f3006d4bc31be275c66df6b
sympy__sympy-24384
24,384
sympy/sympy
1.12
bd7bbeaa9a12ab357df3b18416c0a949b3481d3d
2022-12-13T16:22:53Z
diff --git a/sympy/combinatorics/named_groups.py b/sympy/combinatorics/named_groups.py index 61644f049fce..934e7605eca1 100644 --- a/sympy/combinatorics/named_groups.py +++ b/sympy/combinatorics/named_groups.py @@ -124,6 +124,7 @@ def AlternatingGroup(n): G._degree = n G._is_transitive = True G._is_alt =...
diff --git a/sympy/combinatorics/tests/test_perm_groups.py b/sympy/combinatorics/tests/test_perm_groups.py index 192927ea5739..f90a59623a38 100644 --- a/sympy/combinatorics/tests/test_perm_groups.py +++ b/sympy/combinatorics/tests/test_perm_groups.py @@ -1047,6 +1047,51 @@ def test_cyclic(): assert G._is_abelian ...
[ { "components": [ { "doc": "Return ``True`` if the group is dihedral.\n\nExamples\n========\n\n>>> from sympy.combinatorics.perm_groups import PermutationGroup\n>>> from sympy.combinatorics.permutations import Permutation\n>>> from sympy.combinatorics.named_groups import SymmetricGroup, CyclicGrou...
[ "test_dihedral" ]
[ "test_has", "test_generate", "test_order", "test_equality", "test_stabilizer", "test_center", "test_centralizer", "test_coset_rank", "test_coset_factor", "test_orbits", "test_is_normal", "test_eq", "test_derived_subgroup", "test_is_solvable", "test_rubik1", "test_direct_product", "te...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add a `PermutationGroup.is_dihedral` property <!-- Your title above should be a short description of what was changed. Do not include the issue number in the title. --> #### References to other Is...
22520ed5f4a9b2b6c4b6b314b4748878f1b4b662
tobymao__sqlglot-814
814
tobymao/sqlglot
null
cfd0a4b2b7b3027d58cde358a0f27fba84579c18
2022-12-12T23:44:14Z
diff --git a/sqlglot/schema.py b/sqlglot/schema.py index 8a264a2819..c223ee01a4 100644 --- a/sqlglot/schema.py +++ b/sqlglot/schema.py @@ -237,12 +237,17 @@ def get_column_type(self, table: exp.Table | str, column: exp.Column | str) -> e if table_: table_schema = self.find(table_, raise_on_missing...
diff --git a/tests/test_schema.py b/tests/test_schema.py index f1e12a27d6..6c1ca9ca74 100644 --- a/tests/test_schema.py +++ b/tests/test_schema.py @@ -1,6 +1,6 @@ import unittest -from sqlglot import exp, to_table +from sqlglot import exp, parse_one, to_table from sqlglot.errors import SchemaError from sqlglot.sch...
[]
[ "tests/test_schema.py::TestSchema::test_schema_get_column_type" ]
[ "tests/test_schema.py::TestSchema::test_schema", "tests/test_schema.py::TestSchema::test_schema_add_table_with_and_without_mapping", "tests/test_schema.py::TestSchema::test_schema_catalog", "tests/test_schema.py::TestSchema::test_schema_db" ]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Schema: allow DataType objects as column types {} ---------- </request> There are several new functions or classes that need to be implemented, using the definitions below: <<NEW DEFINITIONS>> Ther...
ceb42fabad60312699e4b15936aeebac00e22e4d
pydata__xarray-7373
7,373
pydata/xarray
2022.09
f46cd708f8e220272173e2fc3e66c7688df45c39
2022-12-10T23:40:47Z
diff --git a/doc/whats-new.rst b/doc/whats-new.rst index 26bd72b0727..63ac491e61e 100644 --- a/doc/whats-new.rst +++ b/doc/whats-new.rst @@ -45,7 +45,10 @@ Breaking changes Deprecations ~~~~~~~~~~~~ - +- Following pandas, the `closed` parameters of :py:func:`cftime_range` and + :py:func:`date_range` are deprecated...
diff --git a/xarray/tests/test_cftime_offsets.py b/xarray/tests/test_cftime_offsets.py index c981015521b..6b628c15488 100644 --- a/xarray/tests/test_cftime_offsets.py +++ b/xarray/tests/test_cftime_offsets.py @@ -33,7 +33,7 @@ ) from xarray.coding.frequencies import infer_freq from xarray.core.dataarray import DataA...
diff --git a/doc/whats-new.rst b/doc/whats-new.rst index 26bd72b0727..63ac491e61e 100644 --- a/doc/whats-new.rst +++ b/doc/whats-new.rst @@ -45,7 +45,10 @@ Breaking changes Deprecations ~~~~~~~~~~~~ - +- Following pandas, the `closed` parameters of :py:func:`cftime_range` and + :py:func:`date_range` are deprecated...
[ { "components": [ { "doc": "Follows code added in pandas #43504.", "lines": [ 857, 874 ], "name": "_translate_closed_to_inclusive", "signature": "def _translate_closed_to_inclusive(closed):", "type": "function" }, { "d...
[ "xarray/tests/test_cftime_offsets.py::test_cftime_range[365_day-0001-01-01-0001-01-04-None-D-neither-False-[(1,", "xarray/tests/test_cftime_offsets.py::test_cftime_range[365_day-0001-01-01-0001-01-04-None-D-None-False-[(1,", "xarray/tests/test_cftime_offsets.py::test_cftime_range[365_day-0001-01-01-0001-01-04-N...
[ "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> Add `inclusive` argument to `cftime_range` and `date_range` and deprecate `closed` argument <!-- Feel free to remove check-list items aren't relevant to your change --> Following pandas, this PR ad...
Here is the discussion in the issues of the pull request. <issues> FutureWarning for pandas date_range ### What is your issue? Xarray raises a FutureWarning in its date_range, also observable in your tests. The precise warning is: > xarray/coding/cftime_offsets.py:1130: FutureWarning: Argument `closed` is deprecated...
087ebbb78668bdf5d2d41c3b2553e3f29ce75be1
django__django-16369
16,369
django/django
4.2
ab7a85ac297464df82d8363455609979ca3603db
2022-12-07T15:09:14Z
diff --git a/django/contrib/sitemaps/__init__.py b/django/contrib/sitemaps/__init__.py index 3d276b60d490..df57f1cd5c70 100644 --- a/django/contrib/sitemaps/__init__.py +++ b/django/contrib/sitemaps/__init__.py @@ -92,6 +92,10 @@ def _get(self, name, item, default=None): return attr(item) return a...
diff --git a/tests/sitemaps_tests/test_http.py b/tests/sitemaps_tests/test_http.py index 8c16f66896bd..12e387757be7 100644 --- a/tests/sitemaps_tests/test_http.py +++ b/tests/sitemaps_tests/test_http.py @@ -10,7 +10,7 @@ from django.utils.formats import localize from .base import SitemapTestsBase -from .models impo...
diff --git a/docs/ref/contrib/sitemaps.txt b/docs/ref/contrib/sitemaps.txt index d3225405a38d..7dc3dced5183 100644 --- a/docs/ref/contrib/sitemaps.txt +++ b/docs/ref/contrib/sitemaps.txt @@ -311,6 +311,15 @@ Note: The latest ``lastmod`` returned by calling the method with all items returned by :me...
[ { "components": [ { "doc": "Languages for which this item is displayed.", "lines": [ 95, 97 ], "name": "Sitemap.get_languages_for_item", "signature": "def get_languages_for_item(self, item):", "type": "function" } ], "file":...
[ "A i18n sitemap index in which item can be chosen to be displayed for a" ]
[ "A simple sitemap index can be rendered with a custom template", "test_simple_sitemap_custom_index_warning (sitemaps_tests.test_http.DeprecatedTests)", "A i18n sitemap with alternate/hreflang links can be rendered.", "A i18n sitemap index with limited languages can be rendered.", "A i18n sitemap index with ...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Fixed #33662 -- Allowed Sitemap to customize languages for each item. [ticket #33662 : Choose which items are displayed per language in Sitemap ](https://code.djangoproject.com/ticket/33662) --------...
Here is the discussion in the issues of the pull request. <issues> Choose which items are displayed per language in Sitemap Description The current implementation of Sitemap is : if we use i18n, then we display a cartesian product between some items and some languages. There is no way to use the provided i18n autom...
016bead6a23989adec5c7ee6948db7ce2fc5e89b
django__django-16349
16,349
django/django
4.2
3d3e955efaaeb4cc968e522592c5c1e47bdc72c4
2022-12-01T17:28:12Z
diff --git a/django/http/response.py b/django/http/response.py index bb94e81263b8..3c281f3dd027 100644 --- a/django/http/response.py +++ b/django/http/response.py @@ -8,7 +8,7 @@ import time from email.header import Header from http.client import responses -from urllib.parse import quote, urlparse +from urllib.parse...
diff --git a/tests/utils_tests/test_http.py b/tests/utils_tests/test_http.py index add962568518..2290fe85fbba 100644 --- a/tests/utils_tests/test_http.py +++ b/tests/utils_tests/test_http.py @@ -7,6 +7,7 @@ from django.utils.datastructures import MultiValueDict from django.utils.http import ( base36_to_int, + ...
diff --git a/docs/ref/utils.txt b/docs/ref/utils.txt index 1c9141a986cc..b1a08dc0e197 100644 --- a/docs/ref/utils.txt +++ b/docs/ref/utils.txt @@ -729,6 +729,15 @@ escaping HTML. Outputs a string in the format ``Wdy, DD Mon YYYY HH:MM:SS GMT``. +.. function:: content_disposition_header(as_attachment, filename)...
[ { "components": [ { "doc": "Construct a Content-Disposition HTTP header value from the given filename\nas specified by RFC 6266.", "lines": [ 431, 449 ], "name": "content_disposition_header", "signature": "def content_disposition_header(as_attach...
[ "test_basic (utils_tests.test_http.ContentDispositionHeaderTests)", "test_input_too_large (utils_tests.test_http.Base36IntTests)", "test_invalid_literal (utils_tests.test_http.Base36IntTests)", "test_negative_input (utils_tests.test_http.Base36IntTests)", "test_roundtrip (utils_tests.test_http.Base36IntTest...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Fixed #34194 -- Added django.utils.http.content_disposition_header(). {} ---------- </request> There are several new functions or classes that need to be implemented, using the definitions below: <...
Here is the discussion in the issues of the pull request. <issues> Extract function for generating proper Content-Disposition headers Description Applications may need to generate Content-Disposition headers, and it seems a waste to duplicate the logic that already exists in FileResponse. Uses for this include thing...
016bead6a23989adec5c7ee6948db7ce2fc5e89b
pyvista__pyvista-3662
3,662
pyvista/pyvista
0.38
f5dbce80bc44ff3def8c5eb15db054706fc5f38d
2022-11-30T22:23:05Z
diff --git a/pyvista/plotting/camera.py b/pyvista/plotting/camera.py index 915893c4d2d..d7f237ff98f 100644 --- a/pyvista/plotting/camera.py +++ b/pyvista/plotting/camera.py @@ -1,5 +1,11 @@ """Module containing pyvista implementation of vtkCamera.""" +from __future__ import annotations + +from pathlib import Path +fro...
diff --git a/tests/test_camera.py b/tests/test_camera.py index 5259c0d9a77..6690f47db63 100644 --- a/tests/test_camera.py +++ b/tests/test_camera.py @@ -1,3 +1,5 @@ +import io + import numpy as np import pytest @@ -22,11 +24,81 @@ def camera(): return pyvista.Camera() +@pytest.fixture() +def paraview_pvcc(...
[ { "components": [ { "doc": "Load a Paraview camera file (.pvcc extension).\n\nReturns a pyvista.Camera object for which attributes has been read\nfrom the filename argument.\n\nParameters\n----------\nfilename : str or pathlib.Path\n Path to Paraview camera file (.pvcc).\n\nExamples\n--------\n...
[ "tests/test_camera.py::test_camera_fom_paraview_pvcc", "tests/test_camera.py::test_camera_to_paraview_pvcc" ]
[ "tests/test_camera.py::test_invalid_init", "tests/test_camera.py::test_camera_position", "tests/test_camera.py::test_focal_point", "tests/test_camera.py::test_model_transform_matrix", "tests/test_camera.py::test_distance", "tests/test_camera.py::test_thickness", "tests/test_camera.py::test_parallel_scal...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add classmethod to read pvcc paraview ### Overview This PR implements a _classmethod_ to **pyvista.Camera** that reads a Paraview camera file (.pvcc). It looks like: ```python camera = pyvist...
e7f7ada0477439ebd725d56ca080ee85ca50d640
sympy__sympy-24321
24,321
sympy/sympy
1.12
f8e33851e174bd686ac8dc88d75f955cf5dc8eeb
2022-11-28T12:10:34Z
diff --git a/sympy/core/basic.py b/sympy/core/basic.py index 1c160205a155..df71ab218aae 100644 --- a/sympy/core/basic.py +++ b/sympy/core/basic.py @@ -1758,7 +1758,8 @@ def match(self, pattern, old=False): return m from .symbol import Wild from .function import WildFunction - wild ...
diff --git a/sympy/core/tests/test_args.py b/sympy/core/tests/test_args.py index ad5a1cd51f5b..92b9b082e2ba 100644 --- a/sympy/core/tests/test_args.py +++ b/sympy/core/tests/test_args.py @@ -4588,6 +4588,21 @@ def test_sympy__tensor__tensor__TensorElement(): telem = TensorElement(A(x, y), {x: 1}) assert _test...
[ { "components": [ { "doc": "A wild object that is used to create ``WildTensor`` instances\n\nExplanation\n===========\n\nExamples\n========\n>>> from sympy.tensor.tensor import TensorHead, TensorIndex, WildTensorHead, TensorIndexType\n>>> R3 = TensorIndexType('R3', dim=3)\n>>> p = TensorIndex('p',...
[ "test_sympy__tensor__tensor__WildTensor", "test_sympy__tensor__tensor__WildTensorHead", "test_sympy__tensor__tensor__WildTensorIndex", "test_canonicalize_no_slot_sym", "test_canonicalize_no_dummies", "test_tensorhead_construction_without_symmetry", "test_no_metric_symmetry", "test_canonicalize1", "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> tensor module: add wild objects for tensor matching <!-- #### References to other Issues or PRs If this pull request fixes an issue, write "Fixes #NNNN" in that exact format, e.g. "Fixes #1234" (s...
22520ed5f4a9b2b6c4b6b314b4748878f1b4b662
pvlib__pvlib-python-1602
1,602
pvlib/pvlib-python
0.8
771eb46c8bffca2cd07529dbd5bf53779613d6f5
2022-11-27T21:20:33Z
diff --git a/docs/examples/adr-pvarray/README.rst b/docs/examples/adr-pvarray/README.rst new file mode 100644 index 0000000000..0db64aa046 --- /dev/null +++ b/docs/examples/adr-pvarray/README.rst @@ -0,0 +1,3 @@ +ADR Model for PV Module Efficiency +---------------------------------- + diff --git a/docs/examples/adr-pva...
diff --git a/pvlib/tests/test_pvarray.py b/pvlib/tests/test_pvarray.py new file mode 100644 index 0000000000..6dcacdefe1 --- /dev/null +++ b/pvlib/tests/test_pvarray.py @@ -0,0 +1,46 @@ +import numpy as np +from numpy.testing import assert_allclose + +from pvlib import pvarray + + +def test_pvefficiency_adr(): + g =...
diff --git a/docs/examples/adr-pvarray/README.rst b/docs/examples/adr-pvarray/README.rst new file mode 100644 index 0000000000..0db64aa046 --- /dev/null +++ b/docs/examples/adr-pvarray/README.rst @@ -0,0 +1,3 @@ +ADR Model for PV Module Efficiency +---------------------------------- + diff --git a/docs/sphinx/source/re...
[ { "components": [ { "doc": "", "lines": [ 109, 112 ], "name": "run_adr", "signature": "def run_adr():", "type": "function" }, { "doc": "", "lines": [ 115, 119 ], "name": "run...
[ "pvlib/tests/test_pvarray.py::test_pvefficiency_adr", "pvlib/tests/test_pvarray.py::test_fit_pvefficiency_adr", "pvlib/tests/test_pvarray.py::test_pvefficiency_adr_round_trip" ]
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> ADR PV efficiency model from pvpltools-python (take 2) <!-- 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 ...
311781d2380997044da0e484dc90aa146a74ca44
pypa__hatch-622
622
pypa/hatch
null
4ae2a78389cc3d1b892fde8fa32059480a5fd863
2022-11-26T17:43:14Z
diff --git a/docs/history/hatch.md b/docs/history/hatch.md index 9a3e71138..97bf5134d 100644 --- a/docs/history/hatch.md +++ b/docs/history/hatch.md @@ -15,9 +15,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), ***Added:*** +- Add `custom` environment collector - Increase the ...
diff --git a/tests/env/collectors/__init__.py b/tests/env/collectors/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/tests/env/collectors/test_custom.py b/tests/env/collectors/test_custom.py new file mode 100644 index 000000000..7f670dd08 --- /dev/null +++ b/tests/env/collectors/test_custom.py ...
diff --git a/docs/history/hatch.md b/docs/history/hatch.md index 9a3e71138..97bf5134d 100644 --- a/docs/history/hatch.md +++ b/docs/history/hatch.md @@ -15,9 +15,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), ***Added:*** +- Add `custom` environment collector - Increase the ...
[ { "components": [ { "doc": "", "lines": [ 11, 35 ], "name": "CustomEnvironmentCollector", "signature": "class CustomEnvironmentCollector(EnvironmentCollectorInterface):", "type": "class" }, { "doc": "", "lines"...
[ "tests/env/collectors/test_custom.py::test_no_path", "tests/env/collectors/test_custom.py::test_path_not_string", "tests/env/collectors/test_custom.py::test_nonexistent", "tests/env/collectors/test_custom.py::test_default", "tests/env/collectors/test_custom.py::test_explicit_path", "tests/env/collectors/t...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add `custom` environment collector To better support very custom scenarios like `nox` can ---------- </request> There are several new functions or classes that need to be implemented, using the defi...
c06c820d722667306f39bda956c58cf4c48d0728
conan-io__conan-12609
12,609
conan-io/conan
null
5871cd23ab312e99677c72f4140758390a33ebb5
2022-11-25T13:14:16Z
diff --git a/conan/tools/cmake/cmakedeps/cmakedeps.py b/conan/tools/cmake/cmakedeps/cmakedeps.py index 0306575cbb9..75751841c2c 100644 --- a/conan/tools/cmake/cmakedeps/cmakedeps.py +++ b/conan/tools/cmake/cmakedeps/cmakedeps.py @@ -32,6 +32,7 @@ def __init__(self, conanfile): # Enable/Disable checking if a ...
diff --git a/conans/test/integration/toolchains/cmake/cmakedeps/test_cmakedeps.py b/conans/test/integration/toolchains/cmake/cmakedeps/test_cmakedeps.py index 5e147de5182..15d07a2e95f 100644 --- a/conans/test/integration/toolchains/cmake/cmakedeps/test_cmakedeps.py +++ b/conans/test/integration/toolchains/cmake/cmakede...
[ { "components": [ { "doc": "", "lines": [ 117, 119 ], "name": "CMakeDeps.set_property", "signature": "def set_property(self, dep, prop, value, build_context=False):", "type": "function" }, { "doc": "", "lines":...
[ "conans/test/integration/toolchains/cmake/cmakedeps/test_cmakedeps.py::test_dependency_props_from_consumer", "conans/test/integration/toolchains/cmake/cmakedeps/test_cmakedeps.py::test_props_from_consumer_build_context_activated" ]
[ "conans/test/integration/toolchains/cmake/cmakedeps/test_cmakedeps.py::test_package_from_system", "conans/test/integration/toolchains/cmake/cmakedeps/test_cmakedeps.py::test_test_package", "conans/test/integration/toolchains/cmake/cmakedeps/test_cmakedeps.py::test_components_error", "conans/test/integration/t...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Set some CMakeDeps properties from consumer Changelog: Feature: Provide the ability to set CMakeDeps properties from consumer side. Docs: https://github.com/conan-io/docs/pull/2827 Gives you the p...
4a5b19a75db9225316c8cb022a2dfb9705a2af34
conan-io__conan-12598
12,598
conan-io/conan
null
d657cc4ea49e8a2fbd3bf0bec296687679032ae3
2022-11-24T11:20:28Z
diff --git a/conan/tools/env/environment.py b/conan/tools/env/environment.py index a4b96ea9f2f..e4ffed32937 100644 --- a/conan/tools/env/environment.py +++ b/conan/tools/env/environment.py @@ -154,6 +154,12 @@ def get_value(self, subsystem, pathsep): previous_value = os.getenv(self._name) return self....
diff --git a/conans/test/integration/editable/test_editable_envvars.py b/conans/test/integration/editable/test_editable_envvars.py new file mode 100644 index 00000000000..81fe645a250 --- /dev/null +++ b/conans/test/integration/editable/test_editable_envvars.py @@ -0,0 +1,74 @@ +import os +import textwrap + +from conans...
[ { "components": [ { "doc": "", "lines": [ 157, 161 ], "name": "_EnvValue.set_relative_base_folder", "signature": "def set_relative_base_folder(self, folder):", "type": "function" }, { "doc": "", "lines": [ ...
[ "conans/test/integration/editable/test_editable_envvars.py::test_editable_envvars", "conans/test/integration/editable/test_editable_envvars.py::test_editable_conf" ]
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> editables env-vars and confs Changelog: Feature: Implement ``editable`` env-vars via ``layouts.xxx.buildenv_info`` and ``layouts.xxx.runenv_info`` and conf via ``layouts.xxx.conf_info``. Docs: https:...
4a5b19a75db9225316c8cb022a2dfb9705a2af34
tobymao__sqlglot-746
746
tobymao/sqlglot
null
a936dd21a396dab3008e11f842673d18d8810f25
2022-11-22T05:36:43Z
diff --git a/README.md b/README.md index 8811b6a808..592b12e75a 100644 --- a/README.md +++ b/README.md @@ -190,6 +190,28 @@ sqlglot.errors.ParseError: Expecting ). Line 1, Col: 13. ~~~~ ``` +Structured syntax errors are accessible for programmatic use: + +```python +import sqlglot +try: + sqlglot.t...
diff --git a/tests/test_parser.py b/tests/test_parser.py index 15d6fcbefb..68cbf19361 100644 --- a/tests/test_parser.py +++ b/tests/test_parser.py @@ -15,6 +15,51 @@ def test_parse_into(self): self.assertIsInstance(parse_one("int", into=exp.DataType), exp.DataType) self.assertIsInstance(parse_one("arr...
diff --git a/README.md b/README.md index 8811b6a808..592b12e75a 100644 --- a/README.md +++ b/README.md @@ -190,6 +190,28 @@ sqlglot.errors.ParseError: Expecting ). Line 1, Col: 13. ~~~~ ``` +Structured syntax errors are accessible for programmatic use: + +```python +import sqlglot +try: + sqlglot.t...
[]
[ "tests/test_parser.py::TestParser::test_parse_into_error", "tests/test_parser.py::TestParser::test_parse_into_errors", "tests/test_transpile.py::TestTranspile::test_error_level" ]
[ "tests/test_parser.py::TestParser::test_column", "tests/test_parser.py::TestParser::test_command", "tests/test_parser.py::TestParser::test_comment_error_n", "tests/test_parser.py::TestParser::test_comment_error_r", "tests/test_parser.py::TestParser::test_comments", "tests/test_parser.py::TestParser::test_...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add structured ParseError properties Proposing attaching structured properties to `ParseError` for convenient programmatic access and formatting for arbitrary frontends. First proposed `sqlglot` ...
ceb42fabad60312699e4b15936aeebac00e22e4d
pvlib__pvlib-python-1595
1,595
pvlib/pvlib-python
0.8
e8da6a5bb699d07219aa847eda9e73ef1cc8d856
2022-11-17T16:41:11Z
diff --git a/docs/sphinx/source/reference/pv_modeling.rst b/docs/sphinx/source/reference/pv_modeling.rst index 0f33cf8c70..2208e932bd 100644 --- a/docs/sphinx/source/reference/pv_modeling.rst +++ b/docs/sphinx/source/reference/pv_modeling.rst @@ -42,6 +42,7 @@ PV temperature models temperature.sapm_cell_from_module...
diff --git a/pvlib/tests/test_temperature.py b/pvlib/tests/test_temperature.py index 5e36714d12..bd6831fd0a 100644 --- a/pvlib/tests/test_temperature.py +++ b/pvlib/tests/test_temperature.py @@ -108,12 +108,12 @@ def test_pvsyst_cell_eta_m_deprecated(): def test_faiman_default(): result = temperature.faiman(900...
diff --git a/docs/sphinx/source/reference/pv_modeling.rst b/docs/sphinx/source/reference/pv_modeling.rst index 0f33cf8c70..2208e932bd 100644 --- a/docs/sphinx/source/reference/pv_modeling.rst +++ b/docs/sphinx/source/reference/pv_modeling.rst @@ -42,6 +42,7 @@ PV temperature models temperature.sapm_cell_from_module...
[ { "components": [ { "doc": "Calculate cell or module temperature using the Faiman model augmented\nwith a radiative loss term.\n\nThe Faiman model uses an empirical heat loss factor model [1]_ and is\nadopted in the IEC 61853 standards [2]_ and [3]_. The radiative loss\nterm was proposed and deve...
[ "pvlib/tests/test_temperature.py::test_faiman_rad_no_ir", "pvlib/tests/test_temperature.py::test_faiman_rad_ir" ]
[ "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> Implement enhanced Faiman temperature model <!-- 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 u...
311781d2380997044da0e484dc90aa146a74ca44
conan-io__conan-12556
12,556
conan-io/conan
null
0b282b7bb81538660b19d4438dbb19f5787a434a
2022-11-16T17:39:50Z
diff --git a/conan/tools/cmake/toolchain/blocks.py b/conan/tools/cmake/toolchain/blocks.py index 698e050d2d7..f22d6f76012 100644 --- a/conan/tools/cmake/toolchain/blocks.py +++ b/conan/tools/cmake/toolchain/blocks.py @@ -11,7 +11,7 @@ from conan.tools.build.cross_building import cross_building from conan.tools.cmake....
diff --git a/conans/test/functional/toolchains/cmake/test_cmake_toolchain_win_clang.py b/conans/test/functional/toolchains/cmake/test_cmake_toolchain_win_clang.py index 3686454915e..a6c30e1b73d 100644 --- a/conans/test/functional/toolchains/cmake/test_cmake_toolchain_win_clang.py +++ b/conans/test/functional/toolchains...
[ { "components": [ { "doc": "", "lines": [ 670, 691 ], "name": "CompilersBlock", "signature": "class CompilersBlock(Block):", "type": "class" }, { "doc": "", "lines": [ 677, 691 ], ...
[ "conans/test/integration/toolchains/cmake/test_cmaketoolchain.py::test_set_cmake_lang_compilers_and_launchers" ]
[ "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> [CMakeToolchain] Setting `CMAKE_<LANG>_COMPILER` Changelog: Feature: Add `tools.build:compiler_executables` configuration to set compilers variables in CMakeToolchain, MesonToolchain, and AutoToolsToo...
4a5b19a75db9225316c8cb022a2dfb9705a2af34
matplotlib__matplotlib-24465
24,465
matplotlib/matplotlib
3.6
a1da5387224c1e6a209e91890231a922a4ea2cb7
2022-11-15T18:13:55Z
diff --git a/doc/api/next_api_changes/deprecations/24465-AL.rst b/doc/api/next_api_changes/deprecations/24465-AL.rst new file mode 100644 index 000000000000..95acc8e2cb46 --- /dev/null +++ b/doc/api/next_api_changes/deprecations/24465-AL.rst @@ -0,0 +1,10 @@ +``OffsetBox.get_extent_offsets`` and ``OffsetBox.get_extent`...
diff --git a/lib/matplotlib/tests/test_offsetbox.py b/lib/matplotlib/tests/test_offsetbox.py index 5785cf5affe0..a0116d5dfcd9 100644 --- a/lib/matplotlib/tests/test_offsetbox.py +++ b/lib/matplotlib/tests/test_offsetbox.py @@ -342,20 +342,20 @@ def test_arrowprops_copied(): def test_packers(align): # set the DPI ...
diff --git a/doc/api/next_api_changes/deprecations/24465-AL.rst b/doc/api/next_api_changes/deprecations/24465-AL.rst new file mode 100644 index 000000000000..95acc8e2cb46 --- /dev/null +++ b/doc/api/next_api_changes/deprecations/24465-AL.rst @@ -0,0 +1,10 @@ +``OffsetBox.get_extent_offsets`` and ``OffsetBox.get_extent`...
[ { "components": [ { "doc": "Decorator for the get_offset method of OffsetBox and subclasses, that\nallows supporting both the new signature (self, bbox, renderer) and the old\nsignature (self, width, height, xdescent, ydescent, renderer).", "lines": [ 45, 61 ], ...
[ "lib/matplotlib/tests/test_offsetbox.py::test_packers[baseline]", "lib/matplotlib/tests/test_offsetbox.py::test_packers[bottom]", "lib/matplotlib/tests/test_offsetbox.py::test_packers[top]", "lib/matplotlib/tests/test_offsetbox.py::test_packers[left]", "lib/matplotlib/tests/test_offsetbox.py::test_packers[r...
[ "lib/matplotlib/tests/test_offsetbox.py::test_offsetbox_clipping[png]", "lib/matplotlib/tests/test_offsetbox.py::test_offsetbox_clip_children", "lib/matplotlib/tests/test_offsetbox.py::test_offsetbox_loc_codes", "lib/matplotlib/tests/test_offsetbox.py::test_expand_with_tight_layout", "lib/matplotlib/tests/t...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Reparametrize offsetbox calculations in terms of bboxes. Passing a single bbox instead of (xdescent, ydescent, width, height) separately is easier to follow (see e.g. the changes in VPacker and HPacke...
75e2d2202dc19ee39c8b9a80b01475b90f07c75c
tobymao__sqlglot-707
707
tobymao/sqlglot
null
ad0db7bbcf93f866c6b48f306b17adca47c93a55
2022-11-15T04:37:36Z
diff --git a/sqlglot/dialects/__init__.py b/sqlglot/dialects/__init__.py index 0816831379..2e42e7df89 100644 --- a/sqlglot/dialects/__init__.py +++ b/sqlglot/dialects/__init__.py @@ -2,6 +2,7 @@ from sqlglot.dialects.clickhouse import ClickHouse from sqlglot.dialects.databricks import Databricks from sqlglot.dialect...
diff --git a/tests/dialects/test_dialect.py b/tests/dialects/test_dialect.py index e24b54eaee..0c95de33b0 100644 --- a/tests/dialects/test_dialect.py +++ b/tests/dialects/test_dialect.py @@ -69,6 +69,7 @@ def test_cast(self): write={ "bigquery": "CAST(a AS STRING)", "click...
[]
[ "tests/dialects/test_dialect.py::TestDialect::test_alias", "tests/dialects/test_dialect.py::TestDialect::test_array", "tests/dialects/test_dialect.py::TestDialect::test_cast", "tests/dialects/test_dialect.py::TestDialect::test_cross_join", "tests/dialects/test_dialect.py::TestDialect::test_operators", "te...
[ "tests/dialects/test_dialect.py::TestDialect::test_enum", "tests/dialects/test_dialect.py::TestDialect::test_hash_comments", "tests/dialects/test_dialect.py::TestDialect::test_json", "tests/dialects/test_dialect.py::TestDialect::test_lateral_subquery", "tests/dialects/test_dialect.py::TestDialect::test_limi...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add Apache Drill Dialect to SqlGlot This PR adds a dialect for Apache Drill to SQLGlot. Remaining work: - [ ] Add support for Drill `table()` function - [ ] Add unit tests for `table()` functi...
ceb42fabad60312699e4b15936aeebac00e22e4d
rytilahti__python-miio-1596
1,596
rytilahti/python-miio
null
27cc3ad268c103b96ccfebd4de13763f5dc8a8a4
2022-11-14T22:25:00Z
diff --git a/miio/integrations/vacuum/roborock/vacuum.py b/miio/integrations/vacuum/roborock/vacuum.py index c66f7e9ed..5983956c0 100644 --- a/miio/integrations/vacuum/roborock/vacuum.py +++ b/miio/integrations/vacuum/roborock/vacuum.py @@ -1,5 +1,6 @@ import contextlib import datetime +import enum import json impo...
diff --git a/miio/integrations/vacuum/roborock/tests/test_vacuum.py b/miio/integrations/vacuum/roborock/tests/test_vacuum.py index f88df3e4f..8608fa680 100644 --- a/miio/integrations/vacuum/roborock/tests/test_vacuum.py +++ b/miio/integrations/vacuum/roborock/tests/test_vacuum.py @@ -38,6 +38,8 @@ def __init__(self, *a...
[ { "components": [ { "doc": "Return list of maps.", "lines": [ 373, 379 ], "name": "RoborockVacuum.get_maps", "signature": "def get_maps(self) -> MapList:", "type": "function" }, { "doc": "Enum of the available map name...
[ "miio/integrations/vacuum/roborock/tests/test_vacuum.py::TestVacuum::test_get_maps_dict" ]
[ "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 multi map handling to roborock Split out from https://github.com/rytilahti/python-miio/pull/1543 Add basic multi map support to roborock vacuums - Get current map - Set current map Later...
62427d2f796e603520acca3b57b29ec3e6489bca
pylint-dev__astroid-1867
1,867
pylint-dev/astroid
3.0
a7ab0880dea776e45c4c7e440298c4041d945e6d
2022-11-14T11:43:26Z
diff --git a/ChangeLog b/ChangeLog index 955fcb541f..8750167f89 100644 --- a/ChangeLog +++ b/ChangeLog @@ -183,6 +183,9 @@ Release date: TBA Refs #2154 +* Add new ``nodes.Try`` to better match Python AST. Replaces the ``TryExcept`` + and ``TryFinally`` nodes which have been removed. + * Publicize ``NodeNG.repr...
diff --git a/tests/test_group_exceptions.py b/tests/test_group_exceptions.py index ce1f142a53..2ee4143fc7 100644 --- a/tests/test_group_exceptions.py +++ b/tests/test_group_exceptions.py @@ -10,7 +10,7 @@ ExceptHandler, For, Name, - TryExcept, + Try, Uninferable, bases, extract_node,...
diff --git a/ChangeLog b/ChangeLog index 955fcb541f..8750167f89 100644 --- a/ChangeLog +++ b/ChangeLog @@ -183,6 +183,9 @@ Release date: TBA Refs #2154 +* Add new ``nodes.Try`` to better match Python AST. Replaces the ``TryExcept`` + and ``TryFinally`` nodes which have been removed. + * Publicize ``NodeNG.repr...
[ { "components": [ { "doc": "return an astroid.Try node as string", "lines": [ 494, 503 ], "name": "AsStringVisitor.visit_try", "signature": "def visit_try(self, node) -> str:", "type": "function" } ], "file": "astroid/nodes/...
[ "tests/test_nodes.py::AsStringTest::test_3k_annotations_and_metaclass", "tests/test_nodes.py::AsStringTest::test_3k_as_string", "tests/test_nodes.py::AsStringTest::test_as_string", "tests/test_nodes.py::AsStringTest::test_as_string_for_list_containing_uninferable", "tests/test_nodes.py::AsStringTest::test_a...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add `Try` node ## Description Replaces both #1388 and #1389. I first tried implementing the migration plan laid out in https://github.com/PyCQA/astroid/pull/1388#issuecomment-1126947919. However, the...
eeb25171571e8c84a18044aa7bba80d57d7ea1ef
sqlfluff__sqlfluff-4043
4,043
sqlfluff/sqlfluff
1.3
5f639444ddf4afe8b4f0d2c7f0d4ac0b976930de
2022-11-08T14:56:55Z
diff --git a/src/sqlfluff/cli/commands.py b/src/sqlfluff/cli/commands.py index b2dfc29d98f..ca80d4e3ce2 100644 --- a/src/sqlfluff/cli/commands.py +++ b/src/sqlfluff/cli/commands.py @@ -1116,6 +1116,68 @@ def parse( sys.exit(EXIT_SUCCESS) +@cli.command() +@common_options +@core_options +@click.argument("pat...
diff --git a/test/cli/commands_test.py b/test/cli/commands_test.py index 1bae82f29dd..135ffdf8a49 100644 --- a/test/cli/commands_test.py +++ b/test/cli/commands_test.py @@ -31,6 +31,7 @@ parse, dialects, get_config, + render, ) from sqlfluff.core.rules import BaseRule, LintFix, LintResult from sqlf...
[ { "components": [ { "doc": "Render SQL files and just spit out the result.\n\nPATH is the path to a sql file. This should be either a single file\nfile ('path/to/file.sql') or a single ('-') character to indicate reading\nfrom *stdin*.", "lines": [ 1123, 1178 ],...
[ "test/cli/commands_test.py::test__cli__command_directed", "test/cli/commands_test.py::test__cli__command_dialect", "test/cli/commands_test.py::test__cli__command_no_dialect", "test/cli/commands_test.py::test__cli__command_parse_error_dialect_explicit_warning", "test/cli/commands_test.py::test__cli__command_...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Make render command This resolves #4020 and resolves #3636. Adds a basic `render` command which allows the user to render the given sql file for debugging. As per discussion in #4020, it only suppo...
Here is the discussion in the issues of the pull request. <issues> add ability to render the compiled sql ### Search before asking - [X] I searched the [issues](https://github.com/sqlfluff/sqlfluff/issues) and found no similar issues. ### Description It would be nice to see the compiled sql in which any templates a...
ada7967cd2fb98de054323dd8aad19e84b427c67
sqlfluff__sqlfluff-4028
4,028
sqlfluff/sqlfluff
1.3
f5d726a897b25729f2159a6b99486d977abb836c
2022-11-04T03:20:25Z
diff --git a/src/sqlfluff/rules/L070.py b/src/sqlfluff/rules/L070.py new file mode 100644 index 00000000000..212b1f2d5e4 --- /dev/null +++ b/src/sqlfluff/rules/L070.py @@ -0,0 +1,216 @@ +"""Implementation of Rule L070.""" +from typing import Optional + +from sqlfluff.utils.analysis.select_crawler import Query, SelectCr...
diff --git a/test/utils/analysis/test_select_crawler.py b/test/utils/analysis/test_select_crawler.py index c87270dadcd..3b8dcbddf7b 100644 --- a/test/utils/analysis/test_select_crawler.py +++ b/test/utils/analysis/test_select_crawler.py @@ -195,3 +195,37 @@ def test_select_crawler_nested(): "ctes": {"D": {"sel...
[ { "components": [ { "doc": "Queries within set query produce different numbers of columns.\n\n**Anti-pattern**\n\nWhen writing set expressions, all queries must return the same number of columns.\n\n.. code-block:: sql\n\n WITH cte AS (\n SELECT\n a,\n b\n FR...
[ "test/utils/analysis/test_select_crawler.py::test_parent_select_crawler" ]
[ "test/utils/analysis/test_select_crawler.py::test_select_crawler_constructor[select", "test/utils/analysis/test_select_crawler.py::test_select_crawler_constructor[with", "test/utils/analysis/test_select_crawler.py::test_select_crawler_constructor[\\n", "test/utils/analysis/test_select_crawler.py::test_select_...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Rule: check number of columns in set operations match <!--Thanks for adding this feature!--> <!--Please give the Pull Request a meaningful title for the release notes--> ### Brief summary of the...
ada7967cd2fb98de054323dd8aad19e84b427c67
Textualize__textual-1102
1,102
Textualize/textual
null
530212fd4bfbff3c60a135bccc71b24c1d9ec66f
2022-11-03T13:46:46Z
diff --git a/CHANGELOG.md b/CHANGELOG.md index e952920e36..71350ccefd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,11 +12,15 @@ and this project adheres to [Semantic Versioning](http://semver.org/). - Dropped support for mounting "named" and "anonymous" widgets via `App.mount` and `Widget.mount`. Both method...
diff --git a/tests/test_query.py b/tests/test_query.py index c48587ea19..8cc4de653b 100644 --- a/tests/test_query.py +++ b/tests/test_query.py @@ -1,7 +1,7 @@ import pytest from textual.widget import Widget -from textual.css.query import InvalidQueryFormat, WrongType, NoMatches +from textual.css.query import Invali...
diff --git a/CHANGELOG.md b/CHANGELOG.md index e952920e36..71350ccefd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,11 +12,15 @@ and this project adheres to [Semantic Versioning](http://semver.org/). - Dropped support for mounting "named" and "anonymous" widgets via `App.mount` and `Widget.mount`. Both method...
[ { "components": [ { "doc": "Too many nodes matched the query.", "lines": [ 45, 46 ], "name": "TooManyMatches", "signature": "class TooManyMatches(QueryError):", "type": "class" }, { "doc": "Get the *only* matching node...
[ "tests/test_query.py::test_query", "tests/test_query.py::test_query_classes", "tests/test_query.py::test_invalid_query" ]
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Change query_one so that it raises an error on multiple hits As part of this, add a only_one method to DOMQuery. Addresses #1096. ---------- </request> There are several new functions or classes ...
86e93536b991014e0ea4bf993068202b446bb698
pvlib__pvlib-python-1585
1,585
pvlib/pvlib-python
0.8
e6e5b043f5f59af1c5fde0f25cc1793d79caa78b
2022-11-02T19:51:38Z
diff --git a/docs/sphinx/source/reference/pv_modeling.rst b/docs/sphinx/source/reference/pv_modeling.rst index 4e57130711..797681ce23 100644 --- a/docs/sphinx/source/reference/pv_modeling.rst +++ b/docs/sphinx/source/reference/pv_modeling.rst @@ -186,6 +186,7 @@ Utilities for working with IV curve data :toctree: ge...
diff --git a/pvlib/tests/ivtools/test_utils.py b/pvlib/tests/ivtools/test_utils.py index 8f7826bdc2..d8a35e554d 100644 --- a/pvlib/tests/ivtools/test_utils.py +++ b/pvlib/tests/ivtools/test_utils.py @@ -1,7 +1,7 @@ import numpy as np import pandas as pd import pytest -from pvlib.ivtools.utils import _numdiff, rectif...
diff --git a/docs/sphinx/source/reference/pv_modeling.rst b/docs/sphinx/source/reference/pv_modeling.rst index 4e57130711..797681ce23 100644 --- a/docs/sphinx/source/reference/pv_modeling.rst +++ b/docs/sphinx/source/reference/pv_modeling.rst @@ -186,6 +186,7 @@ Utilities for working with IV curve data :toctree: ge...
[ { "components": [ { "doc": "Extract photovoltaic IV parameters according to ASTM E1036. Assumes that\nthe power producing portion of the curve is in the first quadrant.\n\nParameters\n----------\nv : array-like\n Voltage points\ni : array-like\n Current points\nimax_limits : tuple, default (...
[ "pvlib/tests/ivtools/test_utils.py::test__numdiff", "pvlib/tests/ivtools/test_utils.py::test_rectify_iv_curve", "pvlib/tests/ivtools/test_utils.py::test__schmumaker_qspline[x0-y0-expected0]", "pvlib/tests/ivtools/test_utils.py::test__schmumaker_qspline[x1-y1-expected1]", "pvlib/tests/ivtools/test_utils.py::...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> add ASTM E1036 parameter extraction - [x] I am familiar with the [contributing guidelines](https://pvlib-python.readthedocs.io/en/latest/contributing.html) - [x] Tests added - [x] Updates entries...
311781d2380997044da0e484dc90aa146a74ca44
Project-MONAI__MONAI-5418
5,418
Project-MONAI/MONAI
null
3f82016b5e85b5325546c7f4840b7baf82dddc93
2022-10-27T12:19:14Z
diff --git a/docs/source/transforms.rst b/docs/source/transforms.rst index 874f01a945..7b728fde48 100644 --- a/docs/source/transforms.rst +++ b/docs/source/transforms.rst @@ -22,11 +22,31 @@ Generic Interfaces :members: :special-members: __call__ +`RandomizableTrait` +^^^^^^^^^^^^^^^^^^^ +.. autoclass:: Ran...
diff --git a/tests/test_randomizable_transform_type.py b/tests/test_randomizable_transform_type.py new file mode 100644 index 0000000000..9f77d2cd5a --- /dev/null +++ b/tests/test_randomizable_transform_type.py @@ -0,0 +1,33 @@ +# Copyright (c) MONAI Consortium +# Licensed under the Apache License, Version 2.0 (the "Li...
diff --git a/docs/source/transforms.rst b/docs/source/transforms.rst index 874f01a945..7b728fde48 100644 --- a/docs/source/transforms.rst +++ b/docs/source/transforms.rst @@ -22,11 +22,31 @@ Generic Interfaces :members: :special-members: __call__ +`RandomizableTrait` +^^^^^^^^^^^^^^^^^^^ +.. autoclass:: Ran...
[ { "components": [ { "doc": "An interface to indicate that the transform has the capability to execute using\nMONAI's lazy resampling feature. In order to do this, the implementing class needs\nto be able to describe its operation as an affine matrix or grid with accompanying metadata.\nThis interf...
[ "tests/test_randomizable_transform_type.py::TestRandomizableTransformType::test_is_randomizable_transform_type", "tests/test_randomizable_transform_type.py::TestRandomizableTransformType::test_set_random_state_randomizable_transform" ]
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Type classes for lazy resampling Signed-off-by: Ben Murray <ben.murray@gmail.com> Fixes # . ### Description A few sentences describing the changes proposed in this pull request. ### Types ...
e73257caa79309dcce1e93abf1632f4bfd75b11f
pydata__xarray-7225
7,225
pydata/xarray
2022.09
2bf15f8d29251c94471da89a177814ed09cf8d20
2022-10-26T12:53:49Z
diff --git a/doc/whats-new.rst b/doc/whats-new.rst index 0cc18cc7279..9e1dc20b0db 100644 --- a/doc/whats-new.rst +++ b/doc/whats-new.rst @@ -21,6 +21,9 @@ v2023.07.1 (unreleased) New Features ~~~~~~~~~~~~ + +- Visually group together coordinates with the same indexes in the index section of the text repr (:pull:`72...
diff --git a/xarray/tests/test_formatting.py b/xarray/tests/test_formatting.py index bf5f7d0bdc5..7670b77322c 100644 --- a/xarray/tests/test_formatting.py +++ b/xarray/tests/test_formatting.py @@ -218,31 +218,70 @@ def test_attribute_repr(self) -> None: assert "\n" not in newlines assert "\t" not in t...
diff --git a/doc/whats-new.rst b/doc/whats-new.rst index 0cc18cc7279..9e1dc20b0db 100644 --- a/doc/whats-new.rst +++ b/doc/whats-new.rst @@ -21,6 +21,9 @@ v2023.07.1 (unreleased) New Features ~~~~~~~~~~~~ + +- Visually group together coordinates with the same indexes in the index section of the text repr (:pull:`72...
[ { "components": [ { "doc": "", "lines": [ 435, 439 ], "name": "summarize_index.prefixes", "signature": "def prefixes(length: int) -> list[str]:", "type": "function" }, { "doc": "", "lines": [ 452, ...
[ "xarray/tests/test_formatting.py::TestFormatting::test_index_repr_grouping[names1]", "xarray/tests/test_formatting.py::TestFormatting::test_index_repr_grouping[names2]", "xarray/tests/test_formatting.py::TestFormatting::test_index_repr_grouping[names3]" ]
[ "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> join together duplicate entries in the text `repr` `Indexes` contains one entry per coordinate, even if there are indexes that index multiple coordinates. This deduplicates the entries, but the format...
087ebbb78668bdf5d2d41c3b2553e3f29ce75be1
open-mmlab__mmengine-643
643
open-mmlab/mmengine
null
7af68d1b5ed2c7639bcf3230d04f1a3f3ec3f9bb
2022-10-26T07:48:55Z
diff --git a/docs/en/advanced_tutorials/registry.md b/docs/en/advanced_tutorials/registry.md index eb875961de..bbaa454d36 100644 --- a/docs/en/advanced_tutorials/registry.md +++ b/docs/en/advanced_tutorials/registry.md @@ -18,16 +18,18 @@ There are three steps required to use the registry to manage modules in the code ...
diff --git a/tests/test_registry/test_registry_utils.py b/tests/test_registry/test_registry_utils.py index 35670435d7..457b033c9b 100644 --- a/tests/test_registry/test_registry_utils.py +++ b/tests/test_registry/test_registry_utils.py @@ -1,10 +1,12 @@ # Copyright (c) OpenMMLab. All rights reserved. +import datetime ...
diff --git a/docs/en/advanced_tutorials/registry.md b/docs/en/advanced_tutorials/registry.md index eb875961de..bbaa454d36 100644 --- a/docs/en/advanced_tutorials/registry.md +++ b/docs/en/advanced_tutorials/registry.md @@ -18,16 +18,18 @@ There are three steps required to use the registry to manage modules in the code ...
[ { "components": [ { "doc": "import modules from the pre-defined locations in self._location.", "lines": [ 307, 358 ], "name": "Registry.import_from_location", "signature": "def import_from_location(self) -> None:", "type": "function" ...
[ "tests/test_registry/test_registry_utils.py::TestUtils::test_traverse_registry_tree" ]
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> [Feature] Support registry auto import modules. Thanks for your contribution and we appreciate it a lot. The following instructions would make your pull request more healthy and more easily get feedba...
53474ef1ba0b166508c231fa525b55b580adf20f
sympy__sympy-24177
24,177
sympy/sympy
1.12
5794faca9bb071c6075cd43bb91fcabcfc67a677
2022-10-25T15:08:39Z
diff --git a/doc/src/modules/physics/mechanics/api/WeldJoint.svg b/doc/src/modules/physics/mechanics/api/WeldJoint.svg new file mode 100644 index 000000000000..905b7d1f86ab --- /dev/null +++ b/doc/src/modules/physics/mechanics/api/WeldJoint.svg @@ -0,0 +1,90 @@ +<svg width="1841" height="1292" xmlns="http://www.w3.org/...
diff --git a/sympy/physics/mechanics/tests/test_joint.py b/sympy/physics/mechanics/tests/test_joint.py index 7d40a1ac7b75..6e18068a9229 100644 --- a/sympy/physics/mechanics/tests/test_joint.py +++ b/sympy/physics/mechanics/tests/test_joint.py @@ -5,9 +5,9 @@ from sympy.functions.elementary.trigonometric import (cos, s...
diff --git a/doc/src/modules/physics/mechanics/api/WeldJoint.svg b/doc/src/modules/physics/mechanics/api/WeldJoint.svg new file mode 100644 index 000000000000..905b7d1f86ab --- /dev/null +++ b/doc/src/modules/physics/mechanics/api/WeldJoint.svg @@ -0,0 +1,90 @@ +<svg width="1841" height="1292" xmlns="http://www.w3.org/...
[ { "components": [ { "doc": "Weld Joint.\n\n.. image:: WeldJoint.svg\n :align: center\n :width: 500\n\nExplanation\n===========\n\nA weld joint is defined such that there is no relative motion between the\nchild and parent bodies. The direction cosine matrix between the attachment\nframe (``p...
[ "test_Joint", "test_coordinate_generation", "test_pin_joint", "test_pin_joint_double_pendulum", "test_pin_joint_chaos_pendulum", "test_pin_joint_interframe", "test_pin_joint_joint_axis", "test_pin_joint_arbitrary_axis", "test_create_aligned_frame_pi", "test_pin_joint_axis", "test_locate_joint_po...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Implement WeldJoint <!-- 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 <!-- If this ...
22520ed5f4a9b2b6c4b6b314b4748878f1b4b662
mwaskom__seaborn-3111
3,111
mwaskom/seaborn
0.12
bf4695466d742f301f361b8d0c8168c5c4bdf889
2022-10-24T12:02:57Z
diff --git a/Makefile b/Makefile index 0d2b7247a1..86b406ee55 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ export SHELL := /bin/bash test: - pytest -n auto --cov=seaborn --cov=tests --cov-config=.coveragerc tests + pytest -n auto --cov=seaborn --cov=tests --cov-config=setup.cfg tests lint: flake8 seabo...
diff --git a/tests/_stats/test_counting.py b/tests/_stats/test_counting.py index 44a0ae752b..7656654492 100644 --- a/tests/_stats/test_counting.py +++ b/tests/_stats/test_counting.py @@ -206,7 +206,7 @@ def test_common_norm_subset(self, long_df, triple_args): def test_common_norm_warning(self, long_df, triple_args...
diff --git a/Makefile b/Makefile index 0d2b7247a1..86b406ee55 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ export SHELL := /bin/bash test: - pytest -n auto --cov=seaborn --cov=tests --cov-config=.coveragerc tests + pytest -n auto --cov=seaborn --cov=tests --cov-config=setup.cfg tests lint: flake8 seabo...
[ { "components": [ { "doc": "Warn if vars are named in parameter without being present in the data.", "lines": [ 45, 55 ], "name": "Stat._check_grouping_vars", "signature": "def _check_grouping_vars( self, param: str, data_vars: list[str], stackle...
[ "tests/_stats/test_counting.py::TestCount::test_single_grouper", "tests/_stats/test_counting.py::TestCount::test_multiple_groupers", "tests/_stats/test_counting.py::TestHist::test_string_bins", "tests/_stats/test_counting.py::TestHist::test_int_bins", "tests/_stats/test_counting.py::TestHist::test_array_bin...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add KDE stat Largely based on the existing `kdeplot` API, although currently only supporting univariate KDE estimation (unlike in the functional interface, there will be separate objects for univariat...
bf4695466d742f301f361b8d0c8168c5c4bdf889
rytilahti__python-miio-1557
1,557
rytilahti/python-miio
null
1099dab0b673040b08b8d120a109c369ac06b52d
2022-10-24T00:03:19Z
diff --git a/miio/__init__.py b/miio/__init__.py index 45a8c9e7d..79b474eb8 100644 --- a/miio/__init__.py +++ b/miio/__init__.py @@ -12,6 +12,7 @@ from miio.exceptions import DeviceError, DeviceException, UnsupportedFeatureException from miio.miot_device import MiotDevice from miio.deviceinfo import DeviceInfo +from...
diff --git a/miio/integrations/light/yeelight/tests/test_yeelight_spec_helper.py b/miio/integrations/light/yeelight/tests/test_yeelight_spec_helper.py index 761cce93c..765fa3c6c 100644 --- a/miio/integrations/light/yeelight/tests/test_yeelight_spec_helper.py +++ b/miio/integrations/light/yeelight/tests/test_yeelight_sp...
[ { "components": [ { "doc": "Return supported color temperature range.", "lines": [ 345, 347 ], "name": "Yeelight.color_temperature_range", "signature": "def color_temperature_range(self) -> Optional[ColorTemperatureRange]:", "type": "func...
[ "miio/integrations/light/yeelight/tests/test_yeelight_spec_helper.py::test_get_model_info", "miio/integrations/light/yeelight/tests/test_yeelight_spec_helper.py::test_get_unknown_model_info" ]
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add descriptors for yeelight Adds descriptor decorators for the yeelight integration, so that they can be automatically detected by downstreams. This also adds a minimal LightInterface, and converts ...
62427d2f796e603520acca3b57b29ec3e6489bca
softlayer__softlayer-python-1775
1,775
softlayer/softlayer-python
null
e6a4b9e0af52ae579c14cce23b47a65630a6d047
2022-10-21T15:57:14Z
diff --git a/SoftLayer/CLI/command.py b/SoftLayer/CLI/command.py index 95013769a..c6f983006 100644 --- a/SoftLayer/CLI/command.py +++ b/SoftLayer/CLI/command.py @@ -11,11 +11,9 @@ import click from rich import box -from rich.console import Console from rich.highlighter import RegexHighlighter from rich.table impo...
diff --git a/tests/CLI/modules/config_tests.py b/tests/CLI/modules/config_tests.py index ef16edf38..5ee794061 100644 --- a/tests/CLI/modules/config_tests.py +++ b/tests/CLI/modules/config_tests.py @@ -30,13 +30,13 @@ def set_up(self): def test_show(self): result = self.run_command(['config', 'show']) - ...
[ { "components": [ { "doc": "ensures self.env is set", "lines": [ 40, 46 ], "name": "CommandLoader.ensure_env", "signature": "def ensure_env(self, ctx):", "type": "function" }, { "doc": "ensures self.env is set", ...
[ "tests/CLI/modules/config_tests.py::TestHelpShow::test_show", "tests/CLI/modules/config_tests.py::TestHelpSetup::test_setup" ]
[ "tests/CLI/modules/config_tests.py::TestHelpSetup::test_get_endpoint", "tests/CLI/modules/config_tests.py::TestHelpSetup::test_github_1074", "tests/CLI/modules/config_tests.py::TestHelpSetup::test_setup_cancel", "tests/CLI/modules/config_tests.py::TestHelpSetup::test_setup_float_timeout", "tests/CLI/modules...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> New feature to change theme in slcli like dark, light o maintain in default Issue link: #1652 New feature to change theme in slcli like dark, light o maintain in default With this new feature you ...
bd1ecce1ec4313b9ceefd3cfea52d1b9274fef9d
aws__sagemaker-python-sdk-3432
3,432
aws/sagemaker-python-sdk
null
1a39422883c7c7b04865e58fda201bcb93075669
2022-10-21T15:46:55Z
diff --git a/src/sagemaker/fw_utils.py b/src/sagemaker/fw_utils.py index dacd0a229c..af48a111bc 100644 --- a/src/sagemaker/fw_utils.py +++ b/src/sagemaker/fw_utils.py @@ -134,10 +134,13 @@ "1.12.0", ] + TORCH_DISTRIBUTED_SUPPORTED_FRAMEWORK_VERSIONS = ["1.11", "1.11.0"] + TRAINIUM_SUPPORTED_DISTRIBUTION_STR...
diff --git a/tests/conftest.py b/tests/conftest.py index 17a5c1db9c..a54cbfea15 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -308,6 +308,16 @@ def huggingface_pytorch_latest_inference_py_version(huggingface_inference_pytorc ) +@pytest.fixture(scope="module") +def graviton_tensorflow_version(): + ...
diff --git a/src/sagemaker/image_uri_config/pytorch.json b/src/sagemaker/image_uri_config/pytorch.json index a88f7f1c50..74127a1fda 100644 --- a/src/sagemaker/image_uri_config/pytorch.json +++ b/src/sagemaker/image_uri_config/pytorch.json @@ -654,6 +654,51 @@ } } }, + "inference_graviton":...
[ { "components": [ { "doc": "Extract the image scope from instance type.", "lines": [ 295, 301 ], "name": "_get_image_scope_for_instance_type", "signature": "def _get_image_scope_for_instance_type(framework, instance_type, image_scope):", ...
[ "tests/unit/sagemaker/image_uris/test_graviton.py::test_graviton_tensorflow", "tests/unit/sagemaker/image_uris/test_graviton.py::test_graviton_pytorch" ]
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> feature: Graviton support for PyTorch and Tensorflow frameworks *Issue #, if available:* *Description of changes:* Added the necessary changes to incorporate the [Graviton instances](https://githu...
03738861995e0c3fda73958d251e83465aba3c04
softlayer__softlayer-python-1774
1,774
softlayer/softlayer-python
null
e6a4b9e0af52ae579c14cce23b47a65630a6d047
2022-10-21T15:08:43Z
diff --git a/SoftLayer/CLI/hardware/create_credential.py b/SoftLayer/CLI/hardware/create_credential.py new file mode 100644 index 000000000..40bf14f67 --- /dev/null +++ b/SoftLayer/CLI/hardware/create_credential.py @@ -0,0 +1,57 @@ +"""Create a password for a software component""" +# :license: MIT, see LICENSE for more...
diff --git a/tests/CLI/modules/server_tests.py b/tests/CLI/modules/server_tests.py index d2353f32a..82f05e14b 100644 --- a/tests/CLI/modules/server_tests.py +++ b/tests/CLI/modules/server_tests.py @@ -1045,3 +1045,9 @@ def test_notifications(self): def test_add_notification(self): result = self.run_comman...
diff --git a/docs/cli/hardware.rst b/docs/cli/hardware.rst index dfd10e821..5689b5e44 100644 --- a/docs/cli/hardware.rst +++ b/docs/cli/hardware.rst @@ -139,3 +139,7 @@ This function updates the firmware of a server. If already at the latest version .. click:: SoftLayer.CLI.hardware.add_notification:cli :prog: har...
[ { "components": [ { "doc": "Create a password for a software component.", "lines": [ 19, 57 ], "name": "cli", "signature": "def cli(env, identifier, username, password, notes, system):", "type": "function" } ], "file": "Soft...
[ "tests/CLI/modules/server_tests.py::ServerCLITests::test_create_credential", "tests/managers/hardware_tests.py::HardwareTests::test_create_credential", "tests/managers/hardware_tests.py::HardwareTests::test_get_software_component" ]
[ "tests/CLI/modules/server_tests.py::ServerCLITests::test_add_notification", "tests/CLI/modules/server_tests.py::ServerCLITests::test_authorize_hw", "tests/CLI/modules/server_tests.py::ServerCLITests::test_authorize_hw_empty", "tests/CLI/modules/server_tests.py::ServerCLITests::test_authorize_hw_no_confirm", ...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> new command hw create-credential [#issue1677](https://github.com/softlayer/softlayer-python/issues/1773) ![image](https://user-images.githubusercontent.com/22535437/197228453-af6db9c8-edb2-4a5b-9...
bd1ecce1ec4313b9ceefd3cfea52d1b9274fef9d
django__django-16208
16,208
django/django
4.2
c0a93d39411004300dfda2deb3dc093b69ac6368
2022-10-20T22:22:01Z
diff --git a/AUTHORS b/AUTHORS index a3848545e64d..5b9d8621d963 100644 --- a/AUTHORS +++ b/AUTHORS @@ -410,6 +410,7 @@ answer newbie questions, and generally made Django that much better: Ifedapo Olarewaju <ifedapoolarewaju@gmail.com> Igor Kolar <ike@email.si> Illia Volochii <illia.volochii@gmail.com> + ...
diff --git a/tests/backends/base/test_base.py b/tests/backends/base/test_base.py index 57d22ce269d8..ada2cc33c909 100644 --- a/tests/backends/base/test_base.py +++ b/tests/backends/base/test_base.py @@ -1,10 +1,16 @@ from unittest.mock import MagicMock, patch -from django.db import DEFAULT_DB_ALIAS, connection, conn...
diff --git a/AUTHORS b/AUTHORS index a3848545e64d..5b9d8621d963 100644 --- a/AUTHORS +++ b/AUTHORS @@ -410,6 +410,7 @@ answer newbie questions, and generally made Django that much better: Ifedapo Olarewaju <ifedapoolarewaju@gmail.com> Igor Kolar <ike@email.si> Illia Volochii <illia.volochii@gmail.com> + ...
[ { "components": [ { "doc": "", "lines": [ 148, 171 ], "name": "debug_transaction", "signature": "def debug_transaction(connection, sql):", "type": "function" } ], "file": "django/db/backends/utils.py" } ]
[ "test_commit_debug_log (backends.base.test_base.DatabaseWrapperLoggingTests)", "test_rollback_debug_log (backends.base.test_base.DatabaseWrapperLoggingTests)" ]
[ "test_check_database_version_supported_with_none_as_database_version (backends.base.test_base.DatabaseWrapperTests)", "test_get_database_version (backends.base.test_base.DatabaseWrapperTests)", "The \"initialization\" class attributes like client_class and", "test_initialization_display_name (backends.base.te...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Fixed #31090 -- Logged transaction management queries. Thanks to @PetterS for the original idea and @felixxm for advice during the DjangoConUS 2022 Sprint! This addresses https://code.djangoproject.c...
Here is the discussion in the issues of the pull request. <issues> Log when DB transactions are commited and rollbacked. Description Background: I was debugging database calls today with the django.db.backends log. Problem: The BEGIN SQL calls show up in the logs, but there is no way to see when the transaction is c...
016bead6a23989adec5c7ee6948db7ce2fc5e89b
conan-io__conan-12351
12,351
conan-io/conan
null
40c04922232e4741b87a010ad6fa94496635c10d
2022-10-20T16:35:29Z
diff --git a/conans/model/build_info.py b/conans/model/build_info.py index b29444f9e19..57b19c21b5c 100644 --- a/conans/model/build_info.py +++ b/conans/model/build_info.py @@ -2,6 +2,7 @@ import os from collections import OrderedDict +from conan.api.output import ConanOutput from conans.errors import ConanExcepti...
diff --git a/conans/test/integration/conan_v2/test_legacy_cpp_info.py b/conans/test/integration/conan_v2/test_legacy_cpp_info.py index 65c7f427bad..2fed4a861fb 100644 --- a/conans/test/integration/conan_v2/test_legacy_cpp_info.py +++ b/conans/test/integration/conan_v2/test_legacy_cpp_info.py @@ -18,6 +18,15 @@ def pack...
[ { "components": [ { "doc": "# TODO: Remove in 2.X\nto mock user_info and env_info", "lines": [ 34, 57 ], "name": "MockInfoProperty", "signature": "class MockInfoProperty(object):", "type": "class" }, { "doc": "", ...
[ "conans/test/integration/conan_v2/test_legacy_cpp_info.py::test_legacy_names_filenames" ]
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Implement `env_info` and `user_info` as fake attributes in Conan 2.0 so the error is not thrown Changelog: Implement `env_info` and `user_info` as fake attributes in Conan 2.0 so the error is not thro...
4a5b19a75db9225316c8cb022a2dfb9705a2af34
Project-MONAI__MONAI-5358
5,358
Project-MONAI/MONAI
null
8383f8bfb1e2a4cd018135c1b39099691975ff2e
2022-10-19T01:31:37Z
diff --git a/monai/utils/__init__.py b/monai/utils/__init__.py index 8eccac8f70..c5419cb9af 100644 --- a/monai/utils/__init__.py +++ b/monai/utils/__init__.py @@ -78,6 +78,7 @@ set_determinism, star_zip_with, str2bool, + str2list, zip_with, ) from .module import ( diff --git a/monai/utils/misc....
diff --git a/tests/test_str2bool.py b/tests/test_str2bool.py index a7132aa97e..e1d9ca1ee3 100644 --- a/tests/test_str2bool.py +++ b/tests/test_str2bool.py @@ -16,9 +16,9 @@ class TestStr2Bool(unittest.TestCase): def test_str_2_bool(self): - for i in ("yes", "true", "t", "y", "1"): + for i in ("yes...
[ { "components": [ { "doc": "Convert a string to a list. Useful with argparse commandline arguments:\n parser.add_argument(\"--blocks\", default=[1,2,3], type=str2list)\n python mycode.py --blocks=1,2,2,4\n\nArgs:\n value: string (comma separated) to be converted to a list\n raise_exc:...
[ "tests/test_str2bool.py::TestStr2Bool::test_str_2_bool", "tests/test_str2list.py::TestStr2List::test_str_2_list" ]
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> str2list utility for commandline parsing of comma separated lists This adds a utility function str2list to convert a string to a list. Useful with argparse commandline arguments: ``` parser...
e73257caa79309dcce1e93abf1632f4bfd75b11f
aws__sagemaker-python-sdk-3423
3,423
aws/sagemaker-python-sdk
null
8dc17fb89fafd3609e14cb1539ae2911be510f2e
2022-10-18T21:48:25Z
diff --git a/doc/frameworks/pytorch/using_pytorch.rst b/doc/frameworks/pytorch/using_pytorch.rst index 725f34aa5a..f56085f756 100644 --- a/doc/frameworks/pytorch/using_pytorch.rst +++ b/doc/frameworks/pytorch/using_pytorch.rst @@ -293,6 +293,121 @@ using two ``ml.p4d.24xlarge`` instances: pt_estimator.fit("s3://...
diff --git a/tests/conftest.py b/tests/conftest.py index 249f25cfcb..e92d98112b 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -358,6 +358,11 @@ def huggingface_neuron_latest_inference_py_version(): return "py37" +@pytest.fixture(scope="module") +def pytorch_neuron_version(): + return "1.11" + + ...
diff --git a/doc/frameworks/pytorch/using_pytorch.rst b/doc/frameworks/pytorch/using_pytorch.rst index 725f34aa5a..f56085f756 100644 --- a/doc/frameworks/pytorch/using_pytorch.rst +++ b/doc/frameworks/pytorch/using_pytorch.rst @@ -293,6 +293,121 @@ using two ``ml.p4d.24xlarge`` instances: pt_estimator.fit("s3://...
[ { "components": [ { "doc": "Validate if framework is supported for the instance_type", "lines": [ 355, 362 ], "name": "_validate_for_suppported_frameworks_and_instance_type", "signature": "def _validate_for_suppported_frameworks_and_instance_type...
[ "tests/unit/sagemaker/image_uris/test_trainium.py::test_trainium_pytorch" ]
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> feature: Trainium Neuron support for PyTorch *Issue #, if available:* *Description of changes:* Added the necessary changes to incorporate the `v1.0-pt-1.11.0-tr-neuron-sdk2.3.0-py38` image into t...
03738861995e0c3fda73958d251e83465aba3c04
pydata__xarray-7185
7,185
pydata/xarray
2022.09
7379923de756a2bcc59044d548f8ab7a68b91d4e
2022-10-18T15:25:34Z
diff --git a/doc/whats-new.rst b/doc/whats-new.rst index 2ca7de037cb..5291eba93fd 100644 --- a/doc/whats-new.rst +++ b/doc/whats-new.rst @@ -25,6 +25,9 @@ New Features - Add static typing to plot accessors (:issue:`6949`, :pull:`7052`). By `Michael Niklas <https://github.com/headtr1ck>`_. +- Display the indexes i...
diff --git a/xarray/tests/test_formatting_html.py b/xarray/tests/test_formatting_html.py index 039c6269350..7ea5c19019b 100644 --- a/xarray/tests/test_formatting_html.py +++ b/xarray/tests/test_formatting_html.py @@ -102,20 +102,20 @@ def test_repr_of_dataarray(dataarray) -> None: assert "dim_0" in formatted ...
diff --git a/doc/whats-new.rst b/doc/whats-new.rst index 2ca7de037cb..5291eba93fd 100644 --- a/doc/whats-new.rst +++ b/doc/whats-new.rst @@ -25,6 +25,9 @@ New Features - Add static typing to plot accessors (:issue:`6949`, :pull:`7052`). By `Michael Niklas <https://github.com/headtr1ck>`_. +- Display the indexes i...
[ { "components": [ { "doc": "", "lines": [ 128, 132 ], "name": "short_index_repr_html", "signature": "def short_index_repr_html(index):", "type": "function" }, { "doc": "", "lines": [ 135, 15...
[ "xarray/tests/test_formatting_html.py::test_repr_of_dataarray", "xarray/tests/test_formatting_html.py::test_repr_of_dataset" ]
[ "xarray/tests/test_formatting_html.py::test_short_data_repr_html", "xarray/tests/test_formatting_html.py::test_short_data_repr_html_non_str_keys", "xarray/tests/test_formatting_html.py::test_short_data_repr_html_dask", "xarray/tests/test_formatting_html.py::test_format_dims_no_dims", "xarray/tests/test_form...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> indexes section in the HTML repr To see the effect, try this: <details> ```python import xarray as xr from xarray.core.indexes import Index class CustomIndex(Index): def __init__(sel...
087ebbb78668bdf5d2d41c3b2553e3f29ce75be1
tobymao__sqlglot-601
601
tobymao/sqlglot
null
c4513ecea50c90598d243ba171513fbeccefba36
2022-10-17T20:31:36Z
diff --git a/sqlglot/expressions.py b/sqlglot/expressions.py index 38e84526b1..dbe36a15f8 100644 --- a/sqlglot/expressions.py +++ b/sqlglot/expressions.py @@ -11,6 +11,7 @@ camel_to_snake_case, ensure_list, list_get, + split_num_words, subclasses, ) @@ -3218,16 +3219,12 @@ def to_identifier(al...
diff --git a/tests/test_expressions.py b/tests/test_expressions.py index 9ad2bf50e6..d98f68e323 100644 --- a/tests/test_expressions.py +++ b/tests/test_expressions.py @@ -514,6 +514,18 @@ def test_to_table(self): self.assertEqual(catalog_db_and_table.name, "table_name") self.assertEqual(catalog_db_and...
[]
[ "tests/test_expressions.py::TestExpressions::test_to_column" ]
[ "tests/test_expressions.py::TestExpressions::test_alias", "tests/test_expressions.py::TestExpressions::test_alias_column_names", "tests/test_expressions.py::TestExpressions::test_alias_or_name", "tests/test_expressions.py::TestExpressions::test_annotation_alias", "tests/test_expressions.py::TestExpressions:...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add to_column and add helper for splitting to num words I removed the doc string tests for to_table and to_column since they didn't really work before due to a recursion issue. ---------- </request> ...
ceb42fabad60312699e4b15936aeebac00e22e4d
joke2k__faker-1737
1,737
joke2k/faker
null
074b15574f231ce6d045cb0e9c32c57f2b52410f
2022-10-15T11:15:35Z
diff --git a/faker/providers/color/id_ID/__init__.py b/faker/providers/color/id_ID/__init__.py new file mode 100644 index 0000000000..8e8fe6d0e4 --- /dev/null +++ b/faker/providers/color/id_ID/__init__.py @@ -0,0 +1,60 @@ +from collections import OrderedDict + +from .. import Provider as ColorProvider + +localized = Tr...
diff --git a/tests/providers/test_color.py b/tests/providers/test_color.py index c978ed122a..0770621463 100644 --- a/tests/providers/test_color.py +++ b/tests/providers/test_color.py @@ -14,6 +14,7 @@ from faker.providers.color.fa_IR import Provider as FaIrColorProvider from faker.providers.color.he_IL import Provide...
[ { "components": [ { "doc": "Implement color provider for ``id_ID`` locale.\n\nSources:\n- https://id.wikipedia.org/wiki/Daftar_warna", "lines": [ 8, 59 ], "name": "Provider", "signature": "class Provider(ColorProvider):", "type": "class" ...
[ "tests/providers/test_color.py::TestColorProvider::test_safe_hex_color", "tests/providers/test_color.py::TestColorProvider::test_hex_color", "tests/providers/test_color.py::TestColorProvider::test_rgb_color", "tests/providers/test_color.py::TestColorProvider::test_rgb_css_color", "tests/providers/test_color...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add color ID ### What does this change - Add color provider for ID (Indonesia) - Add test for ID color provider ---------- </request> There are several new functions or classes that need to be i...
6edfdbf6ae90b0153309e3bf066aa3b2d16494a7
open-mmlab__mmengine-609
609
open-mmlab/mmengine
null
bc37c838d424b3d9ce5cbd4859540cdc03204026
2022-10-14T07:40:30Z
diff --git a/docs/en/api/utils.rst b/docs/en/api/utils.rst index 92466352a5..681e15d2c0 100644 --- a/docs/en/api/utils.rst +++ b/docs/en/api/utils.rst @@ -109,6 +109,7 @@ Miscellaneous to_ntuple check_prerequisites deprecated_api_warning + deprecated_function has_method is_method_overridden im...
diff --git a/tests/test_utils/test_misc.py b/tests/test_utils/test_misc.py new file mode 100644 index 0000000000..95d7a006bd --- /dev/null +++ b/tests/test_utils/test_misc.py @@ -0,0 +1,285 @@ +# Copyright (c) OpenMMLab. All rights reserved. +import pytest + +from mmengine import MMLogger +# yapf: disable +from mmengin...
diff --git a/docs/en/api/utils.rst b/docs/en/api/utils.rst index 92466352a5..681e15d2c0 100644 --- a/docs/en/api/utils.rst +++ b/docs/en/api/utils.rst @@ -109,6 +109,7 @@ Miscellaneous to_ntuple check_prerequisites deprecated_api_warning + deprecated_function has_method is_method_overridden im...
[ { "components": [ { "doc": "Marks functions as deprecated.\n\nThrow a warning when a deprecated function is called, and add a note in the\ndocstring. Modified from https://github.com/pytorch/pytorch/blob/master/torch/onnx/_deprecation.py\n\nArgs:\n since (str): The version when the function was...
[ "tests/test_utils/test_misc.py::test_to_ntuple", "tests/test_utils/test_misc.py::test_iter_cast", "tests/test_utils/test_misc.py::test_is_seq_of", "tests/test_utils/test_misc.py::test_slice_list", "tests/test_utils/test_misc.py::test_concat_list", "tests/test_utils/test_misc.py::test_requires_package", ...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> [Enhancement] Add a function to mark the deprecated function. Thanks for your contribution and we appreciate it a lot. The following instructions would make your pull request more healthy and more eas...
53474ef1ba0b166508c231fa525b55b580adf20f
tobymao__sqlglot-590
590
tobymao/sqlglot
null
fb4ef275f599e00ee5718c35ba9ffccef9046798
2022-10-13T21:16:49Z
diff --git a/sqlglot/expressions.py b/sqlglot/expressions.py index 21ca8666ec..6d4caa625f 100644 --- a/sqlglot/expressions.py +++ b/sqlglot/expressions.py @@ -1202,7 +1202,11 @@ class Union(Subqueryable, Expression): @property def named_selects(self): - return self.args["this"].unnest().named_selects...
diff --git a/tests/test_expressions.py b/tests/test_expressions.py index 1fcda57b36..4e942979de 100644 --- a/tests/test_expressions.py +++ b/tests/test_expressions.py @@ -511,3 +511,11 @@ def test_to_table(self): self.assertEqual(catalog_db_and_table.name, "table_name") self.assertEqual(catalog_db_and...
[]
[ "tests/test_expressions.py::TestExpressions::test_union" ]
[ "tests/test_expressions.py::TestExpressions::test_alias", "tests/test_expressions.py::TestExpressions::test_alias_column_names", "tests/test_expressions.py::TestExpressions::test_alias_or_name", "tests/test_expressions.py::TestExpressions::test_annotation_alias", "tests/test_expressions.py::TestExpressions:...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add selects to union This allows someone to get the columns from a `Select` and `Union` expressions in the same way. ---------- </request> There are several new functions or classes that need to be...
ceb42fabad60312699e4b15936aeebac00e22e4d
conan-io__conan-12295
12,295
conan-io/conan
null
0ae90e8e63fef83486ef741a91108731450e028a
2022-10-12T20:48:45Z
diff --git a/conan/tools/scm/git.py b/conan/tools/scm/git.py index 4a5c8194e47..1032d5b6924 100644 --- a/conan/tools/scm/git.py +++ b/conan/tools/scm/git.py @@ -87,3 +87,8 @@ def clone(self, url, target="", args=None): def checkout(self, commit): self._conanfile.output.info("Checkout: {}".format(commit)) ...
diff --git a/conans/test/functional/tools/scm/test_git.py b/conans/test/functional/tools/scm/test_git.py index cd1e47c06aa..4993195415c 100644 --- a/conans/test/functional/tools/scm/test_git.py +++ b/conans/test/functional/tools/scm/test_git.py @@ -585,3 +585,72 @@ def export(self): c.init_git_repo() ...
[ { "components": [ { "doc": "", "lines": [ 91, 94 ], "name": "Git.included_files", "signature": "def included_files(self):", "type": "function" } ], "file": "conan/tools/scm/git.py" } ]
[ "conans/test/functional/tools/scm/test_git.py::TestGitIncluded::test_git_included", "conans/test/functional/tools/scm/test_git.py::TestGitIncluded::test_git_included_subfolder" ]
[ "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> backporting Git.included_files() Changelog: Feature: New ``included_files()`` method in ``from conan.tools.scm import Git``. Docs: https://github.com/conan-io/docs/pull/2799 Close https://github.c...
4a5b19a75db9225316c8cb022a2dfb9705a2af34
Textualize__textual-863
863
Textualize/textual
null
47effaddbbea92b777d1d347cb9789a132bc94cd
2022-10-11T09:05:55Z
diff --git a/src/textual/_arrange.py b/src/textual/_arrange.py index 4d4e489ee4..08010d3976 100644 --- a/src/textual/_arrange.py +++ b/src/textual/_arrange.py @@ -9,7 +9,6 @@ from ._layout import DockArrangeResult, WidgetPlacement from ._partition import partition - if TYPE_CHECKING: from .widget import Widge...
diff --git a/tests/test_geometry.py b/tests/test_geometry.py index 766dc703f4..02cac2fa0a 100644 --- a/tests/test_geometry.py +++ b/tests/test_geometry.py @@ -75,6 +75,13 @@ def test_offset_is_origin(): assert not Offset(1, 0).is_origin +def test_clamped(): + assert Offset(-10, 0).clamped == Offset(0, 0) + ...
diff --git a/src/textual/cli/previews/colors.css b/src/textual/cli/previews/colors.css new file mode 100644 index 0000000000..15213b0b34 --- /dev/null +++ b/src/textual/cli/previews/colors.css @@ -0,0 +1,75 @@ +ColorButtons { + dock: left; + overflow-y: auto; + width: 30; +} + +ColorButtons > Button { ...
[ { "components": [ { "doc": "Explore the design system.", "lines": [ 117, 121 ], "name": "colors", "signature": "def colors():", "type": "function" } ], "file": "src/textual/cli/cli.py" }, { "components": [ { ...
[ "tests/test_geometry.py::test_clamped" ]
[ "tests/test_geometry.py::test_dimensions_region", "tests/test_geometry.py::test_dimensions_contains", "tests/test_geometry.py::test_dimensions_contains_point", "tests/test_geometry.py::test_dimensions_contains_special", "tests/test_geometry.py::test_dimensions_bool", "tests/test_geometry.py::test_dimensio...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Cli colors Added a preview for the color system. At some point we might extend this in to a color scheme editor. But that should probably wait until we have a config system. ``` textual colors ...
86e93536b991014e0ea4bf993068202b446bb698
sqlfluff__sqlfluff-3937
3,937
sqlfluff/sqlfluff
1.3
f691f033ac90e760bb70f0f9d02c89a859565d6d
2022-10-08T18:54:38Z
diff --git a/.gitignore b/.gitignore index 95882a5bcdc..9bc74ff9001 100644 --- a/.gitignore +++ b/.gitignore @@ -39,6 +39,9 @@ test-reports # Ignore dbt outputs from testing /target +# Ignore any timing outputs +/*.csv + # Ignore conda environment.yml contributors might be using and direnv config environment.yml ...
diff --git a/test/cli/commands_test.py b/test/cli/commands_test.py index b9630eaa11e..ba0effb615a 100644 --- a/test/cli/commands_test.py +++ b/test/cli/commands_test.py @@ -441,6 +441,8 @@ def test__cli__command_lint_stdin(command): "test/fixtures/cli/extra_config_tsql.sql", ], ),...
diff --git a/.gitignore b/.gitignore index 95882a5bcdc..9bc74ff9001 100644 --- a/.gitignore +++ b/.gitignore @@ -39,6 +39,9 @@ test-reports # Ignore dbt outputs from testing /target +# Ignore any timing outputs +/*.csv + # Ignore conda environment.yml contributors might be using and direnv config environment.yml ...
[ { "components": [ { "doc": "Persist the timing records as a csv to external analysis.", "lines": [ 150, 190 ], "name": "LintingResult.persist_timing_records", "signature": "def persist_timing_records(self, filename):", "type": "function" ...
[ "test/cli/commands_test.py::test__cli__command_lint_parse[command24]", "test/core/parser/segments_base_test.py::test__parser__base_segments_count_segments" ]
[ "test/cli/commands_test.py::test__cli__command_directed", "test/cli/commands_test.py::test__cli__command_dialect", "test/cli/commands_test.py::test__cli__command_no_dialect", "test/cli/commands_test.py::test__cli__command_parse_error_dialect_explicit_warning", "test/cli/commands_test.py::test__cli__command_...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Enable dumping of performance information to csv. To enable a bit more introspection on performance information - this enables dumping performance information to an external csv file. I'd like to do s...
ada7967cd2fb98de054323dd8aad19e84b427c67
mwaskom__seaborn-3063
3,063
mwaskom/seaborn
0.12
c412ddf1fede5d8882a6c230826c1d8fbbf61911
2022-10-08T18:15:33Z
diff --git a/doc/_docstrings/objects.Perc.ipynb b/doc/_docstrings/objects.Perc.ipynb new file mode 100644 index 0000000000..b97c87cc1f --- /dev/null +++ b/doc/_docstrings/objects.Perc.ipynb @@ -0,0 +1,130 @@ +{ + "cells": [ + { + "cell_type": "code", + "execution_count": null, + "id": "2d44a326-029b-47ff-b560-5f...
diff --git a/tests/_stats/test_order.py b/tests/_stats/test_order.py new file mode 100644 index 0000000000..eaacdcab8b --- /dev/null +++ b/tests/_stats/test_order.py @@ -0,0 +1,87 @@ + +import numpy as np +import pandas as pd + +import pytest +from numpy.testing import assert_array_equal + +from seaborn._core.groupby i...
diff --git a/doc/_docstrings/objects.Perc.ipynb b/doc/_docstrings/objects.Perc.ipynb new file mode 100644 index 0000000000..b97c87cc1f --- /dev/null +++ b/doc/_docstrings/objects.Perc.ipynb @@ -0,0 +1,130 @@ +{ + "cells": [ + { + "cell_type": "code", + "execution_count": null, + "id": "2d44a326-029b-47ff-b560-5f...
[ { "components": [ { "doc": "Replace observations with percentile values.\n\nParameters\n----------\nk : list of numbers or int\n If a list of numbers, this gives the percentiles (in [0, 100]) to compute.\n If an integer, compute `k` evenly-spaced percentiles between 0 and 100.\n For examp...
[ "tests/_stats/test_order.py::TestPerc::test_int_k", "tests/_stats/test_order.py::TestPerc::test_list_k", "tests/_stats/test_order.py::TestPerc::test_orientation", "tests/_stats/test_order.py::TestPerc::test_method", "tests/_stats/test_order.py::TestPerc::test_grouped", "tests/_stats/test_order.py::TestPer...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add Perc stat for computing percentiles ```python ( so.Plot(tips, "day", "total_bill") .add(so.Dot(), so.Perc(11)) .add(so.Range(linewidth=3), so.Perc([10, 90]), so.Shift(x=.1)) ) ``...
bf4695466d742f301f361b8d0c8168c5c4bdf889
Textualize__textual-856
856
Textualize/textual
null
5a0ece20fe175bd7c2d2182fcd7120313b320b6d
2022-10-08T14:47:09Z
diff --git a/src/textual/_filter.py b/src/textual/_filter.py new file mode 100644 index 0000000000..86ca9858e9 --- /dev/null +++ b/src/textual/_filter.py @@ -0,0 +1,53 @@ +from __future__ import annotations + +from abc import ABC, abstractmethod +from functools import lru_cache + +from rich.segment import Segment +from...
diff --git a/tests/test_color.py b/tests/test_color.py index 105eb8e94c..10340d3dc9 100644 --- a/tests/test_color.py +++ b/tests/test_color.py @@ -31,6 +31,13 @@ def test_css(): assert Color(10, 20, 30, 0.5).css == "rgba(10,20,30,0.5)" +def test_monochrome(): + assert Color(10, 20, 30).monochrome == Color(1...
[ { "components": [ { "doc": "Base class for a line filter.", "lines": [ 12, 18 ], "name": "LineFilter", "signature": "class LineFilter(ABC):", "type": "class" }, { "doc": "Transform a list of segments.", "lines"...
[ "tests/test_color.py::test_monochrome" ]
[ "tests/test_color.py::test_rich_color", "tests/test_color.py::test_rich_color_rich_output", "tests/test_color.py::test_normalized", "tests/test_color.py::test_clamped", "tests/test_color.py::test_css", "tests/test_color.py::test_rgb", "tests/test_color.py::test_hls", "tests/test_color.py::test_color_b...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> monochrome tests Adds a simple color filter system, and implements NO_COLOR with it. ---------- </request> There are several new functions or classes that need to be implemented, using the definitio...
86e93536b991014e0ea4bf993068202b446bb698
conan-io__conan-12269
12,269
conan-io/conan
null
b70db136a790532a9a80c37068da2c349ef4a0cf
2022-10-07T14:59:05Z
diff --git a/conan/tools/build/__init__.py b/conan/tools/build/__init__.py index c7a2e667b93..829886a8de3 100644 --- a/conan/tools/build/__init__.py +++ b/conan/tools/build/__init__.py @@ -2,3 +2,4 @@ from conan.tools.build.cross_building import cross_building, can_run from conan.tools.build.cppstd import check_min_c...
diff --git a/conans/test/unittests/tools/build/test_stdcpp_library.py b/conans/test/unittests/tools/build/test_stdcpp_library.py new file mode 100644 index 00000000000..563284da885 --- /dev/null +++ b/conans/test/unittests/tools/build/test_stdcpp_library.py @@ -0,0 +1,18 @@ +import pytest +from conan.tools.build import...
[ { "components": [ { "doc": "Returns the name of the C++ standard library that can be passed\nto the linker, based on the current settings. Returs None if the name \nof the C++ standard library file is not known.", "lines": [ 2, 16 ], "name": "stdcpp_libr...
[ "conans/test/unittests/tools/build/test_stdcpp_library.py::test_stdcpp_library[libstdc++-stdc++]", "conans/test/unittests/tools/build/test_stdcpp_library.py::test_stdcpp_library[libstdc++11-stdc++]", "conans/test/unittests/tools/build/test_stdcpp_library.py::test_stdcpp_library[libc++-c++]", "conans/test/unit...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add stdcpp_library to conan.tools.build Changelog: Feature: Add `stdcpp_library` to `conan.tools.build` to get name of C++ standard library to be linked. Docs: https://github.com/conan-io/docs/pull/2...
4a5b19a75db9225316c8cb022a2dfb9705a2af34
softlayer__softlayer-python-1766
1,766
softlayer/softlayer-python
null
00e6a0677efb00ce3cd0562939fb7e98e00b2f99
2022-10-06T19:34:06Z
diff --git a/SoftLayer/CLI/core.py b/SoftLayer/CLI/core.py index 5425882da..b3a1fead0 100644 --- a/SoftLayer/CLI/core.py +++ b/SoftLayer/CLI/core.py @@ -34,7 +34,7 @@ } PROG_NAME = "slcli (SoftLayer Command-line)" -VALID_FORMATS = ['table', 'raw', 'json', 'jsonraw'] +VALID_FORMATS = ['table', 'raw', 'json', 'jsonra...
diff --git a/tests/CLI/modules/account_tests.py b/tests/CLI/modules/account_tests.py index 7e0792c07..b02b73032 100644 --- a/tests/CLI/modules/account_tests.py +++ b/tests/CLI/modules/account_tests.py @@ -66,6 +66,14 @@ def test_invoice_detail_details(self): self.assert_no_fail(result) self.assert_cal...
[ { "components": [ { "doc": "Formating a table to csv format and show it.", "lines": [ 450, 454 ], "name": "csv_output_format", "signature": "def csv_output_format(data, delimiter=','):", "type": "function" }, { "doc": ...
[ "tests/CLI/modules/account_tests.py::AccountCLITests::test_invoice_detail_csv_output_format", "tests/CLI/modules/vs/vs_tests.py::VirtTests::test_vs_detail_csv_output_format_with_nested_tables" ]
[ "tests/CLI/modules/account_tests.py::AccountCLITests::test_acccount_bandwidth_pool_detail", "tests/CLI/modules/account_tests.py::AccountCLITests::test_acccount_licenses", "tests/CLI/modules/account_tests.py::AccountCLITests::test_acccount_order", "tests/CLI/modules/account_tests.py::AccountCLITests::test_acco...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Added csv output format Issue: #1320 ``` softlayer-python/ () $ slcli --format csv vs list id,hostname,domain,deviceStatus.name,datacenter,primary_ip,backend_ip,createDate,action 1002,adns,vmware....
bd1ecce1ec4313b9ceefd3cfea52d1b9274fef9d
pvlib__pvlib-python-1567
1,567
pvlib/pvlib-python
0.8
dd6062afdf86ac113ac53d7a493710f5c79b8935
2022-10-05T16:37:55Z
diff --git a/docs/sphinx/source/reference/irradiance.rst b/docs/sphinx/source/reference/irradiance.rst index e0a5777533..ad3da96eab 100644 --- a/docs/sphinx/source/reference/irradiance.rst +++ b/docs/sphinx/source/reference/irradiance.rst @@ -28,6 +28,7 @@ Decomposing and combining irradiance irradiance.poa_compone...
diff --git a/pvlib/tests/test_irradiance.py b/pvlib/tests/test_irradiance.py index c87e8dcb47..ae3a7ec88a 100644 --- a/pvlib/tests/test_irradiance.py +++ b/pvlib/tests/test_irradiance.py @@ -7,8 +7,8 @@ import pandas as pd import pytest -from numpy.testing import assert_almost_equal, assert_allclose - +from numpy.t...
diff --git a/docs/sphinx/source/reference/irradiance.rst b/docs/sphinx/source/reference/irradiance.rst index e0a5777533..ad3da96eab 100644 --- a/docs/sphinx/source/reference/irradiance.rst +++ b/docs/sphinx/source/reference/irradiance.rst @@ -28,6 +28,7 @@ Decomposing and combining irradiance irradiance.poa_compone...
[ { "components": [ { "doc": "Use the component sum equations to calculate the missing series, using\nthe other available time series. One of the three parameters (ghi, dhi,\ndni) is passed as None, and the other associated series passed are used to\ncalculate the missing series value.\n\nThe \"comp...
[ "pvlib/tests/test_irradiance.py::test_complete_irradiance" ]
[ "pvlib/tests/test_irradiance.py::test_get_extra_radiation[asce-300-1383.636203]", "pvlib/tests/test_irradiance.py::test_get_extra_radiation[asce-300.0-1383.636203]", "pvlib/tests/test_irradiance.py::test_get_extra_radiation[asce-testval2-1383.636203]", "pvlib/tests/test_irradiance.py::test_get_extra_radiation...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Implement irradiance.complete_irradiance with component sum equations <!-- Thank you for your contribution! The following items must be addressed before the code can be merged. Please don't hesitate t...
Here is the discussion in the issues of the pull request. <issues> Add in component sum equations for GHI, DHI, and DNI into the pvlib.irradiance module. Right now, we have code for calculating GHI, DHI, and DNI via the component sum equations in pvlib/pvanalytics, and doing nighttime corrections (https://github.com/pv...
311781d2380997044da0e484dc90aa146a74ca44
conan-io__conan-12243
12,243
conan-io/conan
null
6f8f9c5d179ce71877a89826d5275e83e9958f7a
2022-10-04T21:25:40Z
diff --git a/conan/api/subapi/install.py b/conan/api/subapi/install.py index 18b37a2b3ab..30e79be593b 100644 --- a/conan/api/subapi/install.py +++ b/conan/api/subapi/install.py @@ -49,7 +49,7 @@ def install_consumer(self, deps_graph, generators=None, source_folder=None, outp if deploy: base_folder...
diff --git a/conans/test/functional/command/test_install_deploy.py b/conans/test/functional/command/test_install_deploy.py index d004cc0f5de..7800b06e807 100644 --- a/conans/test/functional/command/test_install_deploy.py +++ b/conans/test/functional/command/test_install_deploy.py @@ -21,7 +21,8 @@ def test_install_depl...
[ { "components": [ { "doc": "", "lines": [ 90, 96 ], "name": "do_deploys", "signature": "def do_deploys(conan_api, graph, deploy, deploy_folder):", "type": "function" } ], "file": "conan/api/subapi/install.py" } ]
[ "conans/test/functional/command/test_install_deploy.py::test_copy_files_deploy", "conans/test/functional/command/test_install_deploy.py::test_multi_deploy", "conans/test/integration/command/info/info_test.py::TestDeployers::test_custom_deploy" ]
[ "conans/test/functional/command/test_install_deploy.py::test_builtin_deploy", "conans/test/functional/command/test_install_deploy.py::test_deploy_reference", "conans/test/functional/command/test_install_deploy.py::test_deploy_overwrite", "conans/test/functional/command/test_install_deploy.py::test_deploy_edit...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add --deploy to graph-info How to do some quick ``graph info``, and extract custom information from the graph, in an extensible way? - Formatters at the moment are very built-in, and seems difficul...
4a5b19a75db9225316c8cb022a2dfb9705a2af34
conan-io__conan-12230
12,230
conan-io/conan
null
75329f63d45fbfa6542c6e7f252a15320bd3b63e
2022-10-02T21:58:52Z
diff --git a/conan/tools/env/virtualrunenv.py b/conan/tools/env/virtualrunenv.py index af342e16daa..529aadbda8b 100644 --- a/conan/tools/env/virtualrunenv.py +++ b/conan/tools/env/virtualrunenv.py @@ -55,7 +55,10 @@ def environment(self): very occasional """ runenv = Environment() - # ...
diff --git a/conans/test/integration/environment/test_runenv_profile.py b/conans/test/integration/environment/test_runenv_profile.py new file mode 100644 index 00000000000..d05b8f910c1 --- /dev/null +++ b/conans/test/integration/environment/test_runenv_profile.py @@ -0,0 +1,36 @@ +import textwrap + +import pytest + +fr...
[ { "components": [ { "doc": "", "lines": [ 214, 221 ], "name": "ConanFile.runenv", "signature": "def runenv(self):", "type": "function" } ], "file": "conans/model/conan_file.py" } ]
[ "conans/test/integration/environment/test_runenv_profile.py::test_buildenv_profile_cli" ]
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> new profile [runenv] section Changelog: Feature: Implement a new ``[runenv]`` section in the Profile, to define the runtime environment. Docs: https://github.com/conan-io/docs/pull/2771 I hit this...
4a5b19a75db9225316c8cb022a2dfb9705a2af34
pvlib__pvlib-python-1562
1,562
pvlib/pvlib-python
0.8
eefc35ccecfa92b4eebd19f96f5044f79e6b0bcf
2022-09-30T00:13:00Z
diff --git a/docs/sphinx/source/reference/pv_modeling.rst b/docs/sphinx/source/reference/pv_modeling.rst index 31c380c1bb..0f33cf8c70 100644 --- a/docs/sphinx/source/reference/pv_modeling.rst +++ b/docs/sphinx/source/reference/pv_modeling.rst @@ -28,6 +28,8 @@ Incident angle modifiers iam.interp iam.marion_diff...
diff --git a/pvlib/tests/test_iam.py b/pvlib/tests/test_iam.py index 4310ee837a..df4d9ee877 100644 --- a/pvlib/tests/test_iam.py +++ b/pvlib/tests/test_iam.py @@ -322,3 +322,48 @@ def test_marion_integrate_invalid(): with pytest.raises(ValueError): _iam.marion_integrate(_iam.ashrae, 0, 'bad', 180) + + +...
diff --git a/docs/sphinx/source/reference/pv_modeling.rst b/docs/sphinx/source/reference/pv_modeling.rst index 31c380c1bb..0f33cf8c70 100644 --- a/docs/sphinx/source/reference/pv_modeling.rst +++ b/docs/sphinx/source/reference/pv_modeling.rst @@ -28,6 +28,8 @@ Incident angle modifiers iam.interp iam.marion_diff...
[ { "components": [ { "doc": "Determine incidence angle modifier (IAM) for direct irradiance using the\nSchlick approximation to the Fresnel equations.\n\nThe Schlick approximation was proposed in [1]_ as a computationally\nefficient alternative to computing the Fresnel factor in computer\ngraphics ...
[ "pvlib/tests/test_iam.py::test_schlick", "pvlib/tests/test_iam.py::test_schlick_diffuse" ]
[ "pvlib/tests/test_iam.py::test_ashrae", "pvlib/tests/test_iam.py::test_ashrae_scalar", "pvlib/tests/test_iam.py::test_physical", "pvlib/tests/test_iam.py::test_physical_scalar", "pvlib/tests/test_iam.py::test_martin_ruiz", "pvlib/tests/test_iam.py::test_martin_ruiz_exception", "pvlib/tests/test_iam.py::...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Implement iam.schlick, iam.schlick_diffuse - [x] Closes #1564 - [x] I am familiar with the [contributing guidelines](https://pvlib-python.readthedocs.io/en/latest/contributing.html) - [x] Tests a...
Here is the discussion in the issues of the pull request. <issues> Add iam function based on Schlick 1994 **Is your feature request related to a problem? Please describe.** Equation 15 in Schlick 1994 gives an efficient approximation equation for surface reflectance as a function of incidence angle that could be use...
311781d2380997044da0e484dc90aa146a74ca44
huggingface__datasets-5036
5,036
huggingface/datasets
null
0a0e8858922be122e0eecf2fe9d0a1f1cd9b9f6d
2022-09-28T10:10:23Z
diff --git a/docs/source/process.mdx b/docs/source/process.mdx index 72c60416aa0..cb5cd00c479 100644 --- a/docs/source/process.mdx +++ b/docs/source/process.mdx @@ -516,9 +516,9 @@ In this case, the new dataset is constructed by getting examples one by one from [10, 11, 20, 12, 0, 21, 13] ``` -In the case of [`Data...
diff --git a/tests/test_iterable_dataset.py b/tests/test_iterable_dataset.py index f6e31bcb52f..1fc009a39e8 100644 --- a/tests/test_iterable_dataset.py +++ b/tests/test_iterable_dataset.py @@ -150,6 +150,9 @@ def test_cycling_multi_sources_examples_iterable(): ex_iterable = CyclingMultiSourcesExamplesIterable([ex_...
diff --git a/docs/source/process.mdx b/docs/source/process.mdx index 72c60416aa0..cb5cd00c479 100644 --- a/docs/source/process.mdx +++ b/docs/source/process.mdx @@ -516,9 +516,9 @@ In this case, the new dataset is constructed by getting examples one by one from [10, 11, 20, 12, 0, 21, 13] ``` -In the case of [`Data...
[ { "components": [ { "doc": "Iterator with an hasnext() function. Taken from https://stackoverflow.com/questions/1966591/has-next-in-python-iterators.", "lines": [ 47, 73 ], "name": "HasNextIterator", "signature": "class HasNextIterator(Iterator):...
[ "tests/test_iterable_dataset.py::test_cycling_multi_sources_examples_iterable", "tests/test_iterable_dataset.py::test_randomly_cycling_multi_sources_examples_iterable[None]", "tests/test_iterable_dataset.py::test_randomly_cycling_multi_sources_examples_iterable[probabilities1]", "tests/test_iterable_dataset.p...
[ "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 oversampling strategy iterable datasets interleave Hello everyone, Following the issue #4893 and the PR #4831, I propose here an oversampling strategy for a `IterableDataset` list. The `all_ex...
5142a8cf61d8a4495eda3d91dc4283a6df01ea14
joke2k__faker-1729
1,729
joke2k/faker
null
e14abc47e5f1ea7ce62f068c4aac6b9f51db6f5c
2022-09-28T01:24:30Z
diff --git a/faker/documentor.py b/faker/documentor.py index 5164bf7cf5..78aff9898e 100644 --- a/faker/documentor.py +++ b/faker/documentor.py @@ -1,13 +1,21 @@ import inspect import warnings -from typing import Any, Dict, List, Optional, Tuple, Union +from enum import Enum, auto +from typing import Any, Dict, List...
diff --git a/tests/providers/test_enum.py b/tests/providers/test_enum.py new file mode 100644 index 0000000000..e5161a1854 --- /dev/null +++ b/tests/providers/test_enum.py @@ -0,0 +1,51 @@ +from enum import Enum, auto + +import pytest + +from faker.providers.python import EmptyEnumException + + +class _TestEnumWithNoEl...
[ { "components": [ { "doc": "Required for faker.providers.enum", "lines": [ 12, 16 ], "name": "FakerEnum", "signature": "class FakerEnum(Enum):", "type": "class" } ], "file": "faker/documentor.py" }, { "components": [...
[ "tests/providers/test_enum.py::TestEnumProvider::test_enum", "tests/providers/test_enum.py::TestEnumProvider::test_enum_single", "tests/providers/test_enum.py::TestEnumProvider::test_empty_enum_raises", "tests/providers/test_enum.py::TestEnumProvider::test_none_raises", "tests/providers/test_enum.py::TestEn...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add enum provider ### What does this change Adds an enum provider to allow users to generate values based on enums. #### Usage: ```python from enum import Enum from faker import Faker ...
6edfdbf6ae90b0153309e3bf066aa3b2d16494a7
softlayer__softlayer-python-1758
1,758
softlayer/softlayer-python
null
7df775674ba8fca60004c673611825b96325641d
2022-09-27T16:01:44Z
diff --git a/SoftLayer/CLI/routes.py b/SoftLayer/CLI/routes.py index c85858f81..63ee6483b 100644 --- a/SoftLayer/CLI/routes.py +++ b/SoftLayer/CLI/routes.py @@ -54,6 +54,8 @@ ('virtual:migrate', 'SoftLayer.CLI.virt.migrate:cli'), ('virtual:access', 'SoftLayer.CLI.virt.access:cli'), ('virtual:monitoring',...
diff --git a/tests/CLI/modules/vs/vs_tests.py b/tests/CLI/modules/vs/vs_tests.py index e71067efe..46a0b994c 100644 --- a/tests/CLI/modules/vs/vs_tests.py +++ b/tests/CLI/modules/vs/vs_tests.py @@ -961,3 +961,11 @@ def test_last_transaction_empty(self): def test_user_access(self): result = self.run_command...
diff --git a/docs/cli/vs.rst b/docs/cli/vs.rst index c387d00a0..f8143f4e1 100644 --- a/docs/cli/vs.rst +++ b/docs/cli/vs.rst @@ -279,6 +279,14 @@ If no timezone is specified, IMS local time (CST) will be assumed, which might n :prog: virtual access :show-nested: +.. click:: SoftLayer.CLI.virt.notifications:cl...
[ { "components": [ { "doc": "Create a user virtual notification entry.", "lines": [ 16, 31 ], "name": "cli", "signature": "def cli(env, identifier, users):", "type": "function" } ], "file": "SoftLayer/CLI/virt/add_notificatio...
[ "tests/CLI/modules/vs/vs_tests.py::VirtTests::test_add_notification", "tests/CLI/modules/vs/vs_tests.py::VirtTests::test_notifications", "tests/managers/vs/vs_tests.py::VSTests::test_add_notification", "tests/managers/vs/vs_tests.py::VSTests::test_notification" ]
[ "tests/CLI/modules/vs/vs_tests.py::VirtTests::test_authorize_portable_storage_vs", "tests/CLI/modules/vs/vs_tests.py::VirtTests::test_authorize_storage_vs", "tests/CLI/modules/vs/vs_tests.py::VirtTests::test_authorize_storage_vs_no_confirm", "tests/CLI/modules/vs/vs_tests.py::VirtTests::test_authorize_volume_...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> New Command: virtual notifications [#issue1757](https://github.com/softlayer/softlayer-python/issues/1757) ![image](https://user-images.githubusercontent.com/22535437/192576936-ee974842-b4cc-4dfa-a...
bd1ecce1ec4313b9ceefd3cfea52d1b9274fef9d
huggingface__huggingface_hub-1088
1,088
huggingface/huggingface_hub
null
4bd9ebf73b38e7bfa15d8c867dea988b52e6e350
2022-09-27T14:02:45Z
diff --git a/docs/source/how-to-cache.mdx b/docs/source/how-to-cache.mdx index e0872e7767..b72b5384b4 100644 --- a/docs/source/how-to-cache.mdx +++ b/docs/source/how-to-cache.mdx @@ -128,6 +128,68 @@ When symlinks are not supported, a warning message is displayed to the user to a them they are using a degraded version...
diff --git a/tests/test_utils_assets.py b/tests/test_utils_assets.py new file mode 100644 index 0000000000..1dbae04b72 --- /dev/null +++ b/tests/test_utils_assets.py @@ -0,0 +1,87 @@ +import unittest +from pathlib import Path +from unittest.mock import patch + +import pytest + +from huggingface_hub import cached_assets...
diff --git a/docs/source/how-to-cache.mdx b/docs/source/how-to-cache.mdx index e0872e7767..b72b5384b4 100644 --- a/docs/source/how-to-cache.mdx +++ b/docs/source/how-to-cache.mdx @@ -128,6 +128,68 @@ When symlinks are not supported, a warning message is displayed to the user to a them they are using a degraded version...
[ { "components": [ { "doc": "Return a folder path to cache arbitrary files.\n\n`huggingface_hub` provides a canonical folder path to store assets. This is the\nrecommended way to integrate cache in a downstream library as it will benefit from\nthe builtins tools to scan and delete the cache properl...
[ "tests/test_utils_assets.py::CacheAssetsTest::test_cached_assets_path_default_assets_dir", "tests/test_utils_assets.py::CacheAssetsTest::test_cached_assets_path_forbidden_symbols", "tests/test_utils_assets.py::CacheAssetsTest::test_cached_assets_path_is_a_file", "tests/test_utils_assets.py::CacheAssetsTest::t...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> [RFC] Proposal for a way to cache files in downstream libraries This is a proposal following discussions started with the `datasets` team (@lhoestq @albertvillanova). The goal is to have a proper w...
4058e1f97ebe256b2f3006d4bc31be275c66df6b
tobymao__sqlglot-480
480
tobymao/sqlglot
null
8ff90984887381bca67e583703f741cad7d5abb9
2022-09-23T18:25:06Z
diff --git a/sqlglot/dialects/postgres.py b/sqlglot/dialects/postgres.py index c796839842..8abe366df5 100644 --- a/sqlglot/dialects/postgres.py +++ b/sqlglot/dialects/postgres.py @@ -7,6 +7,7 @@ no_paren_current_date_sql, no_tablesample_sql, no_trycast_sql, + str_position_sql, ) from sqlglot.generat...
diff --git a/tests/dialects/test_dialect.py b/tests/dialects/test_dialect.py index 4e0a3c6899..55e9a5b885 100644 --- a/tests/dialects/test_dialect.py +++ b/tests/dialects/test_dialect.py @@ -840,10 +840,20 @@ def test_operators(self): "starrocks": UnsupportedError, }, ) + s...
[]
[ "tests/dialects/test_dialect.py::TestDialect::test_operators", "tests/test_expressions.py::TestExpressions::test_functions" ]
[ "tests/dialects/test_dialect.py::TestDialect::test_alias", "tests/dialects/test_dialect.py::TestDialect::test_array", "tests/dialects/test_dialect.py::TestDialect::test_cast", "tests/dialects/test_dialect.py::TestDialect::test_cross_join", "tests/dialects/test_dialect.py::TestDialect::test_enum", "tests/d...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add parsing logic for Position function Example SQL dialects using this function: - [Postgres](https://www.postgresql.org/docs/current/functions-string.html) - [MySQL](https://dev.mysql.com/doc/refm...
ceb42fabad60312699e4b15936aeebac00e22e4d
Textualize__rich-2544
2,544
Textualize/rich
null
c6001e52260fb60250ba1e8d6ed67af004a85560
2022-09-23T14:22:15Z
diff --git a/CHANGELOG.md b/CHANGELOG.md index 314c1b1c8d..c21439d946 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Allow a `max_depth` argument to be passed to the `install()` hook https://github.com/Textualize/rich/is...
diff --git a/tests/test_table.py b/tests/test_table.py index e376e1672c..4faf9d5371 100644 --- a/tests/test_table.py +++ b/tests/test_table.py @@ -209,6 +209,32 @@ def test_table_show_header_false_substitution(box, result): assert output == result +def test_section(): + table = Table("foo") + table.add_s...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 314c1b1c8d..c21439d946 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Allow a `max_depth` argument to be passed to the `install()` hook https://github.com/Textualize/rich/is...
[ { "components": [ { "doc": "Add a new section (draw a line after current row).", "lines": [ 465, 469 ], "name": "Table.add_section", "signature": "def add_section(self) -> None:", "type": "function" } ], "file": "rich/table....
[ "tests/test_table.py::test_section" ]
[ "tests/test_table.py::test_render_table", "tests/test_table.py::test_not_renderable", "tests/test_table.py::test_init_append_column", "tests/test_table.py::test_rich_measure", "tests/test_table.py::test_min_width", "tests/test_table.py::test_no_columns", "tests/test_table.py::test_get_row_style", "tes...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> sections docs and test Added `Table.add_section` to add a new section. Fixes https://github.com/Textualize/rich/issues/2478 Fixes https://github.com/Textualize/rich/issues/2477 Fixes https://gith...
b0661de34bab35af9b4b1d3ba8e28b186b225e84
tobymao__sqlglot-469
469
tobymao/sqlglot
null
5304095e01215f2781bcc2f318662173b256ea68
2022-09-21T21:56:13Z
diff --git a/sqlglot/dialects/__init__.py b/sqlglot/dialects/__init__.py index f7d03adfe2..0f80723d9a 100644 --- a/sqlglot/dialects/__init__.py +++ b/sqlglot/dialects/__init__.py @@ -14,3 +14,4 @@ from sqlglot.dialects.starrocks import StarRocks from sqlglot.dialects.tableau import Tableau from sqlglot.dialects.trin...
diff --git a/tests/dialects/test_tsql.py b/tests/dialects/test_tsql.py new file mode 100644 index 0000000000..0619eaad60 --- /dev/null +++ b/tests/dialects/test_tsql.py @@ -0,0 +1,26 @@ +from tests.dialects.test_dialect import Validator + + +class TestTSQL(Validator): + dialect = "tsql" + + def test_tsql(self): +...
[]
[ "tests/dialects/test_tsql.py::TestTSQL::test_tsql", "tests/dialects/test_tsql.py::TestTSQL::test_types" ]
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add Transact-SQL dialect (WIP) This is an attempt to add support for the transact sql dialect. Feedback is welcome. Plan to add more features soon. ---------- </request> There are several new functi...
ceb42fabad60312699e4b15936aeebac00e22e4d
conan-io__conan-12165
12,165
conan-io/conan
null
68586e95fece4dcc20619c1e5af5d86cd2831ede
2022-09-21T14:29:12Z
diff --git a/conan/tools/scm/git.py b/conan/tools/scm/git.py index bdff769810b..4a5c8194e47 100644 --- a/conan/tools/scm/git.py +++ b/conan/tools/scm/git.py @@ -11,24 +11,24 @@ def __init__(self, conanfile, folder="."): self._conanfile = conanfile self.folder = folder - def _run(self, cmd): + ...
diff --git a/conans/test/functional/tools/scm/test_git.py b/conans/test/functional/tools/scm/test_git.py index 535c4644951..cd1e47c06aa 100644 --- a/conans/test/functional/tools/scm/test_git.py +++ b/conans/test/functional/tools/scm/test_git.py @@ -565,3 +565,23 @@ def test_conanfile_subfolder(self): c.run("cr...
[ { "components": [ { "doc": "", "lines": [ 14, 16 ], "name": "Git.run", "signature": "def run(self, cmd):", "type": "function" } ], "file": "conan/tools/scm/git.py" } ]
[ "conans/test/functional/tools/scm/test_git.py::TestConanFileSubfolder::test_git_run" ]
[ "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> Make conan.tools.scmGit.run() public Changelog: Feature: Make `conan.tools.scmGit.run()` public. Docs: https://github.com/conan-io/docs/pull/2762 Closes: https://github.com/conan-io/conan/pull/121...
4a5b19a75db9225316c8cb022a2dfb9705a2af34
sympy__sympy-24070
24,070
sympy/sympy
1.12
007d962672034698a5d152de9086e63c3becfa74
2022-09-19T22:37:41Z
diff --git a/.mailmap b/.mailmap index 6f0e24a24cb0..6b04fe9fdadb 100644 --- a/.mailmap +++ b/.mailmap @@ -1017,6 +1017,7 @@ Peter Enenkel <peter.enenkel+git@gmail.com> <peter.enenkel+github@gmail.com> Peter Schmidt <peter@peterjs.com> Peter Stangl <peter.stangl@ph.tum.de> Petr Kungurtsev <corwinat@gmail.com> Corwin...
diff --git a/sympy/physics/tests/test_clebsch_gordan.py b/sympy/physics/tests/test_clebsch_gordan.py index 2e77bf2f7afd..d6a41f1b6b4f 100644 --- a/sympy/physics/tests/test_clebsch_gordan.py +++ b/sympy/physics/tests/test_clebsch_gordan.py @@ -1,4 +1,4 @@ -from sympy.core.numbers import (I, pi) +from sympy.core.numbers ...
diff --git a/.mailmap b/.mailmap index 6f0e24a24cb0..6b04fe9fdadb 100644 --- a/.mailmap +++ b/.mailmap @@ -1017,6 +1017,7 @@ Peter Enenkel <peter.enenkel+git@gmail.com> <peter.enenkel+github@gmail.com> Peter Schmidt <peter@peterjs.com> Peter Stangl <peter.stangl@ph.tum.de> Petr Kungurtsev <corwinat@gmail.com> Corwin...
[ { "components": [ { "doc": "Calculate the real Gaunt coefficient.\n\nExplanation\n===========\n\nThe real Gaunt coefficient is defined as the integral over three\nreal spherical harmonics:\n\n.. math::\n \\begin{aligned}\n \\operatorname{RealGaunt}(l_1,l_2,l_3,m_1,m_2,m_3)\n &=\\int Z^{m_...
[ "test_clebsch_gordan_docs", "test_clebsch_gordan", "test_wigner", "test_gaunt", "test_realgaunt", "test_racah", "test_dot_rota_grad_SH" ]
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add algorithm to compute real Gaunt coefficient <!-- Your title above should be a short description of what was changed. Do not include the issue number in the title. --> I have coded a symbolic a...
22520ed5f4a9b2b6c4b6b314b4748878f1b4b662
astropy__astropy-13676
13,676
astropy/astropy
5.0
a30301e5535be2f558cb948da6b3475df4e36a98
2022-09-15T19:20:47Z
diff --git a/astropy/units/quantity.py b/astropy/units/quantity.py index 7043156e91d7..0512e969291a 100644 --- a/astropy/units/quantity.py +++ b/astropy/units/quantity.py @@ -29,7 +29,7 @@ from .quantity_helper import can_have_arbitrary_unit, check_output, converters_and_unit from .quantity_helper.function_helpers im...
diff --git a/astropy/units/tests/test_structured.py b/astropy/units/tests/test_structured.py index fe4134ac05b2..78ab03a7c022 100644 --- a/astropy/units/tests/test_structured.py +++ b/astropy/units/tests/test_structured.py @@ -12,6 +12,7 @@ from astropy import units as u from astropy.tests.helper import check_picklin...
diff --git a/docs/changes/units/13676.api.rst b/docs/changes/units/13676.api.rst new file mode 100644 index 000000000000..966372f06cef --- /dev/null +++ b/docs/changes/units/13676.api.rst @@ -0,0 +1,2 @@ +When ``Quantity`` is constructed from a structured array and ``unit`` is +``None``, the default unit is now structu...
[ { "components": [ { "doc": "Make a `StructuredUnit` of one unit, with the structure of a `numpy.dtype`.\n\nParameters\n----------\nunit : UnitBase\n The unit that will be filled into the structure.\ndtype : `numpy.dtype`\n The structure for the StructuredUnit.\n\nReturns\n-------\nStructured...
[ "astropy/units/tests/test_structured.py::TestStructuredUnitBasics::test_initialization_and_keying", "astropy/units/tests/test_structured.py::TestStructuredUnitBasics::test_recursive_initialization", "astropy/units/tests/test_structured.py::TestStructuredUnitBasics::test_extreme_recursive_initialization", "ast...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> structured unit / quantity stuff Signed-off-by: Nathaniel Starkman (@nstarman) <nstarkman@protonmail.com> Necessary for https://github.com/astropy/astropy/pull/13669 - Quantity now builds a stru...
7cbba866a8c5749b90a5cb4f9877ddfad2d36037
tobymao__sqlglot-432
432
tobymao/sqlglot
null
44397aba53440cc9b955bad51a4aafb9f20b023d
2022-09-14T13:12:27Z
diff --git a/sqlglot/dialects/mysql.py b/sqlglot/dialects/mysql.py index 93800a6202..a2d39a020f 100644 --- a/sqlglot/dialects/mysql.py +++ b/sqlglot/dialects/mysql.py @@ -49,6 +49,21 @@ def _str_to_date_sql(self, expression): return f"STR_TO_DATE({self.sql(expression.this)}, {date_format})" +def _trim_sql(self...
diff --git a/tests/dialects/test_mysql.py b/tests/dialects/test_mysql.py index ee0c5f588e..e32e151d01 100644 --- a/tests/dialects/test_mysql.py +++ b/tests/dialects/test_mysql.py @@ -15,6 +15,10 @@ def test_ddl(self): def test_identity(self): self.validate_identity("SELECT CAST(`a`.`b` AS INT) FROM foo"...
[]
[ "tests/dialects/test_mysql.py::TestMySQL::test_identity", "tests/dialects/test_postgres.py::TestPostgres::test_postgres", "tests/test_expressions.py::TestExpressions::test_functions" ]
[ "tests/dialects/test_mysql.py::TestMySQL::test_binary_literal", "tests/dialects/test_mysql.py::TestMySQL::test_convert", "tests/dialects/test_mysql.py::TestMySQL::test_ddl", "tests/dialects/test_mysql.py::TestMySQL::test_hash_comments", "tests/dialects/test_mysql.py::TestMySQL::test_introducers", "tests/d...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add trim function Implemented the trim function based (mostly) on [this](https://www.w3resource.com/sql/character-functions/trim.php). - As I understand, Hive supports the syntax `[L|R]TRIM(target)...
Here is the discussion in the issues of the pull request. <issues> [Postgres 14.4] Parser does not recognize 'both' keyword in trim() function Example (valid sql): ``` select trim(both from ' xxx '); ``` Result: ``` ParseError: Expecting ). Line 1, Col: 18. select trim(both from ' xxx '); Expected table nam...
ceb42fabad60312699e4b15936aeebac00e22e4d
conan-io__conan-12094
12,094
conan-io/conan
null
91c5aaf1115fd3a9c9932c8d804a14d894076c49
2022-09-12T15:01:24Z
diff --git a/conans/model/options.py b/conans/model/options.py index 642c4afe2d1..8c270238059 100644 --- a/conans/model/options.py +++ b/conans/model/options.py @@ -231,6 +231,12 @@ def get_safe(self, attr): return None return getattr(self._package_values, attr) + def rm_safe(self, attr): + ...
diff --git a/conans/test/integration/settings/remove_subsetting_test.py b/conans/test/integration/settings/remove_subsetting_test.py index 5c8e6d8a275..209838e1b99 100644 --- a/conans/test/integration/settings/remove_subsetting_test.py +++ b/conans/test/integration/settings/remove_subsetting_test.py @@ -1,4 +1,5 @@ im...
[ { "components": [ { "doc": "", "lines": [ 234, 238 ], "name": "OptionsValues.rm_safe", "signature": "def rm_safe(self, attr):", "type": "function" }, { "doc": "", "lines": [ 434, 438 ...
[ "conans/test/integration/settings/remove_subsetting_test.py::test_settings_and_options_rm_safe" ]
[ "conans/test/integration/settings/remove_subsetting_test.py::RemoveSubsettingTest::test_remove_options", "conans/test/integration/settings/remove_subsetting_test.py::RemoveSubsettingTest::test_remove_runtime", "conans/test/integration/settings/remove_subsetting_test.py::RemoveSubsettingTest::test_remove_setting...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> [feature] `rm_safe` for settings and options Changelog: Feature: Added method `rm_safe` to `settings` and `options`. Docs: https://github.com/conan-io/docs/pull/2764 This feature is trying to avoi...
4a5b19a75db9225316c8cb022a2dfb9705a2af34
boto__botocore-2759
2,759
boto/botocore
null
342f36c0e5d68f450e4baf64b22cfbbf5a824ba0
2022-09-10T02:59:59Z
diff --git a/botocore/args.py b/botocore/args.py index 0da5bb757c..1fa5fe7be5 100644 --- a/botocore/args.py +++ b/botocore/args.py @@ -26,6 +26,7 @@ import botocore.utils from botocore.config import Config from botocore.endpoint import EndpointCreator +from botocore.regions import EndpointResolverBuiltins as EPRBuil...
diff --git a/tests/unit/test_args.py b/tests/unit/test_args.py index b2a2320f8d..d3bfd5d013 100644 --- a/tests/unit/test_args.py +++ b/tests/unit/test_args.py @@ -13,7 +13,6 @@ # language governing permissions and limitations under the License. import socket -import botocore.config from botocore import args, excep...
[ { "components": [ { "doc": "", "lines": [ 471, 532 ], "name": "ClientArgsCreator.compute_endpoint_resolver_builtin_defaults", "signature": "def compute_endpoint_resolver_builtin_defaults( self, region_name, service_name, s3_config, endpoint_bridg...
[ "tests/unit/test_args.py::TestEndpointResolverBuiltins::test_aws_region", "tests/unit/test_args.py::TestEndpointResolverBuiltins::test_aws_sts_global_endpoint_with_default_and_legacy_region", "tests/unit/test_args.py::TestEndpointResolverBuiltins::test_aws_sts_global_endpoint_with_default_and_nonlegacy_region",...
[ "tests/unit/test_args.py::TestCreateClientArgs::test_can_merge_max_attempts", "tests/unit/test_args.py::TestCreateClientArgs::test_client_config_beats_config_store", "tests/unit/test_args.py::TestCreateClientArgs::test_client_config_has_both_use_fips_and_use_dualstack__endpoint_flags", "tests/unit/test_args.p...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Endpoint resolution v2: builtin parameter values This PR is part of the ongoing endpoint resolution v2 work, together with #2737, #2740, #2751, #2747. It contains the code that assigns values to a lis...
5e4b564dd0f9aab16a404251ebd3e675c9681492