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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
joke2k__faker-1535 | 1,535 | joke2k/faker | null | 2dcaea2e9992cc7e002269f94c928005d1d01399 | 2021-10-07T09:49:24Z | diff --git a/faker/providers/currency/nl_NL/__init__.py b/faker/providers/currency/nl_NL/__init__.py
new file mode 100644
index 0000000000..63094d133d
--- /dev/null
+++ b/faker/providers/currency/nl_NL/__init__.py
@@ -0,0 +1,9 @@
+from faker.providers.currency import Provider as CurrencyProvider
+
+
+class Provider(Cur... | diff --git a/tests/providers/test_currency.py b/tests/providers/test_currency.py
index d63a8a383a..9f16c06f95 100644
--- a/tests/providers/test_currency.py
+++ b/tests/providers/test_currency.py
@@ -362,3 +362,19 @@ def test_pricetag(self, faker, num_samples):
for _ in range(num_samples):
pricetag... | [
{
"components": [
{
"doc": "",
"lines": [
4,
9
],
"name": "Provider",
"signature": "class Provider(CurrencyProvider):",
"type": "class"
},
{
"doc": "",
"lines": [
8,
9
],
"na... | [
"tests/providers/test_currency.py::TestNlNl::test_pricetag"
] | [
"tests/providers/test_currency.py::TestCurrencyProvider::test_currency",
"tests/providers/test_currency.py::TestCurrencyProvider::test_currency_code",
"tests/providers/test_currency.py::TestCurrencyProvider::test_currency_name",
"tests/providers/test_currency.py::TestCurrencyProvider::test_currency_symbol_no_... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Added currency provider for nl_NL
### What does this changes
Added a currency provider for Dutch (`nl_NL`).
### What was wrong
`faker` dit not include the correct price format (Euro sign bef... | 6edfdbf6ae90b0153309e3bf066aa3b2d16494a7 | ||
joke2k__faker-1532 | 1,532 | joke2k/faker | null | 5f8d3bc24a595e19f847cc689d15a853ab305175 | 2021-10-06T22:11:38Z | diff --git a/faker/providers/color/el_GR/__init__.py b/faker/providers/color/el_GR/__init__.py
new file mode 100644
index 0000000000..092004249f
--- /dev/null
+++ b/faker/providers/color/el_GR/__init__.py
@@ -0,0 +1,101 @@
+from collections import OrderedDict
+
+from .. import Provider as ColorProvider
+
+localized = T... | diff --git a/tests/providers/test_color.py b/tests/providers/test_color.py
index 52d15336f8..5ad81cecb7 100644
--- a/tests/providers/test_color.py
+++ b/tests/providers/test_color.py
@@ -6,6 +6,7 @@
from faker.providers.color import RandomColor
from faker.providers.color.bg_BG import Provider as BgBgColorProvider
+... | [
{
"components": [
{
"doc": "Implement color provider for ``el_GR`` locale.\nNaming and hex codes are based on https://encycolorpedia.gr/named",
"lines": [
8,
100
],
"name": "Provider",
"signature": "class Provider(ColorProvider):",
"type"... | [
"tests/providers/test_color.py::TestColorProvider::test_safe_hex_color",
"tests/providers/test_color.py::TestColorProvider::test_hex_color",
"tests/providers/test_color.py::TestColorProvider::test_rgb_color",
"tests/providers/test_color.py::TestColorProvider::test_rgb_css_color",
"tests/providers/test_color... | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Add `color` provider for `el_GR`
### What does this changes
Add `color` provider for `el_GR`
### What was wrong
There was `color` provider for `el_GR`
### How this fixes it
Introducing ... | 6edfdbf6ae90b0153309e3bf066aa3b2d16494a7 | ||
RDFLib__rdflib-1425 | 1,425 | RDFLib/rdflib | null | 49462fddad2bd2ff148134b49241e1c9d5a8e09f | 2021-10-02T05:57:05Z | diff --git a/docs/intro_to_parsing.rst b/docs/intro_to_parsing.rst
index 0333c4eeb..b74793a91 100644
--- a/docs/intro_to_parsing.rst
+++ b/docs/intro_to_parsing.rst
@@ -84,9 +84,9 @@ To store a graph in a file, use the :func:`rdflib.Graph.serialize` function:
g.serialize(destination="tbl.ttl")
This parses data ... | diff --git a/test/test_turtle2.py b/test/test_turtle2.py
new file mode 100644
index 000000000..fef0efab7
--- /dev/null
+++ b/test/test_turtle2.py
@@ -0,0 +1,207 @@
+# tests for the turtle2 serializer
+
+from rdflib import Graph
+
+
+def test_turtle2():
+ g = Graph()
+
+ g.parse(
+ data="""
+ @prefix... | diff --git a/docs/intro_to_parsing.rst b/docs/intro_to_parsing.rst
index 0333c4eeb..b74793a91 100644
--- a/docs/intro_to_parsing.rst
+++ b/docs/intro_to_parsing.rst
@@ -84,9 +84,9 @@ To store a graph in a file, use the :func:`rdflib.Graph.serialize` function:
g.serialize(destination="tbl.ttl")
This parses data ... | [
{
"components": [
{
"doc": "",
"lines": [
34,
305
],
"name": "TurtleSerializer2",
"signature": "class TurtleSerializer2(RecursiveSerializer):",
"type": "class"
},
{
"doc": "",
"lines": [
39,
... | [
"test/test_turtle2.py::test_turtle2"
] | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
A new Turtle serializer
This is a slightly improved, or at least changed, Turtle serializer that does more indenting and new lining.
In particular it:
* uses PREFIX instead of @prefix
* uses BA... | 0c11debb5178157baeac27b735e49a757916d2a6 | |
huggingface__huggingface_hub-382 | 382 | huggingface/huggingface_hub | null | 3837f4dfdbec097918ce2f2b8d31d6fe1dc9ac54 | 2021-10-01T09:51:46Z | diff --git a/modelcard.md b/modelcard.md
index 4e3d0c9aab..e97e2f0381 100644
--- a/modelcard.md
+++ b/modelcard.md
@@ -2,7 +2,7 @@
language:
- {lang_0} # Example: fr
- {lang_1} # Example: en
-license: {license} # Example: apache-2.0 or any license from https://huggingface.co/docs/hub/model-repos#list-of-license-i... | diff --git a/tests/test_repocard.py b/tests/test_repocard.py
index f9baa03c68..aee51bd412 100644
--- a/tests/test_repocard.py
+++ b/tests/test_repocard.py
@@ -17,7 +17,7 @@
from pathlib import Path
from huggingface_hub.constants import REPOCARD_NAME
-from huggingface_hub.repocard import metadata_load, metadata_save... | diff --git a/modelcard.md b/modelcard.md
index 4e3d0c9aab..e97e2f0381 100644
--- a/modelcard.md
+++ b/modelcard.md
@@ -2,7 +2,7 @@
language:
- {lang_0} # Example: fr
- {lang_1} # Example: en
-license: {license} # Example: apache-2.0 or any license from https://huggingface.co/docs/hub/model-repos#list-of-license-i... | [
{
"components": [
{
"doc": "",
"lines": [
72,
102
],
"name": "metadata_eval_result",
"signature": "def metadata_eval_result( model_pretty_name: str, task_pretty_name: str, task_id: str, metrics_pretty_name: str, metrics_id: str, metrics_value: An... | [
"tests/test_repocard.py::RepocardTest::test_metadata_eval_result",
"tests/test_repocard.py::RepocardTest::test_metadata_load",
"tests/test_repocard.py::RepocardTest::test_metadata_save",
"tests/test_repocard.py::RepocardTest::test_metadata_save_from_file_no_yaml",
"tests/test_repocard.py::RepocardTest::test... | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Add helper to generate an eval result `model-index`, with proper typing
I think this is helpful (and could replace some code in `transformers`) but let me know, it can probably be improved.
The "ty... | 4058e1f97ebe256b2f3006d4bc31be275c66df6b | |
joke2k__faker-1521 | 1,521 | joke2k/faker | null | 948461af5094e9a2de1bd3357e715981490264a1 | 2021-09-28T11:27:01Z | diff --git a/faker/providers/color/bg_BG/__init__.py b/faker/providers/color/bg_BG/__init__.py
new file mode 100644
index 0000000000..325dbce0ce
--- /dev/null
+++ b/faker/providers/color/bg_BG/__init__.py
@@ -0,0 +1,74 @@
+from collections import OrderedDict
+
+from .. import Provider as ColorProvider
+
+localized = Tr... | diff --git a/tests/providers/test_color.py b/tests/providers/test_color.py
index 328e72176c..52d15336f8 100644
--- a/tests/providers/test_color.py
+++ b/tests/providers/test_color.py
@@ -5,6 +5,7 @@
import pytest
from faker.providers.color import RandomColor
+from faker.providers.color.bg_BG import Provider as BgBg... | [
{
"components": [
{
"doc": "Implement color provider for ``bg_BG`` locale.",
"lines": [
8,
73
],
"name": "Provider",
"signature": "class Provider(ColorProvider):",
"type": "class"
}
],
"file": "faker/providers/color/bg_BG/__... | [
"tests/providers/test_color.py::TestColorProvider::test_safe_hex_color",
"tests/providers/test_color.py::TestColorProvider::test_hex_color",
"tests/providers/test_color.py::TestColorProvider::test_rgb_color",
"tests/providers/test_color.py::TestColorProvider::test_rgb_css_color",
"tests/providers/test_color... | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
added bg_BG color provider and tests
### What does this changes
Creates a bg_BG color provider and tests.
----------
</request>
There are several new functions or classes that need to be implem... | 6edfdbf6ae90b0153309e3bf066aa3b2d16494a7 | ||
tobymao__sqlglot-29 | 29 | tobymao/sqlglot | null | 310f93f00eed73c290f67ad80f90c2cc745cb5b7 | 2021-09-23T17:50:20Z | diff --git a/sqlglot/expressions.py b/sqlglot/expressions.py
index 4bee7cfe6a..358c8005c6 100644
--- a/sqlglot/expressions.py
+++ b/sqlglot/expressions.py
@@ -1,6 +1,7 @@
from copy import deepcopy
import weakref
+from sqlglot.helper import camel_to_snake_case, ensure_list
from sqlglot.tokens import TokenType
@... | diff --git a/tests/test_generator.py b/tests/test_generator.py
new file mode 100644
index 0000000000..c3b9b74aef
--- /dev/null
+++ b/tests/test_generator.py
@@ -0,0 +1,32 @@
+
+import unittest
+
+from sqlglot.expressions import Func
+from sqlglot.parser import Parser
+from sqlglot.tokens import Tokenizer
+
+
+class Tes... | [] | [
"tests/test_generator.py::TestGenerator::test_fallback_function_sql",
"tests/test_generator.py::TestGenerator::test_fallback_function_var_args_sql"
] | [
"tests/test_transpile.py::TestTranspile::test_asc",
"tests/test_transpile.py::TestTranspile::test_comments",
"tests/test_transpile.py::TestTranspile::test_custom_transform",
"tests/test_transpile.py::TestTranspile::test_extract",
"tests/test_transpile.py::TestTranspile::test_identity",
"tests/test_transpi... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Simplify registration of custom functions in the parser and generator
This is to simplify the extension of sqlglot with custom function.
My assumption is that in a vast majority of cases generatio... | ceb42fabad60312699e4b15936aeebac00e22e4d | ||
tobymao__sqlglot-24 | 24 | tobymao/sqlglot | null | beb03b07776502b9647fdb8da1e838ad499ab9f0 | 2021-09-21T20:03:47Z | diff --git a/README.md b/README.md
index 75de5adbc6..275aa696ce 100644
--- a/README.md
+++ b/README.md
@@ -138,6 +138,27 @@ Generator(transforms={
SELECT SPECIAL_UDF_INVERSE(b, a) FROM x
```
+### Transform Trees
+There is also a way to transform the parsed tree directly by applying a mapping function to each tree n... | diff --git a/tests/test_expressions.py b/tests/test_expressions.py
index 674bcb4f0a..85df04ed83 100644
--- a/tests/test_expressions.py
+++ b/tests/test_expressions.py
@@ -1,17 +1,17 @@
import unittest
import sqlglot.expressions as exp
-from sqlglot import parse
+from sqlglot import parse_one
class TestExpression... | diff --git a/README.md b/README.md
index 75de5adbc6..275aa696ce 100644
--- a/README.md
+++ b/README.md
@@ -138,6 +138,27 @@ Generator(transforms={
SELECT SPECIAL_UDF_INVERSE(b, a) FROM x
```
+### Transform Trees
+There is also a way to transform the parsed tree directly by applying a mapping function to each tree n... | [] | [
"tests/test_expressions.py::TestExpressions::test_find",
"tests/test_expressions.py::TestExpressions::test_find_all",
"tests/test_expressions.py::TestExpressions::test_sql",
"tests/test_expressions.py::TestExpressions::test_transform_no_infinite_recursion",
"tests/test_expressions.py::TestExpressions::test_... | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Introduce the ability to transform the parsed tree by applying a mapping function to each tree node recursively
{}
----------
</request>
There are several new functions or classes that need to be im... | ceb42fabad60312699e4b15936aeebac00e22e4d | |
huggingface__pytorch-image-models-876 | 876 | huggingface/pytorch-image-models | null | b5bf4dce98a09cb25a274f360c08f23998faedb8 | 2021-09-21T11:53:01Z | diff --git a/timm/utils/model.py b/timm/utils/model.py
index bd46e2f49c..ffe66049c2 100644
--- a/timm/utils/model.py
+++ b/timm/utils/model.py
@@ -2,9 +2,15 @@
Hacked together by / Copyright 2020 Ross Wightman
"""
-from .model_ema import ModelEma
+from logging import root
+from typing import Sequence
+
import torc... | diff --git a/tests/test_utils.py b/tests/test_utils.py
new file mode 100644
index 0000000000..b0f890d2fe
--- /dev/null
+++ b/tests/test_utils.py
@@ -0,0 +1,57 @@
+from torch.nn.modules.batchnorm import BatchNorm2d
+from torchvision.ops.misc import FrozenBatchNorm2d
+
+import timm
+from timm.utils.model import freeze, u... | [
{
"components": [
{
"doc": "Converts all `BatchNorm2d` and `SyncBatchNorm` layers of provided module into `FrozenBatchNorm2d`. If `module` is\nitself an instance of either `BatchNorm2d` or `SyncBatchNorm`, it is converted into `FrozenBatchNorm2d` and\nreturned. Otherwise, the module is walked recu... | [
"tests/test_utils.py::test_freeze_unfreeze"
] | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Helper to freeze specific model layers
Currently in draft for visibility.
Adds freeze/unfreeze to timm.utils. These let you provide a list of modules or module names for which to freeze parameters.... | 9260cf517d6ba597b33ad1bbf7dbff9d0ccadd75 | ||
sympy__sympy-22114 | 22,114 | sympy/sympy | 1.10 | bbf8e240a3cfce942b19b86a079b8373bafde1c6 | 2021-09-18T14:06:15Z | diff --git a/sympy/matrices/expressions/matexpr.py b/sympy/matrices/expressions/matexpr.py
index c94803b565ae..8dca7124637d 100644
--- a/sympy/matrices/expressions/matexpr.py
+++ b/sympy/matrices/expressions/matexpr.py
@@ -176,7 +176,6 @@ def is_square(self):
def _eval_conjugate(self):
from sympy.matric... | diff --git a/sympy/matrices/expressions/tests/test_matexpr.py b/sympy/matrices/expressions/tests/test_matexpr.py
index 004d98444708..658a7956fbab 100644
--- a/sympy/matrices/expressions/tests/test_matexpr.py
+++ b/sympy/matrices/expressions/tests/test_matexpr.py
@@ -8,6 +8,7 @@
from sympy.matrices import (ImmutableMat... | [
{
"components": [
{
"doc": "",
"lines": [
189,
190
],
"name": "MatrixExpr._eval_determinant",
"signature": "def _eval_determinant(self):",
"type": "function"
},
{
"doc": "",
"lines": [
264,
... | [
"test_MatrixSymbol_determinant"
] | [
"test_matrix_symbol_creation",
"test_shape",
"test_matexpr",
"test_subs",
"test_addition",
"test_multiplication",
"test_MatPow",
"test_MatrixSymbol",
"test_dense_conversion",
"test_free_symbols",
"test_zero_matmul",
"test_matadd_simplify",
"test_matmul_simplify",
"test_invariants",
"test... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Added .det()-method to MatExpr
<!-- Your title above should be a short description of what
was changed. Do not include the issue number in the title. -->
#### References to other Issues or PRs
<!... | 3e8695add7a25c8d70aeba7d6137496df02863fd | ||
Project-MONAI__MONAI-2943 | 2,943 | Project-MONAI/MONAI | null | 7ab0711dbd6a67139430a747e7e27e166db599ba | 2021-09-13T15:56:10Z | diff --git a/monai/transforms/__init__.py b/monai/transforms/__init__.py
index 9575a412b4..8a32b9e0b8 100644
--- a/monai/transforms/__init__.py
+++ b/monai/transforms/__init__.py
@@ -524,4 +524,4 @@
weighted_patch_samples,
zero_margins,
)
-from .utils_pytorch_numpy_unification import in1d, moveaxis, where
+f... | diff --git a/tests/test_scale_intensity_range.py b/tests/test_scale_intensity_range.py
index cba07d9157..d64f09ae82 100644
--- a/tests/test_scale_intensity_range.py
+++ b/tests/test_scale_intensity_range.py
@@ -11,19 +11,18 @@
import unittest
-import numpy as np
-
from monai.transforms import ScaleIntensityRange
... | [
{
"components": [
{
"doc": "`np.clip` with equivalent implementation for torch.",
"lines": [
60,
67
],
"name": "clip",
"signature": "def clip(a: NdarrayOrTensor, a_min, a_max) -> NdarrayOrTensor:",
"type": "function"
},
{
... | [
"tests/test_scale_intensity_range.py::IntensityScaleIntensityRange::test_image_scale_intensity_range",
"tests/test_scale_intensity_range_percentiles.py::TestScaleIntensityRangePercentiles::test_invalid_instantiation",
"tests/test_scale_intensity_range_percentiles.py::TestScaleIntensityRangePercentiles::test_rel... | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
ScaleIntensityRange, ScaleIntensityRanged, ScaleIntensityRangePercentiles, ScaleIntensityRangePercentilesd
Fixes https://github.com/Project-MONAI/MONAI/issues/2928.
### Description
`ScaleIntensity... | e73257caa79309dcce1e93abf1632f4bfd75b11f | ||
huggingface__huggingface_hub-339 | 339 | huggingface/huggingface_hub | null | 259a4cede1525d320a8d7cc6e759fc176b4a98f3 | 2021-09-09T21:34:50Z | diff --git a/setup.py b/setup.py
index f5b87210af..17d77c5038 100644
--- a/setup.py
+++ b/setup.py
@@ -15,6 +15,7 @@ def get_version() -> str:
"filelock",
"requests",
"tqdm",
+ "pyyaml",
"typing-extensions",
"importlib_metadata;python_version<'3.8'",
"packaging>=20.9",
diff --git a/src/... | diff --git a/tests/test_repocard.py b/tests/test_repocard.py
new file mode 100644
index 0000000000..0dc44f86e5
--- /dev/null
+++ b/tests/test_repocard.py
@@ -0,0 +1,102 @@
+# Copyright 2021 The HuggingFace Team. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not us... | [
{
"components": [
{
"doc": "",
"lines": [
12,
23
],
"name": "metadata_load",
"signature": "def metadata_load(local_path: Union[str, Path]) -> Optional[Dict]:",
"type": "function"
},
{
"doc": "",
"lines": [
... | [
"tests/test_repocard.py::RepocardTest::test_metadata_load",
"tests/test_repocard.py::RepocardTest::test_metadata_save",
"tests/test_repocard.py::RepocardTest::test_metadata_save_from_file_no_yaml",
"tests/test_repocard.py::RepocardTest::test_no_metadata_returns_none"
] | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Repo metadata load and save
Tentatively close #54
Example use case:
- goal: updating all licenses for Helsinki-NLP models with no license, to `apache-2.0` – see https://github.com/huggingface/tra... | Here is the discussion in the issues of the pull request.
<issues>
Feature Request: Have programatic way of adding metadata to a repo
If a user creates dozens of repos programmatically, and then realized they forgot adding some tag or any other info for the metadata, they will have to either go through each of them man... | 4058e1f97ebe256b2f3006d4bc31be275c66df6b | |
openvinotoolkit__datumaro-444 | 444 | openvinotoolkit/datumaro | null | 2db47002f37b3b86ba8ac3f42439ecb919e0792f | 2021-09-02T16:18:55Z | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 4102485ca9..5e52f9a812 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -14,6 +14,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Annotation-related classes were moved into a new module,
`datumaro.components.annotation`
(<https... | diff --git a/tests/test_util.py b/tests/test_util.py
index f124e7cdb2..66a791df76 100644
--- a/tests/test_util.py
+++ b/tests/test_util.py
@@ -1,127 +1,130 @@
+from contextlib import suppress
from unittest import TestCase, mock
import os
import os.path as osp
-from datumaro.util import (
- Rollback, error_rollb... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 4102485ca9..5e52f9a812 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -14,6 +14,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Annotation-related classes were moved into a new module,
`datumaro.components.annotation`
(<https... | [
{
"components": [
{
"doc": "A context manager that allows to register error and exit callbacks.",
"lines": [
16,
119
],
"name": "Scope",
"signature": "class Scope:",
"type": "class"
},
{
"doc": "",
"lines": [
... | [
"tests/test_util.py::ScopeTest::test_adds_cm",
"tests/test_util.py::ScopeTest::test_calls_both_callbacks_on_error",
"tests/test_util.py::ScopeTest::test_calls_cm_on_error",
"tests/test_util.py::ScopeTest::test_calls_only_exit_callback_on_exit",
"tests/test_util.py::ScopeTest::test_can_fowrard_args",
"test... | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Replace Rollback with Scope
<!-- Contributing guide: https://github.com/openvinotoolkit/datumaro/blob/develop/CONTRIBUTING.md -->
### Summary
<!--
Resolves #111 and #222.
Depends on #1000 (for s... | 9478b9a2fe38229cf679defa9cc9c7c4a5682f7e | |
sympy__sympy-21973 | 21,973 | sympy/sympy | 1.10 | 9fcdf264f3310e82a7f1d159d69812cf2422dbd0 | 2021-08-29T15:43:57Z | diff --git a/doc/src/modules/logic.rst b/doc/src/modules/logic.rst
index a688775e60c2..26f41836705a 100644
--- a/doc/src/modules/logic.rst
+++ b/doc/src/modules/logic.rst
@@ -112,6 +112,8 @@ Disjunctive, and Negated Normal forms:
.. autofunction:: sympy.logic.boolalg::is_nnf
+.. autofunction:: sympy.logic.boolalg:... | diff --git a/sympy/logic/tests/test_boolalg.py b/sympy/logic/tests/test_boolalg.py
index ce1d1a15fb45..982a22e1c39c 100644
--- a/sympy/logic/tests/test_boolalg.py
+++ b/sympy/logic/tests/test_boolalg.py
@@ -17,7 +17,8 @@
BooleanAtom, is_literal, term_to_integer,
truth_table, as_Boolean, to_anf, is_anf, distri... | diff --git a/doc/src/modules/logic.rst b/doc/src/modules/logic.rst
index a688775e60c2..26f41836705a 100644
--- a/doc/src/modules/logic.rst
+++ b/doc/src/modules/logic.rst
@@ -112,6 +112,8 @@ Disjunctive, and Negated Normal forms:
.. autofunction:: sympy.logic.boolalg::is_nnf
+.. autofunction:: sympy.logic.boolalg:... | [
{
"components": [
{
"doc": "Return the total number of inputs for the logic gates realizing the\nBoolean expression.\n\nReturns\n=======\n\nint\n Number of gate inputs\n\nNote\n====\n\nNot all Boolean functions count as gate here, only those that are\nconsidered to be standard gates. These are:... | [
"test_overloading",
"test_And",
"test_Or",
"test_Xor",
"test_rewrite_as_And",
"test_rewrite_as_Or",
"test_rewrite_as_Nand",
"test_rewrite_as_Nor",
"test_Not",
"test_Nand",
"test_Nor",
"test_Xnor",
"test_Implies",
"test_Equivalent",
"test_Exclusive",
"test_equals",
"test_simplificatio... | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Added gateinputcount method for Boolean functions
<!-- Your title above should be a short description of what
was changed. Do not include the issue number in the title. -->
#### References to othe... | Here is the discussion in the issues of the pull request.
<issues>
[Feature Request]:Calculate GIC in logic expression.
GIC means gate-input-cost, it equals to how many wires entering gates in the logic circuit.
----------
I think that you can recursively count all the nodes in the trees.
```
A, B, C, D = symbols('A:... | 3e8695add7a25c8d70aeba7d6137496df02863fd |
Textualize__rich-1444 | 1,444 | Textualize/rich | null | 69ea180f75622557e7b387630c85a31e2a4681cf | 2021-08-28T14:04:46Z | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 57857b05fd..ed41cfd19f 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -5,12 +5,17 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semant... | diff --git a/tests/test_console.py b/tests/test_console.py
index a3666a8726..d6983aa909 100644
--- a/tests/test_console.py
+++ b/tests/test_console.py
@@ -117,6 +117,15 @@ def test_print():
assert console.file.getvalue() == "foo\n"
+def test_print_json():
+ console = Console(file=io.StringIO(), color_system... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 57857b05fd..ed41cfd19f 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -5,12 +5,17 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semant... | [
{
"components": [
{
"doc": "Pretty prints JSON. Output will be valid JSON.\n\nArgs:\n json (str): A string containing JSON.\n indent (int, optional): Number of spaces to indent. Defaults to 4.\n highlight (bool, optional): Enable highlighting of output: Defaults to True.",
"lines"... | [
"tests/test_console.py::test_print_json",
"tests/test_rich_print.py::test_rich_print_json"
] | [
"tests/test_console.py::test_dumb_terminal",
"tests/test_console.py::test_soft_wrap",
"tests/test_console.py::test_16color_terminal",
"tests/test_console.py::test_truecolor_terminal",
"tests/test_console.py::test_console_options_update",
"tests/test_console.py::test_init",
"tests/test_console.py::test_s... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
added print_json
Adds print_json method / function
----------
</request>
There are several new functions or classes that need to be implemented, using the definitions below:
<<NEW DEFINITIONS>>
The... | b0661de34bab35af9b4b1d3ba8e28b186b225e84 | |
pvlib__pvlib-python-1296 | 1,296 | pvlib/pvlib-python | 0.8 | bc0f0ff4e8580797af6672ff7c590caa1c78d6ed | 2021-08-26T16:50:46Z | diff --git a/docs/sphinx/source/reference/effects_on_pv_system_output/spectrum.rst b/docs/sphinx/source/reference/effects_on_pv_system_output/spectrum.rst
index ed6cdc0b51..8041d8f49b 100644
--- a/docs/sphinx/source/reference/effects_on_pv_system_output/spectrum.rst
+++ b/docs/sphinx/source/reference/effects_on_pv_syst... | diff --git a/pvlib/tests/test_spectrum.py b/pvlib/tests/test_spectrum.py
index 23a7c837ee..793eaacfdf 100644
--- a/pvlib/tests/test_spectrum.py
+++ b/pvlib/tests/test_spectrum.py
@@ -271,3 +271,47 @@ def test_spectral_factor_sapm(sapm_module_params, airmass, expected):
assert_series_equal(out, expected, check_... | diff --git a/docs/sphinx/source/reference/effects_on_pv_system_output/spectrum.rst b/docs/sphinx/source/reference/effects_on_pv_system_output/spectrum.rst
index ed6cdc0b51..8041d8f49b 100644
--- a/docs/sphinx/source/reference/effects_on_pv_system_output/spectrum.rst
+++ b/docs/sphinx/source/reference/effects_on_pv_syst... | [
{
"components": [
{
"doc": "Estimate a technology-specific spectral mismatch modifier from\nairmass, aerosol optical depth, and atmospheric precipitable water,\nusing the Caballero model.\n\nThe model structure was motivated by examining the effect of these three\natmospheric parameters on simulat... | [
"pvlib/tests/test_spectrum.py::test_spectral_factor_caballero[asi-expected0]",
"pvlib/tests/test_spectrum.py::test_spectral_factor_caballero[perovskite-expected1]",
"pvlib/tests/test_spectrum.py::test_spectral_factor_caballero[cdte-expected2]",
"pvlib/tests/test_spectrum.py::test_spectral_factor_caballero[mul... | [
"pvlib/tests/test_spectrum.py::test_spectrl2",
"pvlib/tests/test_spectrum.py::test_spectrl2_array",
"pvlib/tests/test_spectrum.py::test_spectrl2_series",
"pvlib/tests/test_spectrum.py::test_dayofyear_missing",
"pvlib/tests/test_spectrum.py::test_aoi_gt_90",
"pvlib/tests/test_spectrum.py::test_get_example_... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Implement Caballero et al. spectral factor model
- [x] Closes #1278
- [x] I am familiar with the [contributing guidelines](https://pvlib-python.readthedocs.io/en/latest/contributing.html)
- [x] ... | Here is the discussion in the issues of the pull request.
<issues>
Add a model for spectral corrections
**Additional context**
First of all, I introduce myself, my name is Jose Antonio Caballero, and I have recently finished my PhD in photovoltaic engineering at the University of Jaén, Spain.
I have developed a pyt... | 311781d2380997044da0e484dc90aa146a74ca44 |
Textualize__rich-1422 | 1,422 | Textualize/rich | null | 47b2aecbe7bc23f349bf82ee795b40d7a484d5e7 | 2021-08-23T01:54:13Z | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 5103330ad6..57857b05fd 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -5,9 +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_panel.py b/tests/test_panel.py
index 1c11bdc8bc..877715fa9f 100644
--- a/tests/test_panel.py
+++ b/tests/test_panel.py
@@ -12,6 +12,7 @@
Panel("Hello, World", width=8, padding=0),
Panel(Panel("Hello, World", padding=0), padding=0),
Panel("Hello, World", title="FOO", padding=0),
+ ... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 5103330ad6..57857b05fd 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -5,9 +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": "",
"lines": [
120,
133
],
"name": "Panel._subtitle",
"signature": "def _subtitle(self) -> Optional[Text]:",
"type": "function"
}
],
"file": "rich/panel.py"
}
] | [
"tests/test_panel.py::test_render_panel[panel0-\\u256d\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u... | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Create subtitle + subtitle_align for Panel
## Type of changes
- [ ] Bug fix
- [X] New feature
- [ ] Documentation / docstrings
- [ ] Tests
- [ ] Other
## Checklist
- [X] I've run the late... | b0661de34bab35af9b4b1d3ba8e28b186b225e84 | |
sympy__sympy-21919 | 21,919 | sympy/sympy | 1.9 | c880b2ca25e0c51efcc47cbe1b676b370214aec4 | 2021-08-21T10:32:21Z | diff --git a/sympy/physics/continuum_mechanics/beam.py b/sympy/physics/continuum_mechanics/beam.py
index 78b79f151e4a..24ba0375a5a6 100644
--- a/sympy/physics/continuum_mechanics/beam.py
+++ b/sympy/physics/continuum_mechanics/beam.py
@@ -3332,3 +3332,236 @@ def plot_shear_stress(self, dir="all", subs=None):
... | diff --git a/sympy/physics/continuum_mechanics/tests/test_beam.py b/sympy/physics/continuum_mechanics/tests/test_beam.py
index c8528de23cf4..199eee82def0 100644
--- a/sympy/physics/continuum_mechanics/tests/test_beam.py
+++ b/sympy/physics/continuum_mechanics/tests/test_beam.py
@@ -5,6 +5,7 @@
from sympy.physics.units... | [
{
"components": [
{
"doc": "Helper function for max_shear_force().",
"lines": [
3336,
3369
],
"name": "Beam3D._max_shear_force",
"signature": "def _max_shear_force(self, dir):",
"type": "function"
},
{
"doc": "Returns ... | [
"test_max_shear_force_Beam3D",
"test_max_bending_moment_Beam3D"
] | [
"test_Beam",
"test_insufficient_bconditions",
"test_statically_indeterminate",
"test_beam_units",
"test_variable_moment",
"test_composite_beam",
"test_point_cflexure",
"test_remove_load",
"test_apply_support",
"test_max_shear_force",
"test_max_bmoment",
"test_max_deflection",
"test_Beam3D",
... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
[GSoC] Functions to find max shear force, bending moment and deflection added
<!-- Your title above should be a short description of what
was changed. Do not include the issue number in the title. --... | c880b2ca25e0c51efcc47cbe1b676b370214aec4 | ||
joke2k__faker-1497 | 1,497 | joke2k/faker | null | 00890540ad6e9bcc4c835370f480a7c0804dff93 | 2021-08-20T04:15:39Z | diff --git a/faker/providers/currency/pt_BR/__init__.py b/faker/providers/currency/pt_BR/__init__.py
new file mode 100644
index 0000000000..17ee8e3f6d
--- /dev/null
+++ b/faker/providers/currency/pt_BR/__init__.py
@@ -0,0 +1,9 @@
+from .. import Provider as CurrencyProvider
+
+
+class Provider(CurrencyProvider):
+
+ ... | diff --git a/tests/providers/test_currency.py b/tests/providers/test_currency.py
index 6070351711..d63a8a383a 100644
--- a/tests/providers/test_currency.py
+++ b/tests/providers/test_currency.py
@@ -346,3 +346,19 @@ def test_pricetag(self, faker, num_samples):
for _ in range(num_samples):
pricetag... | [
{
"components": [
{
"doc": "",
"lines": [
4,
9
],
"name": "Provider",
"signature": "class Provider(CurrencyProvider):",
"type": "class"
},
{
"doc": "",
"lines": [
8,
9
],
"na... | [
"tests/providers/test_currency.py::TestPtBr::test_pricetag"
] | [
"tests/providers/test_currency.py::TestCurrencyProvider::test_currency",
"tests/providers/test_currency.py::TestCurrencyProvider::test_currency_code",
"tests/providers/test_currency.py::TestCurrencyProvider::test_currency_name",
"tests/providers/test_currency.py::TestCurrencyProvider::test_currency_symbol_no_... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Added currency formats in pt_BR
### What does this changes
Added currency formats in pt_BR
### What was wrong
Did not exist
### How this fixes it
Added new folder in currency/pt_BR and new fi... | 6edfdbf6ae90b0153309e3bf066aa3b2d16494a7 | ||
Project-MONAI__MONAI-2801 | 2,801 | Project-MONAI/MONAI | null | 7f05d7873cfe9cb8aaeee4341e8585ca96ada1dd | 2021-08-18T12:50:09Z | diff --git a/monai/transforms/__init__.py b/monai/transforms/__init__.py
index 5f9ed84bcd..f409c0bd8c 100644
--- a/monai/transforms/__init__.py
+++ b/monai/transforms/__init__.py
@@ -515,6 +515,7 @@
map_binary_to_indices,
map_classes_to_indices,
map_spatial_axes,
+ print_transform_backends,
rand_... | diff --git a/tests/test_print_transform_backends.py b/tests/test_print_transform_backends.py
new file mode 100644
index 0000000000..09828f0a27
--- /dev/null
+++ b/tests/test_print_transform_backends.py
@@ -0,0 +1,23 @@
+# Copyright 2020 - 2021 MONAI Consortium
+# Licensed under the Apache License, Version 2.0 (the "Lic... | [
{
"components": [
{
"doc": "Prints a list of backends of all MONAI transforms.",
"lines": [
1157,
1210
],
"name": "print_transform_backends",
"signature": "def print_transform_backends():",
"type": "function"
},
{
"doc... | [
"tests/test_print_transform_backends.py::TestPrintTransformBackends::test_get_number_of_conversions"
] | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
print backends of all MONAI transforms
### Description
Print backends of all MONAI transforms.
### Status
**Ready**
### Types of changes
<!--- Put an `x` in all the boxes that apply, and remo... | e73257caa79309dcce1e93abf1632f4bfd75b11f | ||
astropy__astropy-12057 | 12,057 | astropy/astropy | 4.3 | b6769c18c0881b6d290e543e9334c25043018b3f | 2021-08-14T10:06:53Z | diff --git a/astropy/nddata/nduncertainty.py b/astropy/nddata/nduncertainty.py
index 05ce66c55934..6d7d997a0bd6 100644
--- a/astropy/nddata/nduncertainty.py
+++ b/astropy/nddata/nduncertainty.py
@@ -395,6 +395,40 @@ def _propagate_multiply(self, other_uncert, result_data, correlation):
def _propagate_divide(self, ... | diff --git a/astropy/nddata/tests/test_nduncertainty.py b/astropy/nddata/tests/test_nduncertainty.py
index 1cea6b9737ce..78e812908e8e 100644
--- a/astropy/nddata/tests/test_nduncertainty.py
+++ b/astropy/nddata/tests/test_nduncertainty.py
@@ -4,7 +4,7 @@
import pytest
import numpy as np
-from numpy.testing import a... | diff --git a/docs/changes/nddata/12057.feature.rst b/docs/changes/nddata/12057.feature.rst
new file mode 100644
index 000000000000..ef8bce5864e3
--- /dev/null
+++ b/docs/changes/nddata/12057.feature.rst
@@ -0,0 +1,4 @@
+Add support for converting between uncertainty types. This uncertainty
+conversion system uses a sim... | [
{
"components": [
{
"doc": "Convert this uncertainty to a different uncertainty type.\n\nParameters\n----------\nother_uncert : `NDUncertainty` subclass\n The `NDUncertainty` subclass to convert to.\n\nReturns\n-------\nresulting_uncertainty : `NDUncertainty` instance\n An instance of ``othe... | [
"astropy/nddata/tests/test_nduncertainty.py::test_self_conversion_via_variance_supported[StdDevUncertainty]",
"astropy/nddata/tests/test_nduncertainty.py::test_self_conversion_via_variance_supported[VarianceUncertainty]",
"astropy/nddata/tests/test_nduncertainty.py::test_self_conversion_via_variance_supported[I... | [
"astropy/nddata/tests/test_nduncertainty.py::test_init_fake_with_list[FakeUncertainty]",
"astropy/nddata/tests/test_nduncertainty.py::test_init_fake_with_list[StdDevUncertainty]",
"astropy/nddata/tests/test_nduncertainty.py::test_init_fake_with_list[VarianceUncertainty]",
"astropy/nddata/tests/test_nduncertai... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Add conversion between uncertainty types
We assume that uncertainty types can be converted via variance, similar to the coordinate system where Cartesian is used as the path to convert via.
Closes ... | Here is the discussion in the issues of the pull request.
<issues>
Add helpers to convert between different types of uncertainties
Currently there no easy way to convert from an arbitrary uncertainty class to a different uncertainty class. This would be useful to be able to pass NDData objects to external libraries/too... | 5f8cf46f5b4e8f1da293fc554f9cbf45e5146ad1 |
pyocd__pyOCD-1194 | 1,194 | pyocd/pyOCD | null | fe7d737424be818daa1d55ecbd59be1a0dffdf5b | 2021-08-13T21:50:24Z | diff --git a/docs/options.md b/docs/options.md
index 3870d062d..c1934df25 100644
--- a/docs/options.md
+++ b/docs/options.md
@@ -248,11 +248,28 @@ Number of seconds to hold hardware reset asserted.
Number of seconds to delay after a reset is issued.
</td></tr>
+<tr><td>reset.dap_recover.timeout</td>
+<td>float</td>... | diff --git a/test/unit/test_timeout.py b/test/unit/test_timeout.py
index a011d78e1..216f3bfff 100644
--- a/test/unit/test_timeout.py
+++ b/test/unit/test_timeout.py
@@ -64,4 +64,24 @@ def test_timeout_c(self):
cnt += 1
assert not timedout
assert not to.did_time_out
+
+ def test... | diff --git a/docs/options.md b/docs/options.md
index 3870d062d..c1934df25 100644
--- a/docs/options.md
+++ b/docs/options.md
@@ -248,11 +248,28 @@ Number of seconds to hold hardware reset asserted.
Number of seconds to delay after a reset is issued.
</td></tr>
+<tr><td>reset.dap_recover.timeout</td>
+<td>float</td>... | [
{
"components": [
{
"doc": "",
"lines": [
235,
241
],
"name": "CoreSightTarget.reset",
"signature": "def reset(self, reset_type=None, halt=False):",
"type": "function"
}
],
"file": "pyocd/coresight/coresight_target.py"
},
... | [
"test/unit/test_timeout.py::TestTimeout::test_timeout_reset"
] | [
"test/unit/test_timeout.py::TestTimeout::test_no_timeout",
"test/unit/test_timeout.py::TestTimeout::test_timeout_a",
"test/unit/test_timeout.py::TestTimeout::test_timeout_b",
"test/unit/test_timeout.py::TestTimeout::test_timeout_c"
] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Harden reset against DP connection loss
This change improves reset handling for both hardware and software reset by checking for and handling cases where the connection to the DP is lost, usually as a... | fe7d737424be818daa1d55ecbd59be1a0dffdf5b | |
pylint-dev__pylint-4810 | 4,810 | pylint-dev/pylint | 2.10 | 0b9e449111cbf59d23c23a1a98eea67ddd56ddf6 | 2021-08-07T13:36:30Z | diff --git a/ChangeLog b/ChangeLog
index 8bdec24c3d..c0d4fd7da3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -12,6 +12,10 @@ Release date: TBA
..
Put bug fixes that should not wait for a new minor version here
+* pylint does not crash with a traceback anymore when a file is problematic. It
+ creates a template text... | diff --git a/tests/lint/test_pylinter.py b/tests/lint/test_pylinter.py
new file mode 100644
index 0000000000..f075314303
--- /dev/null
+++ b/tests/lint/test_pylinter.py
@@ -0,0 +1,25 @@
+from unittest.mock import patch
+
+from astroid import AstroidBuildingError
+
+from pylint.utils import FileState
+
+
+def raise_exce... | diff --git a/ChangeLog b/ChangeLog
index 8bdec24c3d..c0d4fd7da3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -12,6 +12,10 @@ Release date: TBA
..
Put bug fixes that should not wait for a new minor version here
+* pylint does not crash with a traceback anymore when a file is problematic. It
+ creates a template text... | [
{
"components": [
{
"doc": "",
"lines": [
19,
60
],
"name": "prepare_crash_report",
"signature": "def prepare_crash_report( ex: Exception, filepath: str, crash_file_path: Union[Path, str] ) -> Path:",
"type": "function"
},
{
... | [
"tests/lint/test_pylinter.py::test_crash_in_file",
"tests/lint/test_utils.py::test_prepare_crash_report",
"tests/lint/test_utils.py::test_get_fatal_error_message",
"tests/lint/unittest_expand_modules.py::test__is_in_ignore_list_re_match",
"tests/lint/unittest_expand_modules.py::test__is_in_ignore_list_re_no... | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Permit to lint to the end in case of crash on a file
## Type of Changes
<!-- Leave the corresponding lines for the applicable type of change: -->
| | Type |
| --- | --... | b959ce54dfe5749e7da0fe79fbe205d64255b966 | |
pydata__xarray-5662 | 5,662 | pydata/xarray | 0.19 | 2694046c748a51125de6d460073635f1d789958e | 2021-08-01T09:12:24Z | diff --git a/doc/whats-new.rst b/doc/whats-new.rst
index bd6097d61fe..1fc4221ab12 100644
--- a/doc/whats-new.rst
+++ b/doc/whats-new.rst
@@ -27,6 +27,9 @@ New Features
Breaking changes
~~~~~~~~~~~~~~~~
+- Improve repr readability when there are a large number of dimensions in datasets or dataarrays by
+ wrapping t... | diff --git a/xarray/tests/test_formatting.py b/xarray/tests/test_formatting.py
index aa4c0c49f81..529382279de 100644
--- a/xarray/tests/test_formatting.py
+++ b/xarray/tests/test_formatting.py
@@ -552,18 +552,52 @@ def test__mapping_repr(display_max_rows, n_vars, n_attr) -> None:
assert len_summary == n_vars
... | diff --git a/doc/whats-new.rst b/doc/whats-new.rst
index bd6097d61fe..1fc4221ab12 100644
--- a/doc/whats-new.rst
+++ b/doc/whats-new.rst
@@ -27,6 +27,9 @@ New Features
Breaking changes
~~~~~~~~~~~~~~~~
+- Improve repr readability when there are a large number of dimensions in datasets or dataarrays by
+ wrapping t... | [
{
"components": [
{
"doc": "Calculate the first rows to maintain the max number of rows.",
"lines": [
100,
102
],
"name": "calc_max_rows_first",
"signature": "def calc_max_rows_first(max_rows: int) -> int:",
"type": "function"
},
... | [
"xarray/tests/test_formatting.py::test__mapping_repr[50-40-30]",
"xarray/tests/test_formatting.py::test__mapping_repr[35-40-30]",
"xarray/tests/test_formatting.py::test__mapping_repr[11-40-30]",
"xarray/tests/test_formatting.py::test__mapping_repr[1-40-30]",
"xarray/tests/test_formatting.py::test__element_f... | [
"xarray/tests/test_formatting.py::TestFormatting::test_get_indexer_at_least_n_items",
"xarray/tests/test_formatting.py::TestFormatting::test_first_n_items",
"xarray/tests/test_formatting.py::TestFormatting::test_last_n_items",
"xarray/tests/test_formatting.py::TestFormatting::test_last_item",
"xarray/tests/... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Limit and format number of displayed dimensions in repr
When there's a lot of dims, create a new line and continue printing.
If there's even more dims that even a few rows can't display them all the... | Here is the discussion in the issues of the pull request.
<issues>
Limit number of displayed dimensions in repr
<!-- Please include a self-contained copy-pastable example that generates the issue if possible.
Please be concise with code posted. See guidelines below on how to provide a good bug report:
- Craft Min... | df7646182b17d829fe9b2199aebf649ddb2ed480 |
sympy__sympy-21778 | 21,778 | sympy/sympy | 1.9 | 5c54e5b78bc907569f56996601603b7b574dfc73 | 2021-07-25T08:15:33Z | diff --git a/sympy/physics/mechanics/kane.py b/sympy/physics/mechanics/kane.py
index b19c25f4070d..62d64d84fcae 100644
--- a/sympy/physics/mechanics/kane.py
+++ b/sympy/physics/mechanics/kane.py
@@ -3,6 +3,7 @@
from sympy.utilities import default_sort_key
from sympy.physics.vector import (ReferenceFrame, dynamicsymbo... | diff --git a/sympy/physics/mechanics/tests/test_kane.py b/sympy/physics/mechanics/tests/test_kane.py
index 243443e200c4..f593750427d6 100644
--- a/sympy/physics/mechanics/tests/test_kane.py
+++ b/sympy/physics/mechanics/tests/test_kane.py
@@ -24,6 +24,8 @@ def test_one_dof():
KM = KanesMethod(N, [q], [u], kd)
... | [
{
"components": [
{
"doc": "",
"lines": [
564,
565
],
"name": "KanesMethod._form_eoms",
"signature": "def _form_eoms(self):",
"type": "function"
},
{
"doc": "",
"lines": [
667,
668
]... | [
"test_one_dof"
] | [
"test_two_dof",
"test_pend",
"test_rolling_disc",
"test_aux",
"test_parallel_axis"
] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Add new abstract base class for methods
<!-- 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 o... | c880b2ca25e0c51efcc47cbe1b676b370214aec4 | ||
openvinotoolkit__datumaro-380 | 380 | openvinotoolkit/datumaro | null | f111e6e0c6269a36e73824229fff959940b5dd7a | 2021-07-23T17:44:41Z | diff --git a/.pylintrc b/.pylintrc
index 24f383a94c..439011c27e 100644
--- a/.pylintrc
+++ b/.pylintrc
@@ -369,7 +369,7 @@ ignored-classes=optparse.Values,thread._local,_thread._local
# List of members which are set dynamically and missed by pylint inference
# system, and so shouldn't trigger E1101 when accessed. Pyt... | diff --git a/tests/test_util.py b/tests/test_util.py
index fecc94aa01..28540614fc 100644
--- a/tests/test_util.py
+++ b/tests/test_util.py
@@ -2,7 +2,7 @@
import os
import os.path as osp
-from datumaro.util import Rollback, error_rollback
+from datumaro.util import Rollback, error_rollback, on_error_do
from datuma... | diff --git a/.pylintrc b/.pylintrc
index 24f383a94c..439011c27e 100644
--- a/.pylintrc
+++ b/.pylintrc
@@ -369,7 +369,7 @@ ignored-classes=optparse.Values,thread._local,_thread._local
# List of members which are set dynamically and missed by pylint inference
# system, and so shouldn't trigger E1101 when accessed. Pyt... | [
{
"components": [
{
"doc": "",
"lines": [
193,
194
],
"name": "Rollback.current",
"signature": "def current(cls) -> \"Rollback\":",
"type": "function"
},
{
"doc": "",
"lines": [
197,
203
... | [
"tests/test_util.py::TestRollback::test_calls_on_error",
"tests/test_util.py::TestRollback::test_can_fowrard_args",
"tests/test_util.py::TestRollback::test_decorator_calls_on_error",
"tests/test_util.py::TestRollback::test_decorator_can_return_on_success_in_explicit_form",
"tests/test_util.py::TestRollback:... | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Redesign the implicit mode of error_rollback
<!-- Contributing guide: https://github.com/openvinotoolkit/datumaro/blob/develop/CONTRIBUTING.md -->
### Summary
Instead of adding a global `on_error`... | 9478b9a2fe38229cf679defa9cc9c7c4a5682f7e | |
snowflakedb__snowflake-connector-python-800 | 800 | snowflakedb/snowflake-connector-python | null | 18ef9c06bd7900581520cebbe603c1cecb21509f | 2021-07-21T19:30:27Z | diff --git a/src/snowflake/connector/network.py b/src/snowflake/connector/network.py
index b5081b02a8..ba8b52e179 100644
--- a/src/snowflake/connector/network.py
+++ b/src/snowflake/connector/network.py
@@ -15,7 +15,7 @@
import uuid
from io import BytesIO
from threading import Lock
-from typing import Dict, Optional... | diff --git a/test/unit/test_session_manager.py b/test/unit/test_session_manager.py
new file mode 100644
index 0000000000..cb9a484b70
--- /dev/null
+++ b/test/unit/test_session_manager.py
@@ -0,0 +1,106 @@
+#!/usr/bin/env python
+# -*- coding: utf-8 -*-
+#
+# Copyright (c) 2012-2021 Snowflake Computing Inc. All right re... | [
{
"components": [
{
"doc": "",
"lines": [
291,
331
],
"name": "SessionPool",
"signature": "class SessionPool:",
"type": "class"
},
{
"doc": "",
"lines": [
292,
296
],
"name":... | [
"test/unit/test_session_manager.py::test_no_url_multiple_sessions",
"test/unit/test_session_manager.py::test_multiple_urls_multiple_sessions",
"test/unit/test_session_manager.py::test_multiple_urls_reuse_sessions"
] | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
SNOW-414830 Allow Storage Client to Use Sessions
This PR partly address changes requested in [SNOW-414830](https://snowflakecomputing.atlassian.net/browse/SNOW-414830).
It does so by allowing the s... | 138241c3604e78fd35fe38a2c0bc55ebc2d47f66 | ||
scikit-learn__scikit-learn-20552 | 20,552 | scikit-learn/scikit-learn | 1.0 | 3c732b9f6a77e95dfa6beb154ca2e1e7848b74f9 | 2021-07-17T22:16:22Z | diff --git a/doc/modules/model_evaluation.rst b/doc/modules/model_evaluation.rst
index b1ef50dafbaa9..e4df915d3eb33 100644
--- a/doc/modules/model_evaluation.rst
+++ b/doc/modules/model_evaluation.rst
@@ -796,9 +796,10 @@ score:
Note that the :func:`precision_recall_curve` function is restricted to the
binary case.... | diff --git a/sklearn/metrics/_plot/tests/test_common_curve_display.py b/sklearn/metrics/_plot/tests/test_common_curve_display.py
index 5b3e5541fb4b2..483dc0710e82e 100644
--- a/sklearn/metrics/_plot/tests/test_common_curve_display.py
+++ b/sklearn/metrics/_plot/tests/test_common_curve_display.py
@@ -9,7 +9,10 @@
from ... | diff --git a/doc/modules/model_evaluation.rst b/doc/modules/model_evaluation.rst
index b1ef50dafbaa9..e4df915d3eb33 100644
--- a/doc/modules/model_evaluation.rst
+++ b/doc/modules/model_evaluation.rst
@@ -796,9 +796,10 @@ score:
Note that the :func:`precision_recall_curve` function is restricted to the
binary case.... | [
{
"components": [
{
"doc": "Plot precision-recall curve given an estimator and some data.\n\nParameters\n----------\nestimator : estimator instance\n Fitted classifier or a fitted :class:`~sklearn.pipeline.Pipeline`\n in which the last estimator is a classifier.\n\nX : {array-like, sparse ma... | [
"sklearn/metrics/_plot/tests/test_common_curve_display.py::test_display_curve_error_non_binary[PrecisionRecallDisplay]",
"sklearn/metrics/_plot/tests/test_common_curve_display.py::test_display_curve_error_no_response[PrecisionRecallDisplay-predict_proba-response",
"sklearn/metrics/_plot/tests/test_common_curve_... | [
"sklearn/metrics/_plot/tests/test_common_curve_display.py::test_display_curve_error_non_binary[DetCurveDisplay]",
"sklearn/metrics/_plot/tests/test_common_curve_display.py::test_display_curve_error_no_response[DetCurveDisplay-predict_proba-response",
"sklearn/metrics/_plot/tests/test_common_curve_display.py::te... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
API add from_estimator and from_preditions to PrecisionRecallDisplay
Address some of #15880
Add the class methods `from_estimator` and `from_predictions` to the class `PrecisionRecallDisplay`. In a... | 3c732b9f6a77e95dfa6beb154ca2e1e7848b74f9 | |
sphinx-doc__sphinx-9461 | 9,461 | sphinx-doc/sphinx | 4.2 | 939c7bb7ff7c53a4d27df067cea637540f0e1dad | 2021-07-17T06:31:58Z | diff --git a/CHANGES b/CHANGES
index 5658cc43f1f..8289c5eb9b4 100644
--- a/CHANGES
+++ b/CHANGES
@@ -13,6 +13,10 @@ Deprecated
Features added
--------------
+* #9445: autodoc: Support class properties
+* #9445: py domain: ``:py:property:`` directive supports ``:classmethod:``
+ option to describe the class propert... | diff --git a/tests/roots/test-ext-autodoc/target/properties.py b/tests/roots/test-ext-autodoc/target/properties.py
index 409fc2b5d61..561daefb8fb 100644
--- a/tests/roots/test-ext-autodoc/target/properties.py
+++ b/tests/roots/test-ext-autodoc/target/properties.py
@@ -2,5 +2,10 @@ class Foo:
"""docstring"""
... | diff --git a/CHANGES b/CHANGES
index 5658cc43f1f..8289c5eb9b4 100644
--- a/CHANGES
+++ b/CHANGES
@@ -13,6 +13,10 @@ Deprecated
Features added
--------------
+* #9445: autodoc: Support class properties
+* #9445: py domain: ``:py:property:`` directive supports ``:classmethod:``
+ option to describe the class propert... | [
{
"components": [
{
"doc": "Check the exisitence of uninitialized instance attribute when failed to import\nthe attribute.",
"lines": [
2674,
2689
],
"name": "PropertyDocumenter.import_object",
"signature": "def import_object(self, raiseerror: bo... | [
"tests/test_domain_py.py::test_pyproperty",
"tests/test_ext_autodoc_autoclass.py::test_properties",
"tests/test_ext_autodoc_autoproperty.py::test_class_properties"
] | [
"tests/test_domain_py.py::test_function_signatures",
"tests/test_domain_py.py::test_domain_py_xrefs",
"tests/test_domain_py.py::test_domain_py_xrefs_abbreviations",
"tests/test_domain_py.py::test_domain_py_objects",
"tests/test_domain_py.py::test_resolve_xref_for_properties",
"tests/test_domain_py.py::tes... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Close #9445: Support class properties
### Feature or Bugfix
- Feature
### Purpose
* Since python 3.9, `classmethod` starts to support creating a "class
property". This supports to genera... | Here is the discussion in the issues of the pull request.
<issues>
Methods decorated with @classmethod and @property do not get documented.
**EDIT:** The problem seems to be that `type(BaseClass.baseclass_property)` returns `property`, thus sphinx can just lookup `BaseClass.baseclass_property.__doc__`. However, `type(B... | 939c7bb7ff7c53a4d27df067cea637540f0e1dad |
sphinx-doc__sphinx-9459 | 9,459 | sphinx-doc/sphinx | 4.3 | 8dd84bc8aba782d924854174c5f9ad4a65cfccf1 | 2021-07-16T13:12:15Z | diff --git a/CHANGES b/CHANGES
index 414fe0be147..bdd2fb152ce 100644
--- a/CHANGES
+++ b/CHANGES
@@ -47,6 +47,11 @@ Features added
* #9695: More CSS classes on Javascript domain descriptions
* #9683: Revert the removal of ``add_stylesheet()`` API. It will be kept until
the Sphinx-6.0 release
+* #2068, add :confva... | diff --git a/tests/test_ext_intersphinx.py b/tests/test_ext_intersphinx.py
index 28b5e63b150..e820730a19c 100644
--- a/tests/test_ext_intersphinx.py
+++ b/tests/test_ext_intersphinx.py
@@ -42,6 +42,12 @@ def reference_check(app, *args, **kwds):
return missing_reference(app, app.env, node, contnode)
+def set_co... | diff --git a/CHANGES b/CHANGES
index 414fe0be147..bdd2fb152ce 100644
--- a/CHANGES
+++ b/CHANGES
@@ -47,6 +47,11 @@ Features added
* #9695: More CSS classes on Javascript domain descriptions
* #9683: Revert the removal of ``add_stylesheet()`` API. It will be kept until
the Sphinx-6.0 release
+* #2068, add :confva... | [
{
"components": [
{
"doc": "",
"lines": [
262,
289
],
"name": "_create_element_from_result",
"signature": "def _create_element_from_result(domain: Domain, inv_name: Optional[str], data: InventoryItem, node: pending_xref, contnode: TextElement) ->... | [
"tests/test_ext_intersphinx.py::test_missing_reference",
"tests/test_ext_intersphinx.py::test_missing_reference_disabled_domain"
] | [
"tests/test_ext_intersphinx.py::test_fetch_inventory_redirection",
"tests/test_ext_intersphinx.py::test_missing_reference_pydomain",
"tests/test_ext_intersphinx.py::test_missing_reference_stddomain",
"tests/test_ext_intersphinx.py::test_missing_reference_cppdomain",
"tests/test_ext_intersphinx.py::test_miss... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Intersphinx, refactoring and intersphinx_disable_domains
### Feature or Bugfix
- Feature
- Bugfix
- Refactoring
### Purpose
In short, this PR implements https://github.com/sphinx-doc/sphinx/pul... | Here is the discussion in the issues of the pull request.
<issues>
Add an option to not use intersphinx references as a fallback
That intersphinx references are used as fallbacks if a reference is not available in a project recently caused us a problem.
We have a site (`latest`) which is the latest build of `master`.
... | 8dd84bc8aba782d924854174c5f9ad4a65cfccf1 |
matplotlib__matplotlib-20634 | 20,634 | matplotlib/matplotlib | 3.4 | 73b7abf14c77014ab2436e7691e19cbee5864f4b | 2021-07-12T17:21:48Z | diff --git a/doc/api/next_api_changes/behavior/20634-JKS.rst b/doc/api/next_api_changes/behavior/20634-JKS.rst
new file mode 100644
index 000000000000..ff4046445e42
--- /dev/null
+++ b/doc/api/next_api_changes/behavior/20634-JKS.rst
@@ -0,0 +1,8 @@
+``Type1Font`` objects now decrypt the encrypted part
+----------------... | diff --git a/lib/matplotlib/tests/test_type1font.py b/lib/matplotlib/tests/test_type1font.py
index 5766709c6cf8..99cc3e500b0e 100644
--- a/lib/matplotlib/tests/test_type1font.py
+++ b/lib/matplotlib/tests/test_type1font.py
@@ -15,6 +15,8 @@ def test_Type1Font():
assert font.parts[2] == rawdata[0x8985:0x8ba6]
... | diff --git a/doc/api/next_api_changes/behavior/20634-JKS.rst b/doc/api/next_api_changes/behavior/20634-JKS.rst
new file mode 100644
index 000000000000..ff4046445e42
--- /dev/null
+++ b/doc/api/next_api_changes/behavior/20634-JKS.rst
@@ -0,0 +1,8 @@
+``Type1Font`` objects now decrypt the encrypted part
+----------------... | [
{
"components": [
{
"doc": "Decrypt ciphertext using the Type-1 font algorithm\n\nThe algorithm is described in Adobe's \"Adobe Type 1 Font Format\".\nThe key argument can be an integer, or one of the strings\n'eexec' and 'charstring', which map to the key specified for the\ncorresponding part of ... | [
"lib/matplotlib/tests/test_type1font.py::test_Type1Font",
"lib/matplotlib/tests/test_type1font.py::test_encrypt_decrypt_roundtrip"
] | [
"lib/matplotlib/tests/test_type1font.py::test_overprecision"
] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Implement Type-1 decryption
## PR Summary
Implement decryption of the encrypted part of Type-1 fonts. This is a prerequisite of subsetting (#127) although that will need a lot more code.
I looke... | 7e36e90ae85120bdbef9b57c2a5b35d40ed07710 | |
sympy__sympy-21712 | 21,712 | sympy/sympy | 1.9 | f3aa7dc269d81d4ca85ad1981cef910cec1a4015 | 2021-07-06T09:53:11Z | diff --git a/sympy/physics/mechanics/body.py b/sympy/physics/mechanics/body.py
index 2dae514ffba5..a50586cdfdda 100644
--- a/sympy/physics/mechanics/body.py
+++ b/sympy/physics/mechanics/body.py
@@ -100,7 +100,7 @@ def __init__(self, name, masscenter=None, mass=None, frame=None,
central_inertia=None):... | diff --git a/sympy/physics/mechanics/tests/test_body.py b/sympy/physics/mechanics/tests/test_body.py
index c5c4e959f452..e55db3ca6887 100644
--- a/sympy/physics/mechanics/tests/test_body.py
+++ b/sympy/physics/mechanics/tests/test_body.py
@@ -1,5 +1,5 @@
from sympy.core.backend import Symbol, symbols, sin, cos, Matrix... | [
{
"components": [
{
"doc": "",
"lines": [
140,
141
],
"name": "Body.loads",
"signature": "def loads(self):",
"type": "function"
},
{
"doc": "Clears the Body's loads list.\n\nExample\n=======\n\n>>> from sympy.physics.m... | [
"test_apply_force_multiple_one_point",
"test_apply_force",
"test_apply_torque",
"test_clear_load",
"test_remove_load"
] | [
"test_default",
"test_custom_rigid_body",
"test_particle_body",
"test_particle_body_add_force",
"test_body_add_force",
"test_body_add_torque",
"test_body_masscenter_vel",
"test_body_ang_vel",
"test_body_dcm",
"test_body_axis"
] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Implement Forces and Torques
<!-- Your title above should be a short description of what
was changed. Do not include the issue number in the title. -->
#### References to other Issues or PRs
<!--... | c880b2ca25e0c51efcc47cbe1b676b370214aec4 | ||
joke2k__faker-1477 | 1,477 | joke2k/faker | null | 5ba48057119bb852910aaf23aeef8813da88b689 | 2021-07-05T21:24:03Z | diff --git a/faker/providers/phone_number/ar_AE/__init__.py b/faker/providers/phone_number/ar_AE/__init__.py
new file mode 100644
index 0000000000..b493070090
--- /dev/null
+++ b/faker/providers/phone_number/ar_AE/__init__.py
@@ -0,0 +1,91 @@
+from .. import Provider as PhoneNumberProvider
+
+
+class Provider(PhoneNumb... | diff --git a/tests/providers/test_phone_number.py b/tests/providers/test_phone_number.py
index 952e3259e9..04668374fb 100644
--- a/tests/providers/test_phone_number.py
+++ b/tests/providers/test_phone_number.py
@@ -246,3 +246,59 @@ def test_phone_number(self, faker, num_samples):
for _ in range(num_samples):
... | [
{
"components": [
{
"doc": "",
"lines": [
4,
91
],
"name": "Provider",
"signature": "class Provider(PhoneNumberProvider):",
"type": "class"
},
{
"doc": "",
"lines": [
46,
53
],
... | [
"tests/providers/test_phone_number.py::TestArAe::test_cellphone_number",
"tests/providers/test_phone_number.py::TestArAe::test_telephone_number",
"tests/providers/test_phone_number.py::TestArAe::test_toll_number",
"tests/providers/test_phone_number.py::TestArAe::test_service_phone_number",
"tests/providers/... | [
"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::TestJaJp::test_phone_number",
"tests/providers/test_phone_number.py::TestPtBr::test_phone_number",
"tests/providers... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Add UAE phone numbers [ar_AE]
### What does this changes
Add UAE cellphone, telephone, service and toll numbers
### What was wrong
There were no localized phone numbers for UAE region
### ... | 6edfdbf6ae90b0153309e3bf066aa3b2d16494a7 | ||
sympy__sympy-21699 | 21,699 | sympy/sympy | 1.9 | 85e9c6c5882e8b628f5717770ce1f1439a204647 | 2021-07-03T03:16:55Z | diff --git a/sympy/core/numbers.py b/sympy/core/numbers.py
index 3c6af2a1ef0a..c8976808e414 100644
--- a/sympy/core/numbers.py
+++ b/sympy/core/numbers.py
@@ -2422,6 +2422,76 @@ def __floordiv__(self, other):
def __rfloordiv__(self, other):
return Integer(Integer(other).p // self.p)
+ # These bitwise... | diff --git a/sympy/core/tests/test_numbers.py b/sympy/core/tests/test_numbers.py
index 1e2364b2aac7..0b9abd816771 100644
--- a/sympy/core/tests/test_numbers.py
+++ b/sympy/core/tests/test_numbers.py
@@ -1226,6 +1226,127 @@ def test_powers_Float():
assert str((S('-1/10')**S('3/10')).n()) == str(Float(-.1)**(.3))
... | [
{
"components": [
{
"doc": "",
"lines": [
2432,
2436
],
"name": "Integer.__lshift__",
"signature": "def __lshift__(self, other):",
"type": "function"
},
{
"doc": "",
"lines": [
2438,
2442
... | [
"test_lshift_Integer",
"test_rshift_Integer",
"test_and_Integer",
"test_xor_Integer",
"test_or_Integer",
"test_invert_Integer",
"test_abc"
] | [
"test_seterr",
"test_mod",
"test_divmod",
"test_igcd",
"test_igcd_lehmer",
"test_igcd2",
"test_ilcm",
"test_igcdex",
"test_Integer_new",
"test_Rational_new",
"test_Number_new",
"test_Number_cmp",
"test_Rational_cmp",
"test_Float",
"test_zero_not_false",
"test_float_mpf",
"test_Float_... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
feat(core): make sympy.Integer compatible with Integral ABC
Make `sympy.Integer` compatible with the `numbers.Integral` ABC as defined
in PEPs 3141 and 238. (See also PEP 239.) The necessary bitwise ... | c880b2ca25e0c51efcc47cbe1b676b370214aec4 | ||
pydata__xarray-5561 | 5,561 | pydata/xarray | 0.18 | c5ee050f5faf09bb047528cca07ab57051282894 | 2021-07-02T00:44:28Z | diff --git a/doc/whats-new.rst b/doc/whats-new.rst
index 38f152faf5c..8d8598b6830 100644
--- a/doc/whats-new.rst
+++ b/doc/whats-new.rst
@@ -58,6 +58,8 @@ New Features
By `Elle Smith <https://github.com/ellesmith88>`_.
- Added :py:meth:`DataArray.to_numpy`, :py:meth:`DataArray.as_numpy`, and :py:meth:`Dataset.as_nu... | diff --git a/xarray/tests/test_units.py b/xarray/tests/test_units.py
index 17086049cc7..2140047f38e 100644
--- a/xarray/tests/test_units.py
+++ b/xarray/tests/test_units.py
@@ -5,10 +5,22 @@
import pandas as pd
import pytest
+try:
+ import matplotlib.pyplot as plt
+except ImportError:
+ pass
+
import xarray ... | diff --git a/doc/whats-new.rst b/doc/whats-new.rst
index 38f152faf5c..8d8598b6830 100644
--- a/doc/whats-new.rst
+++ b/doc/whats-new.rst
@@ -58,6 +58,8 @@ New Features
By `Elle Smith <https://github.com/ellesmith88>`_.
- Added :py:meth:`DataArray.to_numpy`, :py:meth:`DataArray.as_numpy`, and :py:meth:`Dataset.as_nu... | [
{
"components": [
{
"doc": "",
"lines": [
478,
485
],
"name": "label_from_attrs._get_units_from_attrs",
"signature": "def _get_units_from_attrs(da):",
"type": "function"
}
],
"file": "xarray/plot/utils.py"
}
] | [
"xarray/tests/test_units.py::TestPlots::test_units_in_line_plot_labels",
"xarray/tests/test_units.py::TestPlots::test_units_in_2d_plot_labels"
] | [
"xarray/tests/test_units.py::test_apply_ufunc_dataarray[float64-data]",
"xarray/tests/test_units.py::test_apply_ufunc_dataarray[float64-coords]",
"xarray/tests/test_units.py::test_apply_ufunc_dataarray[int64-data]",
"xarray/tests/test_units.py::test_apply_ufunc_dataarray[int64-coords]",
"xarray/tests/test_u... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Plots get labels from pint arrays
Stops you needing to call `.pint.dequantify()` before plotting.
Builds on top of #5568, so that should be merged first.
- [x] Closes (1) from https://github.com... | 86ca67ed67dbf605b50c682fa374471c012a3e35 | |
sympy__sympy-21689 | 21,689 | sympy/sympy | 1.9 | b32388b8577dd292b7ac471b1106a59c8f1e3b0b | 2021-06-30T06:14:06Z | diff --git a/sympy/physics/mechanics/body.py b/sympy/physics/mechanics/body.py
index 3ba02d59e57a..838f7fc178be 100644
--- a/sympy/physics/mechanics/body.py
+++ b/sympy/physics/mechanics/body.py
@@ -214,3 +214,103 @@ def apply_torque(self, vec):
if not isinstance(vec, Vector):
raise TypeError("A V... | diff --git a/sympy/physics/mechanics/tests/test_body.py b/sympy/physics/mechanics/tests/test_body.py
index 44dfea8ca1e6..985813498979 100644
--- a/sympy/physics/mechanics/tests/test_body.py
+++ b/sympy/physics/mechanics/tests/test_body.py
@@ -1,4 +1,4 @@
-from sympy.core.backend import Symbol, symbols
+from sympy.core.... | [
{
"components": [
{
"doc": "Returns the velocity of the mass center with respect to the provided\nrigid body or reference frame.\n\nParameters\n==========\n\nbody: Body or ReferenceFrame\n The rigid body or reference frame to calculate the velocity in.\n\nExample\n=======\n\n>>> from sympy.phys... | [
"test_body_masscenter_vel",
"test_body_ang_vel"
] | [
"test_default",
"test_custom_rigid_body",
"test_particle_body",
"test_particle_body_add_force",
"test_body_add_force",
"test_body_add_torque"
] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Add new features to class `Body`
<!-- Your title above should be a short description of what
was changed. Do not include the issue number in the title. -->
#### References to other Issues or PRs
... | c880b2ca25e0c51efcc47cbe1b676b370214aec4 | ||
sympy__sympy-21687 | 21,687 | sympy/sympy | 1.10 | 68022011872a20c27abd047125e5feb8ce3289cc | 2021-06-29T16:49:20Z | diff --git a/.mailmap b/.mailmap
index 7bffc4dc7f1e..8bc47ed1824b 100644
--- a/.mailmap
+++ b/.mailmap
@@ -97,6 +97,8 @@ Chris Smith <smichr@gmail.com> <Donna Smith@.(none)>
Brian E. Granger <ellisonbg@gmail.com>
Benjamin McDonald <mcdonald.ben@gmail.com>
Prafullkumar P. Tale <hector1618@gmail.com> <Hector1618@gmail... | diff --git a/sympy/solvers/tests/test_inequalities.py b/sympy/solvers/tests/test_inequalities.py
index eb93d06a199a..cc7a7a04f90d 100644
--- a/sympy/solvers/tests/test_inequalities.py
+++ b/sympy/solvers/tests/test_inequalities.py
@@ -2,25 +2,26 @@
from sympy.concrete.summations import Sum
from sympy.core.function ... | diff --git a/.mailmap b/.mailmap
index 7bffc4dc7f1e..8bc47ed1824b 100644
--- a/.mailmap
+++ b/.mailmap
@@ -97,6 +97,8 @@ Chris Smith <smichr@gmail.com> <Donna Smith@.(none)>
Brian E. Granger <ellisonbg@gmail.com>
Benjamin McDonald <mcdonald.ben@gmail.com>
Prafullkumar P. Tale <hector1618@gmail.com> <Hector1618@gmail... | [
{
"components": [
{
"doc": "",
"lines": [
1012,
1013
],
"name": "UnboundedLinearProgrammingError",
"signature": "class UnboundedLinearProgrammingError(Exception):",
"type": "class"
},
{
"doc": "",
"lines": [
... | [
"test_solve_poly_inequality",
"test_reduce_poly_inequalities_real_interval",
"test_reduce_poly_inequalities_complex_relational",
"test_reduce_rational_inequalities_real_relational",
"test_reduce_abs_inequalities",
"test_reduce_inequalities_general",
"test_reduce_inequalities_boolean",
"test_reduce_ine... | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
linear programing function added
<!-- Your title above should be a short description of what
was changed. Do not include the issue number in the title. -->
#### References to other Issues or PRs
... | 3e8695add7a25c8d70aeba7d6137496df02863fd | |
sympy__sympy-21674 | 21,674 | sympy/sympy | 1.9 | f3aa7dc269d81d4ca85ad1981cef910cec1a4015 | 2021-06-28T05:49:53Z | diff --git a/doc/src/modules/physics/mechanics/api/joint.rst b/doc/src/modules/physics/mechanics/api/joint.rst
index 1a94bdae10ea..87d84d7b5e12 100644
--- a/doc/src/modules/physics/mechanics/api/joint.rst
+++ b/doc/src/modules/physics/mechanics/api/joint.rst
@@ -15,3 +15,9 @@ PinJoint
.. autoclass:: PinJoint
:me... | diff --git a/sympy/physics/mechanics/tests/test_joint.py b/sympy/physics/mechanics/tests/test_joint.py
index a3dc85a9e7d8..f2d403d9f930 100644
--- a/sympy/physics/mechanics/tests/test_joint.py
+++ b/sympy/physics/mechanics/tests/test_joint.py
@@ -1,6 +1,6 @@
from sympy import sin, cos, Matrix, sqrt, pi, expand_mul, S
... | diff --git a/doc/src/modules/physics/mechanics/api/joint.rst b/doc/src/modules/physics/mechanics/api/joint.rst
index 1a94bdae10ea..87d84d7b5e12 100644
--- a/doc/src/modules/physics/mechanics/api/joint.rst
+++ b/doc/src/modules/physics/mechanics/api/joint.rst
@@ -15,3 +15,9 @@ PinJoint
.. autoclass:: PinJoint
:me... | [
{
"components": [
{
"doc": "",
"lines": [
291,
309
],
"name": "Joint._set_orientation",
"signature": "def _set_orientation(self):",
"type": "function"
},
{
"doc": "Prismatic (Sliding) Joint.\n\nExplanation\n===========... | [
"test_Joint",
"test_pinjoint",
"test_pin_joint_double_pendulum",
"test_pin_joint_chaos_pendulum",
"test_pinjoint_arbitrary_axis",
"test_pinjoint_pi",
"test_slidingjoint"
] | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Implement SlidingJoint
<!-- Your title above should be a short description of what
was changed. Do not include the issue number in the title. -->
#### References to other Issues or PRs
<!-- If th... | c880b2ca25e0c51efcc47cbe1b676b370214aec4 | |
sympy__sympy-21653 | 21,653 | sympy/sympy | 1.9 | 6a57794ca820ac055106e7f421f12e99e5aac832 | 2021-06-23T05:48:01Z | diff --git a/doc/src/modules/physics/control/lti.rst b/doc/src/modules/physics/control/lti.rst
index 4d683a4ffa8c..c10b5103afe7 100644
--- a/doc/src/modules/physics/control/lti.rst
+++ b/doc/src/modules/physics/control/lti.rst
@@ -18,3 +18,6 @@ lti
.. autoclass:: Feedback
:members:
+
+.. autoclass:: TransferFunc... | diff --git a/sympy/core/tests/test_args.py b/sympy/core/tests/test_args.py
index 8eb52785ebd7..fdfa03dd5978 100644
--- a/sympy/core/tests/test_args.py
+++ b/sympy/core/tests/test_args.py
@@ -4147,6 +4147,13 @@ def test_sympy__physics__control__lti__Feedback():
assert _test_args(Feedback(tf1, tf2))
+def test_sy... | diff --git a/doc/src/modules/physics/control/lti.rst b/doc/src/modules/physics/control/lti.rst
index 4d683a4ffa8c..c10b5103afe7 100644
--- a/doc/src/modules/physics/control/lti.rst
+++ b/doc/src/modules/physics/control/lti.rst
@@ -18,3 +18,6 @@ lti
.. autoclass:: Feedback
:members:
+
+.. autoclass:: TransferFunc... | [
{
"components": [
{
"doc": "Returns the equivalent ``Expr`` object.",
"lines": [
899,
901
],
"name": "Series.to_expr",
"signature": "def to_expr(self):",
"type": "function"
},
{
"doc": "Returns the equivalent ``Expr`` ... | [
"test_sympy__physics__control__lti__TransferFunctionMatrix",
"test_TransferFunction_construction",
"test_TransferFunction_functions",
"test_TransferFunction_addition_and_subtraction",
"test_TransferFunction_multiplication_and_division",
"test_TransferFunction_is_proper",
"test_TransferFunction_is_strict... | [
"test_all_classes_are_tested",
"test_sympy__assumptions__assume__AppliedPredicate",
"test_predicates",
"test_sympy__assumptions__assume__UndefinedPredicate",
"test_sympy__assumptions__relation__binrel__AppliedBinaryRelation",
"test_sympy__assumptions__wrapper__AssumptionsWrapper",
"test_sympy__codegen__... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
[GSoC] Add `TransferFunctionMatrix` class
<!-- 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... | c880b2ca25e0c51efcc47cbe1b676b370214aec4 | |
huggingface__huggingface_hub-137 | 137 | huggingface/huggingface_hub | null | 29193758793430a038e52b47032c9dad3ea41d58 | 2021-06-22T12:31:47Z | diff --git a/src/huggingface_hub/__init__.py b/src/huggingface_hub/__init__.py
index 2ad5972a1c..3826969ab1 100644
--- a/src/huggingface_hub/__init__.py
+++ b/src/huggingface_hub/__init__.py
@@ -29,7 +29,7 @@
TF2_WEIGHTS_NAME,
TF_WEIGHTS_NAME,
)
-from .file_download import cached_download, hf_hub_url
+from .... | diff --git a/tests/test_file_download.py b/tests/test_file_download.py
index 009ed81d6e..0676170b04 100644
--- a/tests/test_file_download.py
+++ b/tests/test_file_download.py
@@ -20,7 +20,12 @@
PYTORCH_WEIGHTS_NAME,
REPO_TYPE_DATASET,
)
-from huggingface_hub.file_download import cached_download, filename_to_... | [
{
"components": [
{
"doc": "Resolve a model identifier, a file name, and an optional revision id, to a huggingface.co file distributed through\nCloudfront (a Content Delivery Network, or CDN) for large files (more than a few MBs).\n\nThe file is cached locally: look for the corresponding file in t... | [
"tests/test_file_download.py::CachedDownloadTests::test_bogus_url",
"tests/test_file_download.py::CachedDownloadTests::test_dataset_lfs_object",
"tests/test_file_download.py::CachedDownloadTests::test_dataset_standard_object_rev",
"tests/test_file_download.py::CachedDownloadTests::test_file_not_found",
"tes... | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
HF Hub download
Offer an additional method `hf_hub_download` to bypass the call of `hf_hub_url` followed by `cached_download`
----------
</request>
There are several new functions or classes that ne... | 4058e1f97ebe256b2f3006d4bc31be275c66df6b | ||
Textualize__rich-1300 | 1,300 | Textualize/rich | null | 56e7158629a80c1b0138222801020f0da0b328c0 | 2021-06-18T19:24:49Z | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 405258c5b5..938d4628b0 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -5,6 +5,17 @@ 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_color.py b/tests/test_color.py
index 49f344e146..796f019838 100644
--- a/tests/test_color.py
+++ b/tests/test_color.py
@@ -14,11 +14,15 @@
def test_str() -> None:
- assert str(Color.parse("red")) == "<color 'red' 1 (standard)>"
+ assert str(Color.parse("red")) == "Color('red', ColorTy... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 405258c5b5..938d4628b0 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -5,6 +5,17 @@ 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": "",
"lines": [
29,
30
],
"name": "ColorSystem.__repr__",
"signature": "def __repr__(self) -> str:",
"type": "function"
},
{
"doc": "",
"lines": [
42,
43
],... | [
"tests/test_color.py::test_str",
"tests/test_color.py::test_repr",
"tests/test_color.py::test_color_system_repr",
"tests/test_color.py::test_rich",
"tests/test_color.py::test_system",
"tests/test_color.py::test_windows",
"tests/test_color.py::test_truecolor",
"tests/test_color.py::test_parse_success",... | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Pretty classes
Adds auto repr and Style.meta
----------
</request>
There are several new functions or classes that need to be implemented, using the definitions below:
<<NEW DEFINITIONS>>
There are... | b0661de34bab35af9b4b1d3ba8e28b186b225e84 | |
sympy__sympy-21634 | 21,634 | sympy/sympy | 1.9 | a8299e5d3a4309946439dd440421c2a8d7b91ae9 | 2021-06-18T13:29:11Z | diff --git a/sympy/physics/control/lti.py b/sympy/physics/control/lti.py
index ce5be82061fa..c28371e2424c 100644
--- a/sympy/physics/control/lti.py
+++ b/sympy/physics/control/lti.py
@@ -1,7 +1,7 @@
-from sympy import Basic, Mul, Pow, degree, Symbol, expand, cancel, Expr, exp, roots
+from sympy import Basic, Mul, Pow, ... | diff --git a/sympy/physics/control/tests/test_lti.py b/sympy/physics/control/tests/test_lti.py
index 209c79ddbe53..a084f235d503 100644
--- a/sympy/physics/control/tests/test_lti.py
+++ b/sympy/physics/control/tests/test_lti.py
@@ -1,9 +1,9 @@
-from sympy import symbols, Matrix, factor, Function, simplify, exp, pi, oo, ... | [
{
"components": [
{
"doc": "Creates a new ``TransferFunction`` efficiently from a rational expression.\n\nParameters\n==========\n\nexpr : Expr, Number\n The rational expression representing the ``TransferFunction``.\nvar : Symbol, optional\n Complex variable of the Laplace transform used by... | [
"test_TransferFunction_functions"
] | [
"test_TransferFunction_construction",
"test_TransferFunction_addition_and_subtraction",
"test_TransferFunction_multiplication_and_division",
"test_TransferFunction_is_proper",
"test_TransferFunction_is_strictly_proper",
"test_TransferFunction_is_biproper",
"test_Series_construction",
"test_Series_func... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Improve `TransferFunction` docs and add `to_expr`
<!-- Your title above should be a short description of what
was changed. Do not include the issue number in the title. -->
#### References to othe... | c880b2ca25e0c51efcc47cbe1b676b370214aec4 | ||
sympy__sympy-21608 | 21,608 | sympy/sympy | 1.9 | 11621060da137632230b411cf34e491d3845bc98 | 2021-06-13T14:58:43Z | diff --git a/sympy/codegen/rewriting.py b/sympy/codegen/rewriting.py
index f086f1d55815..3c722e283afd 100644
--- a/sympy/codegen/rewriting.py
+++ b/sympy/codegen/rewriting.py
@@ -12,8 +12,8 @@
>>> x = Symbol('x')
>>> optimize(3*exp(2*x) - 3, optims_c99)
3*expm1(2*x)
- >>> optimize(exp(2*x) - 3, optims... | diff --git a/sympy/codegen/tests/test_rewriting.py b/sympy/codegen/tests/test_rewriting.py
index 4a8f56aaac8d..83918ad37538 100644
--- a/sympy/codegen/tests/test_rewriting.py
+++ b/sympy/codegen/tests/test_rewriting.py
@@ -1,5 +1,7 @@
-from sympy import log, exp, cos, Symbol, Pow, sin, MatrixSymbol, sinc
+import tempfi... | [
{
"components": [
{
"doc": "",
"lines": [
62,
63
],
"name": "Optimization.cheapest",
"signature": "def cheapest(self, *args):",
"type": "function"
},
{
"doc": "Specialization of ReplaceOptim for functions evaluating \"... | [
"test_log2_opt",
"test_exp2_opt",
"test_expm1_opt",
"test_expm1_two_exp_terms",
"test_cosm1_opt",
"test_cosm1_two_cos_terms",
"test_expm1_cosm1_mixed",
"test_log1p_opt",
"test_optims_c99",
"test_create_expand_pow_optimization",
"test_matsolve",
"test_logaddexp_opt",
"test_logaddexp2_opt",
... | [
"test_printmethod",
"test_Abs",
"test_Add",
"test_Catalan",
"test_ComplexInfinity",
"test_Derivative",
"test_dict",
"test_Dict",
"test_Dummy",
"test_EulerGamma",
"test_Exp",
"test_factorial",
"test_Function",
"test_Geometry",
"test_GoldenRatio",
"test_TribonacciConstant",
"test_Imagi... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
codegen: more capable rewrite to expm1 & cosm1 etc.
<!-- Your title above should be a short description of what
was changed. Do not include the issue number in the title. -->
#### References to ot... | c880b2ca25e0c51efcc47cbe1b676b370214aec4 | ||
sympy__sympy-21600 | 21,600 | sympy/sympy | 1.9 | 110997fe18b9f7d5ba7d22f624d156a29bf40759 | 2021-06-11T06:33:38Z | diff --git a/sympy/physics/vector/vector.py b/sympy/physics/vector/vector.py
index 0a1f66aaa21d..f4a4c9dcebfe 100644
--- a/sympy/physics/vector/vector.py
+++ b/sympy/physics/vector/vector.py
@@ -1,4 +1,4 @@
-from sympy.core.backend import (S, sympify, expand, sqrt, Add, zeros,
+from sympy.core.backend import (S, sympif... | diff --git a/sympy/physics/vector/tests/test_vector.py b/sympy/physics/vector/tests/test_vector.py
index 79ee8cca7784..8e5e851eb449 100644
--- a/sympy/physics/vector/tests/test_vector.py
+++ b/sympy/physics/vector/tests/test_vector.py
@@ -180,6 +180,18 @@ def test_vector_evalf():
assert v.evalf(5, subs={a: 1.234, ... | [
{
"components": [
{
"doc": "Returns the smallest angle between Vector 'vec' and self.\n\nParameter\n=========\n\nvec : Vector\n The Vector between which angle is needed.\n\nExamples\n========\n\n>>> from sympy.physics.vector import ReferenceFrame\n>>> A = ReferenceFrame(\"A\")\n>>> v1 = A.x\n>>... | [
"test_vector_angle"
] | [
"test_Vector",
"test_Vector_diffs",
"test_vector_var_in_dcm",
"test_vector_simplify",
"test_vector_evalf"
] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Adds `angle_between` to physics.Vector
<!-- 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... | c880b2ca25e0c51efcc47cbe1b676b370214aec4 | ||
Project-MONAI__MONAI-2338 | 2,338 | Project-MONAI/MONAI | null | 79752756c543d5796f7094298c6006b932f1ac68 | 2021-06-08T20:31:45Z | diff --git a/docs/source/utils.rst b/docs/source/utils.rst
index 855954fd29..321e6acdfc 100644
--- a/docs/source/utils.rst
+++ b/docs/source/utils.rst
@@ -32,3 +32,8 @@ Profiling
---------
.. automodule:: monai.utils.profiling
:members:
+
+Deprecated
+----------
+.. automodule:: monai.utils.deprecated
+ :members:... | diff --git a/tests/test_deprecated.py b/tests/test_deprecated.py
new file mode 100644
index 0000000000..e3ff8719eb
--- /dev/null
+++ b/tests/test_deprecated.py
@@ -0,0 +1,167 @@
+# Copyright 2020 - 2021 MONAI Consortium
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file exce... | diff --git a/docs/source/utils.rst b/docs/source/utils.rst
index 855954fd29..321e6acdfc 100644
--- a/docs/source/utils.rst
+++ b/docs/source/utils.rst
@@ -32,3 +32,8 @@ Profiling
---------
.. automodule:: monai.utils.profiling
:members:
+
+Deprecated
+----------
+.. automodule:: monai.utils.deprecated
+ :members:... | [
{
"components": [
{
"doc": "",
"lines": [
27,
28
],
"name": "DeprecatedError",
"signature": "class DeprecatedError(Exception):",
"type": "class"
},
{
"doc": "Issue the warning message `msg` only once per process for th... | [
"tests/test_deprecated.py::TestDeprecated::test_2arg_warn1",
"tests/test_deprecated.py::TestDeprecated::test_arg_except1",
"tests/test_deprecated.py::TestDeprecated::test_arg_except2",
"tests/test_deprecated.py::TestDeprecated::test_arg_warn1",
"tests/test_deprecated.py::TestDeprecated::test_arg_warn2",
"... | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Deprecated decorators
Signed-off-by: Eric Kerfoot <eric.kerfoot@kcl.ac.uk>
Fixes #2335 .
### Description
This adds a "deprecated" decorator to apply to functions, methods, and classes to design... | Here is the discussion in the issues of the pull request.
<issues>
Methods to warn the deprecating/deprecated API features
**Is your feature request related to a problem? Please describe.**
This ticket looks for basic methods to provide warning/exception with meaningful messages about the deprecating/deprecated APIs
... | e73257caa79309dcce1e93abf1632f4bfd75b11f |
pylint-dev__pylint-4551 | 4,551 | pylint-dev/pylint | 2.9 | 99589b08de8c5a2c6cc61e13a37420a868c80599 | 2021-06-07T15:14:31Z | diff --git a/ChangeLog b/ChangeLog
index c2b1382d7a..c9b6050a25 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -9,6 +9,10 @@ Release date: TBA
..
Put new features and bugfixes here and also in 'doc/whatsnew/2.9.rst'
+* Add type annotations to pyreverse dot files
+
+ Closes #1548
+
* astroid has been upgraded to 2.6.... | diff --git a/tests/unittest_pyreverse_writer.py b/tests/unittest_pyreverse_writer.py
index 98bb014881..95b1b20e05 100644
--- a/tests/unittest_pyreverse_writer.py
+++ b/tests/unittest_pyreverse_writer.py
@@ -22,12 +22,14 @@
import codecs
import os
from difflib import unified_diff
+from unittest.mock import patch
+i... | diff --git a/ChangeLog b/ChangeLog
index c2b1382d7a..c9b6050a25 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -9,6 +9,10 @@ Release date: TBA
..
Put new features and bugfixes here and also in 'doc/whatsnew/2.9.rst'
+* Add type annotations to pyreverse dot files
+
+ Closes #1548
+
* astroid has been upgraded to 2.6.... | [
{
"components": [
{
"doc": "",
"lines": [
221,
227
],
"name": "get_annotation_label",
"signature": "def get_annotation_label(ann: Union[astroid.Name, astroid.Subscript]) -> str:",
"type": "function"
},
{
"doc": "return... | [
"tests/unittest_pyreverse_writer.py::test_dot_files[packages_No_Name.dot]",
"tests/unittest_pyreverse_writer.py::test_dot_files[classes_No_Name.dot]",
"tests/unittest_pyreverse_writer.py::test_get_visibility[names0-special]",
"tests/unittest_pyreverse_writer.py::test_get_visibility[names1-private]",
"tests/... | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Add type annotations to pyreverse
Closes #1548
<!--
Thank you for submitting a PR to pylint!
To ease the process of reviewing your PR, do make sure to complete the following boxes.
You can... | Here is the discussion in the issues of the pull request.
<issues>
Use Python type hints for UML generation
It seems that pyreverse does not read python type hints (as defined by [PEP 484](https://www.python.org/dev/peps/pep-0484/)), and this does not help when you use `None` as a default value :
### Code example
`... | 99589b08de8c5a2c6cc61e13a37420a868c80599 |
sympy__sympy-21581 | 21,581 | sympy/sympy | 1.9 | f0c648d650c2f32156e65563ca8f498d677d1aaa | 2021-06-06T23:19:57Z | diff --git a/sympy/__init__.py b/sympy/__init__.py
index dadf42ea9616..97176b78a660 100644
--- a/sympy/__init__.py
+++ b/sympy/__init__.py
@@ -95,12 +95,12 @@ def __sympy_debug():
GMPYFiniteField, PythonIntegerRing, GMPYIntegerRing, PythonRational,
GMPYRationalField, AlgebraicField, PolynomialRing, Fr... | diff --git a/sympy/polys/domains/tests/test_domains.py b/sympy/polys/domains/tests/test_domains.py
index 3eb44d582773..83e5c4633e83 100644
--- a/sympy/polys/domains/tests/test_domains.py
+++ b/sympy/polys/domains/tests/test_domains.py
@@ -6,7 +6,7 @@
from sympy.utilities.iterables import cartes
from sympy.core.compat... | [
{
"components": [
{
"doc": "Convert a ``EX`` object to ``dtype``. ",
"lines": [
662,
664
],
"name": "Domain.from_ExpressionRawDomain",
"signature": "def from_ExpressionRawDomain(K1, a, K0):",
"type": "function"
}
],
"file": ... | [
"test_Domain_unify",
"test_Domain_unify_composite",
"test_Domain_unify_algebraic",
"test_Domain_unify_FiniteExtension",
"test_Domain_unify_with_symbols",
"test_Domain__contains__",
"test_Domain_get_ring",
"test_Domain_get_field",
"test_Domain_get_exact",
"test_Domain_is_unit",
"test_Domain_conve... | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
feat(polys): add EXRAW domain
<!-- Your title above should be a short description of what
was changed. Do not include the issue number in the title. -->
#### References to other Issues or PRs
<!-... | c880b2ca25e0c51efcc47cbe1b676b370214aec4 | ||
prometheus__client_python-664 | 664 | prometheus/client_python | null | b6cad95790633085b03c56e9f47a2e393a27e118 | 2021-06-04T23:29:41Z | diff --git a/prometheus_client/openmetrics/exposition.py b/prometheus_client/openmetrics/exposition.py
index 6d5925ed..56d00b5f 100644
--- a/prometheus_client/openmetrics/exposition.py
+++ b/prometheus_client/openmetrics/exposition.py
@@ -8,6 +8,14 @@
"""Content type of the latest OpenMetrics text format"""
+def _... | diff --git a/tests/openmetrics/test_exposition.py b/tests/openmetrics/test_exposition.py
index c3739623..72578a0b 100644
--- a/tests/openmetrics/test_exposition.py
+++ b/tests/openmetrics/test_exposition.py
@@ -136,7 +136,23 @@ def collect(self):
# EOF
""", generate_latest(self.registry))
- def test_nonhistogram... | [
{
"components": [
{
"doc": "",
"lines": [
11,
16
],
"name": "_is_valid_exemplar_metric",
"signature": "def _is_valid_exemplar_metric(metric, sample):",
"type": "function"
}
],
"file": "prometheus_client/openmetrics/expositio... | [
"tests/openmetrics/test_exposition.py::TestGenerateText::test_counter_exemplar"
] | [
"tests/openmetrics/test_exposition.py::TestGenerateText::test_counter",
"tests/openmetrics/test_exposition.py::TestGenerateText::test_counter_non_total_exemplar",
"tests/openmetrics/test_exposition.py::TestGenerateText::test_counter_total",
"tests/openmetrics/test_exposition.py::TestGenerateText::test_counter... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Allow counters to emit exemplars via OpenMetrics
The parsing code already contains tests for parsing exemplars on counters, just the exposition is affected.
@brian-brazil as a member of OpenMetrics... | 09a5ae30602a7a81f6174dae4ba08b93ee7feed2 | ||
sympy__sympy-21567 | 21,567 | sympy/sympy | 1.9 | 2ac6f38c7d88bcc4943cdec4644ef26142392147 | 2021-06-02T19:05:29Z | diff --git a/sympy/functions/elementary/hyperbolic.py b/sympy/functions/elementary/hyperbolic.py
index 1ad392579c9d..892e19cabb90 100644
--- a/sympy/functions/elementary/hyperbolic.py
+++ b/sympy/functions/elementary/hyperbolic.py
@@ -10,8 +10,6 @@
from sympy.core.logic import fuzzy_or, fuzzy_and
-
-
def _rewrite... | diff --git a/sympy/functions/elementary/tests/test_hyperbolic.py b/sympy/functions/elementary/tests/test_hyperbolic.py
index 582edd42e78c..24c2fae25dd4 100644
--- a/sympy/functions/elementary/tests/test_hyperbolic.py
+++ b/sympy/functions/elementary/tests/test_hyperbolic.py
@@ -1,7 +1,7 @@
from sympy import (symbols, ... | [
{
"components": [
{
"doc": "",
"lines": [
878,
897
],
"name": "coth._eval_expand_trig",
"signature": "def _eval_expand_trig(self, **hints):",
"type": "function"
},
{
"doc": "",
"lines": [
961,
... | [
"test_coth",
"test_csch",
"test_sech"
] | [
"test_sinh",
"test_sinh_series",
"test_sinh_fdiff",
"test_cosh",
"test_cosh_series",
"test_cosh_fdiff",
"test_tanh",
"test_tanh_series",
"test_tanh_fdiff",
"test_coth_series",
"test_coth_fdiff",
"test_csch_series",
"test_csch_fdiff",
"test_sech_series",
"test_sech_fdiff",
"test_asinh",... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Implemented expand_trig for csch, sech and coth
Fixes #21495
Implemented expand_trig for csch, sech and coth. Both cases handled; 1. argument is a sum of terms, 2. (for coth) argument is an intege... | Here is the discussion in the issues of the pull request.
<issues>
`expand_trig` for `csch`, `sech`
Although we have fixed #21365, it should be extended further for `csch, sech`.
The behavior for `csc, sec` was to expand it in denominator with `cos, sin`, so it could be taken as a reference.
```python3
>>> from s... | c880b2ca25e0c51efcc47cbe1b676b370214aec4 | |
sympy__sympy-21564 | 21,564 | sympy/sympy | 1.9 | b061e63649b4ee7afd22f91c56c56a6514cc08b6 | 2021-06-02T10:38:43Z | diff --git a/doc/src/modules/physics/mechanics/api/joint.rst b/doc/src/modules/physics/mechanics/api/joint.rst
new file mode 100644
index 000000000000..1a94bdae10ea
--- /dev/null
+++ b/doc/src/modules/physics/mechanics/api/joint.rst
@@ -0,0 +1,17 @@
+==================
+Joint (Docstrings)
+==================
+
+.. modu... | diff --git a/sympy/physics/mechanics/tests/test_joint.py b/sympy/physics/mechanics/tests/test_joint.py
new file mode 100644
index 000000000000..a3dc85a9e7d8
--- /dev/null
+++ b/sympy/physics/mechanics/tests/test_joint.py
@@ -0,0 +1,318 @@
+from sympy import sin, cos, Matrix, sqrt, pi, expand_mul, S
+from sympy.core.sym... | diff --git a/doc/src/modules/physics/mechanics/api/joint.rst b/doc/src/modules/physics/mechanics/api/joint.rst
new file mode 100644
index 000000000000..1a94bdae10ea
--- /dev/null
+++ b/doc/src/modules/physics/mechanics/api/joint.rst
@@ -0,0 +1,17 @@
+==================
+Joint (Docstrings)
+==================
+
+.. modu... | [
{
"components": [
{
"doc": "Abstract base class for all specific joints.\n\nExplanation\n===========\n\nA joint subtracts degrees of freedom from a body. This is the base class\nfor all specific joints and holds all common methods acting as an interface\nfor all joints. Custom joint can be created... | [
"test_Joint",
"test_pinjoint",
"test_pin_joint_double_pendulum",
"test_pin_joint_chaos_pendulum",
"test_pinjoint_arbitrary_axis"
] | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Implement PinJoint and Joint class
<!-- Your title above should be a short description of what
was changed. Do not include the issue number in the title. -->
#### References to other Issues or PRs... | c880b2ca25e0c51efcc47cbe1b676b370214aec4 | |
sympy__sympy-21546 | 21,546 | sympy/sympy | 1.9 | eec3dd610b00970d522a90517d1251f87539167c | 2021-05-30T11:02:03Z | diff --git a/sympy/simplify/cse_main.py b/sympy/simplify/cse_main.py
index 8412f699ff2e..c266862f9549 100644
--- a/sympy/simplify/cse_main.py
+++ b/sympy/simplify/cse_main.py
@@ -86,6 +86,76 @@ def cse_separate(r, e):
e = d[False]
return [reps_toposort(r), e]
+
+def cse_release_variables(r, e):
+ """
+ ... | diff --git a/sympy/simplify/tests/test_cse.py b/sympy/simplify/tests/test_cse.py
index 60affd09159e..977ad3a6b8ce 100644
--- a/sympy/simplify/tests/test_cse.py
+++ b/sympy/simplify/tests/test_cse.py
@@ -546,6 +546,30 @@ def test_unevaluated_mul():
eq = Mul(x + y, x + y, evaluate=False)
assert cse(eq) == ([(x0... | [
{
"components": [
{
"doc": "Return tuples giving ``(a, b)`` where ``a`` is a symbol and ``b`` is\neither an expression or None. The value of None is used when a\nsymbol is no longer needed for subsequent expressions.\n\nUse of such output can reduce the memory footprint of lambdified\nexpressions ... | [
"test_cse_release_variables",
"test_cse_list"
] | [
"test_numbered_symbols",
"test_preprocess_for_cse",
"test_postprocess_for_cse",
"test_cse_single",
"test_cse_single2",
"test_cse_not_possible",
"test_nested_substitution",
"test_subtraction_opt",
"test_multiple_expressions",
"test_bypass_non_commutatives",
"test_issue_4498",
"test_issue_4020",... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
lambdify: Optimization with a substitution of redundant patterns
In the event that we want to vectorize big sympathetic expressions. Often this one comes from a sympy algorithm which does not give ver... | c880b2ca25e0c51efcc47cbe1b676b370214aec4 | ||
scikit-learn__scikit-learn-20145 | 20,145 | scikit-learn/scikit-learn | 1.1 | 6447ec596407f67731872f653ea0da57545c674b | 2021-05-27T08:42:15Z | diff --git a/doc/whats_new/v1.1.rst b/doc/whats_new/v1.1.rst
index 36859342ef6bf..0412e6c72cd74 100644
--- a/doc/whats_new/v1.1.rst
+++ b/doc/whats_new/v1.1.rst
@@ -110,6 +110,17 @@ Changelog
reconstruction of a `X` target when a `Y` parameter is given. :pr:`19680` by
:user:`Robin Thibaut <robinthibaut>`.
+:mod... | diff --git a/sklearn/feature_selection/tests/test_sequential.py b/sklearn/feature_selection/tests/test_sequential.py
index b8af6b137fdb0..3daac62e19922 100644
--- a/sklearn/feature_selection/tests/test_sequential.py
+++ b/sklearn/feature_selection/tests/test_sequential.py
@@ -9,6 +9,7 @@
from sklearn.datasets import m... | diff --git a/doc/whats_new/v1.1.rst b/doc/whats_new/v1.1.rst
index 36859342ef6bf..0412e6c72cd74 100644
--- a/doc/whats_new/v1.1.rst
+++ b/doc/whats_new/v1.1.rst
@@ -110,6 +110,17 @@ Changelog
reconstruction of a `X` target when a `Y` parameter is given. :pr:`19680` by
:user:`Robin Thibaut <robinthibaut>`.
+:mod... | [
{
"components": [
{
"doc": "",
"lines": [
277,
300
],
"name": "SequentialFeatureSelector._get_best_new_feature_score",
"signature": "def _get_best_new_feature_score(self, estimator, X, y, current_mask):",
"type": "function"
}
],... | [
"sklearn/feature_selection/tests/test_sequential.py::test_bad_n_features_to_select[0]",
"sklearn/feature_selection/tests/test_sequential.py::test_bad_n_features_to_select[5]",
"sklearn/feature_selection/tests/test_sequential.py::test_bad_n_features_to_select[0.0]",
"sklearn/feature_selection/tests/test_sequen... | [
"sklearn/feature_selection/tests/test_sequential.py::test_n_features_to_select[1-forward]",
"sklearn/feature_selection/tests/test_sequential.py::test_n_features_to_select[1-backward]",
"sklearn/feature_selection/tests/test_sequential.py::test_n_features_to_select[5-forward]",
"sklearn/feature_selection/tests/... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
ENH Adds n_features_to_select upper limit to SeqFeatureSelector
<!--
Thanks for contributing a pull request! Please ensure you have taken a look at
the contribution guidelines: https://github.com/sc... | Here is the discussion in the issues of the pull request.
<issues>
sklearn.feature_selection.SequentialFeatureSelector Select features as long as score gets better.
Dear Developers,
Currently one can give `sklearn.feature_selection.SequentialFeatureSelector`
parameter 'n_features_to_select'
to get desired number ... | 38ff5be25d0164bf9598bcfdde3b791ad6e261b0 |
sympy__sympy-21510 | 21,510 | sympy/sympy | 1.9 | 1808affb21ee0dd5226134ad7b3bb9f1785d2e56 | 2021-05-23T20:05:27Z | diff --git a/.mailmap b/.mailmap
index d11f98085f3d..2684bc38b47f 100644
--- a/.mailmap
+++ b/.mailmap
@@ -547,3 +547,4 @@ Prince Gupta <codemastercpp@gmail.com> LAPTOP-AS1M2R8B\codem <codemastercpp@gmai
Muhammed Abdul Quadir Owais <quadirowais200@gmail.com> MaqOwais <quadirowais200@gmail.com>
Vaibhav Bhat <vaibhav.b... | diff --git a/bin/test_external_imports.py b/bin/test_external_imports.py
index 9d77de4ed119..62e8df6bcf22 100755
--- a/bin/test_external_imports.py
+++ b/bin/test_external_imports.py
@@ -25,7 +25,7 @@
# These libraries are optional, but are always imported at SymPy import time
# when they are installed. External libr... | diff --git a/.mailmap b/.mailmap
index d11f98085f3d..2684bc38b47f 100644
--- a/.mailmap
+++ b/.mailmap
@@ -547,3 +547,4 @@ Prince Gupta <codemastercpp@gmail.com> LAPTOP-AS1M2R8B\codem <codemastercpp@gmai
Muhammed Abdul Quadir Owais <quadirowais200@gmail.com> MaqOwais <quadirowais200@gmail.com>
Vaibhav Bhat <vaibhav.b... | [
{
"components": [
{
"doc": "",
"lines": [
3,
46
],
"name": "minisat22_satisfiable",
"signature": "def minisat22_satisfiable(expr, all_models=False, minimal=False):",
"type": "function"
},
{
"doc": "",
"lines": ... | [
"test_minisat22_satisfiable",
"test_minisat22_minimal_satisfiable"
] | [
"test_literal",
"test_find_pure_symbol",
"test_find_pure_symbol_int_repr",
"test_unit_clause",
"test_unit_clause_int_repr",
"test_unit_propagate",
"test_unit_propagate_int_repr",
"test_dpll",
"test_dpll_satisfiable",
"test_dpll2_satisfiable",
"test_satisfiable",
"test_valid",
"test_pl_true",... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Add Minisat22 solver to Sympy's satisfiable algorithms
# Add Minisat22 solver to Sympy's satisfiable algorithms
#### References to other Issues or PRs
#### Brief description of what is fixed o... | c880b2ca25e0c51efcc47cbe1b676b370214aec4 | |
pylint-dev__pylint-4492 | 4,492 | pylint-dev/pylint | 2.8 | 5ebbc30afbaa1a3c1e04fc86c3525edf9f579640 | 2021-05-23T15:13:26Z | diff --git a/CONTRIBUTORS.txt b/CONTRIBUTORS.txt
index 0e6a1d4d4a..d4ebc24431 100644
--- a/CONTRIBUTORS.txt
+++ b/CONTRIBUTORS.txt
@@ -491,3 +491,5 @@ contributors:
- Added ignore_signatures to duplicate checker
* Jacob Walls: contributor
+
+* ruro: contributor
diff --git a/ChangeLog b/ChangeLog
index 905873ebfd.... | diff --git a/tests/unittest_reporting.py b/tests/unittest_reporting.py
index abd912b27d..554f325cfd 100644
--- a/tests/unittest_reporting.py
+++ b/tests/unittest_reporting.py
@@ -15,12 +15,16 @@
# pylint: disable=redefined-outer-name
import warnings
+from contextlib import redirect_stdout
from io import StringIO
+... | diff --git a/CONTRIBUTORS.txt b/CONTRIBUTORS.txt
index 0e6a1d4d4a..d4ebc24431 100644
--- a/CONTRIBUTORS.txt
+++ b/CONTRIBUTORS.txt
@@ -491,3 +491,5 @@ contributors:
- Added ignore_signatures to duplicate checker
* Jacob Walls: contributor
+
+* ruro: contributor
diff --git a/ChangeLog b/ChangeLog
index 905873ebfd.... | [
{
"components": [
{
"doc": "",
"lines": [
46,
51
],
"name": "_load_reporter_by_class",
"signature": "def _load_reporter_by_class(reporter_class: str) -> type:",
"type": "function"
},
{
"doc": "",
"lines": [
... | [
"tests/unittest_reporting.py::test_multi_format_output"
] | [
"tests/unittest_reporting.py::test_template_option",
"tests/unittest_reporting.py::test_parseable_output_deprecated",
"tests/unittest_reporting.py::test_parseable_output_regression",
"tests/unittest_reporting.py::test_display_results_is_renamed"
] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Multiple `output-format` support
## Steps
- [x] Add yourself to CONTRIBUTORS if you are a new contributor.
- [x] Add a ChangeLog entry describing what your PR does.
- [x] If it's a new feature or... | Here is the discussion in the issues of the pull request.
<issues>
Allow parseable output in parallel of human-readable output
### Current behavior
Currently, when selecting a format like JSON using the `-f` argument, it will replace the "normal" output.
### Expected behavior
It would be nice to have it gener... | 655a9bf819d7ef8946546422a566446849b45ac7 |
joke2k__faker-1448 | 1,448 | joke2k/faker | null | bfb8d19333de9f922bd0fba5041fef1750009efd | 2021-05-20T20:28:21Z | diff --git a/faker/providers/color/he_IL/__init__.py b/faker/providers/color/he_IL/__init__.py
new file mode 100644
index 0000000000..be1a3fae5a
--- /dev/null
+++ b/faker/providers/color/he_IL/__init__.py
@@ -0,0 +1,70 @@
+from collections import OrderedDict
+
+from .. import Provider as ColorProvider
+
+localized ... | diff --git a/tests/providers/test_color.py b/tests/providers/test_color.py
index 0d1e8c4aa8..328e72176c 100644
--- a/tests/providers/test_color.py
+++ b/tests/providers/test_color.py
@@ -7,6 +7,7 @@
from faker.providers.color import RandomColor
from faker.providers.color.es_ES import Provider as EsEsColorProvider
fr... | [
{
"components": [
{
"doc": "Implement color provider for ``he_IL`` locale.",
"lines": [
8,
69
],
"name": "Provider",
"signature": "class Provider(ColorProvider):",
"type": "class"
}
],
"file": "faker/providers/color/he_IL/__... | [
"tests/providers/test_color.py::TestColorProvider::test_safe_hex_color",
"tests/providers/test_color.py::TestColorProvider::test_hex_color",
"tests/providers/test_color.py::TestColorProvider::test_rgb_color",
"tests/providers/test_color.py::TestColorProvider::test_rgb_css_color",
"tests/providers/test_color... | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Added Hebrew colors
### What does this changes
Allows using Hebrew color names, in the **he_IL** locale.
----------
</request>
There are several new functions or classes that need to be imple... | 6edfdbf6ae90b0153309e3bf066aa3b2d16494a7 | ||
aws-cloudformation__cfn-lint-2003 | 2,003 | aws-cloudformation/cfn-lint | null | a57edf26490b9205acc8957f26dfad52e4e51115 | 2021-05-11T20:23:39Z | diff --git a/src/cfnlint/decode/cfn_json.py b/src/cfnlint/decode/cfn_json.py
index 2253fdb4bf..709403d616 100644
--- a/src/cfnlint/decode/cfn_json.py
+++ b/src/cfnlint/decode/cfn_json.py
@@ -9,7 +9,7 @@
from json.decoder import WHITESPACE, WHITESPACE_STR, BACKSLASH, STRINGCHUNK
from json.scanner import NUMBER_RE
imp... | diff --git a/test/unit/module/decode/test_nod_sub.py b/test/unit/module/decode/test_nod_sub.py
new file mode 100644
index 0000000000..0b2d8ba110
--- /dev/null
+++ b/test/unit/module/decode/test_nod_sub.py
@@ -0,0 +1,95 @@
+"""
+Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+SPDX-License-Identifier:... | [
{
"components": [
{
"doc": "Create dynamic sub class",
"lines": [
190,
200
],
"name": "create_intrinsic_node_class",
"signature": "def create_intrinsic_node_class(cls):",
"type": "function"
},
{
"doc": "Node class crea... | [
"test/unit/module/decode/test_nod_sub.py::TestNodeSub::test_fail_init",
"test/unit/module/decode/test_nod_sub.py::TestNodeSub::test_success_init",
"test/unit/module/decode/test_node_intrinsic.py::TestNodeIntrinsic::test_success_init"
] | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Feature/decode/subclass
*Issue #, if available:*
*Description of changes:*
- Create a new class for representing Fn::Sub
- Update the decoder to use the new Fn::Sub class
- Update rule W1020 and... | 4b214774e419d871b7b498fb5256e2ed09393795 | ||
sphinx-doc__sphinx-9174 | 9,174 | sphinx-doc/sphinx | 4.1 | 0ee0d8df00956cd07205207c5c1253c161687ba8 | 2021-05-06T13:21:22Z | diff --git a/CHANGES b/CHANGES
index fb28f689822..e718c8b03ae 100644
--- a/CHANGES
+++ b/CHANGES
@@ -55,6 +55,9 @@ Features added
* #9097: Optimize the paralell build
* #9131: Add :confval:`nitpick_ignore_regex` to ignore nitpicky warnings using
regular expressions
+* #9174: Add ``Sphinx.set_html_assets_policy`` t... | diff --git a/tests/test_ext_math.py b/tests/test_ext_math.py
index ebe2c0f38ea..973fc369943 100644
--- a/tests/test_ext_math.py
+++ b/tests/test_ext_math.py
@@ -256,3 +256,16 @@ def test_mathjax_is_not_installed_if_no_equations(app, status, warning):
content = (app.outdir / 'index.html').read_text()
assert ... | diff --git a/CHANGES b/CHANGES
index fb28f689822..e718c8b03ae 100644
--- a/CHANGES
+++ b/CHANGES
@@ -55,6 +55,9 @@ Features added
* #9097: Optimize the paralell build
* #9131: Add :confval:`nitpick_ignore_regex` to ignore nitpicky warnings using
regular expressions
+* #9174: Add ``Sphinx.set_html_assets_policy`` t... | [
{
"components": [
{
"doc": "Set the policy to include assets in HTML pages.\n\n- always: include the assets in all the pages\n- per_page: include the assets only in pages where they are used\n\n.. versionadded: 4.1",
"lines": [
1253,
1263
],
"name": "Sph... | [
"tests/test_ext_math.py::test_mathjax_is_installed_if_no_equations_when_forced"
] | [
"tests/test_ext_math.py::test_mathjax_options",
"tests/test_ext_math.py::test_mathjax_align",
"tests/test_ext_math.py::test_math_number_all_mathjax",
"tests/test_ext_math.py::test_math_number_all_latex",
"tests/test_ext_math.py::test_math_eqref_format_html",
"tests/test_ext_math.py::test_math_eqref_format... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Add `Sphinx.add_html_assets_in_all_pages`
Subject: Add an API to enable including assets in all HTML pages.
### Feature or Bugfix
- Feature
### Purpose
This new method in the `Sphinx` obje... | Here is the discussion in the issues of the pull request.
<issues>
Config to add JS/CSS to all generated HTML pages
**Is your feature request related to a problem? Please describe.**
After https://github.com/sphinx-doc/sphinx/pull/8631 was merged, JS/CSS files for MathJax are only added to those pages that contains ... | 0ee0d8df00956cd07205207c5c1253c161687ba8 |
tortoise__tortoise-orm-759 | 759 | tortoise/tortoise-orm | null | f3e441eb4e5a19a7461c1e887f68430f6f06a455 | 2021-05-06T13:05:21Z | diff --git a/tortoise/exceptions.py b/tortoise/exceptions.py
index 7464d7e28..bc0ca37e4 100644
--- a/tortoise/exceptions.py
+++ b/tortoise/exceptions.py
@@ -1,4 +1,4 @@
-from typing import TYPE_CHECKING
+from typing import TYPE_CHECKING, Any
if TYPE_CHECKING:
from tortoise import Model, Type
@@ -66,6 +66,20 @@ ... | diff --git a/tests/test_model_methods.py b/tests/test_model_methods.py
index ba588206f..1e0b6a9be 100644
--- a/tests/test_model_methods.py
+++ b/tests/test_model_methods.py
@@ -22,6 +22,7 @@
MultipleObjectsReturned,
OperationalError,
ParamsError,
+ ObjectDoesNotExistError,
ValidationError,
)
fr... | [
{
"components": [
{
"doc": "The DoesNotExist exception is raised when an item with the passed primary key does not exist",
"lines": [
69,
80
],
"name": "ObjectDoesNotExistError",
"signature": "class ObjectDoesNotExistError(OperationalError, KeyEr... | [
"tests/test_model_methods.py::TestModelCreate::test_clone_pk_required",
"tests/test_model_methods.py::TestModelCreate::test_clone_pk_required_error",
"tests/test_model_methods.py::TestModelCreate::test_implicit_clone_pk_required_none",
"tests/test_model_methods.py::TestModelCreate::test_save_generated",
"te... | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Added error for lookup by primary key
This PR allows to generate nice error messages with a central exception handler (e.g. in FastAPI) - see #741 for initial idea.
I've changed the exception to ```O... | f0f389d906f2a3fab4191160de2fda2c95c70ac5 | ||
sphinx-doc__sphinx-9171 | 9,171 | sphinx-doc/sphinx | 4.1 | 1513d5077439b6f1e69108233d1a08059f420970 | 2021-05-05T10:25:44Z | diff --git a/CHANGES b/CHANGES
index 3ef0bb53eaf..da8580fe67a 100644
--- a/CHANGES
+++ b/CHANGES
@@ -28,6 +28,8 @@ Features added
* #9195: autodoc: The arguments of ``typing.Literal`` are wrongly rendered
* #9185: autodoc: :confval:`autodoc_typehints` allows ``'both'`` setting to
allow typehints to be included bot... | diff --git a/tests/test_ext_autodoc_configs.py b/tests/test_ext_autodoc_configs.py
index b9bed16352e..e0f08ea7701 100644
--- a/tests/test_ext_autodoc_configs.py
+++ b/tests/test_ext_autodoc_configs.py
@@ -140,6 +140,57 @@ def test_autoclass_content_init(app):
]
+@pytest.mark.sphinx('html', testroot='ext-autodo... | diff --git a/CHANGES b/CHANGES
index 3ef0bb53eaf..da8580fe67a 100644
--- a/CHANGES
+++ b/CHANGES
@@ -28,6 +28,8 @@ Features added
* #9195: autodoc: The arguments of ``typing.Literal`` are wrongly rendered
* #9185: autodoc: :confval:`autodoc_typehints` allows ``'both'`` setting to
allow typehints to be included bot... | [
{
"components": [
{
"doc": "",
"lines": [
73,
74
],
"name": "_All.append",
"signature": "def append(self, item: Any) -> None:",
"type": "function"
},
{
"doc": "",
"lines": [
2211,
2241
... | [
"tests/test_ext_autodoc_configs.py::test_autodoc_class_signature_separated_init",
"tests/test_ext_autodoc_configs.py::test_autodoc_class_signature_separated_new"
] | [
"tests/test_ext_autodoc_configs.py::test_autoclass_content_class",
"tests/test_ext_autodoc_configs.py::test_autoclass_content_init",
"tests/test_ext_autodoc_configs.py::test_autodoc_class_signature_mixed",
"tests/test_ext_autodoc_configs.py::test_autoclass_content_both",
"tests/test_ext_autodoc_configs.py::... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Close #4257: autodoc: Add autodoc_class_signature
### Feature or Bugfix
- Feature
### Purpose
- Add `autodoc_class_signature` to separate the class entry and the
definition of `__init__()` metho... | Here is the discussion in the issues of the pull request.
<issues>
Omitting constructor signature from class header using `autoclass`
I'm a bit surprised to see that (in the Python domain)
```
.. autoclass:: Foo
...
```
will create a heading like `class Foo(*args)` which seems quite unintuitive to me, as it mix... | 0ee0d8df00956cd07205207c5c1253c161687ba8 |
sphinx-doc__sphinx-9154 | 9,154 | sphinx-doc/sphinx | 4.1 | d656acaba3258fa6e9beb75e8409412315efb107 | 2021-05-01T09:13:47Z | diff --git a/CHANGES b/CHANGES
index 3a5750418b2..6be49a67bb2 100644
--- a/CHANGES
+++ b/CHANGES
@@ -13,6 +13,9 @@ Deprecated
Features added
--------------
+* #8107: autodoc: Add ``class-doc-from`` option to :rst:dir:`autoclass`
+ directive to control the content of the specific class like
+ :confval:`autoclass_c... | diff --git a/tests/test_ext_autodoc_autoclass.py b/tests/test_ext_autodoc_autoclass.py
index d879f8e1491..096dc939738 100644
--- a/tests/test_ext_autodoc_autoclass.py
+++ b/tests/test_ext_autodoc_autoclass.py
@@ -264,6 +264,53 @@ def test_show_inheritance_for_subclass_of_generic_type(app):
]
+@pytest.mark.sphi... | diff --git a/CHANGES b/CHANGES
index 3a5750418b2..6be49a67bb2 100644
--- a/CHANGES
+++ b/CHANGES
@@ -13,6 +13,9 @@ Deprecated
Features added
--------------
+* #8107: autodoc: Add ``class-doc-from`` option to :rst:dir:`autoclass`
+ directive to control the content of the specific class like
+ :confval:`autoclass_c... | [
{
"components": [
{
"doc": "Used to convert the :class-doc-from: option to autoclass directives.",
"lines": [
132,
137
],
"name": "class_doc_from_option",
"signature": "def class_doc_from_option(arg: Any) -> Optional[str]:",
"type": "func... | [
"tests/test_ext_autodoc_autoclass.py::test_class_doc_from_class",
"tests/test_ext_autodoc_autoclass.py::test_class_doc_from_init",
"tests/test_ext_autodoc_autoclass.py::test_class_doc_from_both"
] | [
"tests/test_ext_autodoc_autoclass.py::test_classes",
"tests/test_ext_autodoc_autoclass.py::test_instance_variable",
"tests/test_ext_autodoc_autoclass.py::test_inherited_instance_variable",
"tests/test_ext_autodoc_autoclass.py::test_uninitialized_attributes",
"tests/test_ext_autodoc_autoclass.py::test_undocu... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Close #8107: autodoc: Add class-doc-from option to autoclass directive
### Feature or Bugfix
- Feature
### Purpose
- Add `class-doc-from` option to the `autoclass` directive to control
the conte... | Here is the discussion in the issues of the pull request.
<issues>
Allow exceptions to autoclass_content
The fact that the `autoclass_content` setting is global for the whole project has become a bit of an annoyance.
I have happily set it to `"both"` for all my projects, but now and then I really want the option to ... | 0ee0d8df00956cd07205207c5c1253c161687ba8 |
sphinx-doc__sphinx-9131 | 9,131 | sphinx-doc/sphinx | 4.1 | b237e78f9c233170f271c326bf46b7fb3b103858 | 2021-04-24T00:33:03Z | diff --git a/doc/usage/configuration.rst b/doc/usage/configuration.rst
index 7b7a0a1d41d..95a4b6267d6 100644
--- a/doc/usage/configuration.rst
+++ b/doc/usage/configuration.rst
@@ -419,6 +419,20 @@ General configuration
.. versionadded:: 1.1
+.. confval:: nitpick_ignore_regex
+
+ An extended version of :confv... | diff --git a/tests/roots/test-nitpicky-warnings/conf.py b/tests/roots/test-nitpicky-warnings/conf.py
new file mode 100644
index 00000000000..2db221cc69f
--- /dev/null
+++ b/tests/roots/test-nitpicky-warnings/conf.py
@@ -0,0 +1,1 @@
+nitpicky = True
diff --git a/tests/roots/test-nitpicky-warnings/index.rst b/tests/roots... | diff --git a/doc/usage/configuration.rst b/doc/usage/configuration.rst
index 7b7a0a1d41d..95a4b6267d6 100644
--- a/doc/usage/configuration.rst
+++ b/doc/usage/configuration.rst
@@ -419,6 +419,20 @@ General configuration
.. versionadded:: 1.1
+.. confval:: nitpick_ignore_regex
+
+ An extended version of :confv... | [
{
"components": [
{
"doc": "",
"lines": [
184,
189
],
"name": "ReferencesResolver.warn_missing_reference.matches_ignore",
"signature": "def matches_ignore(entry_type: str, entry_target: str) -> bool:",
"type": "function"
}
],
... | [
"tests/test_config.py::test_nitpick_ignore_regex1",
"tests/test_config.py::test_nitpick_ignore_regex2",
"tests/test_config.py::test_nitpick_ignore_regex_fullmatch"
] | [
"tests/test_config.py::test_core_config",
"tests/test_config.py::test_extension_values",
"tests/test_config.py::test_overrides",
"tests/test_config.py::test_overrides_boolean",
"tests/test_config.py::test_errors_warnings",
"tests/test_config.py::test_errors_if_setup_is_not_callable",
"tests/test_config.... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Ignore nitpick warnings with regular expressions using `nitpick_ignore_regex`
Subject: Allow regex patterns in nitpick_ignore.
Edit: this PR originally proposed adding glob-like pattern matching, b... | 0ee0d8df00956cd07205207c5c1253c161687ba8 | |
atlassian-api__atlassian-python-api-758 | 758 | atlassian-api/atlassian-python-api | null | a863ad779fb7c8199d6ba037fd8189e9710ca7e7 | 2021-04-18T20:02:55Z | diff --git a/atlassian/bitbucket/cloud/repositories/__init__.py b/atlassian/bitbucket/cloud/repositories/__init__.py
index 47a08edfb..f7a0050b6 100644
--- a/atlassian/bitbucket/cloud/repositories/__init__.py
+++ b/atlassian/bitbucket/cloud/repositories/__init__.py
@@ -1,5 +1,6 @@
# coding=utf-8
+from requests import... | diff --git a/tests/test_bitbucket_cloud.py b/tests/test_bitbucket_cloud.py
index 38c51b0b6..b4eed655a 100644
--- a/tests/test_bitbucket_cloud.py
+++ b/tests/test_bitbucket_cloud.py
@@ -28,6 +28,23 @@ def _datetimetostr(dtime):
@pytest.mark.skipif(sys.version_info < (3, 4), reason="requires python3.4")
class TestBas... | [
{
"components": [
{
"doc": "Check if repository exist.\n\n:param repository: string: The requested repository.\n:param by: string (default is \"slug\"): How to interpret repository, can be 'slug' or 'name'.\n\n:return: True if the repository exists",
"lines": [
114,
133... | [
"tests/test_bitbucket_cloud.py::TestBasic::test_exists_workspace",
"tests/test_bitbucket_cloud.py::TestBasic::test_not_exists_workspace",
"tests/test_bitbucket_cloud.py::TestBasic::test_not_exists_project",
"tests/test_bitbucket_cloud.py::TestBasic::test_exists_repository",
"tests/test_bitbucket_cloud.py::T... | [
"tests/test_bitbucket_cloud.py::TestBasic::test_get_repositories",
"tests/test_bitbucket_cloud.py::TestBasic::test_get_pipelines",
"tests/test_bitbucket_cloud.py::TestBasic::test_trigger_pipeline",
"tests/test_bitbucket_cloud.py::TestBasic::test_get_pipeline",
"tests/test_bitbucket_cloud.py::TestBasic::test... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
[BitBucket] Add exists function to clound and server OO interface.
Add function mentioned in #757. @rodalli Can you check this on your side?
Closes #757.
----------
</request>
There are several n... | Here is the discussion in the issues of the pull request.
<issues>
Bitbucket Cloud lacks the "project_exists" and "repo_exists" methods available for Server
So I'm running into this issue whereby attempting to create a project that already exists returns a 400 from Bitbucket Cloud. This seems makes sense and seems expe... | 3e1ef05e9b570b32985a2a0f14e6666ccde9bd65 | |
sympy__sympy-21325 | 21,325 | sympy/sympy | 1.9 | a0ba8dac64d5d58b9a81ac3d5df2dbea487d48c1 | 2021-04-15T09:47:05Z | diff --git a/setup.py b/setup.py
index 615052e87837..54521df1c3c4 100755
--- a/setup.py
+++ b/setup.py
@@ -93,6 +93,7 @@
'sympy.crypto',
'sympy.diffgeom',
'sympy.discrete',
+ 'sympy.equation',
'sympy.external',
'sympy.functions',
'sympy.functions.combinatorial',
@@ -358,6 +359,7 @@ def ... | diff --git a/bin/test_submodule_imports.py b/bin/test_submodule_imports.py
index 1fb634ab5f64..86df5bcea95c 100755
--- a/bin/test_submodule_imports.py
+++ b/bin/test_submodule_imports.py
@@ -30,6 +30,7 @@
'deprecated',
'discrete',
'external',
+ 'equation',
'functions',
'geometry',
'inte... | [
{
"components": [
{
"doc": "Base class for all symbolic binary relations.\n\nExplanation\n===========\n\nUnlike boolean relation, symbolic relation behaves as a container for\nthe arguments. Its truth value is never evaluated, and all features are\naimed for symbolic manipulation of the arguments.... | [
"test_sympy__equation__equation__Equation",
"test__aresame",
"test_structure",
"test_immutable",
"test_equality",
"test_matches_basic",
"test_has",
"test_subs",
"test_subs_with_unicode_symbols",
"test_subs_with_Eqn",
"test_atoms",
"test_free_symbols_empty",
"test_doit",
"test_S",
"test_x... | [
"test_all_classes_are_tested",
"test_sympy__assumptions__assume__AppliedPredicate",
"test_predicates",
"test_sympy__assumptions__assume__UndefinedPredicate",
"test_sympy__assumptions__relation__binrel__AppliedBinaryRelation",
"test_sympy__assumptions__wrapper__AssumptionsWrapper",
"test_sympy__codegen__... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
feat: introduce symbolic equation
<!-- Your title above should be a short description of what
was changed. Do not include the issue number in the title. -->
#### References to other Issues or PRs
... | c880b2ca25e0c51efcc47cbe1b676b370214aec4 | ||
pvlib__pvlib-python-1211 | 1,211 | pvlib/pvlib-python | 0.8 | 0415365031ca8d0b2867f2a2877e0ad9d7098ffc | 2021-04-15T02:37:58Z | diff --git a/docs/sphinx/source/api.rst b/docs/sphinx/source/api.rst
index 633a9d8cc0..6cd644c588 100644
--- a/docs/sphinx/source/api.rst
+++ b/docs/sphinx/source/api.rst
@@ -239,11 +239,7 @@ PV temperature models
temperature.fuentes
temperature.ross
temperature.noct_sam
- pvsystem.PVSystem.sapm_celltemp
... | diff --git a/pvlib/tests/test_modelchain.py b/pvlib/tests/test_modelchain.py
index 7a353a1a84..e8692cd1fa 100644
--- a/pvlib/tests/test_modelchain.py
+++ b/pvlib/tests/test_modelchain.py
@@ -642,13 +642,14 @@ def test_run_model_with_weather_sapm_temp(sapm_dc_snl_ac_system, location,
weather['temp_air'] = 10
m... | diff --git a/docs/sphinx/source/api.rst b/docs/sphinx/source/api.rst
index 633a9d8cc0..6cd644c588 100644
--- a/docs/sphinx/source/api.rst
+++ b/docs/sphinx/source/api.rst
@@ -239,11 +239,7 @@ PV temperature models
temperature.fuentes
temperature.ross
temperature.noct_sam
- pvsystem.PVSystem.sapm_celltemp
... | [
{
"components": [
{
"doc": "Determine cell temperature using the method specified by ``model``.\n\nParameters\n----------\npoa_global : numeric or tuple of numeric\n Total incident irradiance in W/m^2.\n\ntemp_air : numeric or tuple of numeric\n Ambient dry bulb temperature in degrees C.\n\n... | [
"pvlib/tests/test_modelchain.py::test_run_model_with_weather_sapm_temp",
"pvlib/tests/test_modelchain.py::test_run_model_with_weather_pvsyst_temp",
"pvlib/tests/test_modelchain.py::test_run_model_with_weather_faiman_temp",
"pvlib/tests/test_modelchain.py::test_run_model_with_weather_fuentes_temp",
"pvlib/te... | [
"pvlib/tests/test_modelchain.py::test_ModelChain_creation",
"pvlib/tests/test_modelchain.py::test_with_sapm",
"pvlib/tests/test_modelchain.py::test_with_pvwatts",
"pvlib/tests/test_modelchain.py::test_run_model_with_irradiance",
"pvlib/tests/test_modelchain.py::test_run_model_from_irradiance_arrays_no_loss"... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Add Array.get_cell_temperature, PVSystem.get_cell_temperature
- ~Closes #xxxx~
- [x] I am familiar with the [contributing guidelines](https://pvlib-python.readthedocs.io/en/latest/contributing.html... | 311781d2380997044da0e484dc90aa146a74ca44 | |
sympy__sympy-21235 | 21,235 | sympy/sympy | 1.9 | d2f31446aef958ce795d91827c0788604f49afd4 | 2021-04-03T06:15:33Z | diff --git a/sympy/assumptions/ask.py b/sympy/assumptions/ask.py
index aac0fbd931ee..640ce0bafa79 100644
--- a/sympy/assumptions/ask.py
+++ b/sympy/assumptions/ask.py
@@ -659,5 +659,6 @@ def get_known_facts():
Implies(Q.real_elements, Q.complex_elements),
)
+
from sympy.assumptions.ask_generated import... | diff --git a/sympy/assumptions/tests/test_wrapper.py b/sympy/assumptions/tests/test_wrapper.py
new file mode 100644
index 000000000000..ed7c1e2225f2
--- /dev/null
+++ b/sympy/assumptions/tests/test_wrapper.py
@@ -0,0 +1,31 @@
+from sympy import Symbol, Q
+from sympy.assumptions.wrapper import (AssumptionsWrapper, is_in... | [
{
"components": [
{
"doc": "Metaclass to give _eval_is_[...] attributes to AssumptionsWrapper",
"lines": [
52,
60
],
"name": "AssumptionsWrapperMeta",
"signature": "class AssumptionsWrapperMeta(ManagedProperties):",
"type": "class"
... | [
"test_AssumptionsWrapper",
"test_is_infinite",
"test_sympy__assumptions__wrapper__AssumptionsWrapper",
"test_is_eq"
] | [
"test_all_classes_are_tested",
"test_sympy__assumptions__assume__AppliedPredicate",
"test_predicates",
"test_sympy__assumptions__assume__UndefinedPredicate",
"test_sympy__assumptions__relation__binrel__AppliedBinaryRelation",
"test_sympy__assumptions__sathandlers__UnevaluatedOnFree",
"test_sympy__assump... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
feat(core) : introduce AssumptionsWrapper
Introduce AssumptionsWrapper
<!-- Your title above should be a short description of what
was changed. Do not include the issue number in the title. -->
... | c880b2ca25e0c51efcc47cbe1b676b370214aec4 | ||
sqlfluff__sqlfluff-891 | 891 | sqlfluff/sqlfluff | 0.4 | bcc986e7d217f017130385b89cbda837f3e650ac | 2021-03-25T12:55:23Z | diff --git a/docs/source/configuration.rst b/docs/source/configuration.rst
index a14427a9897..00ae97729e0 100644
--- a/docs/source/configuration.rst
+++ b/docs/source/configuration.rst
@@ -382,6 +382,28 @@ be ignored by quoting their code or the category.
.. _`flake8's ignore`: https://flake8.pycqa.org/en/3.1.1/user... | diff --git a/test/core/linter_test.py b/test/core/linter_test.py
index 15a80a568ef..3e97cce5189 100644
--- a/test/core/linter_test.py
+++ b/test/core/linter_test.py
@@ -1,11 +1,23 @@
"""The Test file for the linter class."""
import pytest
+from typing import List
from unittest.mock import patch
from sqlfluff.co... | diff --git a/docs/source/configuration.rst b/docs/source/configuration.rst
index a14427a9897..00ae97729e0 100644
--- a/docs/source/configuration.rst
+++ b/docs/source/configuration.rst
@@ -382,6 +382,28 @@ be ignored by quoting their code or the category.
.. _`flake8's ignore`: https://flake8.pycqa.org/en/3.1.1/user... | [
{
"components": [
{
"doc": "Parsed version of a 'noqa' comment.",
"lines": [
56,
61
],
"name": "NoQaDirective",
"signature": "class NoQaDirective(NamedTuple):",
"type": "class"
},
{
"doc": "Returns whether to ignore er... | [
"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__path_... | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Issue 873: Add "enable" and "disable" syntax to noqa
Closes #873
----------
</request>
There are several new functions or classes that need to be implemented, using the definitions below:
<<NEW DE... | Here is the discussion in the issues of the pull request.
<issues>
Add "enable" and "disable" syntax to noqa to allow rules disabling across multiple lines
See the `pylint` docs for an example: https://docs.pylint.org/en/1.6.0/faq.html#is-it-possible-to-locally-disable-a-particular-message
----------
------------------... | fd36e7d7bc3d4d5fdfc144d70e2a5e44e6f2ce1e |
sympy__sympy-21146 | 21,146 | sympy/sympy | 1.8 | ad9139e58cb2a2bffd9215fcaeff3120f701e35d | 2021-03-22T11:03:35Z | diff --git a/doc/src/modules/polys/domainmatrix.rst b/doc/src/modules/polys/domainmatrix.rst
index ffb33518f394..0561b3dc9e67 100644
--- a/doc/src/modules/polys/domainmatrix.rst
+++ b/doc/src/modules/polys/domainmatrix.rst
@@ -46,3 +46,10 @@ DDM Class Reference
.. autoclass:: DDM
:members:
+
+SDM Class Reference... | diff --git a/sympy/polys/matrices/tests/test_ddm.py b/sympy/polys/matrices/tests/test_ddm.py
index 0642d1ce1bfe..447c6f3fc63e 100644
--- a/sympy/polys/matrices/tests/test_ddm.py
+++ b/sympy/polys/matrices/tests/test_ddm.py
@@ -40,9 +40,11 @@ def test_DDM_getsetitem():
def test_DDM_str():
ddm = DDM([[ZZ(0), ZZ(1)]... | diff --git a/doc/src/modules/polys/domainmatrix.rst b/doc/src/modules/polys/domainmatrix.rst
index ffb33518f394..0561b3dc9e67 100644
--- a/doc/src/modules/polys/domainmatrix.rst
+++ b/doc/src/modules/polys/domainmatrix.rst
@@ -46,3 +46,10 @@ DDM Class Reference
.. autoclass:: DDM
:members:
+
+SDM Class Reference... | [
{
"components": [
{
"doc": "",
"lines": [
98,
99
],
"name": "DDM.to_list",
"signature": "def to_list(self):",
"type": "function"
},
{
"doc": "",
"lines": [
101,
102
],
"name"... | [
"test_DDM_str",
"test_DDM_convert_to",
"test_DDM_hstack",
"test_DDM_nullspace",
"test_DomainMatrix_init",
"test_DomainMatrix_from_rep",
"test_DomainMatrix_from_list_sympy",
"test_DomainMatrix_from_Matrix",
"test_DomainMatrix_eq",
"test_DomainMatrix_get_domain",
"test_DomainMatrix_convert_to",
... | [
"test_DDM_init",
"test_DDM_getsetitem",
"test_DDM_eq",
"test_DDM_zeros",
"test_DDM_eye",
"test_DDM_copy",
"test_DDM_add",
"test_DDM_sub",
"test_DDM_neg",
"test_DDM_mul",
"test_DDM_matmul",
"test_DDM_rref",
"test_DDM_det",
"test_DDM_inv",
"test_DDM_lu",
"test_DDM_lu_solve",
"test_SDM"... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Allows internal representation of DomainMatrix to be both sparse and dense
#### References to other Issues or PRs
This completes #21140
#### Brief description of what is fixed or changed
The D... | 284db64e44124856accce4abff75d2d8990c301d | |
sympy__sympy-21120 | 21,120 | sympy/sympy | 1.8 | c80194d7a9bdace718a40147af6e2b5e45630d59 | 2021-03-18T08:59:03Z | diff --git a/sympy/polys/matrices/domainmatrix.py b/sympy/polys/matrices/domainmatrix.py
index cb073e2bad15..0345b1c983db 100644
--- a/sympy/polys/matrices/domainmatrix.py
+++ b/sympy/polys/matrices/domainmatrix.py
@@ -20,6 +20,10 @@
from .sdm import SDM
+from .domainscalar import DomainScalar
+
+from sympy.polys.... | diff --git a/sympy/polys/matrices/tests/test_domainmatrix.py b/sympy/polys/matrices/tests/test_domainmatrix.py
index 51e329093537..745532b2ac83 100644
--- a/sympy/polys/matrices/tests/test_domainmatrix.py
+++ b/sympy/polys/matrices/tests/test_domainmatrix.py
@@ -13,6 +13,7 @@
DDMShapeError, DDMFormatError)
fr... | [
{
"components": [
{
"doc": "",
"lines": [
783,
790
],
"name": "DomainMatrix.scalarmul",
"signature": "def scalarmul(A, lamda):",
"type": "function"
},
{
"doc": "Method for Scalar Divison",
"lines": [
... | [
"test_DomainMatrix_init",
"test_DomainMatrix_from_rep",
"test_DomainMatrix_from_list_sympy",
"test_DomainMatrix_from_Matrix",
"test_DomainMatrix_eq",
"test_DomainMatrix_get_domain",
"test_DomainMatrix_convert_to",
"test_DomainMatrix_to_field",
"test_DomainMatrix_to_sparse",
"test_DomainMatrix_to_d... | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Adds class DomainScalar for Scalar Multiplication with DomainMatrix
This PR adds the class `DomainScalar` and the method `__smul__` for Scalar Multiplication with `DomainMatrix`.
Reference to Task ... | 284db64e44124856accce4abff75d2d8990c301d | ||
sympy__sympy-21118 | 21,118 | sympy/sympy | 1.9 | 9c5bf814491f8feef12c0b3aaf96efbfb0df2d69 | 2021-03-18T06:49:10Z | diff --git a/sympy/polys/matrices/ddm.py b/sympy/polys/matrices/ddm.py
index fbfd70086269..dba9516ff088 100644
--- a/sympy/polys/matrices/ddm.py
+++ b/sympy/polys/matrices/ddm.py
@@ -95,6 +95,15 @@ def __init__(self, rowslist, shape, domain):
if not (len(self) == m and all(len(row) == n for row in self)):
... | diff --git a/sympy/polys/matrices/tests/test_ddm.py b/sympy/polys/matrices/tests/test_ddm.py
index b1b3a632b729..dd600f3e7b10 100644
--- a/sympy/polys/matrices/tests/test_ddm.py
+++ b/sympy/polys/matrices/tests/test_ddm.py
@@ -370,3 +370,34 @@ def test_DDM_charpoly():
A = DDM([[ZZ(1), ZZ(2)]], (1, 2), ZZ)
r... | [
{
"components": [
{
"doc": "",
"lines": [
98,
99
],
"name": "DDM.getitem",
"signature": "def getitem(self, i, j):",
"type": "function"
},
{
"doc": "",
"lines": [
101,
105
],
... | [
"test_DDM_getitem"
] | [
"test_DDM_init",
"test_DDM_getsetitem",
"test_DDM_str",
"test_DDM_eq",
"test_DDM_convert_to",
"test_DDM_zeros",
"test_DDM_ones",
"test_DDM_eye",
"test_DDM_copy",
"test_DDM_add",
"test_DDM_sub",
"test_DDM_neg",
"test_DDM_mul",
"test_DDM_matmul",
"test_DDM_hstack",
"test_DDM_rref",
"te... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
feat(polys): add indexing and slicing to DomainMatrix
This PR implements `__getitem__` for indexing and slicing to `DomainMatrix`.
Reference to Task 7 in #20987
#### Brief description of what i... | c880b2ca25e0c51efcc47cbe1b676b370214aec4 | ||
Project-MONAI__MONAI-1797 | 1,797 | Project-MONAI/MONAI | null | 3e313d242f7b534c9f683a6cfb37e4930039ddfb | 2021-03-17T20:21:37Z | diff --git a/docs/source/data.rst b/docs/source/data.rst
index c95659bc6e..6ed6be9702 100644
--- a/docs/source/data.rst
+++ b/docs/source/data.rst
@@ -68,6 +68,12 @@ Generic Interfaces
.. autoclass:: ImageDataset
:members:
:special-members: __getitem__
+
+`NPZDictItemDataset`
+~~~~~~~~~~~~~~~~~~~~
+.. autoclas... | diff --git a/tests/test_npzdictitemdataset.py b/tests/test_npzdictitemdataset.py
new file mode 100644
index 0000000000..5ec52f45a2
--- /dev/null
+++ b/tests/test_npzdictitemdataset.py
@@ -0,0 +1,55 @@
+# Copyright 2020 - 2021 MONAI Consortium
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may... | diff --git a/docs/source/data.rst b/docs/source/data.rst
index c95659bc6e..6ed6be9702 100644
--- a/docs/source/data.rst
+++ b/docs/source/data.rst
@@ -68,6 +68,12 @@ Generic Interfaces
.. autoclass:: ImageDataset
:members:
:special-members: __getitem__
+
+`NPZDictItemDataset`
+~~~~~~~~~~~~~~~~~~~~
+.. autoclas... | [
{
"components": [
{
"doc": "Represents a dataset from a loaded NPZ file. The members of the file to load are named in the keys of `keys` and\nstored under the keyed name. All loaded arrays must have the same 0-dimension (batch) size. Items are always dicts\nmapping names to an item extracted from ... | [
"tests/test_npzdictitemdataset.py::TestNPZDictItemDataset::test_load_file",
"tests/test_npzdictitemdataset.py::TestNPZDictItemDataset::test_load_stream",
"tests/test_thread_buffer.py::TestDataLoader::test_dataloader",
"tests/test_thread_buffer.py::TestDataLoader::test_time",
"tests/test_thread_buffer.py::Te... | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Jupyter Utilities
### Description
This includes some utilities to help use MONAI in Jupyter. I will have an example notebook shortly for the tutorials repo. One issue is that the type checking was ... | e73257caa79309dcce1e93abf1632f4bfd75b11f | |
sympy__sympy-21106 | 21,106 | sympy/sympy | 1.9 | 624549a1b07cbdb4836ce47ce2cd779ccaa1c921 | 2021-03-17T09:32:44Z | diff --git a/sympy/polys/matrices/ddm.py b/sympy/polys/matrices/ddm.py
index 84ab1712f899..fbfd70086269 100644
--- a/sympy/polys/matrices/ddm.py
+++ b/sympy/polys/matrices/ddm.py
@@ -135,6 +135,13 @@ def zeros(cls, shape, domain):
rowslist = ([z] * n for _ in range(m))
return DDM(rowslist, shape, doma... | diff --git a/sympy/polys/matrices/tests/test_ddm.py b/sympy/polys/matrices/tests/test_ddm.py
index 447c6f3fc63e..b1b3a632b729 100644
--- a/sympy/polys/matrices/tests/test_ddm.py
+++ b/sympy/polys/matrices/tests/test_ddm.py
@@ -86,6 +86,11 @@ def test_DDM_zeros():
assert ddmz.shape == (3, 4)
assert ddmz.domain... | [
{
"components": [
{
"doc": "",
"lines": [
139,
143
],
"name": "DDM.ones",
"signature": "def ones(cls, shape, domain):",
"type": "function"
}
],
"file": "sympy/polys/matrices/ddm.py"
},
{
"components": [
{
... | [
"test_DDM_ones",
"test_DomainMatrix_ones",
"test_SDM_ones"
] | [
"test_DDM_init",
"test_DDM_getsetitem",
"test_DDM_str",
"test_DDM_eq",
"test_DDM_convert_to",
"test_DDM_zeros",
"test_DDM_eye",
"test_DDM_copy",
"test_DDM_add",
"test_DDM_sub",
"test_DDM_neg",
"test_DDM_mul",
"test_DDM_matmul",
"test_DDM_hstack",
"test_DDM_rref",
"test_DDM_nullspace",
... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Added function ones to DomainMatrix,DDM and SDM class
#### References to other Issues or PRs
#20987
#### Brief description of what is fixed or changed
Added a function ones
#### Release No... | c880b2ca25e0c51efcc47cbe1b676b370214aec4 | ||
pvlib__pvlib-python-1195 | 1,195 | pvlib/pvlib-python | 0.8 | c17f7281c168caa7b68a2901b7e6116670138be6 | 2021-03-12T23:42:12Z | diff --git a/docs/sphinx/source/api.rst b/docs/sphinx/source/api.rst
index a82471c713..37bb09113b 100644
--- a/docs/sphinx/source/api.rst
+++ b/docs/sphinx/source/api.rst
@@ -242,6 +242,8 @@ PV temperature models
pvsystem.PVSystem.sapm_celltemp
pvsystem.PVSystem.pvsyst_celltemp
pvsystem.PVSystem.faiman_cell... | diff --git a/pvlib/tests/test_modelchain.py b/pvlib/tests/test_modelchain.py
index d4cb14814e..28e7889414 100644
--- a/pvlib/tests/test_modelchain.py
+++ b/pvlib/tests/test_modelchain.py
@@ -223,6 +223,18 @@ def pvwatts_dc_pvwatts_ac_fuentes_temp_system():
return system
+@pytest.fixture(scope="function")
+def ... | diff --git a/docs/sphinx/source/api.rst b/docs/sphinx/source/api.rst
index a82471c713..37bb09113b 100644
--- a/docs/sphinx/source/api.rst
+++ b/docs/sphinx/source/api.rst
@@ -242,6 +242,8 @@ PV temperature models
pvsystem.PVSystem.sapm_celltemp
pvsystem.PVSystem.pvsyst_celltemp
pvsystem.PVSystem.faiman_cell... | [
{
"components": [
{
"doc": "",
"lines": [
1020,
1021
],
"name": "ModelChain.noct_sam_temp",
"signature": "def noct_sam_temp(self):",
"type": "function"
}
],
"file": "pvlib/modelchain.py"
},
{
"components": [
{
... | [
"pvlib/tests/test_modelchain.py::test_ModelChain_creation",
"pvlib/tests/test_modelchain.py::test_with_sapm",
"pvlib/tests/test_modelchain.py::test_with_pvwatts",
"pvlib/tests/test_modelchain.py::test_run_model_with_irradiance",
"pvlib/tests/test_modelchain.py::test_run_model_from_irradiance_arrays_no_loss"... | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Add noct_sam cell temperature model to PVSystem, ModelChain
- [x] Closes #1194
- [x] I am familiar with the [contributing guidelines](https://pvlib-python.readthedocs.io/en/latest/contributing.html... | Here is the discussion in the issues of the pull request.
<issues>
Duplicate Notes header in PVSystem.fuentes_celltemp method
Duplicate Notes heading [here](https://github.com/pvlib/pvlib-python/blob/c17f7281c168caa7b68a2901b7e6116670138be6/pvlib/pvsystem.py#L724). The second Note doesn't appear in the method [documen... | 311781d2380997044da0e484dc90aa146a74ca44 |
sympy__sympy-21067 | 21,067 | sympy/sympy | 1.8 | b564d9ba2705ee2978766e1ee2102750834df68b | 2021-03-10T08:20:30Z | diff --git a/sympy/solvers/solveset.py b/sympy/solvers/solveset.py
index 34fa8f03bfd7..7ffb387bf81d 100644
--- a/sympy/solvers/solveset.py
+++ b/sympy/solvers/solveset.py
@@ -1754,6 +1754,98 @@ def _is_logarithmic(f, symbol):
return rv
+def _is_lambert(f, symbol):
+ r"""
+ If this returns ``False`` then ... | diff --git a/sympy/solvers/tests/test_solveset.py b/sympy/solvers/tests/test_solveset.py
index 22c8c94b5fd8..e915050766a1 100644
--- a/sympy/solvers/tests/test_solveset.py
+++ b/sympy/solvers/tests/test_solveset.py
@@ -41,7 +41,7 @@
linsolve, _is_function_class_equation, invert_real, invert_complex,
solveset,... | [
{
"components": [
{
"doc": "If this returns ``False`` then the Lambert solver (``_solve_lambert``) will not be called.\n\nExplanation\n===========\n\nQuick check for cases that the Lambert solver might be able to handle.\n\n1. Equations containing more than two operands and `symbol`s involving any... | [
"test_invert_real",
"test_invert_complex",
"test_domain_check",
"test_issue_11536",
"test_issue_17479",
"test_is_function_class_equation",
"test_garbage_input",
"test_solve_mul",
"test_solve_invert",
"test_errorinverses",
"test_solve_polynomial",
"test_return_root_of",
"test__has_rational_po... | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Adding _is_lambert function to solveset
Appending `_is_lambert` along with test cases and descriptive documentation to solveset. This PR is built over #21025 for better functioning of lambert type equ... | 284db64e44124856accce4abff75d2d8990c301d | ||
pvlib__pvlib-python-1190 | 1,190 | pvlib/pvlib-python | 0.8 | 2a1ed55acdd22bf813cbaa9dab2e7379306cf645 | 2021-03-09T22:52:52Z | diff --git a/docs/sphinx/source/api.rst b/docs/sphinx/source/api.rst
index 373c879a49..633a9d8cc0 100644
--- a/docs/sphinx/source/api.rst
+++ b/docs/sphinx/source/api.rst
@@ -268,6 +268,7 @@ Functions relevant for single diode models.
pvsystem.singlediode
pvsystem.v_from_i
pvsystem.max_power_point
+ ivtoo... | diff --git a/pvlib/tests/ivtools/test_sdm.py b/pvlib/tests/ivtools/test_sdm.py
index 67bae225bb..c1df6b1e50 100644
--- a/pvlib/tests/ivtools/test_sdm.py
+++ b/pvlib/tests/ivtools/test_sdm.py
@@ -2,6 +2,7 @@
import pandas as pd
import pytest
+from numpy.testing import assert_allclose
from pvlib.ivtools import sdm... | diff --git a/docs/sphinx/source/api.rst b/docs/sphinx/source/api.rst
index 373c879a49..633a9d8cc0 100644
--- a/docs/sphinx/source/api.rst
+++ b/docs/sphinx/source/api.rst
@@ -268,6 +268,7 @@ Functions relevant for single diode models.
pvsystem.singlediode
pvsystem.v_from_i
pvsystem.max_power_point
+ ivtoo... | [
{
"components": [
{
"doc": "Calculates the temperature coefficient of power for a pvsyst single\ndiode model.\n\nThe temperature coefficient is determined as the numerical derivative\n:math:`\\frac{dP}{dT}` at the maximum power point at reference conditions\n[1]_.\n\nParameters\n----------\nalpha_... | [
"pvlib/tests/ivtools/test_sdm.py::test_pvsyst_temperature_coeff"
] | [
"pvlib/tests/ivtools/test_sdm.py::test_fit_cec_sam",
"pvlib/tests/ivtools/test_sdm.py::test_fit_cec_sam_estimation_failure",
"pvlib/tests/ivtools/test_sdm.py::test_fit_desoto",
"pvlib/tests/ivtools/test_sdm.py::test_fit_desoto_failure",
"pvlib/tests/ivtools/test_sdm.py::test_fit_desoto_sandia",
"pvlib/tes... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Function to calculate temperature coefficient of power for pvsyst
- ~~[ ] Closes #xxxx~~
- [x] I am familiar with the [contributing guidelines](https://pvlib-python.readthedocs.io/en/latest/contrib... | 311781d2380997044da0e484dc90aa146a74ca44 | |
matplotlib__matplotlib-19668 | 19,668 | matplotlib/matplotlib | 3.3 | 59b32afde60e46407b60c766b878c840a9bfa490 | 2021-03-09T01:39:19Z | diff --git a/lib/matplotlib/colors.py b/lib/matplotlib/colors.py
index 75c909418c98..34924a5f955e 100644
--- a/lib/matplotlib/colors.py
+++ b/lib/matplotlib/colors.py
@@ -543,7 +543,7 @@ def _warn_if_global_cmap_modified(cmap):
"colormap. In future versions, you will not be able to "
... | diff --git a/lib/matplotlib/tests/test_colors.py b/lib/matplotlib/tests/test_colors.py
index fff69da380bf..d9c31a148a9b 100644
--- a/lib/matplotlib/tests/test_colors.py
+++ b/lib/matplotlib/tests/test_colors.py
@@ -150,6 +150,16 @@ def test_colormap_copy():
with np.errstate(invalid='ignore'):
ret2 = copie... | [
{
"components": [
{
"doc": "Return a copy of the colormap.",
"lines": [
830,
832
],
"name": "Colormap.copy",
"signature": "def copy(self):",
"type": "function"
}
],
"file": "lib/matplotlib/colors.py"
}
] | [
"lib/matplotlib/tests/test_colors.py::test_colormap_copy"
] | [
"lib/matplotlib/tests/test_colors.py::test_create_lookup_table[5-result0]",
"lib/matplotlib/tests/test_colors.py::test_create_lookup_table[2-result1]",
"lib/matplotlib/tests/test_colors.py::test_create_lookup_table[1-result2]",
"lib/matplotlib/tests/test_colors.py::test_resample",
"lib/matplotlib/tests/test... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Backport PR #19663 on branch v3.4.x (ENH: add a copy method to colormaps)
Backport PR #19663: ENH: add a copy method to colormaps
----------
</request>
There are several new functions or classes tha... | 59b32afde60e46407b60c766b878c840a9bfa490 | ||
Project-MONAI__MONAI-1714 | 1,714 | Project-MONAI/MONAI | null | 634b32d5c02af3db08c2b5fbe55ed773d9eb31c1 | 2021-03-08T10:56:34Z | diff --git a/monai/transforms/__init__.py b/monai/transforms/__init__.py
index 14fe71728b..796804df24 100644
--- a/monai/transforms/__init__.py
+++ b/monai/transforms/__init__.py
@@ -244,7 +244,7 @@
ZoomD,
ZoomDict,
)
-from .transform import MapTransform, Randomizable, RandomizableTransform, Transform
+from ... | diff --git a/tests/test_with_allow_missing_keys.py b/tests/test_with_allow_missing_keys.py
new file mode 100644
index 0000000000..68c5ad30c4
--- /dev/null
+++ b/tests/test_with_allow_missing_keys.py
@@ -0,0 +1,73 @@
+# Copyright 2020 - 2021 MONAI Consortium
+# Licensed under the Apache License, Version 2.0 (the "Licens... | [
{
"components": [
{
"doc": "Transform `data` with `transform`.\nIf `data` is a list or tuple and `map_data` is True, each item of `data` will be transformed\nand this method returns a list of outcomes.\notherwise transform will be applied once with `data` as the argument.\n\nArgs:\n transform: ... | [
"tests/test_with_allow_missing_keys.py::TestWithAllowMissingKeysMode::test_array_transform",
"tests/test_with_allow_missing_keys.py::TestWithAllowMissingKeysMode::test_compose",
"tests/test_with_allow_missing_keys.py::TestWithAllowMissingKeysMode::test_map_transform",
"tests/test_with_allow_missing_keys.py::T... | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
with allow_missing_keys_mode
Allows keys to be temporarily be missing from map transform using `with`:
```python
data = {"image": np.arange(16, dtype=float).reshape(1, 4, 4)}
t = SpatialPadd(["im... | e73257caa79309dcce1e93abf1632f4bfd75b11f | ||
matplotlib__matplotlib-19663 | 19,663 | matplotlib/matplotlib | 3.3 | bd7df784719a3393bc7d6e7b471fb2b5ed52da50 | 2021-03-07T21:04:50Z | diff --git a/lib/matplotlib/colors.py b/lib/matplotlib/colors.py
index 9754d6bf2c56..8f2744013202 100644
--- a/lib/matplotlib/colors.py
+++ b/lib/matplotlib/colors.py
@@ -561,7 +561,7 @@ def _warn_if_global_cmap_modified(cmap):
"colormap. In future versions, you will not be able to "
... | diff --git a/lib/matplotlib/tests/test_colors.py b/lib/matplotlib/tests/test_colors.py
index fff69da380bf..d9c31a148a9b 100644
--- a/lib/matplotlib/tests/test_colors.py
+++ b/lib/matplotlib/tests/test_colors.py
@@ -150,6 +150,16 @@ def test_colormap_copy():
with np.errstate(invalid='ignore'):
ret2 = copie... | [
{
"components": [
{
"doc": "Return a copy of the colormap.",
"lines": [
848,
850
],
"name": "Colormap.copy",
"signature": "def copy(self):",
"type": "function"
}
],
"file": "lib/matplotlib/colors.py"
}
] | [
"lib/matplotlib/tests/test_colors.py::test_colormap_copy"
] | [
"lib/matplotlib/tests/test_colors.py::test_create_lookup_table[5-result0]",
"lib/matplotlib/tests/test_colors.py::test_create_lookup_table[2-result1]",
"lib/matplotlib/tests/test_colors.py::test_create_lookup_table[1-result2]",
"lib/matplotlib/tests/test_colors.py::test_resample",
"lib/matplotlib/tests/test... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
ENH: add a copy method to colormaps
## PR Summary
Right now we are deprecating access to the global colormaps, but users can only avoid it by doing `newcmap = copy.copy(cmap)` which is a bit heavy-... | 59b32afde60e46407b60c766b878c840a9bfa490 | ||
pvlib__pvlib-python-1186 | 1,186 | pvlib/pvlib-python | 0.8 | d5d8ffaa9d1201fc943bb0b3e29f7179a65ed995 | 2021-03-07T19:00:48Z | diff --git a/docs/sphinx/source/api.rst b/docs/sphinx/source/api.rst
index 0e5438a7fc..fc022cb271 100644
--- a/docs/sphinx/source/api.rst
+++ b/docs/sphinx/source/api.rst
@@ -487,6 +487,8 @@ of sources and file formats relevant to solar energy modeling.
iotools.parse_psm3
iotools.get_pvgis_tmy
iotools.read_... | diff --git a/pvlib/tests/iotools/test_pvgis.py b/pvlib/tests/iotools/test_pvgis.py
index a6c3c4510b..fc0638ed74 100644
--- a/pvlib/tests/iotools/test_pvgis.py
+++ b/pvlib/tests/iotools/test_pvgis.py
@@ -4,12 +4,301 @@
import json
import numpy as np
import pandas as pd
+import io
import pytest
import requests
from... | diff --git a/docs/sphinx/source/api.rst b/docs/sphinx/source/api.rst
index 0e5438a7fc..fc022cb271 100644
--- a/docs/sphinx/source/api.rst
+++ b/docs/sphinx/source/api.rst
@@ -487,6 +487,8 @@ of sources and file formats relevant to solar energy modeling.
iotools.parse_psm3
iotools.get_pvgis_tmy
iotools.read_... | [
{
"components": [
{
"doc": "Get hourly solar irradiation and modeled PV power output from PVGIS.\n\nPVGIS data is freely available at [1]_.\n\nParameters\n----------\nlatitude: float\n In decimal degrees, between -90 and 90, north is positive (ISO 19115)\nlongitude: float\n In decimal degree... | [
"pvlib/tests/iotools/test_pvgis.py::test_read_pvgis_hourly[testfile0-expected_radiation_csv-metadata_exp0-inputs_exp0-False-None]",
"pvlib/tests/iotools/test_pvgis.py::test_read_pvgis_hourly[testfile1-expected_radiation_csv_mapped-metadata_exp1-inputs_exp1-True-csv]",
"pvlib/tests/iotools/test_pvgis.py::test_re... | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Add getter/parser for PVGIS hourly-radiation
<!-- 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 ... | Here is the discussion in the issues of the pull request.
<issues>
getter/parser for PVGIS hourly-radiation
**Is your feature request related to a problem? Please describe.**
Related to #845
**Describe the solution you'd like**
Similar to `get_pvgis_tmy` retrieve pvgis hourly radiation data from their api
**De... | 311781d2380997044da0e484dc90aa146a74ca44 |
sympy__sympy-21052 | 21,052 | sympy/sympy | 1.8 | fb85247299b3bc96213680903cf9cde31625d05e | 2021-03-07T07:45:40Z | diff --git a/sympy/matrices/determinant.py b/sympy/matrices/determinant.py
index 08c0160151f6..e558a1db9b8f 100644
--- a/sympy/matrices/determinant.py
+++ b/sympy/matrices/determinant.py
@@ -8,6 +8,7 @@
dotprodsimp as _dotprodsimp)
from sympy import sympify
from sympy.functions.combinatorial.numbers import nC
+f... | diff --git a/sympy/matrices/tests/test_determinant.py b/sympy/matrices/tests/test_determinant.py
index 58be7e86c198..607f22e678e3 100644
--- a/sympy/matrices/tests/test_determinant.py
+++ b/sympy/matrices/tests/test_determinant.py
@@ -24,6 +24,7 @@ def test_determinant():
M = Matrix(( (-3, 2),
(... | [
{
"components": [
{
"doc": "",
"lines": [
542,
545
],
"name": "_det_DOM",
"signature": "def _det_DOM(M):",
"type": "function"
}
],
"file": "sympy/matrices/determinant.py"
}
] | [
"test_determinant",
"test_det"
] | [
"test_issue_14517",
"test_legacy_det",
"test_permanent",
"test_adjugate",
"test_util",
"test_cofactor_and_minors"
] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
adds DomainMatrix to Matrix.det
This PR implements `DomainMatrix` to slow Matrix Method `det`
Reference to Task 6 in #20987
#### Brief description of what is fixed or changed
This PR implements... | 284db64e44124856accce4abff75d2d8990c301d | ||
matplotlib__matplotlib-19646 | 19,646 | matplotlib/matplotlib | 3.3 | bd7df784719a3393bc7d6e7b471fb2b5ed52da50 | 2021-03-05T20:31:48Z | diff --git a/lib/matplotlib/patches.py b/lib/matplotlib/patches.py
index a5bb2019db56..e72485915ef3 100644
--- a/lib/matplotlib/patches.py
+++ b/lib/matplotlib/patches.py
@@ -799,6 +799,10 @@ def get_height(self):
"""Return the height of the rectangle."""
return self._height
+ def get_angle(self)... | diff --git a/lib/matplotlib/tests/test_patches.py b/lib/matplotlib/tests/test_patches.py
index 2a908098364e..c54fbe5faea1 100644
--- a/lib/matplotlib/tests/test_patches.py
+++ b/lib/matplotlib/tests/test_patches.py
@@ -76,6 +76,27 @@ def test_rotate_rect():
assert_almost_equal(rect1.get_verts(), new_verts)
+@c... | [
{
"components": [
{
"doc": "Get the rotation angle in degrees.",
"lines": [
802,
804
],
"name": "Rectangle.get_angle",
"signature": "def get_angle(self):",
"type": "function"
},
{
"doc": "Set the rotation angle in degr... | [
"lib/matplotlib/tests/test_patches.py::test_rotate_rect_draw[png]"
] | [
"lib/matplotlib/tests/test_patches.py::test_Polygon_close",
"lib/matplotlib/tests/test_patches.py::test_rotate_rect",
"lib/matplotlib/tests/test_patches.py::test_negative_rect",
"lib/matplotlib/tests/test_patches.py::test_clip_to_bbox[png]",
"lib/matplotlib/tests/test_patches.py::test_patch_alpha_coloring[p... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Add angle setter/getter to Rectangle
This adds an `angle` property, such that the `Rectangle` is labelled stale when it is updated. All the other properties use `set_` and `get_`, but to maintain back... | 59b32afde60e46407b60c766b878c840a9bfa490 | ||
Project-MONAI__MONAI-1679 | 1,679 | Project-MONAI/MONAI | null | f4560a183a09336bf6285d4d9f5d882715cde3e2 | 2021-03-03T01:07:46Z | diff --git a/docs/source/data.rst b/docs/source/data.rst
index eed4b30ded..3dffeb8977 100644
--- a/docs/source/data.rst
+++ b/docs/source/data.rst
@@ -77,6 +77,11 @@ Patch-based dataset
.. autoclass:: GridPatchDataset
:members:
+`PatchIter`
+~~~~~~~~~~~
+.. autoclass:: PatchIter
+ :members:
+
`PatchDataset`
~~... | diff --git a/tests/test_grid_dataset.py b/tests/test_grid_dataset.py
new file mode 100644
index 0000000000..6e0aa4023e
--- /dev/null
+++ b/tests/test_grid_dataset.py
@@ -0,0 +1,83 @@
+# Copyright 2020 - 2021 MONAI Consortium
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file... | diff --git a/docs/source/data.rst b/docs/source/data.rst
index eed4b30ded..3dffeb8977 100644
--- a/docs/source/data.rst
+++ b/docs/source/data.rst
@@ -77,6 +77,11 @@ Patch-based dataset
.. autoclass:: GridPatchDataset
:members:
+`PatchIter`
+~~~~~~~~~~~
+.. autoclass:: PatchIter
+ :members:
+
`PatchDataset`
~~... | [
{
"components": [
{
"doc": "A class to return a patch generator with predefined properties such as `patch_size`.\nTypically used with :py:class:`monai.data.GridPatchDataset`.",
"lines": [
26,
74
],
"name": "PatchIter",
"signature": "class PatchIt... | [
"tests/test_grid_dataset.py::TestGridPatchDataset::test_loading_array",
"tests/test_grid_dataset.py::TestGridPatchDataset::test_shape"
] | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
1500-update grid dataset to support patch level transforms
Signed-off-by: Wenqi Li <wenqil@nvidia.com>
Fixes #1500
### Description
revised grid patch dataset to support patch level transforms a... | Here is the discussion in the issues of the pull request.
<issues>
GridPatchDataset to support patch level transformations
the current `GridPatchDataset` supports transformations at image level https://github.com/Project-MONAI/MONAI/blob/2eada01efd9ddbcf8d9befe78b6ed67ce0cb454f/monai/data/grid_dataset.py#L26-L38
thi... | e73257caa79309dcce1e93abf1632f4bfd75b11f |
Project-MONAI__MONAI-1670 | 1,670 | Project-MONAI/MONAI | null | 39fd45544673f06a5752980c08f0680e723a50f4 | 2021-03-01T13:07:24Z | diff --git a/docs/source/transforms.rst b/docs/source/transforms.rst
index a144c8c138..00d8cb9053 100644
--- a/docs/source/transforms.rst
+++ b/docs/source/transforms.rst
@@ -314,6 +314,12 @@ Spatial
:members:
:special-members: __call__
+`RandAxisFlip`
+""""""""""""""
+.. autoclass:: RandAxisFlip
+ :memb... | diff --git a/tests/test_rand_axis_flip.py b/tests/test_rand_axis_flip.py
new file mode 100644
index 0000000000..0bc2eb130e
--- /dev/null
+++ b/tests/test_rand_axis_flip.py
@@ -0,0 +1,32 @@
+# Copyright 2020 - 2021 MONAI Consortium
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use thi... | diff --git a/docs/source/transforms.rst b/docs/source/transforms.rst
index a144c8c138..00d8cb9053 100644
--- a/docs/source/transforms.rst
+++ b/docs/source/transforms.rst
@@ -314,6 +314,12 @@ Spatial
:members:
:special-members: __call__
+`RandAxisFlip`
+""""""""""""""
+.. autoclass:: RandAxisFlip
+ :memb... | [
{
"components": [
{
"doc": "Randomly select a spatial axis and flip along it.\nSee numpy.flip for additional details.\nhttps://docs.scipy.org/doc/numpy/reference/generated/numpy.flip.html\n\nArgs:\n prob: Probability of flipping.",
"lines": [
775,
803
],
... | [
"tests/test_rand_axis_flip.py::TestRandAxisFlip::test_correct_results",
"tests/test_rand_axis_flipd.py::TestRandAxisFlip::test_correct_results"
] | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
1668 Add RandAxisFlip transforms
Fixes #1668 .
### Description
This PR added the `RandAxisFlip` and `RandAxisFlipd` transforms.
### Status
**Ready**
### Types of changes
<!--- Put an `x` i... | Here is the discussion in the issues of the pull request.
<issues>
Need to implement RandAxisFlip transform
**Is your feature request related to a problem? Please describe.**
`RandAxisFlip` randomly selects a spatial axis and flips on it.
----------
--------------------
</issues> | e73257caa79309dcce1e93abf1632f4bfd75b11f |
pygments__pygments-1727 | 1,727 | pygments/pygments | null | ad55974ce83b85dbb333ab57764415ab84169461 | 2021-02-27T16:30:06Z | diff --git a/AUTHORS b/AUTHORS
index e86b35b29c..7f36b9d067 100644
--- a/AUTHORS
+++ b/AUTHORS
@@ -239,5 +239,6 @@ Other contributors, listed alphabetically, are:
* 15b3 -- Image Formatter improvements
* Fabian Neumann -- CDDL lexer
* Thomas Duboucher -- CDDL lexer
+* Philipp Imhof -- Pango Markup formatter
Many ... | diff --git a/tests/test_pangomarkup_formatter.py b/tests/test_pangomarkup_formatter.py
new file mode 100644
index 0000000000..f4543826ff
--- /dev/null
+++ b/tests/test_pangomarkup_formatter.py
@@ -0,0 +1,45 @@
+"""
+ Pygments Pango Markup formatter tests
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+ :copyright: ... | diff --git a/AUTHORS b/AUTHORS
index e86b35b29c..7f36b9d067 100644
--- a/AUTHORS
+++ b/AUTHORS
@@ -239,5 +239,6 @@ Other contributors, listed alphabetically, are:
* 15b3 -- Image Formatter improvements
* Fabian Neumann -- CDDL lexer
* Thomas Duboucher -- CDDL lexer
+* Philipp Imhof -- Pango Markup formatter
Many ... | [
{
"components": [
{
"doc": "Escape & and < for Pango Markup.",
"lines": [
23,
25
],
"name": "escape_special_chars",
"signature": "def escape_special_chars(text, table=_escape_table):",
"type": "function"
},
{
"doc": "F... | [
"tests/test_pangomarkup_formatter.py::test_correct_output"
] | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Add formatter for Pango Markup
New formatter for Pango Markup as described in https://developer.gnome.org/pango/stable/pango-Markup.html
Using Pango, the output of this formatter can then be conver... | e08bdbba2fa78270dba5ca700d053569f85d0351 | |
pvlib__pvlib-python-1179 | 1,179 | pvlib/pvlib-python | 0.8 | bee329bd926c308a3e07e9099999fa37634a2f88 | 2021-02-26T04:41:51Z | diff --git a/docs/examples/irradiance-decomposition/README.rst b/docs/examples/irradiance-decomposition/README.rst
new file mode 100644
index 0000000000..95f18c9330
--- /dev/null
+++ b/docs/examples/irradiance-decomposition/README.rst
@@ -0,0 +1,3 @@
+Irradiance Decomposition
+------------------------
+
diff --git a/do... | diff --git a/pvlib/tests/test_irradiance.py b/pvlib/tests/test_irradiance.py
index ae3a7ec88a..cffdd23e40 100644
--- a/pvlib/tests/test_irradiance.py
+++ b/pvlib/tests/test_irradiance.py
@@ -804,6 +804,22 @@ def test_erbs():
assert_frame_equal(np.round(out, 0), np.round(expected, 0))
+def test_boland():
+ i... | diff --git a/docs/examples/irradiance-decomposition/README.rst b/docs/examples/irradiance-decomposition/README.rst
new file mode 100644
index 0000000000..95f18c9330
--- /dev/null
+++ b/docs/examples/irradiance-decomposition/README.rst
@@ -0,0 +1,3 @@
+Irradiance Decomposition
+------------------------
+
diff --git a/do... | [
{
"components": [
{
"doc": "Estimate DNI and DHI from GHI using the Boland clearness index model.\n\nThe Boland model [1]_, [2]_ estimates the diffuse fraction, DF, from global\nhorizontal irradiance, GHI, through an empirical relationship between DF\nand the clearness index, :math:`k_t`, the rati... | [
"pvlib/tests/test_irradiance.py::test_boland"
] | [
"pvlib/tests/test_irradiance.py::test_get_extra_radiation[asce-300-1383.636203]",
"pvlib/tests/test_irradiance.py::test_get_extra_radiation[asce-300.0-1383.636203]",
"pvlib/tests/test_irradiance.py::test_get_extra_radiation[asce-testval2-1383.636203]",
"pvlib/tests/test_irradiance.py::test_get_extra_radiation... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
add Boland DF estimation
<!-- Thank you for your contribution! The following items must be addressed before the code can be merged. Please don't hesitate to ask for help if you're unsure of how to acc... | 311781d2380997044da0e484dc90aa146a74ca44 | |
pvlib__pvlib-python-1177 | 1,177 | pvlib/pvlib-python | 0.8 | 8b98768818ee5ad85d9479877533651a2e9dc2cd | 2021-02-25T22:32:29Z | diff --git a/docs/sphinx/source/api.rst b/docs/sphinx/source/api.rst
index 8805d199a4..7ed5ee941d 100644
--- a/docs/sphinx/source/api.rst
+++ b/docs/sphinx/source/api.rst
@@ -238,6 +238,7 @@ PV temperature models
temperature.faiman
temperature.fuentes
temperature.ross
+ temperature.noct_sam
pvsystem.P... | diff --git a/pvlib/tests/test_temperature.py b/pvlib/tests/test_temperature.py
index f8ea3a8bc1..1ce2e69a47 100644
--- a/pvlib/tests/test_temperature.py
+++ b/pvlib/tests/test_temperature.py
@@ -5,7 +5,7 @@
from conftest import DATA_DIR, assert_series_equal
from numpy.testing import assert_allclose
-from pvlib impo... | diff --git a/docs/sphinx/source/api.rst b/docs/sphinx/source/api.rst
index 8805d199a4..7ed5ee941d 100644
--- a/docs/sphinx/source/api.rst
+++ b/docs/sphinx/source/api.rst
@@ -238,6 +238,7 @@ PV temperature models
temperature.faiman
temperature.fuentes
temperature.ross
+ temperature.noct_sam
pvsystem.P... | [
{
"components": [
{
"doc": "",
"lines": [
711,
718
],
"name": "_adj_for_mounting_standoff",
"signature": "def _adj_for_mounting_standoff(x):",
"type": "function"
},
{
"doc": "Cell temperature model from the System Advi... | [
"pvlib/tests/test_temperature.py::test_noct_sam",
"pvlib/tests/test_temperature.py::test_noct_sam_against_sam",
"pvlib/tests/test_temperature.py::test_noct_sam_options",
"pvlib/tests/test_temperature.py::test_noct_sam_errors"
] | [
"pvlib/tests/test_temperature.py::test_sapm_cell",
"pvlib/tests/test_temperature.py::test_sapm_module",
"pvlib/tests/test_temperature.py::test_sapm_cell_from_module",
"pvlib/tests/test_temperature.py::test_sapm_ndarray",
"pvlib/tests/test_temperature.py::test_sapm_series",
"pvlib/tests/test_temperature.py... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
NOCT cell temperature function
- ~~[ ] Closes #xxxx~~
- [x] I am familiar with the [contributing guidelines](https://pvlib-python.readthedocs.io/en/latest/contributing.html)
- [x] Tests added
-... | 311781d2380997044da0e484dc90aa146a74ca44 | |
joke2k__faker-1403 | 1,403 | joke2k/faker | null | 3a1f98c2f2911ffd469ee20a2e8b12ee449327f4 | 2021-02-24T13:59:53Z | diff --git a/faker/providers/address/de_CH/__init__.py b/faker/providers/address/de_CH/__init__.py
new file mode 100644
index 0000000000..136c47f29c
--- /dev/null
+++ b/faker/providers/address/de_CH/__init__.py
@@ -0,0 +1,44 @@
+from .. import Provider as AddressProvider
+
+
+class Provider(AddressProvider):
+ city_... | diff --git a/tests/providers/test_address.py b/tests/providers/test_address.py
index 7f0e21ea3e..b867fe4b2b 100644
--- a/tests/providers/test_address.py
+++ b/tests/providers/test_address.py
@@ -8,6 +8,7 @@
from faker.providers.address.cs_CZ import Provider as CsCzAddressProvider
from faker.providers.address.da_DK im... | [
{
"components": [
{
"doc": "",
"lines": [
4,
44
],
"name": "Provider",
"signature": "class Provider(AddressProvider):",
"type": "class"
},
{
"doc": "Randomly returns a swiss canton ('Abbreviated', 'Name').\n:example ('... | [
"tests/providers/test_address.py::TestBaseProvider::test_alpha_2_country_codes",
"tests/providers/test_address.py::TestBaseProvider::test_alpha_2_country_codes_as_default",
"tests/providers/test_address.py::TestBaseProvider::test_alpha_3_country_codes",
"tests/providers/test_address.py::TestBaseProvider::test... | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Add addresses for de_CH
### What does this changes
Add address formats for de_CH
----------
</request>
There are several new functions or classes that need to be implemented, using the definiti... | 6edfdbf6ae90b0153309e3bf066aa3b2d16494a7 | ||
pvlib__pvlib-python-1176 | 1,176 | pvlib/pvlib-python | 0.8 | f80068c86b9fc14c9395b52fac39a8e9fae5ef27 | 2021-02-23T18:12:23Z | diff --git a/docs/sphinx/source/api.rst b/docs/sphinx/source/api.rst
index 0af200e67c..eed2c03595 100644
--- a/docs/sphinx/source/api.rst
+++ b/docs/sphinx/source/api.rst
@@ -13,7 +13,8 @@ object-oriented programming. These classes can help users keep track of
data in a more organized way, and can help to simplify the... | diff --git a/pvlib/tests/test_modelchain.py b/pvlib/tests/test_modelchain.py
index 4d2edbccae..e52bda72bd 100644
--- a/pvlib/tests/test_modelchain.py
+++ b/pvlib/tests/test_modelchain.py
@@ -55,13 +55,13 @@ def cec_dc_snl_ac_arrays(cec_module_cs5p_220m, cec_inverter_parameters,
module_parameters['dEgdT'] = -0.0002... | diff --git a/docs/sphinx/source/api.rst b/docs/sphinx/source/api.rst
index 0af200e67c..eed2c03595 100644
--- a/docs/sphinx/source/api.rst
+++ b/docs/sphinx/source/api.rst
@@ -13,7 +13,8 @@ object-oriented programming. These classes can help users keep track of
data in a more organized way, and can help to simplify the... | [
{
"components": [
{
"doc": "A base class for Mount classes to extend. It is not intended to be\ninstantiated directly.",
"lines": [
1681,
1689
],
"name": "AbstractMount",
"signature": "class AbstractMount(ABC):",
"type": "class"
},
... | [
"pvlib/tests/test_modelchain.py::test_ModelChain_creation",
"pvlib/tests/test_modelchain.py::test_with_sapm",
"pvlib/tests/test_modelchain.py::test_with_pvwatts",
"pvlib/tests/test_modelchain.py::test_run_model_with_irradiance",
"pvlib/tests/test_modelchain.py::test_run_model_from_irradiance_arrays_no_loss"... | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
add Mount classes
- [x] Closes #1109
- [x] I am familiar with the [contributing guidelines](https://pvlib-python.readthedocs.io/en/latest/contributing.html)
- [x] Tests added
- [x] Updates ent... | Here is the discussion in the issues of the pull request.
<issues>
make Array play nicely with fixed tilt systems and trackers
#1076 is adding an `Array` class that largely describes a fixed-tilt array. However, the composition logic of `PVSystem: def __init__(arrays,...)` combined with the inheritance logic of `Single... | 311781d2380997044da0e484dc90aa146a74ca44 |
sympy__sympy-20988 | 20,988 | sympy/sympy | 1.8 | d506702bac87ecb487f6fc4ecc99b38694f6ade0 | 2021-02-21T05:50:33Z | diff --git a/sympy/polys/domains/complexfield.py b/sympy/polys/domains/complexfield.py
index a10e0b1efff7..7bbce6d3882f 100644
--- a/sympy/polys/domains/complexfield.py
+++ b/sympy/polys/domains/complexfield.py
@@ -101,6 +101,22 @@ def get_exact(self):
"""Returns an exact domain associated with ``self``. """
... | diff --git a/sympy/polys/domains/tests/test_domains.py b/sympy/polys/domains/tests/test_domains.py
index 6edfef8e7f12..74889f70283c 100644
--- a/sympy/polys/domains/tests/test_domains.py
+++ b/sympy/polys/domains/tests/test_domains.py
@@ -1044,3 +1044,31 @@ def test_gaussian_domains():
def test_issue_18278():
ass... | [
{
"components": [
{
"doc": "Returns ``False`` for any ``ComplexElement``. ",
"lines": [
104,
106
],
"name": "ComplexField.is_negative",
"signature": "def is_negative(self, element):",
"type": "function"
},
{
"doc": "Re... | [
"test_Domain_is_negative",
"test_Domain_is_positive",
"test_Domain_is_nonnegative"
] | [
"test_Domain_unify",
"test_Domain_unify_composite",
"test_Domain_unify_algebraic",
"test_Domain_unify_FiniteExtension",
"test_Domain_unify_with_symbols",
"test_Domain__contains__",
"test_Domain_get_ring",
"test_Domain_get_field",
"test_Domain_get_exact",
"test_Domain_is_unit",
"test_Domain_conve... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
added methods and tests for CC
Added `is_negative`, `is_positive`, `is_nonnegative` and `is_nonpositive` methods for the complex field `CC`.
#### References to other Issues or PRs
Fixes #20985
... | Here is the discussion in the issues of the pull request.
<issues>
TypeErrors appearing for simple plynomial manipulations (did not happen in v1.6.1)
Here is a minimal working example of the bug:
```
import sympy as sp
w = sp.Symbol('w')
R = sp.Symbol('R')
poly = 1.0 + sp.I*w/R
sp.polys.polytools.degree(poly, g... | 284db64e44124856accce4abff75d2d8990c301d | |
huggingface__datasets-1921 | 1,921 | huggingface/datasets | null | 248104c4bdb2e01c036b7578867199191fbff181 | 2021-02-20T22:04:01Z | diff --git a/docs/source/features.rst b/docs/source/features.rst
index e0948e68e57..23a90ffe4ff 100644
--- a/docs/source/features.rst
+++ b/docs/source/features.rst
@@ -1,12 +1,37 @@
Dataset features
-===========================
+================
+
+:class:`datasets.Features` defines the internal structure of a datase... | diff --git a/tests/test_features.py b/tests/test_features.py
index 81da4d03733..aed1dbf111c 100644
--- a/tests/test_features.py
+++ b/tests/test_features.py
@@ -10,6 +10,7 @@
Features,
Sequence,
Value,
+ _arrow_to_datasets_dtype,
_cast_to_python_objects,
cast_to_python_objects,
string_t... | diff --git a/docs/source/features.rst b/docs/source/features.rst
index e0948e68e57..23a90ffe4ff 100644
--- a/docs/source/features.rst
+++ b/docs/source/features.rst
@@ -1,12 +1,37 @@
Dataset features
-===========================
+================
+
+:class:`datasets.Features` defines the internal structure of a datase... | [
{
"components": [
{
"doc": "_arrow_to_datasets_dtype takes a pyarrow.DataType and converts it to a datasets string dtype.\nIn effect, `dt == string_to_arrow(_arrow_to_datasets_dtype(dt))`",
"lines": [
39,
88
],
"name": "_arrow_to_datasets_dtype",
... | [
"tests/test_features.py::FeaturesTest::test_cast_to_python_objects_dataframe",
"tests/test_features.py::FeaturesTest::test_cast_to_python_objects_list",
"tests/test_features.py::FeaturesTest::test_cast_to_python_objects_numpy",
"tests/test_features.py::FeaturesTest::test_cast_to_python_objects_series",
"tes... | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Standardizing datasets dtypes
This PR follows up on discussion in #1900 to have an explicit set of basic dtypes for datasets.
This moves away from str(pyarrow.DataType) as the method of choice for ... | 5142a8cf61d8a4495eda3d91dc4283a6df01ea14 | |
sympy__sympy-20976 | 20,976 | sympy/sympy | 1.8 | a96ca96e6505b71a846f266884c09197f71e7232 | 2021-02-18T18:46:41Z | diff --git a/sympy/codegen/array_utils.py b/sympy/codegen/array_utils.py
index 1ae2d81f23f3..66fed35c5970 100644
--- a/sympy/codegen/array_utils.py
+++ b/sympy/codegen/array_utils.py
@@ -6,7 +6,8 @@
from collections import defaultdict
from sympy import Indexed, IndexedBase, Tuple, Sum, Add, S, Integer, diagonalize_... | diff --git a/sympy/codegen/tests/test_array_utils.py b/sympy/codegen/tests/test_array_utils.py
index 28bc3c9f6b26..07aaa695828b 100644
--- a/sympy/codegen/tests/test_array_utils.py
+++ b/sympy/codegen/tests/test_array_utils.py
@@ -1,18 +1,18 @@
from sympy import (
symbols, IndexedBase, Identity, cos, Inverse, ten... | [
{
"components": [
{
"doc": "",
"lines": [
1131,
1163
],
"name": "ArrayElementwiseApplyFunc",
"signature": "class ArrayElementwiseApplyFunc(_CodegenArrayAbstract):",
"type": "class"
},
{
"doc": "",
"lines": [
... | [
"test_codegen_array_contraction_construction",
"test_codegen_array_contraction_indices_types",
"test_codegen_array_recognize_matrix_mul_lines",
"test_codegen_array_flatten",
"test_codegen_array_parse",
"test_codegen_array_diagonal",
"test_codegen_recognize_matrix_expression",
"test_codegen_array_shape... | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Added class for elementwise application of functions to array expressions
<!-- BEGIN RELEASE NOTES -->
NO ENTRY
<!-- END RELEASE NOTES -->
----------
</request>
There are several new functions... | 284db64e44124856accce4abff75d2d8990c301d | ||
joke2k__faker-1398 | 1,398 | joke2k/faker | null | 60741e733eb0711ddaefc394eba1185f819f758f | 2021-02-17T12:53:25Z | diff --git a/faker/providers/automotive/sk_SK/__init__.py b/faker/providers/automotive/sk_SK/__init__.py
new file mode 100644
index 0000000000..ef2c1945e8
--- /dev/null
+++ b/faker/providers/automotive/sk_SK/__init__.py
@@ -0,0 +1,97 @@
+import string
+
+from .. import Provider as AutomotiveProvider
+
+
+class Provider... | diff --git a/tests/providers/test_automotive.py b/tests/providers/test_automotive.py
index e17b8b7c5d..85856d520c 100644
--- a/tests/providers/test_automotive.py
+++ b/tests/providers/test_automotive.py
@@ -3,6 +3,7 @@
from faker.providers.automotive.de_DE import Provider as DeDeAutomotiveProvider
from faker.provider... | [
{
"components": [
{
"doc": "Implement automotive provider for ``sk_SK`` locale.\n\nSources:\n\n- https://en.wikipedia.org/wiki/Vehicle_registration_plates_of_Slovakia",
"lines": [
6,
97
],
"name": "Provider",
"signature": "class Provider(Automoti... | [
"tests/providers/test_automotive.py::TestSkSk::test_license_plate",
"tests/providers/test_automotive.py::TestPtBr::test_license_plate",
"tests/providers/test_automotive.py::TestPtPt::test_license_plate",
"tests/providers/test_automotive.py::TestHuHu::test_license_plate",
"tests/providers/test_automotive.py:... | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Added sk_SK automotive provider
### What does this changes
This PR is adding sk_SK locale for automotive provider and unittests.
### What was wrong
Faker is missing sk_SK locale for automotiv... | Here is the discussion in the issues of the pull request.
<issues>
Faker is missing sk_SK locale for Automotive provider
* Faker version: 6.1.1
* OS: GNU/Linux
Brief summary of the issue goes here.
Faker is missing license plates for sk_SK locale
### Steps to reproduce
```
>>> from faker import Faker
>>> f... | 6edfdbf6ae90b0153309e3bf066aa3b2d16494a7 | |
huggingface__datasets-1879 | 1,879 | huggingface/datasets | null | 2fe9576b3d8adade92c0ed62df94c0cc4c18376d | 2021-02-15T13:29:40Z | diff --git a/src/datasets/utils/download_manager.py b/src/datasets/utils/download_manager.py
index b44524b3c68..f3648a300d2 100644
--- a/src/datasets/utils/download_manager.py
+++ b/src/datasets/utils/download_manager.py
@@ -33,7 +33,7 @@
)
from .info_utils import get_size_checksum_dict
from .logging import get_logg... | diff --git a/tests/test_py_utils.py b/tests/test_py_utils.py
index 2c7c7c97a15..cb8615ff150 100644
--- a/tests/test_py_utils.py
+++ b/tests/test_py_utils.py
@@ -1,10 +1,11 @@
from unittest import TestCase
import numpy as np
+import pytest
from datasets.utils.py_utils import (
+ NestedDataStructure,
flatt... | [
{
"components": [
{
"doc": "",
"lines": [
299,
310
],
"name": "NestedDataStructure",
"signature": "class NestedDataStructure:",
"type": "class"
},
{
"doc": "",
"lines": [
300,
301
],... | [
"tests/test_py_utils.py::PyUtilsTest::test_flatten_nest_dict",
"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::PyUtilsTest::test_zip_nested",
"tests/test... | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Replace flatten_nested
Replace `flatten_nested` with `NestedDataStructure.flatten`.
This is a first step towards having all NestedDataStructure logic as a separated concern, independent of the call... | 5142a8cf61d8a4495eda3d91dc4283a6df01ea14 | ||
sympy__sympy-20943 | 20,943 | sympy/sympy | 1.8 | 6711a15e92505c8a262348c86277f541b776b3e2 | 2021-02-11T19:44:15Z | diff --git a/sympy/printing/latex.py b/sympy/printing/latex.py
index 4f9963ee5217..83c322693002 100644
--- a/sympy/printing/latex.py
+++ b/sympy/printing/latex.py
@@ -1892,6 +1892,12 @@ def _print_PartialDerivative(self, expr):
self.parenthesize(expr.expr, PRECEDENCE["Mul"], False)
)
+ ... | diff --git a/sympy/core/tests/test_args.py b/sympy/core/tests/test_args.py
index 1f2321583b60..38be28aa07bd 100644
--- a/sympy/core/tests/test_args.py
+++ b/sympy/core/tests/test_args.py
@@ -4374,6 +4374,17 @@ def test_sympy__tensor__array__array_derivatives__ArrayDerivative():
arrder = ArrayDerivative(A, A, evalu... | [
{
"components": [
{
"doc": "",
"lines": [
1895,
1896
],
"name": "LatexPrinter._print_ArraySymbol",
"signature": "def _print_ArraySymbol(self, expr):",
"type": "function"
},
{
"doc": "",
"lines": [
189... | [
"test_sympy__tensor__array__expressions__array_expressions__ArraySymbol",
"test_sympy__tensor__array__expressions__array_expressions__ArrayElement",
"test_printmethod",
"test_latex_basic",
"test_latex_builtins",
"test_latex_SingularityFunction",
"test_latex_cycle",
"test_latex_permutation",
"test_la... | [
"test_all_classes_are_tested",
"test_sympy__assumptions__assume__AppliedPredicate",
"test_predicates",
"test_sympy__assumptions__assume__UndefinedPredicate",
"test_sympy__assumptions__sathandlers__UnevaluatedOnFree",
"test_sympy__assumptions__sathandlers__AllArgs",
"test_sympy__assumptions__sathandlers_... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Added ArraySymbol and ArrayElement
<!-- BEGIN RELEASE NOTES -->
* tensor
* Introduced objects ArraySymbol and ArrayElement for array expressions equivalent to MatrixSymbol and MatrixElement in the... | 284db64e44124856accce4abff75d2d8990c301d | ||
prompt-toolkit__python-prompt-toolkit-1365 | 1,365 | prompt-toolkit/python-prompt-toolkit | null | eced76be18b5e1521adb9128c95b29b2082a5ee3 | 2021-02-11T10:42:10Z | diff --git a/prompt_toolkit/completion/__init__.py b/prompt_toolkit/completion/__init__.py
index 0c97dca79..270c74337 100644
--- a/prompt_toolkit/completion/__init__.py
+++ b/prompt_toolkit/completion/__init__.py
@@ -2,12 +2,14 @@
CompleteEvent,
Completer,
Completion,
+ ConditionalCompleter,
Dumm... | diff --git a/tests/test_completion.py b/tests/test_completion.py
index 00a620718..b420c0e4f 100644
--- a/tests/test_completion.py
+++ b/tests/test_completion.py
@@ -6,10 +6,12 @@
from prompt_toolkit.completion import (
CompleteEvent,
+ DeduplicateCompleter,
FuzzyWordCompleter,
NestedCompleter,
... | [
{
"components": [
{
"doc": "Wrapper around any other completer that will enable/disable the completions\ndepending on whether the received condition is satisfied.\n\n:param completer: :class:`.Completer` instance.\n:param filter: :class:`.Filter` instance.",
"lines": [
280,
... | [
"tests/test_completion.py::test_pathcompleter_completes_in_current_directory",
"tests/test_completion.py::test_pathcompleter_completes_files_in_current_directory",
"tests/test_completion.py::test_pathcompleter_completes_files_in_absolute_directory",
"tests/test_completion.py::test_pathcompleter_completes_dire... | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Added DeduplicateCompleter and ConditionalCompleter.
Also added a `deduplicate` argument to merge_completers.
----------
</request>
There are several new functions or classes that need to be impleme... | 700ae9eed535090c84ffcde7003fd3c295b7b1ad | ||
pydata__xarray-4886 | 4,886 | pydata/xarray | 0.12 | 10f0227a1667c5ab3c88465ff1572065322cde77 | 2021-02-11T04:53:51Z | diff --git a/xarray/backends/plugins.py b/xarray/backends/plugins.py
index b8cd2bf6378..88c29306d18 100644
--- a/xarray/backends/plugins.py
+++ b/xarray/backends/plugins.py
@@ -8,19 +8,19 @@
from .common import BACKEND_ENTRYPOINTS
+STANDARD_BACKENDS_ORDER = ["netcdf4", "h5netcdf", "scipy"]
-def remove_duplicates... | diff --git a/xarray/tests/test_plugins.py b/xarray/tests/test_plugins.py
index 64a1c563dba..0cda2901cee 100644
--- a/xarray/tests/test_plugins.py
+++ b/xarray/tests/test_plugins.py
@@ -58,13 +58,13 @@ def test_remove_duplicates_warnings(dummy_duplicated_entrypoints):
@mock.patch("pkg_resources.EntryPoint.load", mo... | [
{
"components": [
{
"doc": "",
"lines": [
54,
60
],
"name": "backends_dict_from_pkg",
"signature": "def backends_dict_from_pkg(pkg_entrypoints):",
"type": "function"
},
{
"doc": "",
"lines": [
70,
... | [
"xarray/tests/test_plugins.py::test_backends_dict_from_pkg",
"xarray/tests/test_plugins.py::test_build_engines_sorted"
] | [
"xarray/tests/test_plugins.py::test_remove_duplicates",
"xarray/tests/test_plugins.py::test_remove_duplicates_warnings",
"xarray/tests/test_plugins.py::test_set_missing_parameters",
"xarray/tests/test_plugins.py::test_set_missing_parameters_raise_error",
"xarray/tests/test_plugins.py::test_build_engines"
] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Sort backends
Ensure that backend list are always sorted in the same way. In particular:
- the standards backend are always the first in the following order: "netcdf4", "h5netcdf", "scipy"
- all the... | 1c198a191127c601d091213c4b3292a8bb3054e1 | ||
sympy__sympy-20922 | 20,922 | sympy/sympy | 1.8 | ef14666d718f147878b51ed7ba9a5192e16c04f3 | 2021-02-07T12:36:20Z | diff --git a/sympy/matrices/common.py b/sympy/matrices/common.py
index 739e08075b03..5ff687908ce2 100644
--- a/sympy/matrices/common.py
+++ b/sympy/matrices/common.py
@@ -806,6 +806,18 @@ def entry(i, j):
return cls.zero
return cls._new(rows, cols, entry)
+ @classmethod
+ def _eval_wilkins... | diff --git a/sympy/matrices/tests/test_commonmatrix.py b/sympy/matrices/tests/test_commonmatrix.py
index b50b11eda48e..42982c39c332 100644
--- a/sympy/matrices/tests/test_commonmatrix.py
+++ b/sympy/matrices/tests/test_commonmatrix.py
@@ -977,6 +977,37 @@ def test_orthogonalize():
vecs = [Matrix([1, 2, 3]), Matrix... | [
{
"components": [
{
"doc": "",
"lines": [
810,
819
],
"name": "MatrixSpecial._eval_wilkinson",
"signature": "def _eval_wilkinson(cls, n):",
"type": "function"
},
{
"doc": "",
"lines": [
811,
... | [
"test_wilkinson"
] | [
"test__MinimalMatrix",
"test_vec",
"test_todok",
"test_tolist",
"test_row_col_del",
"test_get_diag_blocks1",
"test_get_diag_blocks2",
"test_shape",
"test_reshape",
"test_row_col",
"test_row_join",
"test_col_join",
"test_row_insert",
"test_col_insert",
"test_extract",
"test_hstack",
"... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Implemented function returning Wilkinson Matrix
#### Brief description of what is fixed or changed
Implemented function returning Wilkinson matrix
#### Release Notes
<!-- Write the release note... | 284db64e44124856accce4abff75d2d8990c301d | ||
sympy__sympy-20911 | 20,911 | sympy/sympy | 1.8 | 08790b7cde0ba17053cadaaf00b809eea81e6bea | 2021-02-05T08:49:33Z | diff --git a/sympy/matrices/common.py b/sympy/matrices/common.py
index 5ff687908ce2..1443011a920f 100644
--- a/sympy/matrices/common.py
+++ b/sympy/matrices/common.py
@@ -2484,6 +2484,84 @@ def _eval_trigsimp(self, **opts):
from sympy.simplify import trigsimp
return self.applyfunc(lambda x: trigsimp(x... | diff --git a/sympy/matrices/tests/test_commonmatrix.py b/sympy/matrices/tests/test_commonmatrix.py
index 42982c39c332..e916ae83d277 100644
--- a/sympy/matrices/tests/test_commonmatrix.py
+++ b/sympy/matrices/tests/test_commonmatrix.py
@@ -620,6 +620,70 @@ def test_permute():
... | [
{
"components": [
{
"doc": "returns the elements on and above the kth diagonal of a matrix.\nIf k is not specified then simply returns upper-triangular portion\nof a matrix\n\nExamples\n========\n\n>>> from sympy import ones\n>>> A = ones(4)\n>>> A.upper_triangular()\nMatrix([\n[1, 1, 1, 1],\n[0, ... | [
"test_upper_triangular",
"test_lower_triangular"
] | [
"test__MinimalMatrix",
"test_vec",
"test_todok",
"test_tolist",
"test_row_col_del",
"test_get_diag_blocks1",
"test_get_diag_blocks2",
"test_shape",
"test_reshape",
"test_row_col",
"test_row_join",
"test_col_join",
"test_row_insert",
"test_col_insert",
"test_extract",
"test_hstack",
"... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Implemented function returning upper and lower triangular part of a matrix
#### Brief description of what is fixed or changed
Added two functions upper_triangular and lower_triangular that return... | 284db64e44124856accce4abff75d2d8990c301d | ||
Project-MONAI__MONAI-1546 | 1,546 | Project-MONAI/MONAI | null | 2021f244a0d2e56806f7835ebf0ecff2ef496ca5 | 2021-02-04T12:45:14Z | diff --git a/docs/source/transforms.rst b/docs/source/transforms.rst
index 90d960a6b9..228b73b6c2 100644
--- a/docs/source/transforms.rst
+++ b/docs/source/transforms.rst
@@ -939,6 +939,12 @@ Utility (Dict)
:members:
:special-members: __call__
+`RandLambdad`
+"""""""""""""
+.. autoclass:: RandLambdad
+ :... | diff --git a/tests/test_rand_lambdad.py b/tests/test_rand_lambdad.py
new file mode 100644
index 0000000000..359da8857a
--- /dev/null
+++ b/tests/test_rand_lambdad.py
@@ -0,0 +1,48 @@
+# Copyright 2020 - 2021 MONAI Consortium
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file... | diff --git a/docs/source/transforms.rst b/docs/source/transforms.rst
index 90d960a6b9..228b73b6c2 100644
--- a/docs/source/transforms.rst
+++ b/docs/source/transforms.rst
@@ -939,6 +939,12 @@ Utility (Dict)
:members:
:special-members: __call__
+`RandLambdad`
+"""""""""""""
+.. autoclass:: RandLambdad
+ :... | [
{
"components": [
{
"doc": "Randomizable version :py:class:`monai.transforms.Lambdad`, the input `func` contains random logic.\nIt's a randomizable transform so `CacheDataset` will not execute it and cache the results.\n\nArgs:\n keys: keys of the corresponding items to be transformed.\n ... | [
"tests/test_rand_lambdad.py::TestRandLambdad::test_rand_lambdad_identity"
] | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
1542 Add RandLambdad transform
Fixes #1542 .
### Description
This PR added `RandLambdad` transform to support `CacheDataset` for random lambda function.
### Status
**Ready**
### Types of ch... | Here is the discussion in the issues of the pull request.
<issues>
lambda transform should be optionally randomisable
**Is your feature request related to a problem? Please describe.**
the [lambda transform](https://github.com/Project-MONAI/MONAI/blob/26581a05f2b327d67ab1ce662d24ecbf93a8e50f/monai/transforms/utility/d... | e73257caa79309dcce1e93abf1632f4bfd75b11f |
sympy__sympy-20901 | 20,901 | sympy/sympy | 1.8 | 4aa3cd6c7c689fbe4e604082fb44e2136fa4224d | 2021-02-03T07:39:54Z | diff --git a/sympy/__init__.py b/sympy/__init__.py
index a94431af326a..dadf42ea9616 100644
--- a/sympy/__init__.py
+++ b/sympy/__init__.py
@@ -128,7 +128,7 @@ def __sympy_debug():
chebyshevu, chebyshevu_root, chebyshevt_root, laguerre,
assoc_laguerre, gegenbauer, jacobi, jacobi_normalized, Ynm, Ynm_c,... | diff --git a/sympy/core/tests/test_args.py b/sympy/core/tests/test_args.py
index 38be28aa07bd..39767d0a560a 100644
--- a/sympy/core/tests/test_args.py
+++ b/sympy/core/tests/test_args.py
@@ -2760,6 +2760,11 @@ def test_sympy__functions__special__zeta_functions__dirichlet_eta():
assert _test_args(dirichlet_eta(x))
... | [
{
"components": [
{
"doc": "Riemann Xi function.\n\nExamples\n========\n\nThe Riemann Xi function is closely related to the Riemann zeta function.\nThe zeros of Riemann Xi function are precisely the non-trivial zeros\nof the zeta function.\n\n>>> from sympy import riemann_xi, zeta\n>>> from sympy.... | [
"test_sympy__functions__special__zeta_functions__riemann_xi",
"test_zeta_eval",
"test_zeta_series",
"test_dirichlet_eta_eval",
"test_riemann_xi_eval",
"test_rewriting",
"test_derivatives",
"test_polylog_expansion",
"test_issue_8404",
"test_polylog_values",
"test_lerchphi_expansion",
"test_stie... | [
"test_all_classes_are_tested",
"test_sympy__assumptions__assume__AppliedPredicate",
"test_predicates",
"test_sympy__assumptions__assume__UndefinedPredicate",
"test_sympy__assumptions__sathandlers__UnevaluatedOnFree",
"test_sympy__assumptions__sathandlers__AllArgs",
"test_sympy__assumptions__sathandlers_... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Xi function
<!-- Your title above should be a short description of what
was changed. Do not include the issue number in the title. -->
#### References to other Issues or PRs
<!-- If this pull req... | 284db64e44124856accce4abff75d2d8990c301d | ||
joke2k__faker-1391 | 1,391 | joke2k/faker | null | 60741e733eb0711ddaefc394eba1185f819f758f | 2021-02-02T01:15:20Z | diff --git a/faker/documentor.py b/faker/documentor.py
index fe2213b052..8f28753788 100644
--- a/faker/documentor.py
+++ b/faker/documentor.py
@@ -1,4 +1,5 @@
import inspect
+import warnings
class Documentor:
@@ -83,9 +84,12 @@ def get_provider_formatters(self, provider, prefix='fake.',
# build fake ... | diff --git a/tests/providers/test_address.py b/tests/providers/test_address.py
index 369aa22249..7f0e21ea3e 100644
--- a/tests/providers/test_address.py
+++ b/tests/providers/test_address.py
@@ -4,6 +4,7 @@
import pytest
+from faker import Faker, providers
from faker.providers.address.cs_CZ import Provider as CsC... | [
{
"components": [
{
"doc": "",
"lines": [
86,
90
],
"name": "Provider.current_country_code",
"signature": "def current_country_code(self):",
"type": "function"
},
{
"doc": "",
"lines": [
92,
... | [
"tests/providers/test_address.py::TestBaseProvider::test_administrative_unit_all_locales",
"tests/providers/test_address.py::TestBaseProvider::test_country_code_all_locales",
"tests/providers/test_address.py::TestBaseProvider::test_current_country_errors",
"tests/providers/test_address.py::TestEnNz::test_stat... | [
"tests/providers/test_address.py::TestBaseProvider::test_alpha_2_country_codes",
"tests/providers/test_address.py::TestBaseProvider::test_alpha_2_country_codes_as_default",
"tests/providers/test_address.py::TestBaseProvider::test_alpha_3_country_codes",
"tests/providers/test_address.py::TestBaseProvider::test... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Add current_country, current_country_code and administrative_unit
### What does this changes
Add three new methods: current_country, current_country_code and administrative_unit
### What was wro... | Here is the discussion in the issues of the pull request.
<issues>
Synchronize states and countries?
Brief summary of the issue goes here.
People often use my Snowfakery tool to write programs that randomly choose a locale and generate an address for the locale. There are two challenges that I'd like to ask for advi... | 6edfdbf6ae90b0153309e3bf066aa3b2d16494a7 | |
sympy__sympy-20886 | 20,886 | sympy/sympy | 1.8 | 2b4107584048dd62c95483ee45f4ee9acaf220a4 | 2021-02-01T04:18:19Z | diff --git a/sympy/functions/special/bessel.py b/sympy/functions/special/bessel.py
index 37d99648d2c1..c57b2dadb7c3 100644
--- a/sympy/functions/special/bessel.py
+++ b/sympy/functions/special/bessel.py
@@ -1,26 +1,26 @@
from functools import wraps
-from sympy import S, pi, I, Rational, Wild, cacheit, sympify
-from ... | diff --git a/sympy/functions/special/tests/test_bessel.py b/sympy/functions/special/tests/test_bessel.py
index 5d96cd4a53a1..267d8f12c132 100644
--- a/sympy/functions/special/tests/test_bessel.py
+++ b/sympy/functions/special/tests/test_bessel.py
@@ -4,7 +4,7 @@
bessely, besseli, besselk, hankel1, h... | [
{
"components": [
{
"doc": "",
"lines": [
219,
225
],
"name": "besselj._eval_as_leading_term",
"signature": "def _eval_as_leading_term(self, x, cdir=0):",
"type": "function"
},
{
"doc": "",
"lines": [
... | [
"test_besselj_series",
"test_bessely_series"
] | [
"test_bessel_rand",
"test_bessel_twoinputs",
"test_diff",
"test_rewrite",
"test_expand",
"test_fn",
"test_jn",
"test_yn",
"test_sympify_yn",
"test_jn_zeros",
"test_bessel_eval",
"test_bessel_nan",
"test_meromorphic",
"test_conjugate",
"test_branching",
"test_airy_base",
"test_airyai"... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Added nseries for bessel functions
<!-- Your title above should be a short description of what
was changed. Do not include the issue number in the title. -->
#### References to other Issues or PRs... | 284db64e44124856accce4abff75d2d8990c301d |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.