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
matplotlib__matplotlib-26160
26,160
matplotlib/matplotlib
3.7
9fdf6adf70819c8d34e9f47eeb8470aea35d78c0
2023-06-21T08:22:38Z
diff --git a/doc/api/lines_api.rst b/doc/api/lines_api.rst index 4cde67c7e656..bf7ec73493a3 100644 --- a/doc/api/lines_api.rst +++ b/doc/api/lines_api.rst @@ -17,6 +17,7 @@ Classes Line2D VertexSelector + AxLine Functions --------- diff --git a/doc/users/next_whats_new/axline_setters.rst b/doc/users/nex...
diff --git a/lib/matplotlib/tests/test_lines.py b/lib/matplotlib/tests/test_lines.py index cdf301a1f46b..4f23e6969b0b 100644 --- a/lib/matplotlib/tests/test_lines.py +++ b/lib/matplotlib/tests/test_lines.py @@ -409,3 +409,30 @@ def test_markevery_prop_cycle(fig_test, fig_ref): ax = fig_test.add_subplot() for ...
diff --git a/doc/api/lines_api.rst b/doc/api/lines_api.rst index 4cde67c7e656..bf7ec73493a3 100644 --- a/doc/api/lines_api.rst +++ b/doc/api/lines_api.rst @@ -17,6 +17,7 @@ Classes Line2D VertexSelector + AxLine Functions --------- diff --git a/doc/users/next_whats_new/axline_setters.rst b/doc/users/nex...
[ { "components": [ { "doc": "A helper class that implements `~.Axes.axline`, by recomputing the artist\ntransform at draw time.", "lines": [ 1467, 1597 ], "name": "AxLine", "signature": "class AxLine(Line2D):", "type": "class" }, ...
[ "lib/matplotlib/tests/test_lines.py::test_axline_setters" ]
[ "lib/matplotlib/tests/test_lines.py::test_segment_hits", "lib/matplotlib/tests/test_lines.py::test_invisible_Line_rendering", "lib/matplotlib/tests/test_lines.py::test_set_line_coll_dash", "lib/matplotlib/tests/test_lines.py::test_invalid_line_data", "lib/matplotlib/tests/test_lines.py::test_line_dashes[png...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> add setters and getters for _AxLine's xy1, xy2 and slope parameters ## PR summary Closes #26081. Add setter and getter methods for `_AxLine` to modify the control points and slope of the artist. Set...
Here is the discussion in the issues of the pull request. <issues> [ENH]: Add setters for _AxLine._xy1, ._xy2, ._slope ### Problem Currently the control points / slope of the artist returned by axline() cannot be (publically) modified after being instantiated. It would be nice if the relevant properties (xy1, xy2, sl...
a4dca24d04f928a9e614db403c716237446140b2
conan-io__conan-14133
14,133
conan-io/conan
null
b43eb83956f053a47cc3897cfdd57b9da13a16e6
2023-06-20T12:36:52Z
diff --git a/conan/tools/gnu/__init__.py b/conan/tools/gnu/__init__.py index a7c75b32404..9c413ed2145 100644 --- a/conan/tools/gnu/__init__.py +++ b/conan/tools/gnu/__init__.py @@ -3,3 +3,4 @@ from conan.tools.gnu.autotoolsdeps import AutotoolsDeps from conan.tools.gnu.pkgconfig import PkgConfig from conan.tools.gnu...
diff --git a/conans/test/functional/toolchains/gnu/test_makedeps.py b/conans/test/functional/toolchains/gnu/test_makedeps.py new file mode 100644 index 00000000000..b574fef70ab --- /dev/null +++ b/conans/test/functional/toolchains/gnu/test_makedeps.py @@ -0,0 +1,139 @@ +import textwrap + +import platform +import pytest...
[ { "components": [ { "doc": "Format the directories to be used in the makefile, adding the prefix path if needed\n:param folders: list of directories\n:param prefix_path_: prefix path\n:param name: component name\n:return: list of formatted directories", "lines": [ 41, 5...
[ "conans/test/functional/toolchains/gnu/test_makedeps.py::test_make_deps_definitions_escape", "conans/test/functional/toolchains/gnu/test_makedeps.py::test_makedeps_with_tool_requires", "conans/test/functional/toolchains/gnu/test_makedeps.py::test_makedeps_with_makefile_build", "conans/test/integration/toolcha...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add MakeDeps generator Changelog: Feature: Add support to Makefile by the new MakeDeps generator Docs: https://github.com/conan-io/docs/pull/3348 closes #13394 This PR adds a new feature, the `Ma...
Here is the discussion in the issues of the pull request. <issues> [question] What's the intended way to work with makefiles without autotools in 2.0 ### What is your question? I'm new to Conan with 2.0 and my team is currently using custom makefiles without autotools to build our projects. Googling around I end up on...
4a5b19a75db9225316c8cb022a2dfb9705a2af34
conan-io__conan-14101
14,101
conan-io/conan
null
59b9b9044f27ba807c893b1f812b45ff0739d5cf
2023-06-15T22:32:07Z
diff --git a/conan/tools/__init__.py b/conan/tools/__init__.py index e69de29bb2d..a8a45d35375 100644 --- a/conan/tools/__init__.py +++ b/conan/tools/__init__.py @@ -0,0 +1,8 @@ +from conans.model.build_info import CppInfo as _CppInfo + + +def CppInfo(conanfile): + # Creation of a CppInfo object, to decouple the crea...
diff --git a/conans/test/integration/conanfile/test_cpp_info_serialize.py b/conans/test/integration/conanfile/test_cpp_info_serialize.py new file mode 100644 index 00000000000..9daadf7d283 --- /dev/null +++ b/conans/test/integration/conanfile/test_cpp_info_serialize.py @@ -0,0 +1,40 @@ +import json +import textwrap + +...
[ { "components": [ { "doc": "", "lines": [ 4, 8 ], "name": "CppInfo", "signature": "def CppInfo(conanfile):", "type": "function" } ], "file": "conan/tools/__init__.py" }, { "components": [ { "doc": "", ...
[ "conans/test/integration/conanfile/test_cpp_info_serialize.py::test_cpp_info_serialize_round_trip" ]
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> make CppInfo an importable tool Changelog: Feature: Make ``CppInfo`` a public, documented, importable tool for generators that need to aggregate them. Docs: https://github.com/conan-io/docs/pull/3268...
4a5b19a75db9225316c8cb022a2dfb9705a2af34
tobymao__sqlglot-1758
1,758
tobymao/sqlglot
null
146e66acb91878ec6751b96935bd94ef643bd77a
2023-06-12T19:07:08Z
diff --git a/sqlglot/expressions.py b/sqlglot/expressions.py index 7a21563fde..e578a676a1 100644 --- a/sqlglot/expressions.py +++ b/sqlglot/expressions.py @@ -3077,12 +3077,36 @@ def lock(self, update: bool = True, copy: bool = True) -> Select: Returns: The modified expression. """ - ...
diff --git a/tests/test_build.py b/tests/test_build.py index 1e286899fa..f3546405ac 100644 --- a/tests/test_build.py +++ b/tests/test_build.py @@ -127,6 +127,16 @@ def test_build(self): "SELECT x FROM tbl WHERE x > 0 FOR SHARE", "postgres", ), + ( + ...
[]
[ "tests/test_build.py::TestBuild::test_build" ]
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Feat: add hint builder {} ---------- </request> There are several new functions or classes that need to be implemented, using the definitions below: <<NEW DEFINITIONS>> There are several new functi...
ceb42fabad60312699e4b15936aeebac00e22e4d
conan-io__conan-14054
14,054
conan-io/conan
null
48656d8556dd71736f0f07f5c73170d6dd17b742
2023-06-08T22:24:55Z
diff --git a/conan/api/subapi/list.py b/conan/api/subapi/list.py index 70e63436656..aa9d2fb453e 100644 --- a/conan/api/subapi/list.py +++ b/conan/api/subapi/list.py @@ -6,6 +6,7 @@ from conans.model.package_ref import PkgReference from conans.model.recipe_ref import RecipeReference from conans.search.search import g...
diff --git a/conans/test/integration/command_v2/test_list_lru.py b/conans/test/integration/command_v2/test_list_lru.py new file mode 100644 index 00000000000..052e597658b --- /dev/null +++ b/conans/test/integration/command_v2/test_list_lru.py @@ -0,0 +1,52 @@ +import time + +import pytest + +from conans.test.assets.gen...
[ { "components": [ { "doc": "", "lines": [ 236, 237 ], "name": "DataCache.get_recipe_lru", "signature": "def get_recipe_lru(self, ref):", "type": "function" }, { "doc": "", "lines": [ 239, 24...
[ "conans/test/integration/command_v2/test_list_lru.py::TestLRU::test_error_lru_remote", "conans/test/integration/command_v2/test_list_lru.py::TestLRU::test_cache_clean_lru[list]", "conans/test/integration/command_v2/test_list_lru.py::TestLRU::test_cache_clean_lru[remove]", "conans/test/integration/test_migrati...
[ "conans/test/integration/test_migrations.py::test_back_migrations" ]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Cache LRU removal Changelog: Feature: Implement cache LRU control for cleaning of unused artifacts. Docs: https://github.com/conan-io/docs/pull/3455 AFTER https://github.com/conan-io/conan/pull/14...
4a5b19a75db9225316c8cb022a2dfb9705a2af34
matplotlib__matplotlib-26089
26,089
matplotlib/matplotlib
3.7
f588d2b06e5b3c3296046d2ee9f0c13831cafe1c
2023-06-08T02:56:42Z
diff --git a/doc/users/next_whats_new/set_loc.rst b/doc/users/next_whats_new/set_loc.rst new file mode 100644 index 000000000000..2a8722a18da0 --- /dev/null +++ b/doc/users/next_whats_new/set_loc.rst @@ -0,0 +1,23 @@ +Add a public method to modify the location of ``Legend`` +--------------------------------------------...
diff --git a/lib/matplotlib/tests/test_legend.py b/lib/matplotlib/tests/test_legend.py index c94a0f5f6169..720dfc3e6c65 100644 --- a/lib/matplotlib/tests/test_legend.py +++ b/lib/matplotlib/tests/test_legend.py @@ -755,6 +755,26 @@ def test_legend_alignment(alignment): assert leg.get_alignment() == alignment +...
diff --git a/doc/users/next_whats_new/set_loc.rst b/doc/users/next_whats_new/set_loc.rst new file mode 100644 index 000000000000..2a8722a18da0 --- /dev/null +++ b/doc/users/next_whats_new/set_loc.rst @@ -0,0 +1,23 @@ +Add a public method to modify the location of ``Legend`` +--------------------------------------------...
[ { "components": [ { "doc": "Set the location of the legend.\n\n.. versionadded:: 3.8\n\nParameters\n----------\n%(_legend_kw_set_loc_doc)s", "lines": [ 661, 725 ], "name": "Legend.set_loc", "signature": "def set_loc(self, loc=None):", "ty...
[ "lib/matplotlib/tests/test_legend.py::test_ax_legend_set_loc[center]", "lib/matplotlib/tests/test_legend.py::test_ax_legend_set_loc[best]", "lib/matplotlib/tests/test_legend.py::test_fig_legend_set_loc[outside", "lib/matplotlib/tests/test_legend.py::test_fig_legend_set_loc[right]" ]
[ "lib/matplotlib/tests/test_legend.py::test_legend_ordereddict", "lib/matplotlib/tests/test_legend.py::test_legend_auto1[png]", "lib/matplotlib/tests/test_legend.py::test_legend_auto2[png]", "lib/matplotlib/tests/test_legend.py::test_legend_auto3[png]", "lib/matplotlib/tests/test_legend.py::test_legend_auto4...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add public method to update `Legend` object's loc property . ## PR summary Add public method to update `Legend` object's loc property . Example: ```Python from matplotlib import pyplot as plt f...
Here is the discussion in the issues of the pull request. <issues> [ENH]: Add public method to update `Legend` object's loc property . ### Problem * I'm working on the issue https://github.com/sympy/sympy/pull/24429. The `Legend` object's `loc` property can only be set at initialization time. There is no public meth...
a4dca24d04f928a9e614db403c716237446140b2
tobymao__sqlglot-1744
1,744
tobymao/sqlglot
null
6168fbf450d47b06b730680c5f8383bd7460008e
2023-06-08T00:16:37Z
diff --git a/sqlglot/dialects/redshift.py b/sqlglot/dialects/redshift.py index fda191bfe1..afed1d1ea4 100644 --- a/sqlglot/dialects/redshift.py +++ b/sqlglot/dialects/redshift.py @@ -3,6 +3,7 @@ import typing as t from sqlglot import exp, transforms +from sqlglot.dialects.dialect import rename_func from sqlglot.di...
diff --git a/tests/dialects/test_redshift.py b/tests/dialects/test_redshift.py index b3dc912a86..db5d72a9e1 100644 --- a/tests/dialects/test_redshift.py +++ b/tests/dialects/test_redshift.py @@ -10,6 +10,16 @@ def test_redshift(self): self.validate_identity("foo$") self.validate_identity("$foo") + ...
[]
[ "tests/dialects/test_redshift.py::TestRedshift::test_redshift" ]
[ "tests/dialects/test_redshift.py::TestRedshift::test_create_table_like", "tests/dialects/test_redshift.py::TestRedshift::test_identity", "tests/dialects/test_redshift.py::TestRedshift::test_no_schema_binding", "tests/dialects/test_redshift.py::TestRedshift::test_rename_table", "tests/dialects/test_redshift....
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Feat(redshift,presto): transpile FROM_BASE to STRTOL and vice versa Fixes #1742 References: - https://docs.aws.amazon.com/redshift/latest/dg/r_STRTOL.html - https://prestodb.io/docs/current/funct...
Here is the discussion in the issues of the pull request. <issues> Cannot convert Redshift STRTOL to Trino ``` sql = """SELECT STRTOL('abc', 16)""" converted_sql = sqlglot.transpile(sql, read="redshift", write="trino")[0] print(converted_sql) SELECT STRTOL('abc', 16) ``` Trino error: `Function 'strtol' not regi...
ceb42fabad60312699e4b15936aeebac00e22e4d
astropy__astropy-14931
14,931
astropy/astropy
5.2
0a71105fbaa71439206d496a44df11abc0e3ac96
2023-06-07T19:28:03Z
diff --git a/astropy/cosmology/flrw/base.py b/astropy/cosmology/flrw/base.py index bd8648593bc4..e97d417e35c9 100644 --- a/astropy/cosmology/flrw/base.py +++ b/astropy/cosmology/flrw/base.py @@ -66,7 +66,39 @@ def quad(*args, **kwargs): ############################################################################## ...
diff --git a/astropy/cosmology/flrw/tests/test_base.py b/astropy/cosmology/flrw/tests/test_base.py index 83df2e8ff201..6ceb9a7a8209 100644 --- a/astropy/cosmology/flrw/tests/test_base.py +++ b/astropy/cosmology/flrw/tests/test_base.py @@ -711,6 +711,18 @@ def test_Otot(self, cosmo, z): cosmo.Om(z) + cosmo....
diff --git a/docs/changes/cosmology/14931.api.rst b/docs/changes/cosmology/14931.api.rst new file mode 100644 index 000000000000..1c1a80dd10d5 --- /dev/null +++ b/docs/changes/cosmology/14931.api.rst @@ -0,0 +1,2 @@ +A new property -- ``scale_factor0`` -- has been added to Cosmology objects. +This is the scale factor a...
[ { "components": [ { "doc": "", "lines": [ 69, 98 ], "name": "_ScaleFactorMixin", "signature": "class _ScaleFactorMixin: @property", "type": "class" }, { "doc": "Scale factor at redshift 0.\n\nThe scale factor is define...
[ "astropy/cosmology/flrw/tests/test_base.py::TestFLRW::test_scale_factor0" ]
[ "astropy/cosmology/flrw/tests/test_base.py::test_optional_deps_functions", "astropy/cosmology/flrw/tests/test_base.py::TestFLRW::test_to_table_bad_index", "astropy/cosmology/flrw/tests/test_base.py::TestFLRW::test_to_table_failed_cls", "astropy/cosmology/flrw/tests/test_base.py::TestFLRW::test_to_table_cls[QT...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add property scale_factor0 to FLRW cosmologies This PR is part of a sequence to implement the [Cosmology API](https://cosmology.readthedocs.io/projects/api/en/latest/). Ping @ntessore. ---------- <...
32bd0ffb6898c6a57b9ec1a55c13c7a0efe8d273
scikit-learn__scikit-learn-26506
26,506
scikit-learn/scikit-learn
1.4
cb233674ddffeb1f75f63309f94e4f90d0a2bdf8
2023-06-03T20:03:10Z
diff --git a/doc/whats_new/v1.4.rst b/doc/whats_new/v1.4.rst index 7c5b5fdef6a0e..94046c25c6e38 100644 --- a/doc/whats_new/v1.4.rst +++ b/doc/whats_new/v1.4.rst @@ -40,3 +40,11 @@ Thanks to everyone who has contributed to the maintenance and improvement of the project since version 1.3, including: TODO: update at t...
diff --git a/sklearn/tests/test_metadata_routing.py b/sklearn/tests/test_metadata_routing.py index a6e74c12f6e45..d7fab7c9289e1 100644 --- a/sklearn/tests/test_metadata_routing.py +++ b/sklearn/tests/test_metadata_routing.py @@ -24,9 +24,10 @@ from sklearn.utils.metadata_routing import MetadataRouter from sklearn.uti...
diff --git a/doc/whats_new/v1.4.rst b/doc/whats_new/v1.4.rst index 7c5b5fdef6a0e..94046c25c6e38 100644 --- a/doc/whats_new/v1.4.rst +++ b/doc/whats_new/v1.4.rst @@ -40,3 +40,11 @@ Thanks to everyone who has contributed to the maintenance and improvement of the project since version 1.3, including: TODO: update at t...
[ { "components": [ { "doc": "", "lines": [ 407, 435 ], "name": "MetadataRequest.__getattr__", "signature": "def __getattr__(self, name):", "type": "function" } ], "file": "sklearn/utils/_metadata_requests.py" } ]
[ "sklearn/tests/test_metadata_routing.py::test_assert_request_is_empty", "sklearn/tests/test_metadata_routing.py::test_request_type_is_alias[False-False]", "sklearn/tests/test_metadata_routing.py::test_request_type_is_alias[True-False]", "sklearn/tests/test_metadata_routing.py::test_request_type_is_alias[None-...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> ENH make fit_transform and fit_predict composite methods (SLEP6) Moving #24585 here to be merged to `main`. This is specifically required for the work on `Pipeline`. ---------- </request> There a...
ae2c80a21007d8295fb3ec3a927fce17b3d60ab8
huggingface__datasets-5924
5,924
huggingface/datasets
null
02ee418831aba68d0be93227bce8b3f42ef8980f
2023-06-02T22:25:25Z
diff --git a/setup.py b/setup.py index 436045d9c50..99dfcc14016 100644 --- a/setup.py +++ b/setup.py @@ -160,6 +160,7 @@ TESTS_REQUIRE = [ # test dependencies "absl-py", + "joblibspark", "pytest", "pytest-datadir", "pytest-xdist", diff --git a/src/datasets/parallel/__init__.py b/src/dataset...
diff --git a/tests/test_experimental.py b/tests/test_experimental.py new file mode 100644 index 00000000000..7b86ec5d9fd --- /dev/null +++ b/tests/test_experimental.py @@ -0,0 +1,17 @@ +import unittest +import warnings + +from datasets.utils import experimental + + +@experimental +def dummy_function(): + return "suc...
[ { "components": [ { "doc": "", "lines": [ 12, 13 ], "name": "ParallelBackendConfig", "signature": "class ParallelBackendConfig:", "type": "class" }, { "doc": "**Experimental.** Apply a function to iterable elements in ...
[ "tests/test_experimental.py::TestExperimentalFlag::test_experimental_warning", "tests/test_py_utils.py::PyUtilsTest::test_map_nested", "tests/test_py_utils.py::PyUtilsTest::test_temporary_assignment", "tests/test_py_utils.py::PyUtilsTest::test_zip_dict", "tests/test_py_utils.py::test_map_nested_num_proc[1-N...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add parallel module using joblib for Spark Discussion in https://github.com/huggingface/datasets/issues/5798 ---------- </request> There are several new functions or classes that need to be implemen...
5142a8cf61d8a4495eda3d91dc4283a6df01ea14
conan-io__conan-13999
13,999
conan-io/conan
null
9a00e9f182b4bfbc183463f4b1954a21985fd9d2
2023-05-30T13:57:16Z
diff --git a/conan/cli/commands/version.py b/conan/cli/commands/version.py new file mode 100644 index 00000000000..507f0f7d16e --- /dev/null +++ b/conan/cli/commands/version.py @@ -0,0 +1,21 @@ +from conan.cli.commands.list import print_serial +from conan.cli.command import conan_command +from conan.cli.formatters impo...
diff --git a/conans/test/integration/command_v2/test_version.py b/conans/test/integration/command_v2/test_version.py new file mode 100644 index 00000000000..6ddc7aff12d --- /dev/null +++ b/conans/test/integration/command_v2/test_version.py @@ -0,0 +1,52 @@ +from conans.test.utils.tools import TestClient +from conan imp...
[ { "components": [ { "doc": "Give information about the Conan client version.", "lines": [ 10, 18 ], "name": "version", "signature": "def version(conan_api, parser, *args):", "type": "function" } ], "file": "conan/cli/command...
[ "conans/test/integration/command_v2/test_version.py::test_version_json", "conans/test/integration/command_v2/test_version.py::test_version_text", "conans/test/integration/command_v2/test_version.py::test_version_raw" ]
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add conan version as separated command Changelog: Feature: Add new command `conan version` to format the output. Docs: https://github.com/conan-io/docs/pull/3243 The `--version` option stays as us...
4a5b19a75db9225316c8cb022a2dfb9705a2af34
astropy__astropy-14878
14,878
astropy/astropy
5.2
88790514bdf248e43c2fb15ee18cfd3390846145
2023-05-29T22:12:40Z
diff --git a/astropy/table/row.py b/astropy/table/row.py index 03b7d13219b9..cab570e837c6 100644 --- a/astropy/table/row.py +++ b/astropy/table/row.py @@ -106,6 +106,35 @@ def __iter__(self): for col in self._table.columns.values(): yield col[index] + def get(self, key, default=None, /): + ...
diff --git a/astropy/table/tests/test_row.py b/astropy/table/tests/test_row.py index 8ad9f46ba80b..6af2f945a8e7 100644 --- a/astropy/table/tests/test_row.py +++ b/astropy/table/tests/test_row.py @@ -372,3 +372,11 @@ def test_uint_indexing(): assert repr(t[1]).splitlines() == trepr assert repr(t[np.int_(1)]).s...
diff --git a/docs/changes/table/14878.feature.rst b/docs/changes/table/14878.feature.rst new file mode 100644 index 000000000000..768574409629 --- /dev/null +++ b/docs/changes/table/14878.feature.rst @@ -0,0 +1,3 @@ +The new ``Row.get()`` method, analogous to ``dict.get()``, returns the value of +the specified column f...
[ { "components": [ { "doc": "Return the value for key if key is in the columns, else default.\n\nParameters\n----------\nkey : `str`, positional-only\n The name of the column to look for.\ndefault : `object`, optional, positional-only\n The value to return if the ``key`` is not among the colu...
[ "astropy/table/tests/test_row.py::test_row_get" ]
[ "astropy/table/tests/test_row.py::test_masked_row_with_object_col", "astropy/table/tests/test_row.py::TestRow::test_subclass[unmasked]", "astropy/table/tests/test_row.py::TestRow::test_subclass[masked]", "astropy/table/tests/test_row.py::TestRow::test_subclass[subclass]", "astropy/table/tests/test_row.py::T...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Implement `astropy.table.Row.get()` ### Description Currently code that tries to access a column in a `Row` when the presence of the column is not guaranteed either has to check for the presence of...
32bd0ffb6898c6a57b9ec1a55c13c7a0efe8d273
graphql-python__graphene-1506
1,506
graphql-python/graphene
null
8ede21e06381c096589c424960a6cfaca304badb
2023-05-29T18:07:14Z
diff --git a/graphene/types/inputobjecttype.py b/graphene/types/inputobjecttype.py index 5d2785105..fdf38ba05 100644 --- a/graphene/types/inputobjecttype.py +++ b/graphene/types/inputobjecttype.py @@ -14,6 +14,31 @@ class InputObjectTypeOptions(BaseOptions): container = None # type: InputObjectTypeContainer +...
diff --git a/graphene/types/tests/conftest.py b/graphene/types/tests/conftest.py new file mode 100644 index 000000000..43f7d7268 --- /dev/null +++ b/graphene/types/tests/conftest.py @@ -0,0 +1,12 @@ +import pytest +from graphql import Undefined + +from graphene.types.inputobjecttype import set_input_object_type_default...
[ { "components": [ { "doc": "Change the sentinel value returned by non-specified fields in an InputObjectType\nUseful to differentiate between a field not being set and a field being set to None by using a sentinel value\n(e.g. Undefined is a good sentinel value for this purpose)\n\nThis function s...
[ "graphene/types/tests/test_inputobjecttype.py::test_generate_inputobjecttype", "graphene/types/tests/test_inputobjecttype.py::test_generate_inputobjecttype_with_meta", "graphene/types/tests/test_inputobjecttype.py::test_generate_inputobjecttype_with_fields", "graphene/types/tests/test_inputobjecttype.py::test...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Allow the user to change InputObjectType's default value on non-specified inputs to a sentinel value This PR aims to remove the ambiguity that happens with `InputObjectType`s when accessing optional f...
8ede21e06381c096589c424960a6cfaca304badb
astropy__astropy-14874
14,874
astropy/astropy
5.2
662528102179cc93ab9e4b21a31b7cbc1d4c299f
2023-05-29T01:37:20Z
diff --git a/astropy/cosmology/parameter/_core.py b/astropy/cosmology/parameter/_core.py index 4d13cd251777..4546b776ff18 100644 --- a/astropy/cosmology/parameter/_core.py +++ b/astropy/cosmology/parameter/_core.py @@ -1,14 +1,68 @@ # Licensed under a 3-clause BSD style license - see LICENSE.rst +from __future__ imp...
diff --git a/astropy/cosmology/tests/test_parameter.py b/astropy/cosmology/tests/test_parameter.py index 4b32ea1ede6c..45ae83f89078 100644 --- a/astropy/cosmology/tests/test_parameter.py +++ b/astropy/cosmology/tests/test_parameter.py @@ -7,6 +7,7 @@ # STDLIB import inspect +from typing import Callable # THIRD P...
diff --git a/docs/changes/cosmology/14874.api.rst b/docs/changes/cosmology/14874.api.rst new file mode 100644 index 000000000000..8b42f91534d5 --- /dev/null +++ b/docs/changes/cosmology/14874.api.rst @@ -0,0 +1,2 @@ +Cosmology ``Parameter`` is now a ``dataclass``, and can work with all of Python's dataclasses +machiner...
[ { "components": [ { "doc": "", "lines": [ 24, 35 ], "name": "_UnitField", "signature": "class _UnitField:", "type": "class" }, { "doc": "", "lines": [ 27, 32 ], "name": "_Uni...
[ "astropy/cosmology/tests/test_parameter.py::TestParameter::test_Parameter_instance_attributes[Example1]", "astropy/cosmology/tests/test_parameter.py::TestParameter::test_Parameter_name[Example1]", "astropy/cosmology/tests/test_parameter.py::TestParameter::test_Parameter_instance_attributes[Example2]", "astrop...
[ "astropy/cosmology/tests/test_parameter.py::test_registry_validators", "astropy/cosmology/tests/test_parameter.py::TestParameter::test_Parameter_init", "astropy/cosmology/tests/test_parameter.py::TestParameter::test_Parameter_descriptor_set[Example1]", "astropy/cosmology/tests/test_parameter.py::TestParameter...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Cosmo param dataclass ### Description Cosmology Parameters are now [dataclass](https://docs.python.org/3.10/library/dataclasses.html). Why? b/c dataclasses are nice: - clean, modern code & synt...
32bd0ffb6898c6a57b9ec1a55c13c7a0efe8d273
boto__botocore-2959
2,959
boto/botocore
null
10f938dff99d0c449ea3e8efe1fa2042553d4c36
2023-05-26T19:09:24Z
diff --git a/.changes/next-release/enhancement-compression-36791.json b/.changes/next-release/enhancement-compression-36791.json new file mode 100644 index 0000000000..ea56ede0e1 --- /dev/null +++ b/.changes/next-release/enhancement-compression-36791.json @@ -0,0 +1,5 @@ +{ + "type": "enhancement", + "category": "com...
diff --git a/tests/functional/test_compress.py b/tests/functional/test_compress.py new file mode 100644 index 0000000000..63f1510b13 --- /dev/null +++ b/tests/functional/test_compress.py @@ -0,0 +1,129 @@ +# Copyright 2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License,...
diff --git a/.changes/next-release/enhancement-compression-36791.json b/.changes/next-release/enhancement-compression-36791.json new file mode 100644 index 0000000000..ea56ede0e1 --- /dev/null +++ b/.changes/next-release/enhancement-compression-36791.json @@ -0,0 +1,5 @@ +{ + "type": "enhancement", + "category": "com...
[ { "components": [ { "doc": "", "lines": [ 553, 573 ], "name": "ClientArgsCreator._compute_request_compression_config", "signature": "def _compute_request_compression_config(self, config_kwargs):", "type": "function" }, { ...
[ "tests/functional/test_compress.py::test_compression", "tests/unit/test_args.py::TestCreateClientArgs::test_bad_type_request_min_compression_size_bytes", "tests/unit/test_args.py::TestCreateClientArgs::test_bad_value_disable_request_compression", "tests/unit/test_args.py::TestCreateClientArgs::test_can_merge_...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> request compression This pull request enables request compression in the AWS Python SDK. It is on by default, but only used if the `requestcompression` trait is attached to the operation being called....
5e4b564dd0f9aab16a404251ebd3e675c9681492
joke2k__faker-1867
1,867
joke2k/faker
null
fa79c6b0c510274b08b46ad0f007fd1b517a9ab2
2023-05-26T18:18:10Z
diff --git a/faker/proxy.py b/faker/proxy.py index 78f159bc77..d2862eaba1 100644 --- a/faker/proxy.py +++ b/faker/proxy.py @@ -4,7 +4,7 @@ from collections import OrderedDict from random import Random -from typing import Any, Callable, Dict, List, Optional, Pattern, Sequence, Tuple, Union +from typing import Any, C...
diff --git a/tests/test_optional.py b/tests/test_optional.py new file mode 100644 index 0000000000..f84bcdb3c5 --- /dev/null +++ b/tests/test_optional.py @@ -0,0 +1,44 @@ +import pytest + +from faker import Faker + + +class TestOptionalClass: + def test_optional(self) -> None: + fake = Faker() + + asse...
[ { "components": [ { "doc": "", "lines": [ 144, 145 ], "name": "Faker.optional", "signature": "def optional(self) -> \"OptionalProxy\":", "type": "function" }, { "doc": "Return either a fake value or None, with a custom...
[ "tests/test_optional.py::TestOptionalClass::test_optional", "tests/test_optional.py::TestOptionalClass::test_optional_probability", "tests/test_optional.py::TestOptionalClass::test_optional_arguments", "tests/test_optional.py::TestOptionalClass::test_optional_valid_range", "tests/test_optional.py::TestOptio...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> PoC: a .optional proxy that may or may not return a fake value ### What does this change This adds a `.optional` property, that should make all the usual functions return either a fake value or `No...
6edfdbf6ae90b0153309e3bf066aa3b2d16494a7
pvlib__pvlib-python-1749
1,749
pvlib/pvlib-python
0.9
27a3a07ebc84b11014d3753e4923902adf9a38c0
2023-05-25T16:26:59Z
diff --git a/docs/sphinx/source/reference/iotools.rst b/docs/sphinx/source/reference/iotools.rst index c902e3181a..39bd4f2ad3 100644 --- a/docs/sphinx/source/reference/iotools.rst +++ b/docs/sphinx/source/reference/iotools.rst @@ -42,6 +42,8 @@ of sources and file formats relevant to solar energy modeling. iotools....
diff --git a/pvlib/tests/iotools/test_panond.py b/pvlib/tests/iotools/test_panond.py new file mode 100644 index 0000000000..a692d3e119 --- /dev/null +++ b/pvlib/tests/iotools/test_panond.py @@ -0,0 +1,32 @@ +""" +test iotools for panond +""" + +from pvlib.iotools import read_panond +from pvlib.tests.conftest import DAT...
diff --git a/docs/sphinx/source/reference/iotools.rst b/docs/sphinx/source/reference/iotools.rst index c902e3181a..39bd4f2ad3 100644 --- a/docs/sphinx/source/reference/iotools.rst +++ b/docs/sphinx/source/reference/iotools.rst @@ -42,6 +42,8 @@ of sources and file formats relevant to solar energy modeling. iotools....
[ { "components": [ { "doc": "Determine if a value is float, int or a string", "lines": [ 6, 27 ], "name": "_num_type", "signature": "def _num_type(value):", "type": "function" }, { "doc": "Determine if an element is a l...
[ "pvlib/tests/iotools/test_panond.py::test_read_panond" ]
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Create `pvlib.iotools.read_panond` for reading .pan and .ond files <!-- Thank you for your contribution! The following items must be addressed before the code can be merged. Please don't hesitate to a...
Here is the discussion in the issues of the pull request. <issues> Is there interest in implementing a .pan or .ond reader into iotools? I find that .pan or .ond files are the most widely/easily available files containing parameters to use with the existing module and inverter models in PVlib. I have created read and p...
d53f97e984bfdd268aa92f8bf482ced0edda0110
tobymao__sqlglot-1687
1,687
tobymao/sqlglot
null
da04a631e2dcfc6ef6d3c55153b81292f0c07312
2023-05-24T14:50:08Z
diff --git a/sqlglot/dialects/presto.py b/sqlglot/dialects/presto.py index 4f1b4abd02..83e83b1476 100644 --- a/sqlglot/dialects/presto.py +++ b/sqlglot/dialects/presto.py @@ -327,6 +327,7 @@ class Generator(generator.Generator): exp.UnixToTime: rename_func("FROM_UNIXTIME"), exp.UnixToTimeStr: ...
diff --git a/tests/dialects/test_presto.py b/tests/dialects/test_presto.py index d92b7699a4..1f5953cad7 100644 --- a/tests/dialects/test_presto.py +++ b/tests/dialects/test_presto.py @@ -437,6 +437,36 @@ def test_presto(self): self.validate_all("INTERVAL '1 day'", write={"trino": "INTERVAL '1' day"}) ...
[]
[ "tests/dialects/test_presto.py::TestPresto::test_presto" ]
[ "tests/dialects/test_presto.py::TestPresto::test_cast", "tests/dialects/test_presto.py::TestPresto::test_ddl", "tests/dialects/test_presto.py::TestPresto::test_encode_decode", "tests/dialects/test_presto.py::TestPresto::test_explode_to_unnest", "tests/dialects/test_presto.py::TestPresto::test_hex_unhex", ...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Feat: implement transform to add column names to recursive CTEs Fixes #1683 ---------- </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> Trino recursive CTE requires column list The following is what SQLGlot outputs when generating a recursive CTE. ``` >>> query = """WITH RECURSIVE t AS ( ... SELECT 1 as n ... UNION ALL ... SELECT n + 1 as n FROM t WHERE n < 4 ... ) ...
ceb42fabad60312699e4b15936aeebac00e22e4d
open-mmlab__mmengine-1157
1,157
open-mmlab/mmengine
null
f24144d317b23871e3d58171a703afe28d27518c
2023-05-22T12:08:20Z
diff --git a/mmengine/utils/__init__.py b/mmengine/utils/__init__.py index ba89c4ffe8..3de9099907 100644 --- a/mmengine/utils/__init__.py +++ b/mmengine/utils/__init__.py @@ -14,6 +14,7 @@ mkdir_or_exist, scandir, symlink) from .progressbar import (ProgressBar, track_iter_progress, ...
diff --git a/tests/test_utils/test_progressbar_rich.py b/tests/test_utils/test_progressbar_rich.py new file mode 100644 index 0000000000..9c507bf629 --- /dev/null +++ b/tests/test_utils/test_progressbar_rich.py @@ -0,0 +1,53 @@ +# Copyright (c) OpenMMLab. All rights reserved. +import pytest + +from mmengine.utils impor...
[ { "components": [ { "doc": "Function wrapper for ``track_progress_rich``", "lines": [ 10, 21 ], "name": "_Worker", "signature": "class _Worker:", "type": "class" }, { "doc": "", "lines": [ 13, ...
[ "tests/test_utils/test_progressbar_rich.py::test_progressbar_rich_exception", "tests/test_utils/test_progressbar_rich.py::test_progressbar_rich[1]", "tests/test_utils/test_progressbar_rich.py::test_progressbar_rich[2]" ]
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> [Feature ] Add progressbar rich Thanks for your contribution and we appreciate it a lot. The following instructions would make your pull request more healthy and more easily get feedback. If you do no...
53474ef1ba0b166508c231fa525b55b580adf20f
django__django-16883
16,883
django/django
5.0
c3862735cd8c268e99fb8d54c3955aacc4f2dc25
2023-05-21T21:08:07Z
diff --git a/django/core/management/commands/inspectdb.py b/django/core/management/commands/inspectdb.py index 3194aecacb57..5c2ed53db8f0 100644 --- a/django/core/management/commands/inspectdb.py +++ b/django/core/management/commands/inspectdb.py @@ -56,9 +56,6 @@ def handle_inspection(self, options): # 'table...
diff --git a/tests/inspectdb/models.py b/tests/inspectdb/models.py index 9e6871ce46cd..25714cb086d8 100644 --- a/tests/inspectdb/models.py +++ b/tests/inspectdb/models.py @@ -51,6 +51,11 @@ class Meta: db_table = "inspectdb_special.table name" +class PascalCaseName(models.Model): + class Meta: + ...
[ { "components": [ { "doc": "Translate the table name to a Python-compatible model name.", "lines": [ 322, 324 ], "name": "Command.normalize_table_name", "signature": "def normalize_table_name(self, table_name):", "type": "function" ...
[ "test_custom_normalize_table_name (inspectdb.tests.InspectDBTestCase.test_custom_normalize_table_name)" ]
[ "test_composite_primary_key (inspectdb.tests.InspectDBTransactionalTests.test_composite_primary_key)", "inspectdb --include-views creates models for database views.", "test_attribute_name_not_python_keyword (inspectdb.tests.InspectDBTestCase.test_attribute_name_not_python_keyword)", "test_char_field_db_collat...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Fixed #34587 -- Allowed customizing table name normalization in inspectdb command. Move `table2model` to a public method on `inspectdb.Command`. Public method for column names already exists: https...
Here is the discussion in the issues of the pull request. <issues> Allow to override table2model conversion for inspectdb command Description When implementing a custom inspectdb command by inheriting from inspectdb.Command users should be able to override the table name to model conversion logic. Public method for ...
8edaf07a28a3e3848ab1edbdcd2fdc25e6bd6015
django__django-16877
16,877
django/django
5.0
98f6ada0e2058d67d91fb6c16482411ec2ca0967
2023-05-19T23:11:10Z
diff --git a/AUTHORS b/AUTHORS index 2e3a91c7569f..95f24762ee3d 100644 --- a/AUTHORS +++ b/AUTHORS @@ -108,6 +108,7 @@ answer newbie questions, and generally made Django that much better: Arthur <avandorp@gmail.com> Arthur Jovart <arthur@jovart.com> Arthur Koziel <http://arthurkoziel.com> + Arthur Mor...
diff --git a/tests/template_tests/filter_tests/test_escapeseq.py b/tests/template_tests/filter_tests/test_escapeseq.py new file mode 100644 index 000000000000..27092f5828bb --- /dev/null +++ b/tests/template_tests/filter_tests/test_escapeseq.py @@ -0,0 +1,59 @@ +from django.test import SimpleTestCase +from django.utils...
diff --git a/AUTHORS b/AUTHORS index 2e3a91c7569f..95f24762ee3d 100644 --- a/AUTHORS +++ b/AUTHORS @@ -108,6 +108,7 @@ answer newbie questions, and generally made Django that much better: Arthur <avandorp@gmail.com> Arthur Jovart <arthur@jovart.com> Arthur Koziel <http://arthurkoziel.com> + Arthur Mor...
[ { "components": [ { "doc": "An \"escape\" filter for sequences. Mark each element in the sequence,\nindividually, as a string that should be auto-escaped. Return a list with\nthe results.", "lines": [ 448, 454 ], "name": "escapeseq", "signature":...
[ "test_autoescape_off (template_tests.filter_tests.test_escapeseq.EscapeseqTests.test_autoescape_off)", "test_basic (template_tests.filter_tests.test_escapeseq.EscapeseqTests.test_basic)", "test_chain_join (template_tests.filter_tests.test_escapeseq.EscapeseqTests.test_chain_join)", "test_chain_join_autoescape...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Fixed #34577 -- Added escapeseq template filter. [ticket-34577](https://code.djangoproject.com/ticket/34577) this is my very first contribution so please let me know if i did something unexpected l...
Here is the discussion in the issues of the pull request. <issues> New template filter `escapeseq` Description Following #34574, and after some conversations within the security team, it seems appropriate to provide a new template filter escapeseq which would be to escape what safeseq is to safe. An example of usage...
8edaf07a28a3e3848ab1edbdcd2fdc25e6bd6015
astropy__astropy-14851
14,851
astropy/astropy
5.2
4fba338b907356185c5a9dd60cc7f65f54e58a4d
2023-05-19T21:07:01Z
diff --git a/astropy/coordinates/representation/__init__.py b/astropy/coordinates/representation/__init__.py index f91d47e3ae56..e92af318ba87 100644 --- a/astropy/coordinates/representation/__init__.py +++ b/astropy/coordinates/representation/__init__.py @@ -8,6 +8,7 @@ from .cylindrical import CylindricalRepresentati...
diff --git a/astropy/coordinates/tests/test_geodetic_representations.py b/astropy/coordinates/tests/test_geodetic_representations.py index 0a5d4ccee13d..fb72255c02e3 100644 --- a/astropy/coordinates/tests/test_geodetic_representations.py +++ b/astropy/coordinates/tests/test_geodetic_representations.py @@ -8,6 +8,7 @@ ...
diff --git a/docs/changes/coordinates/14851.feature.rst b/docs/changes/coordinates/14851.feature.rst new file mode 100644 index 000000000000..c74e2aa8435c --- /dev/null +++ b/docs/changes/coordinates/14851.feature.rst @@ -0,0 +1,2 @@ +Add ``BaseBodycentricRepresentation``, a new spheroidal representation for bodycentri...
[ { "components": [ { "doc": "Representation of points in bodycentric 3D coordinates.\n\nSubclasses need to set attributes ``_equatorial_radius`` and ``_flattening``\nto quantities holding correct values (with units of length and dimensionless,\nrespectively). the bodycentric latitude and longitude ...
[ "astropy/coordinates/tests/test_geodetic_representations.py::test_geodetic_bodycentric_equivalence_spherical_bodies", "astropy/coordinates/tests/test_geodetic_representations.py::test_cartesian_geodetic_roundtrip[CustomGeodetic]", "astropy/coordinates/tests/test_geodetic_representations.py::test_cartesian_geode...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add `BaseBodycentricRepresentation` ### Description This pull request adds the possibility to create geodetic representations described by [planetocentric latitudes] ~~(https://en.wikipedia.org/wiki...
32bd0ffb6898c6a57b9ec1a55c13c7a0efe8d273
tobymao__sqlglot-1642
1,642
tobymao/sqlglot
null
ef428827ab3b68160f1f635ce7fa581a74ded8f5
2023-05-17T15:52:15Z
diff --git a/sqlglot/expressions.py b/sqlglot/expressions.py index 5aa09f1ee2..6f6831ef95 100644 --- a/sqlglot/expressions.py +++ b/sqlglot/expressions.py @@ -2162,7 +2162,7 @@ def with_( "order": False, "limit": False, "offset": False, - "lock": False, + "locks": False, "sample": False, ...
diff --git a/tests/dialects/test_mysql.py b/tests/dialects/test_mysql.py index f31b1b969f..be7887e8b3 100644 --- a/tests/dialects/test_mysql.py +++ b/tests/dialects/test_mysql.py @@ -47,8 +47,11 @@ def test_identity(self): self.validate_identity("SELECT TRIM(BOTH 'bla' FROM ' XXX ')") self.validate_id...
[]
[ "tests/dialects/test_mysql.py::TestMySQL::test_identity", "tests/dialects/test_mysql.py::TestMySQL::test_mysql", "tests/dialects/test_oracle.py::TestOracle::test_oracle" ]
[ "tests/dialects/test_mysql.py::TestMySQL::test_bits_literal", "tests/dialects/test_mysql.py::TestMySQL::test_canonical_functions", "tests/dialects/test_mysql.py::TestMySQL::test_convert", "tests/dialects/test_mysql.py::TestMySQL::test_date_format", "tests/dialects/test_mysql.py::TestMySQL::test_ddl", "tes...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Feat!(mysql, oracle): improve parsing of lock syntax Fixes #1641 This is a breaking change because the arguments of the `exp.Lock` expression were changed. cc: @mpf82 ---------- </request> The...
Here is the discussion in the issues of the pull request. <issues> Support for more locking options sqlglot currently support ``SELECT ... FOR UPDATE`` and ``SELECT ... FOR SHARE``. However, the ``FOR ...`` can be more complex: MySQL - https://dev.mysql.com/doc/refman/8.0/en/select.html ``` SELECT ... ...
ceb42fabad60312699e4b15936aeebac00e22e4d
tobymao__sqlglot-1630
1,630
tobymao/sqlglot
null
99532d9febafd4b5f952769214dbf340cd6cb908
2023-05-15T23:48:40Z
diff --git a/sqlglot/expressions.py b/sqlglot/expressions.py index e39d2ef04f..bcdbd375d1 100644 --- a/sqlglot/expressions.py +++ b/sqlglot/expressions.py @@ -1479,6 +1479,42 @@ class Insert(Expression): "alternative": False, } + def with_( + self, + alias: ExpOrStr, + as_: ExpOr...
diff --git a/tests/test_build.py b/tests/test_build.py index 8342de3e58..fc7e005ff1 100644 --- a/tests/test_build.py +++ b/tests/test_build.py @@ -594,6 +594,22 @@ def test_build(self): "DELETE FROM tbl WHERE x = 1 RETURNING *", "postgres", ), + ( + ...
[]
[ "tests/test_build.py::TestBuild::test_build" ]
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Feat: create builders for the INSERT statement Resolves https://github.com/tobymao/sqlglot/discussions/1621 ---------- </request> There are several new functions or classes that need to be implement...
ceb42fabad60312699e4b15936aeebac00e22e4d
django__django-16860
16,860
django/django
5.0
cafe7266ee69f7e017ddbc0d440084ace559b04b
2023-05-15T22:30:54Z
diff --git a/django/db/backends/base/features.py b/django/db/backends/base/features.py index 06945732a058..b1f0b9d491e9 100644 --- a/django/db/backends/base/features.py +++ b/django/db/backends/base/features.py @@ -353,6 +353,11 @@ class BaseDatabaseFeatures: # Does the backend support column comments in ADD COLUM...
diff --git a/tests/invalid_models_tests/test_ordinary_fields.py b/tests/invalid_models_tests/test_ordinary_fields.py index 6014448013c9..affe642ac752 100644 --- a/tests/invalid_models_tests/test_ordinary_fields.py +++ b/tests/invalid_models_tests/test_ordinary_fields.py @@ -1226,3 +1226,115 @@ class Model(models.Model)...
diff --git a/docs/ref/models/fields.txt b/docs/ref/models/fields.txt index fbc90e54203e..a41eb7b1d2fe 100644 --- a/docs/ref/models/fields.txt +++ b/docs/ref/models/fields.txt @@ -1215,6 +1215,71 @@ when :attr:`~django.forms.Field.localize` is ``False`` or information on the difference between the two, see Python's...
[ { "components": [ { "doc": "Return the SQL to use in a GENERATED ALWAYS clause.", "lines": [ 427, 433 ], "name": "BaseDatabaseSchemaEditor._column_generated_sql", "signature": "def _column_generated_sql(self, field):", "type": "function" ...
[ "test_db_comment (invalid_models_tests.test_ordinary_fields.DbCommentTests.test_db_comment)", "test_db_comment_required_db_features (invalid_models_tests.test_ordinary_fields.DbCommentTests.test_db_comment_required_db_features)", "test_choices_named_group (invalid_models_tests.test_ordinary_fields.UUIDFieldTest...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Fixed #31300 -- Added GeneratedField model field. Builds on top of #16417. ---------- @jpnauta Here's the first draft of Oracle support. I'm not sure why the jenkins builds aren't running properly. @f...
Here is the discussion in the issues of the pull request. <issues> Add function-based virtual fields. Description PostgreSQL 12 added support for Generated Columns, see ​https://www.postgresql.org/docs/12/ddl-generated-columns.html. And I find it very interesting and useful, for example with SearchVectorField. I ima...
8edaf07a28a3e3848ab1edbdcd2fdc25e6bd6015
tobymao__sqlglot-1627
1,627
tobymao/sqlglot
null
9c3cd2cabe39a683832c0fbad26714c31b41bc76
2023-05-15T17:48:43Z
diff --git a/sqlglot/dialects/snowflake.py b/sqlglot/dialects/snowflake.py index 27acb27a47..84bf0a47df 100644 --- a/sqlglot/dialects/snowflake.py +++ b/sqlglot/dialects/snowflake.py @@ -52,8 +52,12 @@ def _snowflake_to_timestamp(args: t.Sequence) -> t.Union[exp.StrToTime, exp.Unix return exp.UnixToTime(this...
diff --git a/tests/dialects/test_snowflake.py b/tests/dialects/test_snowflake.py index 7b00c60b3e..baf83bedf8 100644 --- a/tests/dialects/test_snowflake.py +++ b/tests/dialects/test_snowflake.py @@ -555,10 +555,22 @@ def test_semi_structured_types(self): ) def test_ddl(self): + self.validate_iden...
[]
[ "tests/dialects/test_snowflake.py::TestSnowflake::test_ddl" ]
[ "tests/dialects/test_snowflake.py::TestSnowflake::test_describe_table", "tests/dialects/test_snowflake.py::TestSnowflake::test_flatten", "tests/dialects/test_snowflake.py::TestSnowflake::test_match_recognize", "tests/dialects/test_snowflake.py::TestSnowflake::test_minus", "tests/dialects/test_snowflake.py::...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Feat(snowflake): add support for the CLONE clause in DDL statements Fixes #1626 Reference: https://docs.snowflake.com/en/sql-reference/sql/create-clone ---------- </request> There are several n...
Here is the discussion in the issues of the pull request. <issues> Snowflake `Create ... Clone` not supported ``` >>> from sqlglot import parse >>> parse('create or replace table table2 clone table1;', read='snowflake') Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Users/ian.hoo...
ceb42fabad60312699e4b15936aeebac00e22e4d
tobymao__sqlglot-1603
1,603
tobymao/sqlglot
null
41b90bed8ed91a1ef7b8e737b508508d3abba9cf
2023-05-12T14:57:59Z
diff --git a/sqlglot/dialects/clickhouse.py b/sqlglot/dialects/clickhouse.py index 0889522b11..95dbbe861b 100644 --- a/sqlglot/dialects/clickhouse.py +++ b/sqlglot/dialects/clickhouse.py @@ -78,12 +78,33 @@ class Parser(parser.Parser): and self._parse_in(this, is_global=True), } - JOIN_KI...
diff --git a/tests/dialects/test_clickhouse.py b/tests/dialects/test_clickhouse.py index 58f23b202b..0bd42d2d47 100644 --- a/tests/dialects/test_clickhouse.py +++ b/tests/dialects/test_clickhouse.py @@ -1,3 +1,4 @@ +from sqlglot import exp, parse_one from tests.dialects.test_dialect import Validator @@ -68,6 +69,3...
[]
[ "tests/dialects/test_clickhouse.py::TestClickhouse::test_ternary" ]
[ "tests/dialects/test_clickhouse.py::TestClickhouse::test_clickhouse", "tests/dialects/test_clickhouse.py::TestClickhouse::test_cte", "tests/dialects/test_clickhouse.py::TestClickhouse::test_ddl", "tests/dialects/test_clickhouse.py::TestClickhouse::test_signed_and_unsigned_types" ]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Feat(clickhouse): parse ternary operator Fixes #1602 ---------- </request> There are several new functions or classes that need to be implemented, using the definitions below: <<NEW DEFINITIONS>> T...
Here is the discussion in the issues of the pull request. <issues> Clickhouse: Ternary if parsing Minimal code to reproduce: ```python import sqlglot sqlglot.parse_one( "flagcolumn ? created : now()", read="clickhouse" ) ``` While trying to parse expression with clickhouse ternary if, get the follow...
ceb42fabad60312699e4b15936aeebac00e22e4d
pvlib__pvlib-python-1730
1,730
pvlib/pvlib-python
0.9
cfd6e78235e9eff55308f138d4dfe79317b72299
2023-05-10T23:08:53Z
diff --git a/docs/sphinx/source/reference/irradiance/decomposition.rst b/docs/sphinx/source/reference/irradiance/decomposition.rst index 0677d6ac95..08724be38e 100644 --- a/docs/sphinx/source/reference/irradiance/decomposition.rst +++ b/docs/sphinx/source/reference/irradiance/decomposition.rst @@ -12,6 +12,7 @@ DNI est...
diff --git a/pvlib/tests/test_irradiance.py b/pvlib/tests/test_irradiance.py index d0158dad1a..ab1af612a7 100644 --- a/pvlib/tests/test_irradiance.py +++ b/pvlib/tests/test_irradiance.py @@ -821,6 +821,22 @@ def test_boland(): assert np.allclose(out, expected) +def test_orgill_hollands(): + index = pd.Datet...
diff --git a/docs/sphinx/source/reference/irradiance/decomposition.rst b/docs/sphinx/source/reference/irradiance/decomposition.rst index 0677d6ac95..08724be38e 100644 --- a/docs/sphinx/source/reference/irradiance/decomposition.rst +++ b/docs/sphinx/source/reference/irradiance/decomposition.rst @@ -12,6 +12,7 @@ DNI est...
[ { "components": [ { "doc": "Estimate DNI and DHI from GHI using the Orgill and Hollands model.\n\nThe Orgill and Hollands model [1]_ estimates the diffuse fraction DF from\nglobal horizontal irradiance through an empirical relationship between\nhourly DF observations (in Toronto, Canada) and the r...
[ "pvlib/tests/test_irradiance.py::test_orgill_hollands" ]
[ "pvlib/tests/test_irradiance.py::test_get_extra_radiation[asce-300-1383.636203]", "pvlib/tests/test_irradiance.py::test_get_extra_radiation[asce-300.0-1383.636203]", "pvlib/tests/test_irradiance.py::test_get_extra_radiation[asce-testval2-1383.636203]", "pvlib/tests/test_irradiance.py::test_get_extra_radiation...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> add orgill hollands decomposition <!-- Thank you for your contribution! The following items must be addressed before the code can be merged. Please don't hesitate to ask for help if you're unsure of h...
d53f97e984bfdd268aa92f8bf482ced0edda0110
tobymao__sqlglot-1566
1,566
tobymao/sqlglot
null
474474213bc9de3397a633996362c44d469d4037
2023-05-08T21:24:27Z
diff --git a/sqlglot/expressions.py b/sqlglot/expressions.py index d7a67eaa99..98e336355f 100644 --- a/sqlglot/expressions.py +++ b/sqlglot/expressions.py @@ -1961,6 +1961,15 @@ class Reference(Expression): class Tuple(Expression): arg_types = {"expressions": False} + def isin( + self, *expressions: t...
diff --git a/tests/test_build.py b/tests/test_build.py index 4de7ae5fa3..509b857aa6 100644 --- a/tests/test_build.py +++ b/tests/test_build.py @@ -593,6 +593,11 @@ def test_build(self): "DELETE FROM tbl WHERE x = 1 RETURNING *", "postgres", ), + ( + ...
[]
[ "tests/test_build.py::TestBuild::test_build" ]
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Feat: Add isin builder to tuple {} ---------- </request> There are several new functions or classes that need to be implemented, using the definitions below: <<NEW DEFINITIONS>> There are several n...
ceb42fabad60312699e4b15936aeebac00e22e4d
joke2k__faker-1862
1,862
joke2k/faker
null
294768d0d39bc0320220909273a514388d8cbbf0
2023-05-08T09:48:18Z
diff --git a/faker/providers/misc/__init__.py b/faker/providers/misc/__init__.py index 19b07820e6..240249cbba 100644 --- a/faker/providers/misc/__init__.py +++ b/faker/providers/misc/__init__.py @@ -14,6 +14,7 @@ from faker.exceptions import UnsupportedFeature from .. import BaseProvider +from ..python import Types...
diff --git a/tests/providers/test_misc.py b/tests/providers/test_misc.py index f50822f39a..ec9fe57a25 100644 --- a/tests/providers/test_misc.py +++ b/tests/providers/test_misc.py @@ -7,6 +7,7 @@ import tarfile import unittest import uuid +import xml import zipfile try: @@ -14,6 +15,11 @@ except ImportError: ...
diff --git a/tox.ini b/tox.ini index a33a109520..14d5b744d2 100644 --- a/tox.ini +++ b/tox.ini @@ -11,6 +11,7 @@ deps = validators>=0.13.0 sphinx>=2.4,<3.0 Pillow + xmltodict commands = coverage run --source=faker -m pytest {posargs} coverage run --source=faker -a -m pytest --exclusive-fake...
[ { "components": [ { "doc": "Returns some XML.\n\n:nb_elements: number of elements for dictionary\n:variable_nb_elements: is use variable number of elements for dictionary\n:value_types: type of dictionary values\n\nNote: this provider required xmltodict library installed", "lines": [ ...
[ "tests/providers/test_misc.py::TestMiscProvider::test_xml_no_xmltodict" ]
[ "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> Feature/xml generator ### What does this change Add XML provider for generating fake xml strings. Use the pydict provider and arguments and convert it onto xml string via xmltodict library ----...
6edfdbf6ae90b0153309e3bf066aa3b2d16494a7
scrapy__scrapy-5926
5,926
scrapy/scrapy
null
df2163ce6aded0ed56eed8b125739193b953ff17
2023-05-07T19:35:01Z
diff --git a/docs/topics/extensions.rst b/docs/topics/extensions.rst index 8d4749ab33d..0286581c025 100644 --- a/docs/topics/extensions.rst +++ b/docs/topics/extensions.rst @@ -396,3 +396,115 @@ For more info see `Debugging in Python`_. This extension only works on POSIX-compliant platforms (i.e. not Windows). .. _...
diff --git a/tests/test_extension_periodic_log.py b/tests/test_extension_periodic_log.py new file mode 100644 index 00000000000..80f5c317769 --- /dev/null +++ b/tests/test_extension_periodic_log.py @@ -0,0 +1,198 @@ +import datetime +import typing +import unittest + +from scrapy.crawler import Crawler +from scrapy.exte...
diff --git a/docs/topics/extensions.rst b/docs/topics/extensions.rst index 8d4749ab33d..0286581c025 100644 --- a/docs/topics/extensions.rst +++ b/docs/topics/extensions.rst @@ -396,3 +396,115 @@ For more info see `Debugging in Python`_. This extension only works on POSIX-compliant platforms (i.e. not Windows). .. _...
[ { "components": [ { "doc": "Log basic scraping stats periodically", "lines": [ 13, 140 ], "name": "PeriodicLog", "signature": "class PeriodicLog:", "type": "class" }, { "doc": "", "lines": [ 16, ...
[ "tests/test_extension_periodic_log.py::TestPeriodicLog::test_extension_enabled", "tests/test_extension_periodic_log.py::TestPeriodicLog::test_log_delta", "tests/test_extension_periodic_log.py::TestPeriodicLog::test_log_stats" ]
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> periodic_log: implemented as separate extension The same as current version of https://github.com/scrapy/scrapy/pull/5830 - but implemented as separate extension. So it doesn't affect `scrapy.extensio...
57a5460529ff71c42e4d0381265b1b512b1eb09b
joke2k__faker-1861
1,861
joke2k/faker
null
294768d0d39bc0320220909273a514388d8cbbf0
2023-05-07T02:46:54Z
diff --git a/faker/providers/bank/zh_CN/__init__.py b/faker/providers/bank/zh_CN/__init__.py new file mode 100644 index 0000000000..83b34e51f3 --- /dev/null +++ b/faker/providers/bank/zh_CN/__init__.py @@ -0,0 +1,37 @@ +from .. import Provider as BankProvider + + +class Provider(BankProvider): + """Implement bank pr...
diff --git a/tests/providers/test_bank.py b/tests/providers/test_bank.py index 076f6c9a4b..cf065af3ce 100644 --- a/tests/providers/test_bank.py +++ b/tests/providers/test_bank.py @@ -442,3 +442,11 @@ def test_swift11_use_dataset(self, faker, num_samples): assert code[4:6] == NlBeBankProvider.country_code ...
[ { "components": [ { "doc": "Implement bank provider for ``zh_CN`` locale.\nSource: https://zh.wikipedia.org/wiki/中国大陆银行列表", "lines": [ 4, 37 ], "name": "Provider", "signature": "class Provider(BankProvider):", "type": "class" }, ...
[ "tests/providers/test_bank.py::TestZhCn::test_bank" ]
[ "tests/providers/test_bank.py::TestAzAz::test_bban", "tests/providers/test_bank.py::TestAzAz::test_iban", "tests/providers/test_bank.py::TestAzAz::test_bank", "tests/providers/test_bank.py::TestNoNo::test_aba", "tests/providers/test_bank.py::TestNoNo::test_bban", "tests/providers/test_bank.py::TestNoNo::t...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add bank provider for zh_CN locale and test function ### What does this change Add bank provider for zh_CN locale and corresponding test function. ### What was wrong The functionality was not...
6edfdbf6ae90b0153309e3bf066aa3b2d16494a7
matplotlib__matplotlib-25821
25,821
matplotlib/matplotlib
3.7
4bdae2e004b29d075f96a7dbbee918f7dfb13ed1
2023-05-05T15:42:31Z
diff --git a/doc/api/toolkits/mplot3d/axes3d.rst b/doc/api/toolkits/mplot3d/axes3d.rst index 99c57db64d9a..f6d8e2529896 100644 --- a/doc/api/toolkits/mplot3d/axes3d.rst +++ b/doc/api/toolkits/mplot3d/axes3d.rst @@ -209,6 +209,7 @@ Sharing :nosignatures: sharez + shareview Interactive diff --git a/doc/u...
diff --git a/lib/mpl_toolkits/mplot3d/tests/test_axes3d.py b/lib/mpl_toolkits/mplot3d/tests/test_axes3d.py index 3b890d31ae44..f4114e7be511 100644 --- a/lib/mpl_toolkits/mplot3d/tests/test_axes3d.py +++ b/lib/mpl_toolkits/mplot3d/tests/test_axes3d.py @@ -1689,6 +1689,20 @@ def test_set_zlim(): ax.set_zlim(top=...
diff --git a/doc/api/toolkits/mplot3d/axes3d.rst b/doc/api/toolkits/mplot3d/axes3d.rst index 99c57db64d9a..f6d8e2529896 100644 --- a/doc/api/toolkits/mplot3d/axes3d.rst +++ b/doc/api/toolkits/mplot3d/axes3d.rst @@ -209,6 +209,7 @@ Sharing :nosignatures: sharez + shareview Interactive diff --git a/doc/u...
[ { "components": [ { "doc": "Share the view angles with *other*.\n\nThis is equivalent to passing ``shareview=other`` when\nconstructing the Axes, and cannot be used if the view angles are\nalready being shared with another Axes.", "lines": [ 992, 1007 ], ...
[ "lib/mpl_toolkits/mplot3d/tests/test_axes3d.py::test_shared_view[png]" ]
[ "lib/mpl_toolkits/mplot3d/tests/test_axes3d.py::test_invisible_axes[png]", "lib/mpl_toolkits/mplot3d/tests/test_axes3d.py::test_grid_off[png]", "lib/mpl_toolkits/mplot3d/tests/test_axes3d.py::test_invisible_ticks_axis[png]", "lib/mpl_toolkits/mplot3d/tests/test_axes3d.py::test_aspects[png]", "lib/mpl_toolki...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> 3D plots shared view angles ## PR summary Replaces https://github.com/matplotlib/matplotlib/pull/17442 Closes https://github.com/matplotlib/matplotlib/issues/11181 3D axes can now be rotated toge...
a4dca24d04f928a9e614db403c716237446140b2
tobymao__sqlglot-1529
1,529
tobymao/sqlglot
null
e7111ba6afdb67ae7be52cf39384d7bcb86a8dac
2023-05-03T17:07:13Z
diff --git a/sqlglot/dialects/__init__.py b/sqlglot/dialects/__init__.py index 191e703729..fc342621ae 100644 --- a/sqlglot/dialects/__init__.py +++ b/sqlglot/dialects/__init__.py @@ -70,6 +70,7 @@ class Generator(Generator): from sqlglot.dialects.redshift import Redshift from sqlglot.dialects.snowflake import Snowfla...
diff --git a/tests/dialects/test_spark.py b/tests/dialects/test_spark.py index bfaed53e9e..a5fc043a7b 100644 --- a/tests/dialects/test_spark.py +++ b/tests/dialects/test_spark.py @@ -214,6 +214,17 @@ def test_spark(self): self.validate_identity("TRIM(TRAILING 'SL' FROM 'SSparkSQLS')") self.validate_id...
[]
[ "tests/dialects/test_spark.py::TestSpark::test_spark", "tests/dialects/test_tsql.py::TestTSQL::test_date_diff" ]
[ "tests/dialects/test_spark.py::TestSpark::test_bool_or", "tests/dialects/test_spark.py::TestSpark::test_current_user", "tests/dialects/test_spark.py::TestSpark::test_ddl", "tests/dialects/test_spark.py::TestSpark::test_hint", "tests/dialects/test_spark.py::TestSpark::test_iif", "tests/dialects/test_spark....
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Feat(spark): new Spark2 dialect, improve DATEDIFF sql generation BREAKING This PR originally aimed to improve the transpilation of `DATEDIFF` for Spark and Databricks, which both inherit from Hive. It...
ceb42fabad60312699e4b15936aeebac00e22e4d
joke2k__faker-1858
1,858
joke2k/faker
null
294768d0d39bc0320220909273a514388d8cbbf0
2023-05-03T06:17:52Z
diff --git a/faker/providers/automotive/zh_CN/__init__.py b/faker/providers/automotive/zh_CN/__init__.py new file mode 100644 index 0000000000..1982959fa1 --- /dev/null +++ b/faker/providers/automotive/zh_CN/__init__.py @@ -0,0 +1,47 @@ +from .. import Provider as AutomotiveProvider + + +class Provider(AutomotiveProvid...
diff --git a/tests/providers/test_automotive.py b/tests/providers/test_automotive.py index 654d4388da..62f725b087 100644 --- a/tests/providers/test_automotive.py +++ b/tests/providers/test_automotive.py @@ -318,6 +318,12 @@ class TestNlBe(_SimpleAutomotiveTestMixin): license_plate_pattern: Pattern = re.compile(r"(...
[ { "components": [ { "doc": "Implement automotive provider for `zh_CN` locale.\nelectric vehicles or downtown-restricted plates are not included", "lines": [ 4, 47 ], "name": "Provider", "signature": "class Provider(AutomotiveProvider):", ...
[ "tests/providers/test_automotive.py::TestZhCn::test_license_plate" ]
[ "tests/providers/test_automotive.py::TestArBh::test_license_plate", "tests/providers/test_automotive.py::TestAzAz::test_license_plate", "tests/providers/test_automotive.py::TestSkSk::test_license_plate", "tests/providers/test_automotive.py::TestPtBr::test_license_plate", "tests/providers/test_automotive.py:...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add zh_CN automotive license_plate rules and test functions ### What does this change add zh_CN automotive license_plate rules ### What was wrong Was not implemented before. ### How this f...
6edfdbf6ae90b0153309e3bf066aa3b2d16494a7
joke2k__faker-1857
1,857
joke2k/faker
null
73fd8edff398af601c4cc1ef5fb235f6d78153c2
2023-05-03T06:09:18Z
diff --git a/faker/providers/automotive/zh_TW/__init__.py b/faker/providers/automotive/zh_TW/__init__.py new file mode 100644 index 0000000000..25542670cf --- /dev/null +++ b/faker/providers/automotive/zh_TW/__init__.py @@ -0,0 +1,19 @@ +from .. import Provider as AutomotiveProvider + + +class Provider(AutomotiveProvid...
diff --git a/tests/providers/test_automotive.py b/tests/providers/test_automotive.py index 7768b53140..654d4388da 100644 --- a/tests/providers/test_automotive.py +++ b/tests/providers/test_automotive.py @@ -316,3 +316,14 @@ class TestNlBe(_SimpleAutomotiveTestMixin): """Test nl_BE automotive provider methods""" ...
[ { "components": [ { "doc": "Implement automotive provider for ``zh_TW`` locale.\n\nSources:\n- https://en.wikipedia.org/wiki/Vehicle_registration_plates_of_Taiwan", "lines": [ 4, 18 ], "name": "Provider", "signature": "class Provider(AutomotivePr...
[ "tests/providers/test_automotive.py::TestZhTw::test_license_plate" ]
[ "tests/providers/test_automotive.py::TestArBh::test_license_plate", "tests/providers/test_automotive.py::TestAzAz::test_license_plate", "tests/providers/test_automotive.py::TestSkSk::test_license_plate", "tests/providers/test_automotive.py::TestPtBr::test_license_plate", "tests/providers/test_automotive.py:...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add zh_TW automotive license_plate rules and test functions ### What does this change add zh_TW automotive license_plate rules ### What was wrong was not implemented ever. ### How this fi...
6edfdbf6ae90b0153309e3bf066aa3b2d16494a7
softlayer__softlayer-python-1929
1,929
softlayer/softlayer-python
null
13f0fc8ef5b64b42a10955288c9c5b5a289b2541
2023-05-02T15:41:50Z
diff --git a/SoftLayer/CLI/order/cancelation.py b/SoftLayer/CLI/order/cancelation.py new file mode 100644 index 000000000..6bade7ac2 --- /dev/null +++ b/SoftLayer/CLI/order/cancelation.py @@ -0,0 +1,30 @@ +"""List all cancelation.""" +# :license: MIT, see LICENSE for more details. +import click + +from SoftLayer.CLI.co...
diff --git a/tests/CLI/modules/order_tests.py b/tests/CLI/modules/order_tests.py index c175e1b85..dc2c892a6 100644 --- a/tests/CLI/modules/order_tests.py +++ b/tests/CLI/modules/order_tests.py @@ -415,6 +415,11 @@ def test_quote_list(self): self.assert_no_fail(result) self.assert_called_with('SoftLaye...
diff --git a/docs/cli/ordering.rst b/docs/cli/ordering.rst index 93d578cf0..b4f707493 100644 --- a/docs/cli/ordering.rst +++ b/docs/cli/ordering.rst @@ -143,6 +143,10 @@ Quotes :prog: order quote-delete :show-nested: +.. click:: SoftLayer.CLI.order.cancelation:cli + :prog: order cancelation + :show-ne...
[ { "components": [ { "doc": "List all account cancelations", "lines": [ 14, 30 ], "name": "cli", "signature": "def cli(env):", "type": "function" } ], "file": "SoftLayer/CLI/order/cancelation.py" }, { "components": [ ...
[ "tests/CLI/modules/order_tests.py::OrderTests::test_cancelation", "tests/managers/ordering_tests.py::OrderingTests::test_get_all_cancelations" ]
[ "tests/CLI/modules/order_tests.py::OrderTests::test_category_list", "tests/CLI/modules/order_tests.py::OrderTests::test_item_list", "tests/CLI/modules/order_tests.py::OrderTests::test_item_list_category_keyword", "tests/CLI/modules/order_tests.py::OrderTests::test_item_list_location_keyname", "tests/CLI/mod...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> add a new command on order items-cancelation [#issue1927](https://github.com/softlayer/softlayer-python/issues/1927) ![image](https://user-images.githubusercontent.com/22535437/235716009-bc94ec30-f...
bd1ecce1ec4313b9ceefd3cfea52d1b9274fef9d
Textualize__textual-2453
2,453
Textualize/textual
null
e1a8f28f8dbf818b891c3005dc7f0c5b5b18c15f
2023-05-02T10:31:50Z
diff --git a/CHANGELOG.md b/CHANGELOG.md index 75bf2b7c70..61e8213d07 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ### Added - Watch methods can now optionally be private https://github.com/Textualize/textual/issues/2382 +- Add...
diff --git a/tests/test_on.py b/tests/test_on.py new file mode 100644 index 0000000000..411e54217a --- /dev/null +++ b/tests/test_on.py @@ -0,0 +1,104 @@ +import pytest + +from textual import on +from textual._on import OnDecoratorError +from textual.app import App, ComposeResult +from textual.message import Message +f...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 75bf2b7c70..61e8213d07 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ### Added - Watch methods can now optionally be private https://github.com/Textualize/textual/issues/2382 +- Add...
[ { "components": [ { "doc": "", "lines": [ 6, 22 ], "name": "OnDecoratorApp", "signature": "class OnDecoratorApp(App):", "type": "class" }, { "doc": "Three buttons.", "lines": [ 9, 13 ...
[ "tests/test_on.py::test_on_bad_selector", "tests/test_on.py::test_on_no_control" ]
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> On decorator Implement the @on decorator Fixes https://github.com/Textualize/textual/issues/2398 ---------- </request> There are several new functions or classes that need to be implemented, usin...
86e93536b991014e0ea4bf993068202b446bb698
tobymao__sqlglot-1516
1,516
tobymao/sqlglot
null
20cacba59b697c70986baac3e3176875893e16e1
2023-05-02T06:27:49Z
diff --git a/sqlglot/__init__.py b/sqlglot/__init__.py index 5faafb92f4..156f134574 100644 --- a/sqlglot/__init__.py +++ b/sqlglot/__init__.py @@ -21,6 +21,7 @@ Expression as Expression, alias_ as alias, and_ as and_, + coalesce as coalesce, column as column, condition as condition, exc...
diff --git a/tests/test_build.py b/tests/test_build.py index 43707b0347..3f469a5598 100644 --- a/tests/test_build.py +++ b/tests/test_build.py @@ -3,6 +3,7 @@ from sqlglot import ( alias, and_, + coalesce, condition, except_, exp, @@ -18,7 +19,55 @@ class TestBuild(unittest.TestCase): ...
[]
[ "tests/test_build.py::TestBuild::test_build" ]
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Feat: builder methods for basic ops {} ---------- </request> There are several new functions or classes that need to be implemented, using the definitions below: <<NEW DEFINITIONS>> There are sever...
ceb42fabad60312699e4b15936aeebac00e22e4d
conan-io__conan-13796
13,796
conan-io/conan
null
deb13ad983c89386fb2cd8f54e5daf63ba3966b2
2023-05-01T00:25:20Z
diff --git a/conans/client/conf/__init__.py b/conans/client/conf/__init__.py index a9409e2ac41..abda4b8d02e 100644 --- a/conans/client/conf/__init__.py +++ b/conans/client/conf/__init__.py @@ -7,7 +7,7 @@ WindowsStore: version: ["8.1", "10.0"] WindowsCE: - platform: ANY + platform: [ANY...
diff --git a/conans/test/integration/settings/test_settings_possible_values.py b/conans/test/integration/settings/test_settings_possible_values.py new file mode 100644 index 00000000000..26475500352 --- /dev/null +++ b/conans/test/integration/settings/test_settings_possible_values.py @@ -0,0 +1,59 @@ +import textwrap +...
[ { "components": [ { "doc": "", "lines": [ 155, 161 ], "name": "SettingsItem.possible_values", "signature": "def possible_values(self):", "type": "function" }, { "doc": "Check the range of values of the definition of a ...
[ "conans/test/integration/settings/test_settings_possible_values.py::test_settings_definitions", "conans/test/integration/settings/test_settings_possible_values.py::test_settings_definitions_compiler", "conans/test/unittests/model/settings_test.py::test_possible_values" ]
[ "conans/test/unittests/model/settings_test.py::SettingsLoadsTest::test_any", "conans/test/unittests/model/settings_test.py::SettingsLoadsTest::test_get_safe", "conans/test/unittests/model/settings_test.py::SettingsLoadsTest::test_getattr_none", "conans/test/unittests/model/settings_test.py::SettingsLoadsTest:...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> test settings.possible_values() Changelog: Feature: New ``settings.possible_values()`` method to query the range of possible values for a setting. Docs: https://github.com/conan-io/docs/pull/3212 Cl...
4a5b19a75db9225316c8cb022a2dfb9705a2af34
tobymao__sqlglot-1501
1,501
tobymao/sqlglot
null
2ef687d6b91d8549f06c8d1d3fe85ce85b74dd45
2023-04-28T19:28:51Z
diff --git a/sqlglot/dialects/presto.py b/sqlglot/dialects/presto.py index e0f15410ae..489d4394e9 100644 --- a/sqlglot/dialects/presto.py +++ b/sqlglot/dialects/presto.py @@ -265,7 +265,6 @@ class Generator(generator.Generator): TRANSFORMS = { **generator.Generator.TRANSFORMS, # type: ignore ...
diff --git a/tests/dialects/test_presto.py b/tests/dialects/test_presto.py index 8d33d10ccd..3d4ea7f13a 100644 --- a/tests/dialects/test_presto.py +++ b/tests/dialects/test_presto.py @@ -676,3 +676,41 @@ def test_json(self): "presto": "SELECT CAST(ARRAY[1, 23, 456] AS JSON)", }, )...
[]
[ "tests/dialects/test_presto.py::TestPresto::test_explode_to_unnest" ]
[ "tests/dialects/test_presto.py::TestPresto::test_cast", "tests/dialects/test_presto.py::TestPresto::test_ddl", "tests/dialects/test_presto.py::TestPresto::test_encode_decode", "tests/dialects/test_presto.py::TestPresto::test_hex_unhex", "tests/dialects/test_presto.py::TestPresto::test_interval_plural_to_sin...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Feat(presto): transpile explode/posexplode into (cross join) unnest Fixes #1495 cc: @vegarsti I included the test cases you've added to the harmonizer repo, adapted appropriately. ---------- </requ...
Here is the discussion in the issues of the pull request. <issues> Transform exp.Explode and exp.Posexplode into exp.Unnest In some languages (at least Spark SQL), `select explode(array_col) as a` will unravel the `array_col` such that each element is on one line. If this is selected along with other columns, this is s...
ceb42fabad60312699e4b15936aeebac00e22e4d
astropy__astropy-14701
14,701
astropy/astropy
5.2
a429c3984a14c995584455e51a6f3d7d9c16e914
2023-04-27T11:59:59Z
diff --git a/astropy/cosmology/io/__init__.py b/astropy/cosmology/io/__init__.py index 9ed9a995e638..f2a2d30a34a7 100644 --- a/astropy/cosmology/io/__init__.py +++ b/astropy/cosmology/io/__init__.py @@ -5,4 +5,4 @@ """ # Import to register with the I/O machinery -from . import cosmology, ecsv, html, mapping, model,...
diff --git a/astropy/cosmology/io/tests/test_latex.py b/astropy/cosmology/io/tests/test_latex.py new file mode 100644 index 000000000000..94d983ad2f8e --- /dev/null +++ b/astropy/cosmology/io/tests/test_latex.py @@ -0,0 +1,78 @@ +# Licensed under a 3-clause BSD style license - see LICENSE.rst + +# THIRD PARTY +import p...
diff --git a/docs/changes/cosmology/14701.feature.rst b/docs/changes/cosmology/14701.feature.rst new file mode 100644 index 000000000000..9fcb7f654475 --- /dev/null +++ b/docs/changes/cosmology/14701.feature.rst @@ -0,0 +1,1 @@ +Added a ``write_latex()`` method for exporting a Cosmology object to a LaTex table. diff --...
[ { "components": [ { "doc": "Serialize the |Cosmology| into a LaTeX.\n\nParameters\n----------\ncosmology : `~astropy.cosmology.Cosmology` subclass instance\nfile : path-like or file-like\n Location to save the serialized cosmology.\n\noverwrite : bool\n Whether to overwrite the file, if it e...
[ "astropy/cosmology/io/tests/test_latex.py::TestReadWriteLaTex::test_to_latex_failed_cls[cosmo0]", "astropy/cosmology/io/tests/test_latex.py::TestReadWriteLaTex::test_to_latex_cls[cosmo0-QTable]", "astropy/cosmology/io/tests/test_latex.py::TestReadWriteLaTex::test_to_latex_cls[cosmo0-Table]", "astropy/cosmolog...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> #12355 Issue: Register latex to Cosmology.write <!-- This comments are hidden when you submit the pull request, so you do not need to remove them! --> <!-- Please be sure to check out our contribu...
Here is the discussion in the issues of the pull request. <issues> Register ``latex`` to ``Cosmology.write`` Cosmology can now read and write to files. It would be nice to register with ``Cosmology.write`` a method for exporting a Cosmology to a Latex table. There are good examples of IO with Cosmology at https://gi...
32bd0ffb6898c6a57b9ec1a55c13c7a0efe8d273
matplotlib__matplotlib-25779
25,779
matplotlib/matplotlib
3.7
06305a2f5dc589888697b3b909859103b8259153
2023-04-27T11:44:41Z
diff --git a/doc/users/next_whats_new/get_vertices_co_vertices.rst b/doc/users/next_whats_new/get_vertices_co_vertices.rst new file mode 100644 index 000000000000..98254a82ce63 --- /dev/null +++ b/doc/users/next_whats_new/get_vertices_co_vertices.rst @@ -0,0 +1,7 @@ +``Ellipse.get_vertices()``, ``Ellipse.get_co_vertice...
diff --git a/lib/matplotlib/tests/test_patches.py b/lib/matplotlib/tests/test_patches.py index b9e1db32d419..fd872bac98d4 100644 --- a/lib/matplotlib/tests/test_patches.py +++ b/lib/matplotlib/tests/test_patches.py @@ -104,6 +104,57 @@ def test_corner_center(): assert_almost_equal(ellipse.get_corners(), corners_ro...
diff --git a/doc/users/next_whats_new/get_vertices_co_vertices.rst b/doc/users/next_whats_new/get_vertices_co_vertices.rst new file mode 100644 index 000000000000..98254a82ce63 --- /dev/null +++ b/doc/users/next_whats_new/get_vertices_co_vertices.rst @@ -0,0 +1,7 @@ +``Ellipse.get_vertices()``, ``Ellipse.get_co_vertice...
[ { "components": [ { "doc": "", "lines": [ 1657, 1658 ], "name": "Ellipse._calculate_length_between_points", "signature": "def _calculate_length_between_points(self, x0, y0, x1, y1):", "type": "function" }, { "doc": "Re...
[ "lib/matplotlib/tests/test_patches.py::test_ellipse_vertices" ]
[ "lib/matplotlib/tests/test_patches.py::test_Polygon_close", "lib/matplotlib/tests/test_patches.py::test_corner_center", "lib/matplotlib/tests/test_patches.py::test_rotate_rect", "lib/matplotlib/tests/test_patches.py::test_rotate_rect_draw[png]", "lib/matplotlib/tests/test_patches.py::test_dash_offset_patch_...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Adding ellipse_arrow.py example and closes #25477 ## PR Summary In this PR I want to add a Demo file. This Demo shows how an ellipse is plotted with an additional arrow showing the orientation of r...
Here is the discussion in the issues of the pull request. <issues> Plot ellipse with arrow showing rotation ### Problem I'm trying to plot an [ellipse](https://matplotlib.org/stable/api/_as_gen/matplotlib.patches.Ellipse.html#matplotlib.patches.Ellipse) together with an arrow showing a rotation clockwise or counterclo...
a4dca24d04f928a9e614db403c716237446140b2
tobymao__sqlglot-1486
1,486
tobymao/sqlglot
null
7c1f995b7d9345abfed5fe1fee9b0d5c8d301cb0
2023-04-26T17:06:36Z
diff --git a/sqlglot/dialects/bigquery.py b/sqlglot/dialects/bigquery.py index 7adfa7ac3d..afc9f6f21a 100644 --- a/sqlglot/dialects/bigquery.py +++ b/sqlglot/dialects/bigquery.py @@ -144,6 +144,11 @@ class Tokenizer(tokens.Tokenizer): KEYWORDS.pop("DIV") class Parser(parser.Parser): + PREFIXED_PI...
diff --git a/tests/test_parser.py b/tests/test_parser.py index 459382e4b1..21bc1fdb5d 100644 --- a/tests/test_parser.py +++ b/tests/test_parser.py @@ -377,3 +377,96 @@ def test_rename_table(self): parse_one("ALTER TABLE foo RENAME TO bar").sql(), "ALTER TABLE foo RENAME TO bar", ) + +...
[]
[ "tests/test_parser.py::TestParser::test_pivot_columns" ]
[ "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> Feat: infer PIVOT column names at parse time This is the first step towards fixing the optimization of PIVOT operators. Since pivots create new (derived?) tables, we need to know the names of the corr...
ceb42fabad60312699e4b15936aeebac00e22e4d
joke2k__faker-1848
1,848
joke2k/faker
null
d93d8a0d42b7a92d8b386d73c85886b2633124e7
2023-04-22T05:52:53Z
diff --git a/faker/providers/phone_number/en_US/__init__.py b/faker/providers/phone_number/en_US/__init__.py index bb0b77df84..ac1367e8bf 100644 --- a/faker/providers/phone_number/en_US/__init__.py +++ b/faker/providers/phone_number/en_US/__init__.py @@ -37,3 +37,14 @@ class Provider(PhoneNumberProvider): "001...
diff --git a/tests/providers/test_phone_number.py b/tests/providers/test_phone_number.py index 8fd54ec316..1bb38daf9e 100644 --- a/tests/providers/test_phone_number.py +++ b/tests/providers/test_phone_number.py @@ -364,3 +364,18 @@ def test_phone_number(self, faker, num_samples): for _ in range(num_samples): ...
[ { "components": [ { "doc": "", "lines": [ 48, 50 ], "name": "Provider.basic_phone_number", "signature": "def basic_phone_number(self) -> str:", "type": "function" } ], "file": "faker/providers/phone_number/en_US/__init__.py"...
[ "tests/providers/test_phone_number.py::TestEnUs::test_basic_phone_number" ]
[ "tests/providers/test_phone_number.py::TestPhoneNumber::test_country_calling_code", "tests/providers/test_phone_number.py::TestPhoneNumber::test_msisdn", "tests/providers/test_phone_number.py::TestAzAz::test_phone_number", "tests/providers/test_phone_number.py::TestAzAz::test_cellphone_number", "tests/provi...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> add a separate basic number format for US issue ticket: https://github.com/joke2k/faker/issues/1847 ### What does this change Adds a 'basic phone number' type to en_US to comply with some form r...
6edfdbf6ae90b0153309e3bf066aa3b2d16494a7
softlayer__softlayer-python-1919
1,919
softlayer/softlayer-python
null
5c08bac8a6a46f6560b09f8b70dc1d918db1fed5
2023-04-19T20:49:53Z
diff --git a/SoftLayer/CLI/routes.py b/SoftLayer/CLI/routes.py index 9550b9274..104d8d455 100644 --- a/SoftLayer/CLI/routes.py +++ b/SoftLayer/CLI/routes.py @@ -389,6 +389,7 @@ ('user:remove-access', 'SoftLayer.CLI.user.remove_access:cli'), ('user:grant-access', 'SoftLayer.CLI.user.grant_access:cli'), ('...
diff --git a/tests/CLI/modules/sshkey_tests.py b/tests/CLI/modules/sshkey_tests.py index c4646f7b8..858175900 100644 --- a/tests/CLI/modules/sshkey_tests.py +++ b/tests/CLI/modules/sshkey_tests.py @@ -118,7 +118,7 @@ def test_print_key(self): {'id': 1234, 'label': 'label', 'notes': 'notes'}) ...
diff --git a/docs/cli/users.rst b/docs/cli/users.rst index c1f2d79e2..e3d45bb1d 100644 --- a/docs/cli/users.rst +++ b/docs/cli/users.rst @@ -64,3 +64,7 @@ Version 5.6.0 introduces the ability to interact with user accounts from the cli :prog: user vpn-password :show-nested: +.. click:: SoftLayer.CLI.user.ap...
[ { "components": [ { "doc": "Allows to create, remove or refresh user's API authentication key.\n\nEach user can only have a single API key.", "lines": [ 19, 47 ], "name": "cli", "signature": "def cli(env, identifier, add, remove, refresh):", ...
[ "tests/CLI/modules/user_tests.py::UserCLITests::test_add_api_authentication_key", "tests/CLI/modules/user_tests.py::UserCLITests::test_api_key_with_all_option", "tests/CLI/modules/user_tests.py::UserCLITests::test_api_key_without_option", "tests/CLI/modules/user_tests.py::UserCLITests::test_refresh_api_authen...
[ "tests/CLI/modules/sshkey_tests.py::SshKeyTests::test_add_by_file", "tests/CLI/modules/sshkey_tests.py::SshKeyTests::test_add_by_option", "tests/CLI/modules/sshkey_tests.py::SshKeyTests::test_add_with_key_file_and_key_argument_errors", "tests/CLI/modules/sshkey_tests.py::SshKeyTests::test_add_without_key_erro...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> New Command: `slcli user apikey` Related to: https://github.com/softlayer/softlayer-python/issues/1906 Issue: https://github.com/softlayer/softlayer-python/issues/1913 Observations: the new command ...
bd1ecce1ec4313b9ceefd3cfea52d1b9274fef9d
softlayer__softlayer-python-1918
1,918
softlayer/softlayer-python
null
298cb142cd974d2f41a68e75f82c97c0301777d8
2023-04-19T19:05:44Z
diff --git a/SoftLayer/CLI/order/quote_delete.py b/SoftLayer/CLI/order/quote_delete.py new file mode 100644 index 000000000..2b00ad3a0 --- /dev/null +++ b/SoftLayer/CLI/order/quote_delete.py @@ -0,0 +1,20 @@ +"""Delete the quote of an order""" +# :license: MIT, see LICENSE for more details. +import click + +from SoftLa...
diff --git a/tests/CLI/modules/order_tests.py b/tests/CLI/modules/order_tests.py index 88c5d8693..c175e1b85 100644 --- a/tests/CLI/modules/order_tests.py +++ b/tests/CLI/modules/order_tests.py @@ -442,6 +442,11 @@ def test_order_lookup(self): self.assertIn('Ordered By', result.output) self.assertIn('I...
diff --git a/docs/cli/ordering.rst b/docs/cli/ordering.rst index 740438a69..93d578cf0 100644 --- a/docs/cli/ordering.rst +++ b/docs/cli/ordering.rst @@ -139,6 +139,10 @@ Quotes :prog: order place-quote :show-nested: +.. click:: SoftLayer.CLI.order.quote_delete:cli + :prog: order quote-delete + :show-n...
[ { "components": [ { "doc": "Delete the quote of an order", "lines": [ 13, 20 ], "name": "cli", "signature": "def cli(env, identifier):", "type": "function" } ], "file": "SoftLayer/CLI/order/quote_delete.py" }, { "com...
[ "tests/CLI/modules/order_tests.py::OrderTests::test_quote_delete", "tests/managers/ordering_tests.py::OrderingTests::test_delete_quote" ]
[ "tests/CLI/modules/order_tests.py::OrderTests::test_category_list", "tests/CLI/modules/order_tests.py::OrderTests::test_item_list", "tests/CLI/modules/order_tests.py::OrderTests::test_item_list_category_keyword", "tests/CLI/modules/order_tests.py::OrderTests::test_item_list_location_keyname", "tests/CLI/mod...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> New command: slcli order quote-delete [#issue1915](https://github.com/softlayer/softlayer-python/issues/1915) ![image](https://user-images.githubusercontent.com/22535437/233175258-8846b6f5-41e7-4f2...
bd1ecce1ec4313b9ceefd3cfea52d1b9274fef9d
conan-io__conan-13718
13,718
conan-io/conan
null
0efbe7e49fdf554da4d897735b357d85b2a75aca
2023-04-19T08:22:05Z
diff --git a/conan/api/subapi/install.py b/conan/api/subapi/install.py index 14e94f172bc..71ba81889cb 100644 --- a/conan/api/subapi/install.py +++ b/conan/api/subapi/install.py @@ -69,4 +69,4 @@ def install_consumer(self, deps_graph, generators=None, source_folder=None, outp conanfile.generators = list(set(c...
diff --git a/conans/test/integration/generators/test_custom_global_generators.py b/conans/test/integration/generators/test_custom_global_generators.py new file mode 100644 index 00000000000..e59653ad4f3 --- /dev/null +++ b/conans/test/integration/generators/test_custom_global_generators.py @@ -0,0 +1,81 @@ +import os +...
[ { "components": [ { "doc": "", "lines": [ 192, 193 ], "name": "ClientCache.custom_generators_path", "signature": "def custom_generators_path(self):", "type": "function" } ], "file": "conans/client/cache/cache.py" }, { ...
[ "conans/test/integration/generators/test_custom_global_generators.py::test_custom_global_generator", "conans/test/integration/generators/test_custom_global_generators.py::test_custom_global_generator_imports" ]
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> custom global generators in cache extensions/generators folder Changelog: Feature: New global custom generators in cache "extensions/generators" that can be used by name. Docs: https://github.com/con...
4a5b19a75db9225316c8cb022a2dfb9705a2af34
matplotlib__matplotlib-25686
25,686
matplotlib/matplotlib
3.7
b86ebbafe4673583345d0a01a6ea205af34c58dc
2023-04-14T21:31:42Z
diff --git a/doc/users/next_whats_new/get_suptitle.rst b/doc/users/next_whats_new/get_suptitle.rst new file mode 100644 index 000000000000..b03ad10b1b4c --- /dev/null +++ b/doc/users/next_whats_new/get_suptitle.rst @@ -0,0 +1,4 @@ +``Figure.get_suptitle()``, ``Figure.get_supxlabel()``, ``Figure.get_supylabel()`` +~~~~~...
diff --git a/lib/matplotlib/tests/test_figure.py b/lib/matplotlib/tests/test_figure.py index 4188ca878fed..d8f137ddd61a 100644 --- a/lib/matplotlib/tests/test_figure.py +++ b/lib/matplotlib/tests/test_figure.py @@ -302,6 +302,19 @@ def test_suptitle_subfigures(): assert sf2.get_facecolor() == (1.0, 1.0, 1.0, 1.0) ...
diff --git a/doc/users/next_whats_new/get_suptitle.rst b/doc/users/next_whats_new/get_suptitle.rst new file mode 100644 index 000000000000..b03ad10b1b4c --- /dev/null +++ b/doc/users/next_whats_new/get_suptitle.rst @@ -0,0 +1,4 @@ +``Figure.get_suptitle()``, ``Figure.get_supxlabel()``, ``Figure.get_supylabel()`` +~~~~~...
[ { "components": [ { "doc": "Return the suptitle as string or an empty string if not set.", "lines": [ 391, 394 ], "name": "FigureBase.get_suptitle", "signature": "def get_suptitle(self):", "type": "function" }, { "doc"...
[ "lib/matplotlib/tests/test_figure.py::test_get_suptitle_supxlabel_supylabel" ]
[ "lib/matplotlib/tests/test_figure.py::test_align_labels[png]", "lib/matplotlib/tests/test_figure.py::test_align_labels_stray_axes", "lib/matplotlib/tests/test_figure.py::test_figure_label", "lib/matplotlib/tests/test_figure.py::test_fignum_exists", "lib/matplotlib/tests/test_figure.py::test_clf_keyword", ...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add Figure methods get_suptitle(), get_subxlabel(), get_supylabel() ## PR Summary We had no public API to optain these values. The API is modelled analogous to `Axes.get_title()` / `Axes.get_x/ylab...
a4dca24d04f928a9e614db403c716237446140b2
softlayer__softlayer-python-1910
1,910
softlayer/softlayer-python
null
182f7b3b73d28946c933f617cfe52bc604d6ef79
2023-04-14T16:25:24Z
diff --git a/SoftLayer/CLI/routes.py b/SoftLayer/CLI/routes.py index 63f8e7b78..fc7ae3b97 100644 --- a/SoftLayer/CLI/routes.py +++ b/SoftLayer/CLI/routes.py @@ -387,6 +387,7 @@ ('user:vpn-subnet', 'SoftLayer.CLI.user.vpn_subnet:cli'), ('user:remove-access', 'SoftLayer.CLI.user.remove_access:cli'), ('user...
diff --git a/tests/CLI/modules/user_tests.py b/tests/CLI/modules/user_tests.py index 72c0a8fc7..f863da2fd 100644 --- a/tests/CLI/modules/user_tests.py +++ b/tests/CLI/modules/user_tests.py @@ -378,3 +378,12 @@ def test_remove_without_device(self): result = self.run_command(['user', 'remove-access', '123456']) ...
diff --git a/docs/cli/users.rst b/docs/cli/users.rst index 55d0cf399..c1f2d79e2 100644 --- a/docs/cli/users.rst +++ b/docs/cli/users.rst @@ -60,4 +60,7 @@ Version 5.6.0 introduces the ability to interact with user accounts from the cli :prog: user grant-access :show-nested: +.. click:: SoftLayer.CLI.user.vp...
[ { "components": [ { "doc": "Set the user VPN password.\n\nExample: slcli user vpn-password 123456 --password=Mypassword1.", "lines": [ 16, 26 ], "name": "cli", "signature": "def cli(env, identifier, password):", "type": "function" }...
[ "tests/CLI/modules/user_tests.py::UserCLITests::test_remove_without_password", "tests/CLI/modules/user_tests.py::UserCLITests::test_update_vpn_password", "tests/managers/user_tests.py::UserManagerTests::test_update_vpn_password" ]
[ "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 vpn-password` Related to: https://github.com/softlayer/softlayer-python/issues/1906, task 1 of 3 Issue: https://github.com/softlayer/softlayer-python/issues/1908 Observation...
bd1ecce1ec4313b9ceefd3cfea52d1b9274fef9d
googleapis__python-aiplatform-2095
2,095
googleapis/python-aiplatform
null
29d4e45839180f50163de04cd0802ee88d8dd926
2023-04-13T17:30:54Z
diff --git a/google/cloud/aiplatform/__init__.py b/google/cloud/aiplatform/__init__.py index 6fe4fede5e..c265005120 100644 --- a/google/cloud/aiplatform/__init__.py +++ b/google/cloud/aiplatform/__init__.py @@ -70,6 +70,7 @@ AutoMLForecastingTrainingJob, SequenceToSequencePlusForecastingTrainingJob, Temp...
diff --git a/tests/system/aiplatform/test_e2e_forecasting.py b/tests/system/aiplatform/test_e2e_forecasting.py index cae8c81cfe..938d0e27b5 100644 --- a/tests/system/aiplatform/test_e2e_forecasting.py +++ b/tests/system/aiplatform/test_e2e_forecasting.py @@ -42,10 +42,8 @@ class TestEndToEndForecasting(e2e_base.TestEnd...
[ { "components": [ { "doc": "Class to train Time series Dense Encoder (TiDE) forecasting models.", "lines": [ 5260, 5265 ], "name": "TimeSeriesDenseEncoderForecastingTrainingJob", "signature": "class TimeSeriesDenseEncoderForecastingTrainingJob(_F...
[ "tests/unit/aiplatform/test_automl_forecasting_training_jobs.py::TestForecastingTrainingJob::test_run_call_pipeline_service_create[AutoMLForecastingTrainingJob-True]", "tests/unit/aiplatform/test_automl_forecasting_training_jobs.py::TestForecastingTrainingJob::test_run_call_pipeline_service_create[AutoMLForecasti...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> feat: Adds the Time series Dense Encoder (TiDE) forecasting job. feat: Adds the Time series Dense Encoder (TiDE) forecasting job. FUTURE_COPYBARA_INTEGRATE_REVIEW=https://github.com/googleapis/python...
67358fa6a830eb842f6b52d09061af4a41b54af6
conan-io__conan-13680
13,680
conan-io/conan
null
d66a3c00ef66947ec8c9e0b2bfba69cfcdce7387
2023-04-12T21:57:23Z
diff --git a/conan/cli/printers/graph.py b/conan/cli/printers/graph.py index 3c8161946d9..8dc6c55f138 100644 --- a/conan/cli/printers/graph.py +++ b/conan/cli/printers/graph.py @@ -65,6 +65,12 @@ def _format_resolved(title, reqs_to_print): output.warning("Consider using version-ranges instead.") _format_r...
diff --git a/conans/test/integration/command/install/install_missing_dep_test.py b/conans/test/integration/command/install/install_missing_dep_test.py index 27725c71281..658130c1fa6 100644 --- a/conans/test/integration/command/install/install_missing_dep_test.py +++ b/conans/test/integration/command/install/install_mis...
[ { "components": [ { "doc": "", "lines": [ 237, 287 ], "name": "Overrides", "signature": "class Overrides:", "type": "class" }, { "doc": "", "lines": [ 238, 239 ], "name": "Ov...
[ "conans/test/integration/command/install/install_missing_dep_test.py::InstallMissingDependency::test_missing_dep", "conans/test/integration/graph/conflict_diamond_test.py::TestConflictDiamondTest::test_version_diamond_conflict" ]
[ "conans/test/integration/command/install/install_missing_dep_test.py::InstallMissingDependency::test_missing_multiple_dep" ]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Reporting overrides in the graph Changelog: Feature: Computing and reporting the ``overrides`` in the graph, and in the ``graph build-order`` Docs: Omit ---------- </request> There are several new ...
4a5b19a75db9225316c8cb022a2dfb9705a2af34
softlayer__softlayer-python-1898
1,898
softlayer/softlayer-python
null
3c1080b99fff4a52ad39679ef63ac7c23d6ab49a
2023-04-04T14:57:32Z
diff --git a/SoftLayer/CLI/cdn/create.py b/SoftLayer/CLI/cdn/create.py new file mode 100644 index 000000000..c23d91e51 --- /dev/null +++ b/SoftLayer/CLI/cdn/create.py @@ -0,0 +1,56 @@ +"""Create a CDN domain mapping.""" +# :license: MIT, see LICENSE for more details. + +import click + +import SoftLayer +from SoftLayer....
diff --git a/tests/CLI/modules/cdn_tests.py b/tests/CLI/modules/cdn_tests.py index a7dfa340d..2e368261e 100644 --- a/tests/CLI/modules/cdn_tests.py +++ b/tests/CLI/modules/cdn_tests.py @@ -123,3 +123,40 @@ def test_edit_cache_by_uniqueId(self): self.assert_no_fail(result) header_result = json.loads(re...
diff --git a/docs/cli/cdn.rst b/docs/cli/cdn.rst index 3b749995c..de9e7c6f7 100644 --- a/docs/cli/cdn.rst +++ b/docs/cli/cdn.rst @@ -31,3 +31,11 @@ Interacting with CDN .. click:: SoftLayer.CLI.cdn.edit:cli :prog: cdn edit :show-nested: + +.. click:: SoftLayer.CLI.cdn.delete:cli + :prog: cdn delete + :show...
[ { "components": [ { "doc": "Create a CDN domain mapping.", "lines": [ 31, 56 ], "name": "cli", "signature": "def cli(env, hostname, origin, origin_type, http, https, bucket_name, cname, header, path, ssl):", "type": "function" } ...
[ "tests/CLI/modules/cdn_tests.py::CdnTests::test_create_cdn", "tests/CLI/modules/cdn_tests.py::CdnTests::test_create_cdn_without_hostname", "tests/CLI/modules/cdn_tests.py::CdnTests::test_create_cdn_without_http_or_https", "tests/CLI/modules/cdn_tests.py::CdnTests::test_create_cdn_without_origin", "tests/CLI...
[ "tests/CLI/modules/cdn_tests.py::CdnTests::test_add_origin_server", "tests/CLI/modules/cdn_tests.py::CdnTests::test_add_origin_storage", "tests/CLI/modules/cdn_tests.py::CdnTests::test_add_origin_storage_with_file_extensions", "tests/CLI/modules/cdn_tests.py::CdnTests::test_add_origin_without_storage", "tes...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Added new command - slcli cdn create Issue: #1897 ``` softlayer-python/ (issue1897 *) $ slcli cdn create --hostname www.test.com --origin 123.123.123.123 --http 80 ┌──────────────────┬────────────...
bd1ecce1ec4313b9ceefd3cfea52d1b9274fef9d
conan-io__conan-13607
13,607
conan-io/conan
null
5bb2b8ddd7b23f460c1b81ee82c78aaf56c208ad
2023-04-04T08:28:37Z
diff --git a/conan/tools/cmake/cmakedeps/cmakedeps.py b/conan/tools/cmake/cmakedeps/cmakedeps.py index a4f65ed4631..e36f1fd5742 100644 --- a/conan/tools/cmake/cmakedeps/cmakedeps.py +++ b/conan/tools/cmake/cmakedeps/cmakedeps.py @@ -9,6 +9,7 @@ from conan.tools.cmake.cmakedeps.templates.target_configuration import Tar...
diff --git a/conans/test/functional/command/test_install_deploy.py b/conans/test/functional/command/test_install_deploy.py index 637f89fd18b..46915fdb5aa 100644 --- a/conans/test/functional/command/test_install_deploy.py +++ b/conans/test/functional/command/test_install_deploy.py @@ -13,31 +13,47 @@ from conans.util.f...
[ { "components": [ { "doc": "", "lines": [ 176, 185 ], "name": "relativize_generated_file", "signature": "def relativize_generated_file(content, conanfile, placeholder):", "type": "function" } ], "file": "conans/client/genera...
[ "conans/test/integration/toolchains/cmake/test_cmaketoolchain.py::test_pkg_config_block" ]
[ "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/functional/command/test_install_deploy.py::test_builtin_full_deploy", "conans/test/functional/command/test_install_deploy.py::test_deploy_re...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Feature/relativize generators Changelog: Feature: Make CMakeDeps, CMakeToolchain and Environment (.bat, Windows only) generated files have relative paths. Docs: Omit Continuation of https://github...
4a5b19a75db9225316c8cb022a2dfb9705a2af34
scikit-learn__scikit-learn-26029
26,029
scikit-learn/scikit-learn
1.3
c3bfe86b45577a9405a4680d9971efa9594a0657
2023-03-30T17:54:38Z
diff --git a/sklearn/utils/_array_api.py b/sklearn/utils/_array_api.py index fff8e1ee33a49..133729743da7c 100644 --- a/sklearn/utils/_array_api.py +++ b/sklearn/utils/_array_api.py @@ -4,6 +4,58 @@ import scipy.special as special +def _is_numpy_namespace(xp): + """Return True if xp is backed by NumPy.""" + r...
diff --git a/sklearn/utils/tests/test_array_api.py b/sklearn/utils/tests/test_array_api.py index 7318382ae9d66..ba690d7d54c4a 100644 --- a/sklearn/utils/tests/test_array_api.py +++ b/sklearn/utils/tests/test_array_api.py @@ -187,3 +187,42 @@ def test_convert_estimator_to_array_api(): new_est = _estimator_with_co...
[ { "components": [ { "doc": "Return True if xp is backed by NumPy.", "lines": [ 7, 9 ], "name": "_is_numpy_namespace", "signature": "def _is_numpy_namespace(xp):", "type": "function" }, { "doc": "Returns a boolean indic...
[ "sklearn/utils/tests/test_array_api.py::test_get_namespace_array_api_isdtype[_NumPyApiWrapper]" ]
[ "sklearn/utils/tests/test_array_api.py::test_asarray_with_order[False]" ]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> ENH Adds isdtype to Array API wrapper <!-- Thanks for contributing a pull request! Please ensure you have taken a look at the contribution guidelines: https://github.com/scikit-learn/scikit-learn/bl...
314f7babcda8fd5e6813b8a6ed31d87af0efdc62
softlayer__softlayer-python-1896
1,896
softlayer/softlayer-python
null
3c1080b99fff4a52ad39679ef63ac7c23d6ab49a
2023-03-30T15:04:33Z
diff --git a/SoftLayer/CLI/cdn/delete.py b/SoftLayer/CLI/cdn/delete.py new file mode 100644 index 000000000..b089e9ef4 --- /dev/null +++ b/SoftLayer/CLI/cdn/delete.py @@ -0,0 +1,21 @@ +"""Delete a CDN domain mapping.""" +# :license: MIT, see LICENSE for more details. + +import click + +import SoftLayer +from SoftLayer....
diff --git a/tests/CLI/modules/cdn_tests.py b/tests/CLI/modules/cdn_tests.py index a7dfa340d..759a4b36f 100644 --- a/tests/CLI/modules/cdn_tests.py +++ b/tests/CLI/modules/cdn_tests.py @@ -123,3 +123,8 @@ def test_edit_cache_by_uniqueId(self): self.assert_no_fail(result) header_result = json.loads(res...
diff --git a/docs/cli/cdn.rst b/docs/cli/cdn.rst index 3b749995c..23bd215f1 100644 --- a/docs/cli/cdn.rst +++ b/docs/cli/cdn.rst @@ -31,3 +31,7 @@ Interacting with CDN .. click:: SoftLayer.CLI.cdn.edit:cli :prog: cdn edit :show-nested: + +.. click:: SoftLayer.CLI.cdn.delete:cli + :prog: cdn delete + :show-...
[ { "components": [ { "doc": "Delete a CDN domain mapping.", "lines": [ 13, 21 ], "name": "cli", "signature": "def cli(env, unique_id):", "type": "function" } ], "file": "SoftLayer/CLI/cdn/delete.py" }, { "components":...
[ "tests/CLI/modules/cdn_tests.py::CdnTests::test_delete_cdn", "tests/managers/cdn_tests.py::CDNTests::test_delete_cdn" ]
[ "tests/CLI/modules/cdn_tests.py::CdnTests::test_add_origin_server", "tests/CLI/modules/cdn_tests.py::CdnTests::test_add_origin_storage", "tests/CLI/modules/cdn_tests.py::CdnTests::test_add_origin_storage_with_file_extensions", "tests/CLI/modules/cdn_tests.py::CdnTests::test_add_origin_without_storage", "tes...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Added new command - slcli cdn delete Issue link: #1895 ``` softlayer-python/ (issue1895) $ slcli cdn delete 214030593705200 Cdn with uniqueId: 214030593705200 was deleted. ``` ---------- </request...
bd1ecce1ec4313b9ceefd3cfea52d1b9274fef9d
Project-MONAI__MONAI-6250
6,250
Project-MONAI/MONAI
null
9a5b900a8ebc9ac7316d8a41085ef6c7c94f4698
2023-03-27T22:22:29Z
diff --git a/monai/losses/ssim_loss.py b/monai/losses/ssim_loss.py index e8e5d0c2ba..8ea3eb116b 100644 --- a/monai/losses/ssim_loss.py +++ b/monai/losses/ssim_loss.py @@ -11,18 +11,18 @@ from __future__ import annotations +from collections.abc import Sequence + import torch from torch.nn.modules.loss import _Los...
diff --git a/tests/test_ssim_loss.py b/tests/test_ssim_loss.py index a4ba66300b..d3b95b950a 100644 --- a/tests/test_ssim_loss.py +++ b/tests/test_ssim_loss.py @@ -13,58 +13,44 @@ import unittest +import numpy as np import torch -from parameterized import parameterized from monai.losses.ssim_loss import SSIMLos...
[ { "components": [ { "doc": "", "lines": [ 235, 237 ], "name": "KernelType", "signature": "class KernelType(StrEnum):", "type": "class" }, { "doc": "Computes 2D or 3D gaussian kernel.\n\nArgs:\n spatial_dims: number ...
[ "tests/test_ssim_loss.py::TestSSIMLoss::test_script", "tests/test_ssim_loss.py::TestSSIMLoss::test_shape", "tests/test_ssim_metric.py::TestSSIMMetric::test2d_gaussian", "tests/test_ssim_metric.py::TestSSIMMetric::test2d_uniform", "tests/test_ssim_metric.py::TestSSIMMetric::test3d_gaussian" ]
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add new version of the SSIM metric fixes https://github.com/Project-MONAI/MONAI/issues/6249 ### Types of changes <!--- Put an `x` in all the boxes that apply, and remove the not applicable items -...
e73257caa79309dcce1e93abf1632f4bfd75b11f
Textualize__rich-2903
2,903
Textualize/rich
null
83c38ebe8b46278e7291d9f3506f732c87b8a848
2023-03-26T15:05:39Z
diff --git a/CHANGELOG.md b/CHANGELOG.md index 63d6f5e545..2ef99e5e80 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semanti...
diff --git a/tests/test_style.py b/tests/test_style.py index bf02af838d..b5c01729ed 100644 --- a/tests/test_style.py +++ b/tests/test_style.py @@ -229,3 +229,25 @@ def test_from_meta(): def test_on(): style = Style.on({"foo": "bar"}, click="CLICK") + Style(color="red") assert style.meta == {"foo": "bar", "@c...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 63d6f5e545..2ef99e5e80 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semanti...
[ { "components": [ { "doc": "Get a copy of this style with link and meta information removed.\n\nReturns:\n Style: New style object.", "lines": [ 649, 669 ], "name": "Style.clear_meta_and_links", "signature": "def clear_meta_and_links(self) -> ...
[ "tests/test_style.py::test_clear_meta_and_links" ]
[ "tests/test_style.py::test_str", "tests/test_style.py::test_ansi_codes", "tests/test_style.py::test_repr", "tests/test_style.py::test_eq", "tests/test_style.py::test_hash", "tests/test_style.py::test_empty", "tests/test_style.py::test_bool", "tests/test_style.py::test_color_property", "tests/test_st...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Added Style.reset method Adds a Style.clear_meta_and_links method ---------- </request> There are several new functions or classes that need to be implemented, using the definitions below: <<NEW DE...
b0661de34bab35af9b4b1d3ba8e28b186b225e84
pvlib__pvlib-python-1705
1,705
pvlib/pvlib-python
0.9
5596be380227cc71ef67fa066683f1edd22606b0
2023-03-23T20:46:35Z
diff --git a/docs/sphinx/source/reference/irradiance/decomposition.rst b/docs/sphinx/source/reference/irradiance/decomposition.rst index f0d1495889..0677d6ac95 100644 --- a/docs/sphinx/source/reference/irradiance/decomposition.rst +++ b/docs/sphinx/source/reference/irradiance/decomposition.rst @@ -15,3 +15,5 @@ DNI est...
diff --git a/pvlib/tests/test_irradiance.py b/pvlib/tests/test_irradiance.py index cffdd23e40..d0158dad1a 100644 --- a/pvlib/tests/test_irradiance.py +++ b/pvlib/tests/test_irradiance.py @@ -246,6 +246,7 @@ def test_haydavies_components(irrad_data, ephem_data, dni_et): assert_allclose(result['horizon'], expected['...
diff --git a/docs/sphinx/source/reference/irradiance/decomposition.rst b/docs/sphinx/source/reference/irradiance/decomposition.rst index f0d1495889..0677d6ac95 100644 --- a/docs/sphinx/source/reference/irradiance/decomposition.rst +++ b/docs/sphinx/source/reference/irradiance/decomposition.rst @@ -15,3 +15,5 @@ DNI est...
[ { "components": [ { "doc": "Determine DNI and DHI from GHI using the Louche model.\n\nParameters\n----------\nghi : numeric\n Global horizontal irradiance. [W/m^2]\n\nsolar_zenith : numeric\n True (not refraction-corrected) zenith angles in decimal\n degrees. Angles must be >=0 and <=90.\...
[ "pvlib/tests/test_irradiance.py::test_louche" ]
[ "pvlib/tests/test_irradiance.py::test_get_extra_radiation[asce-300-1383.636203]", "pvlib/tests/test_irradiance.py::test_get_extra_radiation[asce-300.0-1383.636203]", "pvlib/tests/test_irradiance.py::test_get_extra_radiation[asce-testval2-1383.636203]", "pvlib/tests/test_irradiance.py::test_get_extra_radiation...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Implement `pvlib.irradiance.louche` decomposition model - [x] Fulfills pvl_louche from #2 - [x] I am familiar with the [contributing guidelines](https://pvlib-python.readthedocs.io/en/latest/con...
d53f97e984bfdd268aa92f8bf482ced0edda0110
softlayer__softlayer-python-1892
1,892
softlayer/softlayer-python
null
be23dbb5c4f57e56f5d9e2295d81441993238124
2023-03-23T20:00:25Z
diff --git a/SoftLayer/CLI/account/hook_delete.py b/SoftLayer/CLI/account/hook_delete.py new file mode 100644 index 000000000..c4eda42ba --- /dev/null +++ b/SoftLayer/CLI/account/hook_delete.py @@ -0,0 +1,24 @@ +"""Delete a provisioning script""" +# :license: MIT, see LICENSE for more details. + +import click +import S...
diff --git a/tests/CLI/modules/account_tests.py b/tests/CLI/modules/account_tests.py index 60a572b7e..71a4ad71b 100644 --- a/tests/CLI/modules/account_tests.py +++ b/tests/CLI/modules/account_tests.py @@ -169,3 +169,8 @@ def test_created_provisioning_hook(self): result = self.run_command(['account', 'hook-crea...
diff --git a/docs/cli/account.rst b/docs/cli/account.rst index c2ac49005..248525cb8 100644 --- a/docs/cli/account.rst +++ b/docs/cli/account.rst @@ -59,3 +59,7 @@ Account Commands .. click:: SoftLayer.CLI.account.hook_create:cli :prog: account hook-create :show-nested: + +.. click:: SoftLayer.CLI.account.hoo...
[ { "components": [ { "doc": "Delete a provisioning script", "lines": [ 15, 24 ], "name": "cli", "signature": "def cli(env, identifier):", "type": "function" } ], "file": "SoftLayer/CLI/account/hook_delete.py" }, { "co...
[ "tests/CLI/modules/account_tests.py::AccountCLITests::test_delete_provisioning_hook", "tests/managers/account_tests.py::AccountManagerTests::test_delete_provisioning_scripts" ]
[ "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_accc...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> new feature on account hook-delete [#issue1889](https://github.com/softlayer/softlayer-python/issues/1889) ![image](https://user-images.githubusercontent.com/22535437/227337287-22ccb07e-a6dc-41ca-9...
bd1ecce1ec4313b9ceefd3cfea52d1b9274fef9d
sqlfluff__sqlfluff-4601
4,601
sqlfluff/sqlfluff
1.4
56973a67277733ef6dd7f640060cc4cb359f8dd8
2023-03-23T19:16:39Z
diff --git a/src/sqlfluff/cli/commands.py b/src/sqlfluff/cli/commands.py index 9b81f463bf6..f870f16f9b0 100644 --- a/src/sqlfluff/cli/commands.py +++ b/src/sqlfluff/cli/commands.py @@ -677,7 +677,9 @@ def lint( timing_summary = result.timing_summary() for step in timing_summary: click.ech...
diff --git a/test/cli/commands_test.py b/test/cli/commands_test.py index 1cf540b21d4..467db3f005a 100644 --- a/test/cli/commands_test.py +++ b/test/cli/commands_test.py @@ -529,6 +529,18 @@ def test__cli__command_lint_parse(command): ), 1, ), + # Test a longer lint fail with --...
[ { "components": [ { "doc": "A dataclass for holding the timings information for a file.", "lines": [ 45, 65 ], "name": "FileTimings", "signature": "class FileTimings:", "type": "class" }, { "doc": "Generate a summary t...
[ "test/core/linter_test.py::test_linted_file_ignore_masked_violations[1_violation_no_ignore]", "test/core/linter_test.py::test_linted_file_ignore_masked_violations[1_violation_ignore_specific_line]", "test/core/linter_test.py::test_linted_file_ignore_masked_violations[1_violation_ignore_different_specific_line]"...
[ "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> --bench output with rule timings This adds more granularity to the `--bench` output so that rule timings are visible (from performance session with @WittierDinosaur). Also adds rule timings to the tim...
792ee30e9b22f757eedc135690d100877784502d
conan-io__conan-13509
13,509
conan-io/conan
null
03a29d352ae7d68751336fa10846e8b03ded5537
2023-03-23T00:01:46Z
diff --git a/conan/tools/files/__init__.py b/conan/tools/files/__init__.py index 2517002f97d..f47cd2beffd 100644 --- a/conan/tools/files/__init__.py +++ b/conan/tools/files/__init__.py @@ -1,5 +1,6 @@ from conan.tools.files.files import load, save, mkdir, rmdir, rm, ftp_download, download, get, \ - rename, chdir, u...
diff --git a/conans/test/functional/tools/scm/test_git.py b/conans/test/functional/tools/scm/test_git.py index 0b3d822a33f..a4e873b86a1 100644 --- a/conans/test/functional/tools/scm/test_git.py +++ b/conans/test/functional/tools/scm/test_git.py @@ -6,6 +6,8 @@ import pytest import six +from conans.test.assets.cmake...
[ { "components": [ { "doc": "replaces the current folder contents with the contents of one child folder. This\nis used in the SCM monorepo flow, when it is necessary to use one subproject subfolder\nto replace the whole cloned git repo\n/base-folder /base-folder\n /pkg (sr...
[ "conans/test/functional/tools/scm/test_git.py::TestGitMonorepoSCMFlow::test_full_scm" ]
[ "conans/test/functional/tools/scm/test_git.py::TestGitBasicCapture::test_capture_commit_local", "conans/test/functional/tools/scm/test_git.py::TestGitBasicCapture::test_capture_remote_url", "conans/test/functional/tools/scm/test_git.py::TestGitBasicCapture::test_capture_remote_pushed_commit", "conans/test/fun...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> new move_folder_contents() file helper to re-arrange repos Changelog: Feature: New ``move_folder_contents()`` file helper to re-arrange repos folders. Docs: https://github.com/conan-io/docs/pull/3196...
4a5b19a75db9225316c8cb022a2dfb9705a2af34
softlayer__softlayer-python-1886
1,886
softlayer/softlayer-python
null
2dc1450c96ebe0bd0c3a0d8f06588584ac9156c9
2023-03-22T14:40:50Z
diff --git a/SoftLayer/CLI/account/hook_create.py b/SoftLayer/CLI/account/hook_create.py new file mode 100644 index 000000000..d046c38dd --- /dev/null +++ b/SoftLayer/CLI/account/hook_create.py @@ -0,0 +1,31 @@ +"""Order/create a provisioning script.""" +# :license: MIT, see LICENSE for more details. + +import click + ...
diff --git a/tests/CLI/modules/account_tests.py b/tests/CLI/modules/account_tests.py index 022ef5405..60a572b7e 100644 --- a/tests/CLI/modules/account_tests.py +++ b/tests/CLI/modules/account_tests.py @@ -164,3 +164,8 @@ def test_acccount_provisioning_hook(self): result = self.run_command(['account', 'hooks'])...
diff --git a/docs/cli/account.rst b/docs/cli/account.rst index 33ac4e6b4..c2ac49005 100644 --- a/docs/cli/account.rst +++ b/docs/cli/account.rst @@ -55,3 +55,7 @@ Account Commands .. click:: SoftLayer.CLI.account.hooks:cli :prog: account hooks :show-nested: + +.. click:: SoftLayer.CLI.account.hook_create:cli...
[ { "components": [ { "doc": "Order/create a provisioning script.", "lines": [ 15, 31 ], "name": "cli", "signature": "def cli(env, name, uri):", "type": "function" } ], "file": "SoftLayer/CLI/account/hook_create.py" }, { ...
[ "tests/CLI/modules/account_tests.py::AccountCLITests::test_created_provisioning_hook", "tests/managers/account_tests.py::AccountManagerTests::test_create_provisioning_scripts" ]
[ "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_accc...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> New Command, account hook-create feature [#issue1883](https://github.com/softlayer/softlayer-python/issues/1883) ![image](https://user-images.githubusercontent.com/22535437/226939729-f8da4768-6195-...
bd1ecce1ec4313b9ceefd3cfea52d1b9274fef9d
conan-io__conan-13502
13,502
conan-io/conan
null
f292b0046517cada5adc5c192f5bde49162fb8bd
2023-03-22T14:03:25Z
diff --git a/conan/cli/commands/cache.py b/conan/cli/commands/cache.py index ea03cec7bf2..66997b2521b 100644 --- a/conan/cli/commands/cache.py +++ b/conan/cli/commands/cache.py @@ -77,3 +77,19 @@ def cache_clean(conan_api: ConanAPI, parser, subparser, *args): package_list = conan_api.list.select(ref_pattern, packa...
diff --git a/conans/test/integration/command_v2/test_cache_integrity.py b/conans/test/integration/command_v2/test_cache_integrity.py new file mode 100644 index 00000000000..090e72204d1 --- /dev/null +++ b/conans/test/integration/command_v2/test_cache_integrity.py @@ -0,0 +1,28 @@ +import os + +from conans.test.assets.g...
[ { "components": [ { "doc": "Check the integrity of the local cache for the given references", "lines": [ 83, 95 ], "name": "cache_check_integrity", "signature": "def cache_check_integrity(conan_api: ConanAPI, parser, subparser, *args):", ...
[ "conans/test/integration/command_v2/test_cache_integrity.py::test_cache_integrity" ]
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> feature conan cache check-integrity Changelog: Feature: New ``conan cache check-integrity`` command to replace 1.X legacy ``conan upload --skip-upload --check``. Docs: https://github.com/conan-io/doc...
4a5b19a75db9225316c8cb022a2dfb9705a2af34
matplotlib__matplotlib-25515
25,515
matplotlib/matplotlib
3.7
3218d1f9d3242d29e7d789fd4d27bffcc7da64a4
2023-03-20T18:39:07Z
diff --git a/doc/api/index.rst b/doc/api/index.rst index b9a87f292ffa..8ad4e2e9ea1a 100644 --- a/doc/api/index.rst +++ b/doc/api/index.rst @@ -141,6 +141,7 @@ Alphabetical list of modules: scale_api.rst sphinxext_mathmpl_api.rst sphinxext_plot_directive_api.rst + sphinxext_figmpl_directive_api.rst spi...
diff --git a/lib/matplotlib/tests/test_sphinxext.py b/lib/matplotlib/tests/test_sphinxext.py index 669723be1d55..6624e3b17ba5 100644 --- a/lib/matplotlib/tests/test_sphinxext.py +++ b/lib/matplotlib/tests/test_sphinxext.py @@ -182,3 +182,44 @@ def test_show_source_link_false(tmp_path, plot_html_show_source_link): ...
diff --git a/doc/api/index.rst b/doc/api/index.rst index b9a87f292ffa..8ad4e2e9ea1a 100644 --- a/doc/api/index.rst +++ b/doc/api/index.rst @@ -141,6 +141,7 @@ Alphabetical list of modules: scale_api.rst sphinxext_mathmpl_api.rst sphinxext_plot_directive_api.rst + sphinxext_figmpl_directive_api.rst spi...
[ { "components": [ { "doc": "", "lines": [ 30, 31 ], "name": "figmplnode", "signature": "class figmplnode(nodes.General, nodes.Element):", "type": "class" }, { "doc": "Implements a directive to allow an optional hidpi i...
[ "lib/matplotlib/tests/test_sphinxext.py::test_tinypages", "lib/matplotlib/tests/test_sphinxext.py::test_plot_html_show_source_link", "lib/matplotlib/tests/test_sphinxext.py::test_show_source_link_true[0]", "lib/matplotlib/tests/test_sphinxext.py::test_show_source_link_true[1]", "lib/matplotlib/tests/test_sp...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> DOC/BLD: plot directive srcset ## PR Summary Closes #25497 The `.. plot::` directive currently makes 100 dpi figures, which don't look good on hiDPI screens. This PR uses a new sphinx direc...
Here is the discussion in the issues of the pull request. <issues> [ENH]: hi-res plot directive... ### Problem Our plot directive makes 100-dpi figures for the webpage. These look pretty fuzzy on hiDPI screens, and we should do what we did for sphinx gallery and allow hi-res figures.. ### Proposed solution Not quit...
a4dca24d04f928a9e614db403c716237446140b2
joke2k__faker-1822
1,822
joke2k/faker
null
5de6bf3fb811272b7e13b6da6623ee1fdfa3efe3
2023-03-14T15:09:15Z
diff --git a/faker/providers/python/__init__.py b/faker/providers/python/__init__.py index 8391c60437..0d7070d04a 100644 --- a/faker/providers/python/__init__.py +++ b/faker/providers/python/__init__.py @@ -55,6 +55,40 @@ def _check_signature(self, value_types: Optional[TypesSpec], allowed_types: Opti allo...
diff --git a/tests/providers/test_python.py b/tests/providers/test_python.py index 99f4866dd3..6b79715cd3 100644 --- a/tests/providers/test_python.py +++ b/tests/providers/test_python.py @@ -3,6 +3,7 @@ import unittest import warnings +from typing import Iterable, Optional, Union from unittest.mock import patch ...
[ { "components": [ { "doc": "Generates a random object passing the type desired.\n\n:object_type: the type of the object to generate.\n:return: the random object generated.\n:raises ValueError: if the object type passed is not supported", "lines": [ 58, 90 ], ...
[ "tests/providers/test_python.py::test_pyobject[None]", "tests/providers/test_python.py::test_pyobject[bool]", "tests/providers/test_python.py::test_pyobject[str]", "tests/providers/test_python.py::test_pyobject[float]", "tests/providers/test_python.py::test_pyobject[int]", "tests/providers/test_python.py:...
[ "tests/providers/test_python.py::test_pyfloat_right_and_left_digits_positive[1234567-5-12345]", "tests/providers/test_python.py::test_pyfloat_right_and_left_digits_positive[1234567-0-1]", "tests/providers/test_python.py::test_pyfloat_right_and_left_digits_positive[1234567-1-1]", "tests/providers/test_python.p...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Implement generate pyobject by type #1779 ### What does this change It solves issue #1779 Note: I had hard time dealing with `mypy` and `kwargs` ---------- </request> There are several new fun...
6edfdbf6ae90b0153309e3bf066aa3b2d16494a7
joke2k__faker-1820
1,820
joke2k/faker
null
5de6bf3fb811272b7e13b6da6623ee1fdfa3efe3
2023-03-13T14:21:32Z
diff --git a/faker/providers/lorem/nl_BE/__init__.py b/faker/providers/lorem/nl_BE/__init__.py new file mode 100644 index 0000000000..efc33ef961 --- /dev/null +++ b/faker/providers/lorem/nl_BE/__init__.py @@ -0,0 +1,1015 @@ +from typing import Dict + +from .. import Provider as LoremProvider + + +class Provider(LoremPr...
diff --git a/tests/providers/test_lorem.py b/tests/providers/test_lorem.py index 0ea3793350..40761a27f0 100644 --- a/tests/providers/test_lorem.py +++ b/tests/providers/test_lorem.py @@ -9,6 +9,7 @@ from faker.providers.lorem.de_DE import Provider as DeDeLoremProvider from faker.providers.lorem.en_US import Provider ...
[ { "components": [ { "doc": "Implement lorem provider for ``nl_BE`` locale.\n\nSource: https://nl.wiktionary.org/wiki/WikiWoordenboek:Lijst_met_1000_basiswoorden", "lines": [ 6, 1015 ], "name": "Provider", "signature": "class Provider(LoremProvide...
[ "tests/providers/test_lorem.py::TestLoremProvider::test_word_with_defaults", "tests/providers/test_lorem.py::TestLoremProvider::test_word_with_custom_list", "tests/providers/test_lorem.py::TestLoremProvider::test_words_with_zero_nb", "tests/providers/test_lorem.py::TestLoremProvider::test_words_with_defaults"...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add Dutch lorem provider Provide a lorem provider for both nl_BE and nl_NL locales. ---------- </request> There are several new functions or classes that need to be implemented, using the defi...
6edfdbf6ae90b0153309e3bf066aa3b2d16494a7
conan-io__conan-13421
13,421
conan-io/conan
null
8c424def2d50c9c0e951b52f2609abff19cbeeaa
2023-03-13T00:32:01Z
diff --git a/conan/internal/conan_app.py b/conan/internal/conan_app.py index 0d998823462..1598d49307c 100644 --- a/conan/internal/conan_app.py +++ b/conan/internal/conan_app.py @@ -41,7 +41,7 @@ def __init__(self, cache_folder): self.hook_manager = HookManager(self.cache.hooks_path) # Wraps an http_...
diff --git a/conans/test/integration/test_source_download_password.py b/conans/test/integration/test_source_download_password.py new file mode 100644 index 00000000000..261c3b9b278 --- /dev/null +++ b/conans/test/integration/test_source_download_password.py @@ -0,0 +1,78 @@ +import base64 +import json +import os +impor...
[ { "components": [ { "doc": "", "lines": [ 26, 48 ], "name": "URLCredentials", "signature": "class URLCredentials:", "type": "class" }, { "doc": "", "lines": [ 27, 37 ], "name...
[ "conans/test/integration/test_source_download_password.py::test_source_download_password" ]
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Feature/urls auth Changelog: Feature: Authentication for ``tools.files.download()``. Docs: https://github.com/conan-io/docs/pull/3149 This was further modified by https://github.com/conan-io/conan...
4a5b19a75db9225316c8cb022a2dfb9705a2af34
tobymao__sqlglot-1288
1,288
tobymao/sqlglot
null
3871647e60a33212b565245cbd73e8963e377d71
2023-03-10T19:12:09Z
diff --git a/sqlglot/dialects/postgres.py b/sqlglot/dialects/postgres.py index d0b30caf0f..7b6506027c 100644 --- a/sqlglot/dialects/postgres.py +++ b/sqlglot/dialects/postgres.py @@ -92,8 +92,7 @@ def _string_agg_sql(self, expression): this = expression.this if isinstance(this, exp.Order): if this.th...
diff --git a/tests/dialects/test_snowflake.py b/tests/dialects/test_snowflake.py index 9a2daa6bd1..a095001319 100644 --- a/tests/dialects/test_snowflake.py +++ b/tests/dialects/test_snowflake.py @@ -17,6 +17,14 @@ def test_snowflake(self): ) self.validate_identity("COMMENT IF EXISTS ON TABLE foo IS 'b...
[]
[ "tests/dialects/test_snowflake.py::TestSnowflake::test_ddl", "tests/dialects/test_snowflake.py::TestSnowflake::test_describe_table", "tests/dialects/test_snowflake.py::TestSnowflake::test_flatten", "tests/dialects/test_snowflake.py::TestSnowflake::test_match_recognize", "tests/dialects/test_snowflake.py::Te...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Implement eliminate_qualify transformation Reference: https://docs.snowflake.com/en/sql-reference/constructs/qualify Tested the Snowflake example: ```sql SELECT i, p, o FROM qt QUALIFY ROW_NUMB...
ceb42fabad60312699e4b15936aeebac00e22e4d
scikit-learn__scikit-learn-25815
25,815
scikit-learn/scikit-learn
1.3
c2f9d9a9331e12d1853e06ee1fe39c7e475d2a74
2023-03-10T18:23:23Z
diff --git a/doc/whats_new/v1.3.rst b/doc/whats_new/v1.3.rst index bb245aa466152..130c80ea5590a 100644 --- a/doc/whats_new/v1.3.rst +++ b/doc/whats_new/v1.3.rst @@ -151,6 +151,16 @@ Changelog :pr:`123456` by :user:`Joe Bloggs <joeongithub>`. where 123456 is the *pull request* number, not the issue number. +...
diff --git a/sklearn/tests/test_config.py b/sklearn/tests/test_config.py index 73356e92119a1..9e19ddba43142 100644 --- a/sklearn/tests/test_config.py +++ b/sklearn/tests/test_config.py @@ -19,6 +19,7 @@ def test_config_context(): "pairwise_dist_chunk_size": 256, "enable_cython_pairwise_dist": True, ...
diff --git a/doc/whats_new/v1.3.rst b/doc/whats_new/v1.3.rst index bb245aa466152..130c80ea5590a 100644 --- a/doc/whats_new/v1.3.rst +++ b/doc/whats_new/v1.3.rst @@ -151,6 +151,16 @@ Changelog :pr:`123456` by :user:`Joe Bloggs <joeongithub>`. where 123456 is the *pull request* number, not the issue number. +...
[ { "components": [ { "doc": "Decorator to run the fit methods of estimators within context managers.\n\nParameters\n----------\nprefer_skip_nested_validation : bool\n If True, the validation of parameters of inner estimators or functions\n called during fit will be skipped.\n\n This is use...
[ "sklearn/tests/test_config.py::test_config_context", "sklearn/utils/tests/test_param_validation.py::test_skip_param_validation", "sklearn/utils/tests/test_param_validation.py::test_skip_nested_validation[True]", "sklearn/utils/tests/test_param_validation.py::test_skip_nested_validation[False]", "sklearn/uti...
[ "sklearn/tests/test_config.py::test_config_context_exception", "sklearn/tests/test_config.py::test_set_config", "sklearn/tests/test_config.py::test_config_threadsafe_joblib[loky]", "sklearn/tests/test_config.py::test_config_threadsafe_joblib[multiprocessing]", "sklearn/tests/test_config.py::test_config_thre...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> ENH Generally avoid nested param validation (Alternative to) Closes https://github.com/scikit-learn/scikit-learn/pull/25493 It happens that estimators or functions call other public estimators or f...
314f7babcda8fd5e6813b8a6ed31d87af0efdc62
softlayer__softlayer-python-1875
1,875
softlayer/softlayer-python
null
e03d17b8c96314ae31cf43ffc88120a75240ba83
2023-03-10T17:46:54Z
diff --git a/SoftLayer/CLI/image/share_deny.py b/SoftLayer/CLI/image/share_deny.py new file mode 100644 index 000000000..8182835c7 --- /dev/null +++ b/SoftLayer/CLI/image/share_deny.py @@ -0,0 +1,23 @@ +"""Deny share an image template with another account.""" +# :license: MIT, see LICENSE for more details. + +import cl...
diff --git a/tests/CLI/modules/image_tests.py b/tests/CLI/modules/image_tests.py index 9305cc4ba..515cdd1b8 100644 --- a/tests/CLI/modules/image_tests.py +++ b/tests/CLI/modules/image_tests.py @@ -53,3 +53,18 @@ def test_datacenter_remove(self): def test_datacenter_remove_fails(self): result = self.run_co...
diff --git a/docs/cli/image.rst b/docs/cli/image.rst index 93ba13321..dc4a24d70 100644 --- a/docs/cli/image.rst +++ b/docs/cli/image.rst @@ -30,3 +30,7 @@ Disk Image Commands .. click:: SoftLayer.CLI.image.datacenter:cli :prog: image datacenter :show-nested: + +.. click:: SoftLayer.CLI.image.share_deny:cli +...
[ { "components": [ { "doc": "Deny share an image template with another account.", "lines": [ 15, 23 ], "name": "cli", "signature": "def cli(env, identifier, account_id):", "type": "function" } ], "file": "SoftLayer/CLI/image/...
[ "tests/CLI/modules/image_tests.py::ImageTests::test_deny_share", "tests/CLI/modules/image_tests.py::ImageTests::test_deny_share_without_id", "tests/CLI/modules/image_tests.py::ImageTests::test_deny_share_without_id_account", "tests/managers/image_tests.py::ImageTests::test_deny_share_image" ]
[ "tests/CLI/modules/image_tests.py::ImageTests::test_datacenter_add", "tests/CLI/modules/image_tests.py::ImageTests::test_datacenter_remove", "tests/CLI/modules/image_tests.py::ImageTests::test_datacenter_remove_fails", "tests/CLI/modules/image_tests.py::ImageTests::test_delete", "tests/CLI/modules/image_tes...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> New command `slcli image share-deny` Issue link: #1873 ``` softlayer-python/ () $ slcli image share-deny 5706 --account-id 46 Image template 5706 was deny shared to account 46. ``` ---------- </...
bd1ecce1ec4313b9ceefd3cfea52d1b9274fef9d
Textualize__textual-2018
2,018
Textualize/textual
null
d3bdaf8ae5727fb00a73f82f30fb8fef52ef7d9c
2023-03-10T14:56:56Z
diff --git a/CHANGELOG.md b/CHANGELOG.md index 5e74ce64fd..91045d60b2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/). - Fixed container not resizing when a widget is removed https://github.com/Textualize/textual/issues/2007 +###...
diff --git a/tests/test_color.py b/tests/test_color.py index c4ef8311cd..03c34bd19b 100644 --- a/tests/test_color.py +++ b/tests/test_color.py @@ -2,7 +2,7 @@ from rich.color import Color as RichColor from rich.text import Text -from textual.color import Color, Lab, lab_to_rgb, rgb_to_lab +from textual.color import...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 5e74ce64fd..91045d60b2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/). - Fixed container not resizing when a widget is removed https://github.com/Textualize/textual/issues/2007 +###...
[ { "components": [ { "doc": "", "lines": [ 5, 7 ], "name": "LoadingApp", "signature": "class LoadingApp(App):", "type": "class" }, { "doc": "", "lines": [ 6, 7 ], "name": "Loa...
[ "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_monochrome", "tests/test_color.py::test_rgb", "tests/test_color.py::test_...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Loading indicator - Added a LoadingIndicator widget - Added color.Gradient https://user-images.githubusercontent.com/554369/224347096-5e4ac8c4-c4c0-4b6d-9929-6d437610bac9.mov ---------- </requ...
86e93536b991014e0ea4bf993068202b446bb698
matplotlib__matplotlib-25425
25,425
matplotlib/matplotlib
3.7
cb2bdb1300f40ae8746a1916480af4d0d7af5f77
2023-03-10T11:39:00Z
diff --git a/lib/matplotlib/image.py b/lib/matplotlib/image.py index 495f131a1b24..eb1dedae34e1 100644 --- a/lib/matplotlib/image.py +++ b/lib/matplotlib/image.py @@ -275,8 +275,8 @@ def __init__(self, ax, def __str__(self): try: - size = self.get_size() - return f"{type(self).__na...
diff --git a/lib/matplotlib/tests/test_image.py b/lib/matplotlib/tests/test_image.py index 3ab99104c7ee..5d44dc0694ec 100644 --- a/lib/matplotlib/tests/test_image.py +++ b/lib/matplotlib/tests/test_image.py @@ -1468,3 +1468,15 @@ def test__resample_valid_output(): resample(np.zeros((9, 9), np.uint8), np.zeros(...
[ { "components": [ { "doc": "Return the shape of the image as tuple (numrows, numcols, channels).", "lines": [ 291, 298 ], "name": "_ImageBase.get_shape", "signature": "def get_shape(self):", "type": "function" } ], "file": "...
[ "lib/matplotlib/tests/test_image.py::test_axesimage_get_shape" ]
[ "lib/matplotlib/tests/test_image.py::test_image_interps[png]", "lib/matplotlib/tests/test_image.py::test_alpha_interp[png]", "lib/matplotlib/tests/test_image.py::test_figimage[png-False]", "lib/matplotlib/tests/test_image.py::test_figimage[png-True]", "lib/matplotlib/tests/test_image.py::test_image_python_i...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Added get_shape as an alias for get_size + tests ## PR Summary Fixes #22494. Continuation of draft PR #22510. Added the `get_shape` commit and wrote tests for `get_size` method and the newly added `g...
Here is the discussion in the issues of the pull request. <issues> [ENH]: Add `get_shape` as alias for `get_size` in AxesImage, or make that include depth too ### Problem #22485 changed `AxesImage.__str__` to `AxesImage(size=(nrows, ncols))`. While this indeed corresponds to `AxesImage.get_size`, this is not consiste...
a4dca24d04f928a9e614db403c716237446140b2
gradio-app__gradio-3430
3,430
gradio-app/gradio
null
11bb732f5d12284aad1a139fd3891bd01ff1167d
2023-03-10T07:16:59Z
diff --git a/CHANGELOG.md b/CHANGELOG.md index eed1182f08..542e20192a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ ## New Features: +- Allow consecutive function triggers with `.then` and `.success` by [@aliabid94](https://github.com/aliabid94) in [PR 3430](https://github.com/gradio-app/gradio/pull...
diff --git a/gradio/test_data/blocks_configs.py b/gradio/test_data/blocks_configs.py index f852d0abcd..aa5627698d 100644 --- a/gradio/test_data/blocks_configs.py +++ b/gradio/test_data/blocks_configs.py @@ -197,6 +197,8 @@ "cancels": [], "every": None, "types": {"continuous": Fals...
diff --git a/CHANGELOG.md b/CHANGELOG.md index eed1182f08..542e20192a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ ## New Features: +- Allow consecutive function triggers with `.then` and `.success` by [@aliabid94](https://github.com/aliabid94) in [PR 3430](https://github.com/gradio-app/gradio/pull...
[ { "components": [ { "doc": "", "lines": [ 24, 27 ], "name": "bot_response", "signature": "def bot_response(history):", "type": "function" } ], "file": "demo/chatbot_multimodal/run.py" }, { "components": [ { ...
[ "test/test_events.py::TestEvent::test_consecutive_events" ]
[ "test/test_events.py::TestEvent::test_clear_event", "test/test_events.py::TestEventErrors::test_event_defined_invalid_scope" ]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> consecutive triggers with `.then` Bringing back `.then`! Syntax: ```python btn.click(fn, inputs, outputs).then(fn2, inputs2, outputs2) # executed regardless of success of fn btn.click(fn, input...
9c6d83d12e4b67c5638ba67281c6f018052c5b3e
conan-io__conan-13354
13,354
conan-io/conan
null
d6058bbb690819ded29eb283cd9329a92aea3d56
2023-03-07T08:38:34Z
diff --git a/conan/api/subapi/config.py b/conan/api/subapi/config.py index 98faa962e73..f0d9c405e47 100644 --- a/conan/api/subapi/config.py +++ b/conan/api/subapi/config.py @@ -21,3 +21,7 @@ def install(self, path_or_url, verify_ssl, config_type=None, args=None, def get(self, name, default=None, check_type=None): ...
diff --git a/conans/test/integration/command/config_test.py b/conans/test/integration/command/config_test.py index 1ff1e502137..b47bf91ae2c 100644 --- a/conans/test/integration/command/config_test.py +++ b/conans/test/integration/command/config_test.py @@ -108,3 +108,46 @@ def _assert_config_not_exists(path): _ass...
[ { "components": [ { "doc": "", "lines": [ 25, 27 ], "name": "ConfigAPI.show", "signature": "def show(self, pattern):", "type": "function" } ], "file": "conan/api/subapi/config.py" }, { "components": [ { ...
[ "conans/test/integration/command/config_test.py::test_config_show" ]
[ "conans/test/integration/command/config_test.py::test_missing_subarguments", "conans/test/integration/command/config_test.py::TestConfigHome::test_config_home_default", "conans/test/integration/command/config_test.py::TestConfigHome::test_api_uses_env_var_home", "conans/test/integration/command/config_test.py...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add `conan config show <conf>` command Changelog: Feature: Add `conan config show <conf>` command. Docs: https://github.com/conan-io/docs/pull/3091 Let's you get the value for any given configurat...
4a5b19a75db9225316c8cb022a2dfb9705a2af34
tobymao__sqlglot-1252
1,252
tobymao/sqlglot
null
c371ac055a7546d8215d3a2acc0d1a64f43a07f1
2023-03-05T07:24:58Z
diff --git a/sqlglot/expressions.py b/sqlglot/expressions.py index c8223c2466..7fdab534ae 100644 --- a/sqlglot/expressions.py +++ b/sqlglot/expressions.py @@ -2407,6 +2407,18 @@ def window(self, *expressions, append=True, dialect=None, copy=True, **opts) -> **opts, ) + def qualify(self, *expr...
diff --git a/tests/test_build.py b/tests/test_build.py index fbfbb62f7e..718e471508 100644 --- a/tests/test_build.py +++ b/tests/test_build.py @@ -504,6 +504,12 @@ def test_build(self): .window("d AS (PARTITION BY g ORDER BY h)"), "SELECT AVG(a) OVER b, MIN(c) OVER d FROM table WINDOW ...
[]
[ "tests/test_build.py::TestBuild::test_build" ]
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Implement qualify builder. Added a qualify builder. Note -- `make check` made a bunch of unrelated formatting changes. ---------- did you have the latest dev environment installed? can you try agai...
ceb42fabad60312699e4b15936aeebac00e22e4d
tfranzel__drf-spectacular-953
953
tfranzel/drf-spectacular
null
43a4474f3c51de32dc553f75abe4c44ea674340d
2023-03-03T14:30:35Z
diff --git a/drf_spectacular/utils.py b/drf_spectacular/utils.py index 03b52b4b..c795b0f1 100644 --- a/drf_spectacular/utils.py +++ b/drf_spectacular/utils.py @@ -64,11 +64,19 @@ def create(self, request, *args, **kwargs): *drf-spectacular* processes the serializer. In those cases you can explicitly state the...
diff --git a/tests/test_polymorphic.py b/tests/test_polymorphic.py index 22e63298..2f5665cf 100644 --- a/tests/test_polymorphic.py +++ b/tests/test_polymorphic.py @@ -93,8 +93,27 @@ def create(self, request, *args, **kwargs): def partial_update(self, request, *args, **kwargs): return Response({}) ...
[ { "components": [ { "doc": "", "lines": [ 106, 107 ], "name": "PolymorphicProxySerializer.serializers", "signature": "def serializers(self, value):", "type": "function" } ], "file": "drf_spectacular/utils.py" } ]
[ "tests/test_polymorphic.py::test_polymorphic[LambdaPersonViewSet]" ]
[ "tests/test_polymorphic.py::test_polymorphic[ImplicitPersonViewSet]", "tests/test_polymorphic.py::test_polymorphic[ExplicitPersonViewSet]", "tests/test_polymorphic.py::test_polymorphic_serializer_as_field_via_extend_schema_field", "tests/test_polymorphic.py::test_polymorphic_serializer_as_method_field_via_ext...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add option to provide a callable for PolymorphicProxySerializer.serializers Adding a minor feature that we found useful in our own use of `PolymorphicProxySerializer` - the ability to initialize it wi...
22b78d6cd3f292ce2952382bcc2b7aefe228a1dd
graphql-python__graphene-1499
1,499
graphql-python/graphene
null
8b89afeff136ef29300d38375aad838d1b94a4eb
2023-03-02T21:02:49Z
diff --git a/graphene/relay/connection.py b/graphene/relay/connection.py index 1a4684e56..ea4973676 100644 --- a/graphene/relay/connection.py +++ b/graphene/relay/connection.py @@ -1,6 +1,7 @@ import re from collections.abc import Iterable from functools import partial +from typing import Type from graphql_relay ...
diff --git a/graphene/relay/tests/test_connection.py b/graphene/relay/tests/test_connection.py index 4015f4b43..d45eea960 100644 --- a/graphene/relay/tests/test_connection.py +++ b/graphene/relay/tests/test_connection.py @@ -1,7 +1,15 @@ +import re + from pytest import raises from ...types import Argument, Field, I...
[ { "components": [ { "doc": "", "lines": [ 15, 33 ], "name": "get_edge_class", "signature": "def get_edge_class( connection_class: Type[\"Connection\"], _node: Type[AbstractNode], base_name: str ):", "type": "function" }, { ...
[ "graphene/relay/tests/test_connection.py::test_connection", "graphene/relay/tests/test_connection.py::test_connection_inherit_abstracttype", "graphene/relay/tests/test_connection.py::test_connection_extra_abstract_fields", "graphene/relay/tests/test_connection.py::test_connection_override_fields", "graphene...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> chore: make relay type fields extendable This PR enables users to easily modify the `relay.Connection` type to add fields like `nodes`, or customize the existing `Edges` and `PageInfo` fields to mak...
8ede21e06381c096589c424960a6cfaca304badb
softlayer__softlayer-python-1861
1,861
softlayer/softlayer-python
null
ca21eec45191a0e20bb30ca8f37793d7ef512bc1
2023-03-01T17:27:50Z
diff --git a/SoftLayer/CLI/image/share.py b/SoftLayer/CLI/image/share.py new file mode 100644 index 000000000..e548bdbe8 --- /dev/null +++ b/SoftLayer/CLI/image/share.py @@ -0,0 +1,23 @@ +"""Share an image template with another account.""" +# :license: MIT, see LICENSE for more details. + +import click + +import SoftLa...
diff --git a/tests/CLI/modules/image_tests.py b/tests/CLI/modules/image_tests.py index 515cdd1b8..230b6bcfc 100644 --- a/tests/CLI/modules/image_tests.py +++ b/tests/CLI/modules/image_tests.py @@ -54,6 +54,21 @@ def test_datacenter_remove_fails(self): result = self.run_command(['image', 'datacenter', '100', '-...
diff --git a/docs/cli/image.rst b/docs/cli/image.rst index dc4a24d70..9d36e98b6 100644 --- a/docs/cli/image.rst +++ b/docs/cli/image.rst @@ -31,6 +31,10 @@ Disk Image Commands :prog: image datacenter :show-nested: +.. click:: SoftLayer.CLI.image.share:cli + :prog: image share + :show-nested: + .. cli...
[ { "components": [ { "doc": "Share an image template with another account.", "lines": [ 15, 23 ], "name": "cli", "signature": "def cli(env, identifier, account_id):", "type": "function" } ], "file": "SoftLayer/CLI/image/share...
[ "tests/CLI/modules/image_tests.py::ImageTests::test_share", "tests/CLI/modules/image_tests.py::ImageTests::test_share_without_id", "tests/CLI/modules/image_tests.py::ImageTests::test_share_without_id_account", "tests/managers/image_tests.py::ImageTests::test_share_image" ]
[ "tests/CLI/modules/image_tests.py::ImageTests::test_datacenter_add", "tests/CLI/modules/image_tests.py::ImageTests::test_datacenter_remove", "tests/CLI/modules/image_tests.py::ImageTests::test_datacenter_remove_fails", "tests/CLI/modules/image_tests.py::ImageTests::test_delete", "tests/CLI/modules/image_tes...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> New command `slcli image share` Issue: #1853 ``` softlayer-python/ (issue1853) $ slcli image share 57065 --account-id 1234 Image template 57065 was shared to account 1234. ``` ---------- </request...
bd1ecce1ec4313b9ceefd3cfea52d1b9274fef9d
tobymao__sqlglot-1233
1,233
tobymao/sqlglot
null
b635c7b114548ea21106922a294f241b6bba030c
2023-02-28T17:35:28Z
diff --git a/sqlglot/dialects/teradata.py b/sqlglot/dialects/teradata.py index e3eec71768..415681c8ee 100644 --- a/sqlglot/dialects/teradata.py +++ b/sqlglot/dialects/teradata.py @@ -74,6 +74,7 @@ class Parser(parser.Parser): FUNCTION_PARSERS = { **parser.Parser.FUNCTION_PARSERS, # type: ignore...
diff --git a/tests/dialects/test_teradata.py b/tests/dialects/test_teradata.py index ab87eefb41..5d4f7db08c 100644 --- a/tests/dialects/test_teradata.py +++ b/tests/dialects/test_teradata.py @@ -24,17 +24,21 @@ def test_update(self): def test_create(self): self.validate_identity("CREATE TABLE x (y INT) ...
[]
[ "tests/dialects/test_teradata.py::TestTeradata::test_create" ]
[ "tests/dialects/test_teradata.py::TestTeradata::test_abbrev", "tests/dialects/test_teradata.py::TestTeradata::test_datatype", "tests/dialects/test_teradata.py::TestTeradata::test_insert", "tests/dialects/test_teradata.py::TestTeradata::test_mod", "tests/dialects/test_teradata.py::TestTeradata::test_translat...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Teradata partition by RANGE_N function - Add Teradata function RANGE_N - Update create_sql to allow POST_INDEX properties even if no indexes are specified - In Teradata PARTITION BY goes after ...
ceb42fabad60312699e4b15936aeebac00e22e4d
joke2k__faker-1811
1,811
joke2k/faker
null
92971a5dec3bab3f9ea2853f4c1fc07cb2f4807e
2023-02-28T13:19:10Z
diff --git a/faker/providers/company/nl_BE/__init__.py b/faker/providers/company/nl_BE/__init__.py new file mode 100644 index 0000000000..30ac7f5294 --- /dev/null +++ b/faker/providers/company/nl_BE/__init__.py @@ -0,0 +1,10 @@ +from .. import Provider as CompanyProvider + + +class Provider(CompanyProvider): + forma...
diff --git a/tests/providers/test_company.py b/tests/providers/test_company.py index 85dd1ec3b6..13be670532 100644 --- a/tests/providers/test_company.py +++ b/tests/providers/test_company.py @@ -14,6 +14,7 @@ from faker.providers.company.hy_AM import Provider as HyAmCompanyProvider from faker.providers.company.it_IT ...
[ { "components": [ { "doc": "", "lines": [ 4, 10 ], "name": "Provider", "signature": "class Provider(CompanyProvider):", "type": "class" } ], "file": "faker/providers/company/nl_BE/__init__.py" } ]
[ "tests/providers/test_company.py::TestAzAz::test_company_suffix", "tests/providers/test_company.py::TestAzAz::test_large_companies", "tests/providers/test_company.py::TestFiFi::test_company_business_id", "tests/providers/test_company.py::TestFrFr::test_siren", "tests/providers/test_company.py::TestFrFr::tes...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add nl_BE company provider {} ---------- </request> There are several new functions or classes that need to be implemented, using the definitions below: <<NEW DEFINITIONS>> There are several new fu...
6edfdbf6ae90b0153309e3bf066aa3b2d16494a7
joke2k__faker-1810
1,810
joke2k/faker
null
92971a5dec3bab3f9ea2853f4c1fc07cb2f4807e
2023-02-28T13:18:58Z
diff --git a/faker/providers/automotive/nl_BE/__init__.py b/faker/providers/automotive/nl_BE/__init__.py new file mode 100644 index 0000000000..19f24cac68 --- /dev/null +++ b/faker/providers/automotive/nl_BE/__init__.py @@ -0,0 +1,16 @@ +from .. import Provider as AutomotiveProvider + + +class Provider(AutomotiveProvid...
diff --git a/tests/providers/test_automotive.py b/tests/providers/test_automotive.py index 6d3f27af57..7768b53140 100644 --- a/tests/providers/test_automotive.py +++ b/tests/providers/test_automotive.py @@ -310,3 +310,9 @@ class TestDeCh(_SimpleAutomotiveTestMixin): """Test de_CH automotive provider methods""" ...
[ { "components": [ { "doc": "Implement automotive provider for `nl_BE` locale.\n\nhttps://nl.wikipedia.org/wiki/Belgisch_kenteken", "lines": [ 4, 15 ], "name": "Provider", "signature": "class Provider(AutomotiveProvider):", "type": "class"...
[ "tests/providers/test_automotive.py::TestNlBe::test_license_plate" ]
[ "tests/providers/test_automotive.py::TestArBh::test_license_plate", "tests/providers/test_automotive.py::TestAzAz::test_license_plate", "tests/providers/test_automotive.py::TestSkSk::test_license_plate", "tests/providers/test_automotive.py::TestPtBr::test_license_plate", "tests/providers/test_automotive.py:...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add nl_BE automotive provider {} ---------- </request> There are several new functions or classes that need to be implemented, using the definitions below: <<NEW DEFINITIONS>> There are several new...
6edfdbf6ae90b0153309e3bf066aa3b2d16494a7
joke2k__faker-1808
1,808
joke2k/faker
null
92971a5dec3bab3f9ea2853f4c1fc07cb2f4807e
2023-02-28T12:31:50Z
diff --git a/faker/providers/bank/nl_BE/__init__.py b/faker/providers/bank/nl_BE/__init__.py new file mode 100644 index 0000000000..92455b9048 --- /dev/null +++ b/faker/providers/bank/nl_BE/__init__.py @@ -0,0 +1,68 @@ +from .. import Provider as BankProvider + + +class Provider(BankProvider): + """Implement bank pr...
diff --git a/tests/providers/test_bank.py b/tests/providers/test_bank.py index 39c7f93e33..fc0ead4d90 100644 --- a/tests/providers/test_bank.py +++ b/tests/providers/test_bank.py @@ -15,6 +15,7 @@ from faker.providers.bank.es_MX import is_valid_clabe from faker.providers.bank.fi_FI import Provider as FiFiBankProvider...
[ { "components": [ { "doc": "Implement bank provider for ``nl_BE`` locale.\n\nInformation about the Belgian banks can be found on the website\nof the National Bank of Belgium:\nhttps://www.nbb.be/nl/betalingen-en-effecten/betalingsstandaarden/bankidentificatiecodes", "lines": [ 4,...
[ "tests/providers/test_bank.py::TestAzAz::test_bban", "tests/providers/test_bank.py::TestAzAz::test_iban", "tests/providers/test_bank.py::TestAzAz::test_bank", "tests/providers/test_bank.py::TestNoNo::test_aba", "tests/providers/test_bank.py::TestNoNo::test_bban", "tests/providers/test_bank.py::TestNoNo::t...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add nl_BE bank provider {} ---------- </request> There are several new functions or classes that need to be implemented, using the definitions below: <<NEW DEFINITIONS>> There are several new funct...
6edfdbf6ae90b0153309e3bf066aa3b2d16494a7
conan-io__conan-13269
13,269
conan-io/conan
null
d204e09a47b1f15d8c67819d84fc02512a1cb291
2023-02-28T10:51:14Z
diff --git a/conans/client/conf/config_installer.py b/conans/client/conf/config_installer.py index 8bb600bfb8d..4501644f0c2 100644 --- a/conans/client/conf/config_installer.py +++ b/conans/client/conf/config_installer.py @@ -1,5 +1,6 @@ import os import shutil +import fnmatch from urllib.parse import urlparse, url...
diff --git a/conans/test/integration/command/config_test.py b/conans/test/integration/command/config_test.py index e8f13a5a6ef..a5354bd8c25 100644 --- a/conans/test/integration/command/config_test.py +++ b/conans/test/integration/command/config_test.py @@ -1,5 +1,6 @@ import json import os +import textwrap from co...
[ { "components": [ { "doc": "", "lines": [ 15, 32 ], "name": "ConanIgnoreMatcher", "signature": "class ConanIgnoreMatcher:", "type": "class" }, { "doc": "", "lines": [ 16, 19 ], ...
[ "conans/test/integration/command/config_test.py::test_config_install_conanignore" ]
[ "conans/test/integration/command/config_test.py::test_missing_subarguments", "conans/test/integration/command/config_test.py::TestConfigHome::test_config_home_default", "conans/test/integration/command/config_test.py::TestConfigHome::test_api_uses_env_var_home", "conans/test/integration/command/config_test.py...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add support for `.conanignore` in `conan config install` Changelog: Feature: Add `.conanignore` support to `conan config install`. Docs: https://github.com/conan-io/docs/pull/3036 This allows addi...
4a5b19a75db9225316c8cb022a2dfb9705a2af34
joke2k__faker-1806
1,806
joke2k/faker
null
92971a5dec3bab3f9ea2853f4c1fc07cb2f4807e
2023-02-28T01:35:19Z
diff --git a/faker/providers/sbn/__init__.py b/faker/providers/sbn/__init__.py new file mode 100644 index 0000000000..f09eab07f6 --- /dev/null +++ b/faker/providers/sbn/__init__.py @@ -0,0 +1,53 @@ +from typing import List, Tuple + +from faker.providers.sbn.rules import RegistrantRule + +from .. import BaseProvider +fr...
diff --git a/tests/providers/test_sbn.py b/tests/providers/test_sbn.py new file mode 100644 index 0000000000..9048b6497f --- /dev/null +++ b/tests/providers/test_sbn.py @@ -0,0 +1,62 @@ +import pytest + +from faker.providers.sbn import SBN9 +from faker.providers.sbn.en_US import Provider as SBNProvider +from faker.prov...
[ { "components": [ { "doc": "Generates fake SBNs. These are the precursor to the ISBN and are\nlargely similar to ISBN-10.\n\nSee https://www.isbn-international.org/content/what-isbn for the\nformat of ISBNs. SBNs have no EAN prefix or Registration Group.", "lines": [ 10, ...
[ "tests/providers/test_sbn.py::TestISBN9::test_check_digit_is_correct", "tests/providers/test_sbn.py::TestISBN9::test_format_length", "tests/providers/test_sbn.py::TestProvider::test_reg_pub_separation", "tests/providers/test_sbn.py::TestProvider::test_rule_not_found", "tests/utils/test_utils.py::UtilsTestCa...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add SBN provider ### What does this change Adds an SBN provider that generates (pre-International) Standard Book Numbers. ### What was wrong See #1803 ### How this fixes it Takes the c...
Here is the discussion in the issues of the pull request. <issues> Support for 9 digit SBN * Faker version: 17.0.0 * OS: Windows 10 Brief summary of the issue goes here. Before the formation of the ISBN there was a non-international Standard Book Number (SBN) used for a few years. While no longer used today, it ...
6edfdbf6ae90b0153309e3bf066aa3b2d16494a7
scikit-learn__scikit-learn-25677
25,677
scikit-learn/scikit-learn
1.3
49a937e974190b4ab20c7506052ce8a67c129da1
2023-02-23T20:10:10Z
diff --git a/doc/modules/preprocessing.rst b/doc/modules/preprocessing.rst index 86f2d29cf4ecf..dc151871874d4 100644 --- a/doc/modules/preprocessing.rst +++ b/doc/modules/preprocessing.rst @@ -729,14 +729,15 @@ separate categories:: See :ref:`dict_feature_extraction` for categorical features that are represented as a...
diff --git a/sklearn/preprocessing/tests/test_encoders.py b/sklearn/preprocessing/tests/test_encoders.py index a4fea0ee92dbc..ffd5eda5195d0 100644 --- a/sklearn/preprocessing/tests/test_encoders.py +++ b/sklearn/preprocessing/tests/test_encoders.py @@ -2051,3 +2051,256 @@ def test_drop_idx_infrequent_categories(): ...
diff --git a/doc/modules/preprocessing.rst b/doc/modules/preprocessing.rst index 86f2d29cf4ecf..dc151871874d4 100644 --- a/doc/modules/preprocessing.rst +++ b/doc/modules/preprocessing.rst @@ -729,14 +729,15 @@ separate categories:: See :ref:`dict_feature_extraction` for categorical features that are represented as a...
[ { "components": [ { "doc": "Infrequent categories for each feature.", "lines": [ 242, 248 ], "name": "_BaseEncoder.infrequent_categories_", "signature": "def infrequent_categories_(self):", "type": "function" }, { "doc...
[ "sklearn/preprocessing/tests/test_encoders.py::test_ordinal_encoder_infrequent_three_levels[kwargs0]", "sklearn/preprocessing/tests/test_encoders.py::test_ordinal_encoder_infrequent_three_levels[kwargs1]", "sklearn/preprocessing/tests/test_encoders.py::test_ordinal_encoder_infrequent_three_levels[kwargs2]", "...
[ "sklearn/preprocessing/tests/test_encoders.py::test_one_hot_encoder_sparse_dense", "sklearn/preprocessing/tests/test_encoders.py::test_one_hot_encoder_handle_unknown[ignore]", "sklearn/preprocessing/tests/test_encoders.py::test_one_hot_encoder_handle_unknown[infrequent_if_exist]", "sklearn/preprocessing/tests...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> ENH Adds infrequent categories support to OrdinalEncoder <!-- Thanks for contributing a pull request! Please ensure you have taken a look at the contribution guidelines: https://github.com/scikit-le...
314f7babcda8fd5e6813b8a6ed31d87af0efdc62
sympy__sympy-24763
24,763
sympy/sympy
1.13
75691e5cbdb3dfda4c8164a217bac6a6434404f6
2023-02-22T18:33:55Z
diff --git a/doc/src/modules/physics/mechanics/api/part_bod.rst b/doc/src/modules/physics/mechanics/api/part_bod.rst index f1e5da3700ae..bf786796f757 100644 --- a/doc/src/modules/physics/mechanics/api/part_bod.rst +++ b/doc/src/modules/physics/mechanics/api/part_bod.rst @@ -4,11 +4,13 @@ Masses, Inertias & Particles, ...
diff --git a/sympy/physics/mechanics/tests/test_particle.py b/sympy/physics/mechanics/tests/test_particle.py index 1efc06c8a860..baae46e9fd09 100644 --- a/sympy/physics/mechanics/tests/test_particle.py +++ b/sympy/physics/mechanics/tests/test_particle.py @@ -1,15 +1,29 @@ -from sympy.core.symbol import symbols +from sy...
diff --git a/doc/src/modules/physics/mechanics/api/part_bod.rst b/doc/src/modules/physics/mechanics/api/part_bod.rst index f1e5da3700ae..bf786796f757 100644 --- a/doc/src/modules/physics/mechanics/api/part_bod.rst +++ b/doc/src/modules/physics/mechanics/api/part_bod.rst @@ -4,11 +4,13 @@ Masses, Inertias & Particles, ...
[ { "components": [ { "doc": "", "lines": [ 143, 146 ], "name": "Body.__repr__", "signature": "def __repr__(self):", "type": "function" } ], "file": "sympy/physics/mechanics/body.py" }, { "components": [ { ...
[ "test_particle_default", "test_particle", "test_rigidbody_default" ]
[ "test_parallel_axis", "test_rigidbody", "test_rigidbody2", "test_rigidbody3", "test_pendulum_angular_momentum", "test_rigidbody_inertia" ]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Implement an abstract class for bodies <!-- 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...
8c94201570737a2fc3ef8e9cc53bed01a44e8281
sympy__sympy-24754
24,754
sympy/sympy
1.12
22520ed5f4a9b2b6c4b6b314b4748878f1b4b662
2023-02-21T13:22:11Z
diff --git a/sympy/utilities/lambdify.py b/sympy/utilities/lambdify.py index 57665c1205b7..17941fc92772 100644 --- a/sympy/utilities/lambdify.py +++ b/sympy/utilities/lambdify.py @@ -180,7 +180,7 @@ def _import(module, reload=False): @doctest_depends_on(modules=('numpy', 'scipy', 'tensorflow',), python_version=(3,))...
diff --git a/sympy/utilities/tests/test_lambdify.py b/sympy/utilities/tests/test_lambdify.py index c5bad53e0b83..a26bd7139b9b 100644 --- a/sympy/utilities/tests/test_lambdify.py +++ b/sympy/utilities/tests/test_lambdify.py @@ -1719,3 +1719,144 @@ def test_23536_lambdify_cse_dummy(): eval_expr = lambdify(((f, g), z...
[ { "components": [ { "doc": "Decide whether an ``Expr`` is too large to be fully rendered in a\n``lambdify`` docstring.\n\nThis is a fast alternative to ``count_ops``, which can become prohibitively\nslow for large expressions, because in this instance we only care whether\n``limit`` is exceeded ra...
[ "test_lambdify_docstring_size_limit_simple_symbol", "test_lambdify_docstring_size_limit_nested_expr" ]
[ "test_no_args", "test_single_arg", "test_list_args", "test_nested_args", "test_str_args", "test_own_namespace_1", "test_own_namespace_2", "test_own_module", "test_bad_args", "test_atoms", "test_sympy_lambda", "test_math_lambda", "test_mpmath_lambda", "test_number_precision", "test_mpmath...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add `docstring_limit` parameter to `lambdify` to improve performance for large expressions <!-- Your title above should be a short description of what was changed. Do not include the issue number in ...
Here is the discussion in the issues of the pull request. <issues> Lambdify slowed down by automated docstring When experimenting with some mechanics problem I ran into the problem of a long runtime of `lambdify`. Using line profile I found that of the approximate 7 hours of running `lambdify` 84.8% was spend on [expr_...
22520ed5f4a9b2b6c4b6b314b4748878f1b4b662
sqlfluff__sqlfluff-4414
4,414
sqlfluff/sqlfluff
1.4
19305b78dd6fd237053ba2435833bbe0489e5c72
2023-02-20T19:52:42Z
diff --git a/src/sqlfluff/core/linter/linter.py b/src/sqlfluff/core/linter/linter.py index 9c82923ca60..556f6d976c5 100644 --- a/src/sqlfluff/core/linter/linter.py +++ b/src/sqlfluff/core/linter/linter.py @@ -14,6 +14,7 @@ Set, Tuple, Type, + Dict, cast, ) @@ -40,7 +41,7 @@ from sqlfluff.core...
diff --git a/src/sqlfluff/utils/testing/rules.py b/src/sqlfluff/utils/testing/rules.py index 3def97065c8..2c7e833d718 100644 --- a/src/sqlfluff/utils/testing/rules.py +++ b/src/sqlfluff/utils/testing/rules.py @@ -52,7 +52,7 @@ def load_test_cases( def get_rule_from_set(code, config): """Fetch a rule from the ru...
[ { "components": [ { "doc": "Get hold of a set of rules.", "lines": [ 97, 104 ], "name": "Linter.get_rulepack", "signature": "def get_rulepack(self, config: Optional[FluffConfig] = None) -> RulePack:", "type": "function" } ], ...
[ "test/core/linter_test.py::test__linter__path_from_paths__dir", "test/core/linter_test.py::test__linter__path_from_paths__default", "test/core/linter_test.py::test__linter__path_from_paths__exts", "test/core/linter_test.py::test__linter__path_from_paths__file", "test/core/linter_test.py::test__linter__skip_...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Enable noqa using aliases and groups This is part of #4031 and builds on #4399 . The original PR added the option to use aliases and groups in rule selection, this extends that functionality to the...
792ee30e9b22f757eedc135690d100877784502d
joblib__joblib-1392
1,392
joblib/joblib
null
41b70ff10c293bd292465456434620e406d90d88
2023-02-16T16:54:03Z
diff --git a/CHANGES.rst b/CHANGES.rst index 90f2b6191..3decb56b2 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -40,6 +40,12 @@ In development tracebacks and more efficient running time. https://github.com/joblib/joblib/pull/1393 +- Add the `parallel_config` context manager to allow for more fine-grained + con...
diff --git a/joblib/test/test_parallel.py b/joblib/test/test_parallel.py index 57b554b76..38a8d9b38 100644 --- a/joblib/test/test_parallel.py +++ b/joblib/test/test_parallel.py @@ -19,7 +19,6 @@ from pickle import PicklingError from contextlib import nullcontext from multiprocessing import TimeoutError - import pyt...
diff --git a/CHANGES.rst b/CHANGES.rst index 90f2b6191..3decb56b2 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -40,6 +40,12 @@ In development tracebacks and more efficient running time. https://github.com/joblib/joblib/pull/1393 +- Add the `parallel_config` context manager to allow for more fine-grained + con...
[ { "components": [ { "doc": "A sentinel to mark a parameter as not explicitly set", "lines": [ 49, 54 ], "name": "_Sentinel", "signature": "class _Sentinel:", "type": "class" }, { "doc": "", "lines": [ ...
[ "joblib/test/test_parallel.py::test_cpu_count", "joblib/test/test_parallel.py::test_effective_n_jobs", "joblib/test/test_parallel.py::test_effective_n_jobs_None[positive-int-parallel_config]", "joblib/test/test_parallel.py::test_effective_n_jobs_None[positive-int-parallel_backend]", "joblib/test/test_parall...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> FEA parallel_config context manager to allow more fine-grained control Fixes https://github.com/joblib/joblib/issues/912 Fixes https://github.com/joblib/joblib/issues/979 related to https://github.c...
41b70ff10c293bd292465456434620e406d90d88
Textualize__textual-1786
1,786
Textualize/textual
null
07a968a6959d3895f30ab3df364146dcb2aa9ffe
2023-02-14T12:49:43Z
diff --git a/CHANGELOG.md b/CHANGELOG.md index ba5c13e796..650cc03711 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -23,7 +23,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/). - Added `DataTable.get_cell` to retrieve a cell by column/row keys https://github.com/Textualize/textual/pull/1638 ...
diff --git a/tests/test_data_table.py b/tests/test_data_table.py index d4f22db4ea..5dc6abaf23 100644 --- a/tests/test_data_table.py +++ b/tests/test_data_table.py @@ -11,8 +11,16 @@ from textual.message import Message from textual.message_pump import MessagePump from textual.widgets import DataTable -from textual.wi...
diff --git a/CHANGELOG.md b/CHANGELOG.md index ba5c13e796..650cc03711 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -23,7 +23,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/). - Added `DataTable.get_cell` to retrieve a cell by column/row keys https://github.com/Textualize/textual/pull/1638 ...
[ { "components": [ { "doc": "Raised when the user supplies a row index or row key which does\nnot exist in the DataTable (e.g. out of bounds index, invalid key)", "lines": [ 50, 51 ], "name": "RowDoesNotExist", "signature": "class RowDoesNotExist(...
[ "tests/test_data_table.py::test_key_equals_equivalent_string", "tests/test_data_table.py::test_key_doesnt_match_non_equal_string", "tests/test_data_table.py::test_key_equals_self", "tests/test_data_table.py::test_key_string_lookup" ]
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> DataTable - make `data` attribute private & expand APIs for reading data **Please review the following checklist.** - [x] Docstrings on all new or modified functions / classes - [ ] Updated docum...
86e93536b991014e0ea4bf993068202b446bb698
pylint-dev__pylint-8281
8,281
pylint-dev/pylint
2.17
e0018ea04bce285f5fed31c00d6d16367a8800c1
2023-02-13T15:37:32Z
diff --git a/doc/whatsnew/fragments/8290.feature b/doc/whatsnew/fragments/8290.feature new file mode 100644 index 0000000000..1099518d84 --- /dev/null +++ b/doc/whatsnew/fragments/8290.feature @@ -0,0 +1,3 @@ +Add globbing pattern support for ``--source-roots``. + +Closes #8290 diff --git a/pylint/config/argument.py b/...
diff --git a/tests/lint/unittest_lint.py b/tests/lint/unittest_lint.py index 23cde49674..5aa08572f4 100644 --- a/tests/lint/unittest_lint.py +++ b/tests/lint/unittest_lint.py @@ -1208,6 +1208,20 @@ def test_recursive_ignore(ignore_parameter: str, ignore_parameter_value: str) -> assert module in linted_file_paths ...
diff --git a/doc/whatsnew/fragments/8290.feature b/doc/whatsnew/fragments/8290.feature new file mode 100644 index 0000000000..1099518d84 --- /dev/null +++ b/doc/whatsnew/fragments/8290.feature @@ -0,0 +1,3 @@ +Add globbing pattern support for ``--source-roots``. + +Closes #8290
[ { "components": [ { "doc": "Transforms a comma separated list of paths while expanding user and\nvariables and glob patterns.", "lines": [ 92, 99 ], "name": "_glob_paths_csv_transformer", "signature": "def _glob_paths_csv_transformer(value: str) ...
[ "tests/lint/unittest_lint.py::test_source_roots_globbing" ]
[ "tests/lint/unittest_lint.py::test_deprecated", "tests/lint/unittest_lint.py::test_no_args", "tests/lint/unittest_lint.py::test_one_arg[case0]", "tests/lint/unittest_lint.py::test_one_arg[case1]", "tests/lint/unittest_lint.py::test_one_arg[case2]", "tests/lint/unittest_lint.py::test_one_arg[case3]", "te...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Support globbing patterns for source-roots <!-- Thank you for submitting a PR to pylint! To ease the process of reviewing your PR, do make sure to complete the following boxes. - [ ] Write a go...
Here is the discussion in the issues of the pull request. <issues> Support globbing patterns for source-roots ### Current problem It's quite inconvenient having to specify every source root for complex multi-package projects like `--source-roots src/package1,src/package2,...,src/packageN` ### Desired solution For co...
2186bd9ca3766d9285810f6b5173a36ce9aed286
conan-io__conan-13110
13,110
conan-io/conan
null
0bc381a54cecb857ef88ce1d989eb8949dad902d
2023-02-13T00:01:16Z
diff --git a/conan/api/subapi/profiles.py b/conan/api/subapi/profiles.py index e337b4ac51b..f1181e16093 100644 --- a/conan/api/subapi/profiles.py +++ b/conan/api/subapi/profiles.py @@ -42,8 +42,9 @@ def get_profile(self, profiles, settings=None, options=None, conf=None, cwd=None """ assert isinstance(...
diff --git a/conans/test/functional/command/profile_test.py b/conans/test/functional/command/profile_test.py index 07fa277c28d..2f3cf355839 100644 --- a/conans/test/functional/command/profile_test.py +++ b/conans/test/functional/command/profile_test.py @@ -60,8 +60,7 @@ def test_show(self): [options] ...
[ { "components": [ { "doc": "", "lines": [ 253, 257 ], "name": "Conf.validate", "signature": "def validate(self):", "type": "function" }, { "doc": "", "lines": [ 622, 624 ], "...
[ "conans/test/integration/configuration/conf/test_conf.py::test_nonexisting_conf", "conans/test/integration/configuration/conf/test_conf.py::test_nonexisting_conf_global_conf", "conans/test/unittests/client/profile_loader/compiler_cppstd_test.py::SettingsCppStdTests::test_no_compiler_cppstd", "conans/test/unit...
[ "conans/test/functional/command/profile_test.py::TestProfile::test_list", "conans/test/functional/command/profile_test.py::TestProfile::test_list_empty", "conans/test/functional/command/profile_test.py::TestProfile::test_missing_subarguments", "conans/test/functional/command/profile_test.py::TestProfile::test...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> [develop2] validate confs core. tools. Changelog: Feature: Validate if the input configurations exist, to avoid typos. ---------- </request> There are several new functions or classes that need to...
4a5b19a75db9225316c8cb022a2dfb9705a2af34
sympy__sympy-24698
24,698
sympy/sympy
1.12
a767a207cbacc969ea0a65276ecca7855bd79aa5
2023-02-10T11:07:28Z
diff --git a/doc/src/modules/physics/control/lti.rst b/doc/src/modules/physics/control/lti.rst index 5c28064dce51..fcd94ef218c8 100644 --- a/doc/src/modules/physics/control/lti.rst +++ b/doc/src/modules/physics/control/lti.rst @@ -32,3 +32,5 @@ lti :members: .. autofunction:: bilinear + +.. autofunction:: backwa...
diff --git a/sympy/physics/control/tests/test_lti.py b/sympy/physics/control/tests/test_lti.py index eeea0d4638c4..5d0f4b67e28c 100644 --- a/sympy/physics/control/tests/test_lti.py +++ b/sympy/physics/control/tests/test_lti.py @@ -14,7 +14,8 @@ from sympy.core.containers import Tuple from sympy.matrices import Immuta...
diff --git a/doc/src/modules/physics/control/lti.rst b/doc/src/modules/physics/control/lti.rst index 5c28064dce51..fcd94ef218c8 100644 --- a/doc/src/modules/physics/control/lti.rst +++ b/doc/src/modules/physics/control/lti.rst @@ -32,3 +32,5 @@ lti :members: .. autofunction:: bilinear + +.. autofunction:: backwa...
[ { "components": [ { "doc": "Returns falling coefficients of H(z) from numerator and denominator.\nWhere H(z) is the corresponding discretized transfer function,\ndiscretized with the backward difference transform method.\nH(z) is obtained from the continuous transfer function H(s)\nby substituting...
[ "test_TransferFunction_construction", "test_TransferFunction_functions", "test_TransferFunction_addition_and_subtraction", "test_TransferFunction_multiplication_and_division", "test_TransferFunction_is_proper", "test_TransferFunction_is_strictly_proper", "test_TransferFunction_is_biproper", "test_Seri...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> backward_diff discretization of cont. transfer function # Added backward difference discretization method to physics.control.lti #### References to other Issues or PRs It is a 1 to 1 extension o...
22520ed5f4a9b2b6c4b6b314b4748878f1b4b662
conan-io__conan-13074
13,074
conan-io/conan
null
2a74f060af2da618a11a4d226fb761f4393a796e
2023-02-08T11:46:54Z
diff --git a/conan/cli/cli.py b/conan/cli/cli.py index a211e82c31f..27b2f90b714 100644 --- a/conan/cli/cli.py +++ b/conan/cli/cli.py @@ -1,6 +1,7 @@ import importlib import os import pkgutil +import re import signal import sys import textwrap @@ -162,7 +163,38 @@ def run(self, *args): self._print_sim...
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 f55bf67fcce..9ef0328fe23 100644 --- a/conans/test/integration/conan_v2/test_legacy_cpp_info.py +++ b/conans/test/integration/conan_v2/test_legacy_cpp_info.py @@ -1,6 +1,9 @@ import tex...
[ { "components": [ { "doc": "", "lines": [ 173, 197 ], "name": "Cli._conan2_migrate_recipe_msg", "signature": "def _conan2_migrate_recipe_msg(exception):", "type": "function" } ], "file": "conan/cli/cli.py" } ]
[ "conans/test/integration/conan_v2/test_legacy_cpp_info.py::TestLegacy1XRecipes::test_legacy_imports", "conans/test/integration/conan_v2/test_legacy_cpp_info.py::TestLegacy1XRecipes::test_legacy_build" ]
[ "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> [develop2] add error messages for recipe migration Changelog: Feature: Add error messages to help with the migration of recipes to 2.0, both from ConanCenter and from user repos. ---------- </request>...
4a5b19a75db9225316c8cb022a2dfb9705a2af34
sympy__sympy-24681
24,681
sympy/sympy
1.12
a767a207cbacc969ea0a65276ecca7855bd79aa5
2023-02-08T02:21:35Z
diff --git a/sympy/polys/matrices/ddm.py b/sympy/polys/matrices/ddm.py index f0155d9e4da4..d9e2ca778b84 100644 --- a/sympy/polys/matrices/ddm.py +++ b/sympy/polys/matrices/ddm.py @@ -82,7 +82,7 @@ class takes care of copying etc and also stores a Domain object associated ) from sympy.polys.domains import QQ...
diff --git a/sympy/polys/matrices/tests/test_lll.py b/sympy/polys/matrices/tests/test_lll.py index 9dc8ef4ad275..65cca7e5136a 100644 --- a/sympy/polys/matrices/tests/test_lll.py +++ b/sympy/polys/matrices/tests/test_lll.py @@ -2,7 +2,7 @@ from sympy.polys.matrices import DM from sympy.polys.matrices.domainmatrix impo...
[ { "components": [ { "doc": "", "lines": [ 492, 493 ], "name": "DDM.lll_transform", "signature": "def lll_transform(A, delta=QQ(3, 4)):", "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 transformation matrix to LLL #### References to other Issues or PRs See recent pull request adding LLL [here](https://github.com/sympy/sympy/pull/24572) #### Brief description of what is fixed...
22520ed5f4a9b2b6c4b6b314b4748878f1b4b662
tobymao__sqlglot-1115
1,115
tobymao/sqlglot
null
7e2e4e8dcbd4a92652f88e8d2106ed98e5aac040
2023-02-07T19:09:37Z
diff --git a/sqlglot/expressions.py b/sqlglot/expressions.py index 9f4c83b27d..6bb083a125 100644 --- a/sqlglot/expressions.py +++ b/sqlglot/expressions.py @@ -2274,6 +2274,30 @@ def ctas(self, table, properties=None, dialect=None, copy=True, **opts) -> Creat properties=properties_expression, ) +...
diff --git a/tests/test_build.py b/tests/test_build.py index a1a268ded6..fbfbb62f7e 100644 --- a/tests/test_build.py +++ b/tests/test_build.py @@ -62,6 +62,16 @@ def test_build(self): lambda: select("x").from_("tbl").where("x > 0").where("x < 9", append=False), "SELECT x FROM tbl WHERE...
[]
[ "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 reading lock builder for selects {} ---------- </request> There are several new functions or classes that need to be implemented, using the definitions below: <<NEW DEFINITIONS>> There are seve...
ceb42fabad60312699e4b15936aeebac00e22e4d
conan-io__conan-13041
13,041
conan-io/conan
null
1e0db58c6d96b162b16800cdbfa2f63d604543bf
2023-02-03T11:52:00Z
diff --git a/conan/tools/microsoft/__init__.py b/conan/tools/microsoft/__init__.py index 9c0bb920d5f..c060c64b821 100644 --- a/conan/tools/microsoft/__init__.py +++ b/conan/tools/microsoft/__init__.py @@ -6,4 +6,4 @@ from conan.tools.microsoft.nmaketoolchain import NMakeToolchain from conan.tools.microsoft.nmakedeps ...
diff --git a/conans/test/unittests/tools/microsoft/test_msvs_toolset.py b/conans/test/unittests/tools/microsoft/test_msvs_toolset.py new file mode 100644 index 00000000000..de1ec93b09a --- /dev/null +++ b/conans/test/unittests/tools/microsoft/test_msvs_toolset.py @@ -0,0 +1,141 @@ +import pytest +from conan.tools.micro...
[ { "components": [ { "doc": "Returns the corresponding platform toolset based on the compiler of the given conanfile.\n In case no toolset is configured in the profile, it will return a toolset based on the\n compiler version, otherwise, it will return the toolset from the profile.\n When ...
[ "conans/test/unittests/tools/microsoft/test_msvs_toolset.py::test_visual_studio_default[17-v143]", "conans/test/unittests/tools/microsoft/test_msvs_toolset.py::test_visual_studio_default[16-v142]", "conans/test/unittests/tools/microsoft/test_msvs_toolset.py::test_visual_studio_default[15-v141]", "conans/test/...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Export msvs_toolset to conan.tools.microsoft.visual Changelog: Feature: Add `msvs_toolset` method to `conan.tools.microsoft.visual` to identify which toolset version is associated to the compiler vers...
Here is the discussion in the issues of the pull request. <issues> [feature] Provide conan.tools.microsoft.msvs_toolset equivalent of conans.tools.msvs_toolset Would it be possible to provide the [msvs_toolset](https://docs.conan.io/en/latest/reference/tools.html#tools-msvs-toolset) function in the `conan` namespace an...
4a5b19a75db9225316c8cb022a2dfb9705a2af34
RDFLib__rdflib-2221
2,221
RDFLib/rdflib
null
9625ed0b432c9085e2d9dda1fd8acf707b9022ab
2023-02-02T15:55:33Z
diff --git a/rdflib/plugins/sparql/algebra.py b/rdflib/plugins/sparql/algebra.py index 1429012b7..5f6a774aa 100644 --- a/rdflib/plugins/sparql/algebra.py +++ b/rdflib/plugins/sparql/algebra.py @@ -335,7 +335,11 @@ def translateGroupGraphPattern(graphPattern: CompValue) -> CompValue: """ if graphPattern.name...
diff --git a/test/test_sparql/test_sparql.py b/test/test_sparql/test_sparql.py index 32cc82d72..7d66f2c1f 100644 --- a/test/test_sparql/test_sparql.py +++ b/test/test_sparql/test_sparql.py @@ -867,3 +867,95 @@ def test_queries( result = rdfs_graph.query(query) logging.debug("result = %s", result) assert ...
[ { "components": [ { "doc": "", "lines": [ 588, 620 ], "name": "evalDescribeQuery", "signature": "def evalDescribeQuery(ctx: QueryContext, query) -> Dict[str, Union[str, Graph]]:", "type": "function" } ], "file": "rdflib/plug...
[ "test/test_sparql/test_sparql.py::test_sparql_describe[1-explicit]", "test/test_sparql/test_sparql.py::test_sparql_describe[2-explict]", "test/test_sparql/test_sparql.py::test_sparql_describe[3-explict-1-missing]", "test/test_sparql/test_sparql.py::test_sparql_describe[1-var]", "test/test_sparql/test_sparql...
[ "test/test_sparql/test_sparql.py::test_graph_prefix", "test/test_sparql/test_sparql.py::test_variable_order", "test/test_sparql/test_sparql.py::test_sparql_bnodelist", "test/test_sparql/test_sparql.py::test_complex_sparql_construct", "test/test_sparql/test_sparql.py::test_sparql_update_with_bnode", "test/...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add SPARQL DESCRIBE query implementation <!-- Thank you for your contribution to this project. This project has no formal funding or full-time maintainers and relies entirely on independent contrib...
Here is the discussion in the issues of the pull request. <issues> DESCRIBE query not working Apparently DESCRIBE queries are not fully implemented yet? This is what I get with two different queries: ###### 1) g.query('DESCRIBE http://www.example.org/a') ... /usr/lib/python2.7/site-packages/rdflib/plugins/sparql/alge...
0c11debb5178157baeac27b735e49a757916d2a6
scrapy__scrapy-5821
5,821
scrapy/scrapy
null
b337c986ca1188f4b26d30c9ae4bb7ff457ed505
2023-02-01T02:18:00Z
diff --git a/scrapy/settings/__init__.py b/scrapy/settings/__init__.py index fde8fdde424..a3b849f7b2f 100644 --- a/scrapy/settings/__init__.py +++ b/scrapy/settings/__init__.py @@ -293,6 +293,13 @@ def set(self, name, value, priority="project"): else: self.attributes[name].set(value, priority) +...
diff --git a/tests/test_settings/__init__.py b/tests/test_settings/__init__.py index 2a3b2d529dc..cb948c84c69 100644 --- a/tests/test_settings/__init__.py +++ b/tests/test_settings/__init__.py @@ -65,6 +65,19 @@ class BaseSettingsTest(unittest.TestCase): def setUp(self): self.settings = BaseSettings() +...
[ { "components": [ { "doc": "", "lines": [ 296, 301 ], "name": "BaseSettings.setdefault", "signature": "def setdefault(self, name, default=None, priority=\"project\"):", "type": "function" } ], "file": "scrapy/settings/__init...
[ "tests/test_settings/__init__.py::BaseSettingsTest::test_setdefault_not_existing_value" ]
[ "tests/test_settings/__init__.py::SettingsGlobalFuncsTest::test_get_settings_priority", "tests/test_settings/__init__.py::SettingsAttributeTest::test_overwrite_basesettings", "tests/test_settings/__init__.py::SettingsAttributeTest::test_repr", "tests/test_settings/__init__.py::SettingsAttributeTest::test_set_...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Added `setdefault` to `BaseSettings` Added the `setdefault` method to the `BaseSettings` class. Now `setdefault` works as expected, if the _key_ does not exist in `BaseSettings` then this _key_ wil...
57a5460529ff71c42e4d0381265b1b512b1eb09b