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
pvlib__pvlib-python-784
784
pvlib/pvlib-python
0.6
e94d9238a8c6eacee57e03f4a4fa267673f941f3
2019-10-02T23:52:22Z
diff --git a/docs/sphinx/source/api.rst b/docs/sphinx/source/api.rst index c37bedf7df..26786d4f88 100644 --- a/docs/sphinx/source/api.rst +++ b/docs/sphinx/source/api.rst @@ -303,6 +303,7 @@ Functions for fitting PV models ivtools.fit_sde_sandia ivtools.fit_sdm_cec_sam + ivtools.fit_sdm_desoto Other ...
diff --git a/pvlib/test/test_ivtools.py b/pvlib/test/test_ivtools.py index d4aca050c4..6f9fdd6fec 100644 --- a/pvlib/test/test_ivtools.py +++ b/pvlib/test/test_ivtools.py @@ -102,6 +102,35 @@ def test_fit_sdm_cec_sam(get_cec_params_cansol_cs5p_220p): cells_in_series=1, temp_ref=25) +@requires_scipy...
diff --git a/docs/sphinx/source/api.rst b/docs/sphinx/source/api.rst index c37bedf7df..26786d4f88 100644 --- a/docs/sphinx/source/api.rst +++ b/docs/sphinx/source/api.rst @@ -303,6 +303,7 @@ Functions for fitting PV models ivtools.fit_sde_sandia ivtools.fit_sdm_cec_sam + ivtools.fit_sdm_desoto Other ...
[ { "components": [ { "doc": "Calculates the parameters for the De Soto single diode model using the\nprocedure described in [1]. This procedure has the advantage of\nusing common specifications given by manufacturers in the\ndatasheets of PV modules.\n\nThe solution is found using the scipy.optimiz...
[ "pvlib/test/test_ivtools.py::test_fit_sdm_desoto", "pvlib/test/test_ivtools.py::test_fit_sdm_desoto_failure" ]
[ "pvlib/test/test_ivtools.py::test_fit_sde_sandia", "pvlib/test/test_ivtools.py::test_fit_sde_sandia_bad_iv", "pvlib/test/test_ivtools.py::test_fit_sdm_cec_sam" ]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> coefficient estimation method following DeSoto(2006) - [x] I am familiar with the [contributing guidelines](http://pvlib-python.readthedocs.io/en/latest/contributing.html). - [x] Fully tested. Ad...
7fc595a13bcd42e3269c0806f5505ac907af9730
sympy__sympy-17677
17,677
sympy/sympy
1.5
0ace745eac76d054af75f3d578b9d567e3581a80
2019-10-01T09:21:18Z
diff --git a/sympy/combinatorics/perm_groups.py b/sympy/combinatorics/perm_groups.py index d854935efa6e..ebc41adef4b6 100644 --- a/sympy/combinatorics/perm_groups.py +++ b/sympy/combinatorics/perm_groups.py @@ -1873,6 +1873,73 @@ def is_elementary(self, p): """ return self.is_abelian and all(g.order()...
diff --git a/sympy/combinatorics/tests/test_perm_groups.py b/sympy/combinatorics/tests/test_perm_groups.py index da2922c845a7..7426a062651d 100644 --- a/sympy/combinatorics/tests/test_perm_groups.py +++ b/sympy/combinatorics/tests/test_perm_groups.py @@ -437,7 +437,15 @@ def test_random_pr(): def test_is_alt_sym(): ...
[ { "components": [ { "doc": "A naive test using the group order.", "lines": [ 1876, 1903 ], "name": "PermutationGroup._eval_is_alt_sym_naive", "signature": "def _eval_is_alt_sym_naive(self, only_sym=False, only_alt=False):", "type": "funct...
[ "test_is_alt_sym" ]
[ "test_has", "test_generate", "test_order", "test_equality", "test_stabilizer", "test_center", "test_centralizer", "test_coset_rank", "test_coset_factor", "test_orbits", "test_is_normal", "test_eq", "test_derived_subgroup", "test_is_solvable", "test_rubik1", "test_direct_product", "te...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add is_symmetric for permutation groups <!-- 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...
c72f122f67553e1af930bac6c35732d2a0bbb776
scikit-learn__scikit-learn-15010
15,010
scikit-learn/scikit-learn
0.22
a91bae74aaca4979f5d927db327654b1d8e3ae58
2019-09-18T12:45:15Z
diff --git a/doc/whats_new/v0.22.rst b/doc/whats_new/v0.22.rst index 4ae47980a51da..8c90650c3a1f0 100644 --- a/doc/whats_new/v0.22.rst +++ b/doc/whats_new/v0.22.rst @@ -307,6 +307,10 @@ Changelog k-Nearest Neighbors. :issue:`12852` by :user:`Ashim Bhattarai <ashimb9>` and `Thomas Fan`_. +- |Enhancement| Adds pa...
diff --git a/sklearn/impute/tests/test_base.py b/sklearn/impute/tests/test_base.py new file mode 100644 index 0000000000000..37866943a727a --- /dev/null +++ b/sklearn/impute/tests/test_base.py @@ -0,0 +1,48 @@ +import pytest + +import numpy as np + +from sklearn.impute._base import _BaseImputer + + +@pytest.fixture +de...
diff --git a/doc/whats_new/v0.22.rst b/doc/whats_new/v0.22.rst index 4ae47980a51da..8c90650c3a1f0 100644 --- a/doc/whats_new/v0.22.rst +++ b/doc/whats_new/v0.22.rst @@ -307,6 +307,10 @@ Changelog k-Nearest Neighbors. :issue:`12852` by :user:`Ashim Bhattarai <ashimb9>` and `Thomas Fan`_. +- |Enhancement| Adds pa...
[ { "components": [ { "doc": "Base class for all imputers.\n\nIt adds automatically support for `add_indicator`.", "lines": [ 65, 115 ], "name": "_BaseImputer", "signature": "class _BaseImputer(TransformerMixin, BaseEstimator):", "type": "c...
[ "sklearn/impute/tests/test_base.py::test_base_imputer_not_fit", "sklearn/impute/tests/test_base.py::test_base_imputer_not_transform", "sklearn/impute/tests/test_common.py::test_imputation_missing_value_in_test_array[imputer0]", "sklearn/impute/tests/test_common.py::test_imputation_missing_value_in_test_array[...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> [MRG] ENH add missing indicator in KNNImputer Add the `add_indicator` to KNNImputer for consistency with other imputers. Since all imputers would share this feature, we can create a private base clas...
c96e0958da46ebef482a4084cdda3285d5f5ad23
scikit-learn__scikit-learn-15007
15,007
scikit-learn/scikit-learn
0.24
91a0e4041e6a7ec3752b394956473503e87a5924
2019-09-18T06:03:48Z
diff --git a/doc/modules/classes.rst b/doc/modules/classes.rst index 35fa24ac9a846..b7b1c490777bd 100644 --- a/doc/modules/classes.rst +++ b/doc/modules/classes.rst @@ -900,7 +900,7 @@ Miscellaneous manifold.smacof manifold.spectral_embedding manifold.trustworthiness - + .. _metrics_ref: @@ -981,6 ...
diff --git a/sklearn/metrics/tests/test_common.py b/sklearn/metrics/tests/test_common.py index 7301d21a35f39..3f2ba83b474c7 100644 --- a/sklearn/metrics/tests/test_common.py +++ b/sklearn/metrics/tests/test_common.py @@ -41,6 +41,7 @@ from sklearn.metrics import max_error from sklearn.metrics import matthews_corrcoef...
diff --git a/doc/modules/classes.rst b/doc/modules/classes.rst index 35fa24ac9a846..b7b1c490777bd 100644 --- a/doc/modules/classes.rst +++ b/doc/modules/classes.rst @@ -900,7 +900,7 @@ Miscellaneous manifold.smacof manifold.spectral_embedding manifold.trustworthiness - + .. _metrics_ref: @@ -981,6 ...
[ { "components": [ { "doc": "Mean absolute percentage error regression loss\n\nNote here that we do not represent the output as a percentage in range\n[0, 100]. Instead, we represent it in range [0, 1/eps]. Read more in the\n:ref:`User Guide <mean_absolute_percentage_error>`.\n\nParameters\n-------...
[ "sklearn/metrics/tests/test_common.py::test_symmetry_consistency", "sklearn/metrics/tests/test_common.py::test_symmetric_metric[accuracy_score]", "sklearn/metrics/tests/test_common.py::test_symmetric_metric[cohen_kappa_score]", "sklearn/metrics/tests/test_common.py::test_symmetric_metric[f1_score]", "sklear...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Added mean_absolute_percentage_error in metrics fixes #10708 I have faced problem when working with any quantitative modelling algorithm. Scikit-learn doesn't have any function such **mean_absolute_pe...
Here is the discussion in the issues of the pull request. <issues> Add MAPE as evaluation metric Also see #6605. https://en.wikipedia.org/wiki/Mean_absolute_percentage_error probably need a neg_mape scorer, too. ---------- @amueller, I'd like to work on this. sure, go for it. @amueller, all sklearn metrics have a...
54ce4222694819ad52d544ce5cba5da274c34ab7
sympy__sympy-17617
17,617
sympy/sympy
1.5
def1c20c221f0bdf7feaaac7b4cd54a42bf57db7
2019-09-16T17:49:23Z
diff --git a/doc/src/modules/crypto.rst b/doc/src/modules/crypto.rst index 14aabee76638..43a916b64797 100644 --- a/doc/src/modules/crypto.rst +++ b/doc/src/modules/crypto.rst @@ -142,3 +142,7 @@ substitutions at different times in the message. .. autofunction:: encipher_gm .. autofunction:: decipher_gm + +.. autofu...
diff --git a/sympy/crypto/tests/test_crypto.py b/sympy/crypto/tests/test_crypto.py index 0ada73f7e513..0711874c361b 100644 --- a/sympy/crypto/tests/test_crypto.py +++ b/sympy/crypto/tests/test_crypto.py @@ -15,7 +15,8 @@ decipher_bifid, bifid_square, padded_key, uniq, decipher_gm, encipher_gm, gm_public_k...
diff --git a/doc/src/modules/crypto.rst b/doc/src/modules/crypto.rst index 14aabee76638..43a916b64797 100644 --- a/doc/src/modules/crypto.rst +++ b/doc/src/modules/crypto.rst @@ -142,3 +142,7 @@ substitutions at different times in the message. .. autofunction:: encipher_gm .. autofunction:: decipher_gm + +.. autofu...
[ { "components": [ { "doc": "Performs Railfence Encryption on plaintext and returns ciphertext\n\nExamples\n========\n\n>>> from sympy.crypto.crypto import encipher_railfence\n>>> message = \"hello world\"\n>>> encipher_railfence(message,3)\n'horel ollwd'\n\nParameters\n==========\n\nmessage : stri...
[ "test_encipher_railfence", "test_decipher_railfence", "test_cycle_list", "test_encipher_shift", "test_encipher_rot13", "test_encipher_affine", "test_encipher_atbash", "test_encipher_substitution", "test_check_and_join", "test_encipher_vigenere", "test_decipher_vigenere", "test_encipher_hill", ...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Added Rail Fence Cipher <!-- 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 t...
Here is the discussion in the issues of the pull request. <issues> Added RailFence cipher Updated and Added New RailFence cipher <!-- BEGIN RELEASE NOTES --> * crypto * Added railfence cipher <!-- END RELEASE NOTES --> ---------- -------------------- </issues>
c72f122f67553e1af930bac6c35732d2a0bbb776
sympy__sympy-17615
17,615
sympy/sympy
1.5
2d700c4b3c0871a26741456787b0555eed9d5546
2019-09-14T08:32:47Z
diff --git a/sympy/functions/special/gamma_functions.py b/sympy/functions/special/gamma_functions.py index 5a94e17adcc3..a05d3ee6f986 100644 --- a/sympy/functions/special/gamma_functions.py +++ b/sympy/functions/special/gamma_functions.py @@ -992,7 +992,7 @@ def _sage_(self): return sage.log_gamma(self.args[0]...
diff --git a/sympy/core/tests/test_args.py b/sympy/core/tests/test_args.py index a8e3d511bc84..67ee3df3e9f7 100644 --- a/sympy/core/tests/test_args.py +++ b/sympy/core/tests/test_args.py @@ -2288,6 +2288,13 @@ def test_sympy__functions__special__gamma_functions__polygamma(): from sympy.functions.special.gamma_func...
[ { "components": [ { "doc": "", "lines": [ 1023, 1025 ], "name": "digamma._eval_evalf", "signature": "def _eval_evalf(self, prec):", "type": "function" }, { "doc": "", "lines": [ 1027, 1029 ...
[ "test_digamma", "test_trigamma" ]
[ "test_all_classes_are_tested", "test_sympy__assumptions__assume__AppliedPredicate", "test_sympy__assumptions__assume__Predicate", "test_sympy__assumptions__sathandlers__UnevaluatedOnFree", "test_sympy__assumptions__sathandlers__AllArgs", "test_sympy__assumptions__sathandlers__AnyArgs", "test_sympy__assu...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Implement digamma and trigamma functions as Function subclasses <!-- Your title above should be a short description of what was changed. Do not include the issue number in the title. --> #### Refe...
Here is the discussion in the issues of the pull request. <issues> digamma and trigamma should be Function subclasses Right now `digamma` and `trigamma` are Python functions. They should be Function subclasses, so they can be unevaluated. ---------- I'd like to work on this issue. -------------------- </issues>
c72f122f67553e1af930bac6c35732d2a0bbb776
sympy__sympy-17581
17,581
sympy/sympy
1.5
f5e965947af2410ded92cfad987aaf45262ea434
2019-09-05T19:19:27Z
diff --git a/doc/src/modules/sets.rst b/doc/src/modules/sets.rst index 35a8a8910eb9..d87a4b2f3bdf 100644 --- a/doc/src/modules/sets.rst +++ b/doc/src/modules/sets.rst @@ -2,6 +2,9 @@ Sets ==== +Basic Sets +---------- + .. automodule:: sympy.sets.sets Set @@ -24,8 +27,20 @@ FiniteSet .. autoclass:: FiniteSet ...
diff --git a/sympy/core/tests/test_args.py b/sympy/core/tests/test_args.py index 3373c913ab74..5171802bf931 100644 --- a/sympy/core/tests/test_args.py +++ b/sympy/core/tests/test_args.py @@ -823,6 +823,13 @@ def test_sympy__sets__ordinals__OrdinalZero(): from sympy.sets.ordinals import OrdinalZero assert _tes...
diff --git a/doc/src/modules/sets.rst b/doc/src/modules/sets.rst index 35a8a8910eb9..d87a4b2f3bdf 100644 --- a/doc/src/modules/sets.rst +++ b/doc/src/modules/sets.rst @@ -2,6 +2,9 @@ Sets ==== +Basic Sets +---------- + .. automodule:: sympy.sets.sets Set @@ -24,8 +27,20 @@ FiniteSet .. autoclass:: FiniteSet ...
[ { "components": [ { "doc": "A symbolic object representing a power set.\n\nParameters\n==========\n\narg : Set\n The set to take power of.\n\nevaluate : bool\n The flag to control evaluation.\n\n If the evaluation is disabled for finite sets, it can take\n advantage of using subset tes...
[ "test_sympy__sets__powerset__PowerSet", "test_powerset_creation", "test_powerset_rewrite_FiniteSet", "test_finiteset_rewrite_powerset", "test_powerset__contains__", "test_powerset__len__", "test_powerset__iter__" ]
[ "test_all_classes_are_tested", "test_sympy__assumptions__assume__AppliedPredicate", "test_sympy__assumptions__assume__Predicate", "test_sympy__assumptions__sathandlers__UnevaluatedOnFree", "test_sympy__assumptions__sathandlers__AllArgs", "test_sympy__assumptions__sathandlers__AnyArgs", "test_sympy__assu...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add power set notation <!-- 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...
c72f122f67553e1af930bac6c35732d2a0bbb776
rytilahti__python-miio-544
544
rytilahti/python-miio
null
7df68214bf2008e7bb30100d93c3f8c61183daf7
2019-09-02T09:03:19Z
diff --git a/README.rst b/README.rst index 74e3888de..2d7270df1 100644 --- a/README.rst +++ b/README.rst @@ -34,6 +34,7 @@ Supported devices - Xiaomi Smartmi Fresh Air System (:class:`miio.airfresh`) - :doc:`Yeelight light bulbs <yeelight>` (:class:`miio.yeelight`) (only a very rudimentary support, use `python-yeel...
diff --git a/miio/tests/test_toiletlid.py b/miio/tests/test_toiletlid.py new file mode 100644 index 000000000..68f3af149 --- /dev/null +++ b/miio/tests/test_toiletlid.py @@ -0,0 +1,94 @@ +from unittest import TestCase + +import pytest + +from miio.toiletlid import ( + Toiletlid, + ToiletlidStatus, + AmbientLig...
diff --git a/README.rst b/README.rst index 74e3888de..2d7270df1 100644 --- a/README.rst +++ b/README.rst @@ -34,6 +34,7 @@ Supported devices - Xiaomi Smartmi Fresh Air System (:class:`miio.airfresh`) - :doc:`Yeelight light bulbs <yeelight>` (:class:`miio.yeelight`) (only a very rudimentary support, use `python-yeel...
[ { "components": [ { "doc": "", "lines": [ 19, 27 ], "name": "AmbientLightColor", "signature": "class AmbientLightColor(enum.Enum):", "type": "class" }, { "doc": "", "lines": [ 30, 71 ...
[ "miio/tests/test_toiletlid.py::TestToiletlidV1::test_nozzle_clean", "miio/tests/test_toiletlid.py::TestToiletlidV1::test_set_ambient_light", "miio/tests/test_toiletlid.py::TestToiletlidV1::test_status" ]
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add tinymu smart toiletlid # select toiletlid status Work: False State: 1 Ambient Light: White Filter remaining: 100% Filter remaining time: 180 # set toiletlid ambien...
62427d2f796e603520acca3b57b29ec3e6489bca
RDFLib__rdflib-931
931
RDFLib/rdflib
null
827eabd437e0a0b4404559b6acacdf696f700593
2019-08-31T14:14:02Z
diff --git a/rdflib/graph.py b/rdflib/graph.py index 80dc02f80..a92f3bc58 100644 --- a/rdflib/graph.py +++ b/rdflib/graph.py @@ -271,6 +271,7 @@ "Dataset", "UnSupportedAggregateOperation", "ReadOnlyGraphAggregate", + "BatchAddGraph", ] @@ -2013,6 +2014,73 @@ def _assertnode(*terms): return T...
diff --git a/test/test_batch_add.py b/test/test_batch_add.py new file mode 100644 index 000000000..1747100ca --- /dev/null +++ b/test/test_batch_add.py @@ -0,0 +1,89 @@ +import unittest +from rdflib.graph import Graph, BatchAddGraph +from rdflib.term import URIRef + + +class TestBatchAddGraph(unittest.TestCase): + d...
[ { "components": [ { "doc": "Wrapper around graph that turns calls to :meth:`add` (and optionally, :meth:`addN`)\ninto calls to :meth:`~rdflib.graph.Graph.addN`.\n\n:Parameters:\n\n - `graph`: The graph to wrap\n - `batch_size`: The maximum number of triples to buffer before passing to\n `grap...
[ "test/test_batch_add.py::TestBatchAddGraph::test_addN_batching_addN", "test/test_batch_add.py::TestBatchAddGraph::test_add_more_than_batch_size", "test/test_batch_add.py::TestBatchAddGraph::test_add_quad_for_non_conjunctive_empty", "test/test_batch_add.py::TestBatchAddGraph::test_add_quad_for_non_conjunctive_...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Adding a wrapper for batching add() calls to a Graph - Should address RDFLib/rdflib#357 ---------- </request> There are several new functions or classes that need to be implemented, using the defini...
0c11debb5178157baeac27b735e49a757916d2a6
matplotlib__matplotlib-15127
15,127
matplotlib/matplotlib
3.1
5c486d79fdc9d207d32abcdc76f0cb1b74ffaf67
2019-08-26T12:58:27Z
diff --git a/doc/api/next_api_changes/behavior/15127-TAC.rst b/doc/api/next_api_changes/behavior/15127-TAC.rst new file mode 100644 index 000000000000..fd68c0150551 --- /dev/null +++ b/doc/api/next_api_changes/behavior/15127-TAC.rst @@ -0,0 +1,8 @@ +Raise or warn on registering a colormap twice +~~~~~~~~~~~~~~~~~~~~~~~...
diff --git a/lib/matplotlib/tests/test_colors.py b/lib/matplotlib/tests/test_colors.py index d180fb28afa5..8a1a96b47389 100644 --- a/lib/matplotlib/tests/test_colors.py +++ b/lib/matplotlib/tests/test_colors.py @@ -64,14 +64,44 @@ def test_resample(): def test_register_cmap(): - new_cm = copy.copy(plt.cm.viridi...
diff --git a/doc/api/next_api_changes/behavior/15127-TAC.rst b/doc/api/next_api_changes/behavior/15127-TAC.rst new file mode 100644 index 000000000000..fd68c0150551 --- /dev/null +++ b/doc/api/next_api_changes/behavior/15127-TAC.rst @@ -0,0 +1,8 @@ +Raise or warn on registering a colormap twice +~~~~~~~~~~~~~~~~~~~~~~~...
[ { "components": [ { "doc": "Remove a colormap recognized by :func:`get_cmap`.\n\nYou may not remove built-in colormaps.\n\nIf the named colormap is not registered, returns with no error, raises\nif you try to de-register a default colormap.\n\n.. warning ::\n\n Colormap names are currently a shar...
[ "lib/matplotlib/tests/test_colors.py::test_register_cmap", "lib/matplotlib/tests/test_colors.py::test_double_register_builtin_cmap", "lib/matplotlib/tests/test_colors.py::test_unregister_builtin_cmap", "lib/matplotlib/tests/test_colors.py::test_colormap_global_set_warn", "lib/matplotlib/tests/test_colors.py...
[ "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/API: improvements to register_cmap - protect re-defining built in color maps - warn on re-defining user-defined color maps - add de-register function - [x] Has Pytest style unit tests - [x] C...
c9be5a6985cc919703959902e9a8d795cfde03ad
joke2k__faker-989
989
joke2k/faker
null
46450c265271029b6cf0c5fa3c5c2e0d4508ca27
2019-08-22T18:19:01Z
diff --git a/faker/providers/date_time/__init__.py b/faker/providers/date_time/__init__.py index 39dab8380f..529db17573 100644 --- a/faker/providers/date_time/__init__.py +++ b/faker/providers/date_time/__init__.py @@ -4,7 +4,7 @@ from datetime import MAXYEAR, timedelta from dateutil import relativedelta -from date...
diff --git a/tests/providers/test_date_time.py b/tests/providers/test_date_time.py index 30e9cf0949..ad951a5f13 100644 --- a/tests/providers/test_date_time.py +++ b/tests/providers/test_date_time.py @@ -138,6 +138,16 @@ def test_timezone_conversion(self): today_back = datetime.fromtimestamp(timestamp, utc).dat...
[ { "components": [ { "doc": "Generate a random timezone (see `faker.timezone` for any args)\nand return as a python object usable as a `tzinfo` to `datetime`\nor other fakers.\n\n:example faker.pytimezone()\n:return dateutil.tz.tz.tzfile", "lines": [ 1965, 1974 ]...
[ "tests/providers/test_date_time.py::TestDateTime::test_pytimezone", "tests/providers/test_date_time.py::TestDateTime::test_pytimezone_usable" ]
[ "tests/providers/test_date_time.py::TestKoKR::test_day", "tests/providers/test_date_time.py::TestKoKR::test_month", "tests/providers/test_date_time.py::TestDateTime::test_date_between", "tests/providers/test_date_time.py::TestDateTime::test_date_between_dates", "tests/providers/test_date_time.py::TestDateTi...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add pytimezone for tzinfo objects ### What does this changes Adds a python object faker around the existing `timezone` name faker. ### What was wrong It was a bit of a pain (multiple steps) t...
Here is the discussion in the issues of the pull request. <issues> suggestion: pytimezone In addition to the currently available [timezone](), it would be very useful* to have a similar python object faker, something like: ```python import pytz class TheExistingPythonProvider: def pytimezone(self, **kwargs)...
6edfdbf6ae90b0153309e3bf066aa3b2d16494a7
sympy__sympy-17472
17,472
sympy/sympy
1.5
261c6c3f33955aaa3e13b8c9607dd80bf4021268
2019-08-21T10:18:36Z
diff --git a/sympy/functions/elementary/complexes.py b/sympy/functions/elementary/complexes.py index abfeffa76d1b..b91aa60d7ea5 100644 --- a/sympy/functions/elementary/complexes.py +++ b/sympy/functions/elementary/complexes.py @@ -628,6 +628,9 @@ def _eval_rewrite_as_Piecewise(self, arg, **kwargs): def _eval_rewri...
diff --git a/sympy/functions/elementary/tests/test_complexes.py b/sympy/functions/elementary/tests/test_complexes.py index 294a01910a66..00876965708f 100644 --- a/sympy/functions/elementary/tests/test_complexes.py +++ b/sympy/functions/elementary/tests/test_complexes.py @@ -478,6 +478,14 @@ def test_Abs_rewrite(): ...
[ { "components": [ { "doc": "", "lines": [ 631, 632 ], "name": "Abs._eval_rewrite_as_conjugate", "signature": "def _eval_rewrite_as_conjugate(self, arg, **kwargs):", "type": "function" } ], "file": "sympy/functions/elementary...
[ "test_Abs_rewrite" ]
[ "test_re", "test_im", "test_sign", "test_as_real_imag", "test_Abs", "test_Abs_real", "test_Abs_properties", "test_abs", "test_arg", "test_arg_rewrite", "test_adjoint", "test_conjugate", "test_conjugate_transpose", "test_transpose", "test_polarify", "test_unpolarify", "test_issue_4035...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Rewrite Abs as conjugate <!-- 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 ...
c72f122f67553e1af930bac6c35732d2a0bbb776
sympy__sympy-17429
17,429
sympy/sympy
1.5
40da07b3a8ca3b315aaf25ec4ac21dfe4364a097
2019-08-15T22:02:13Z
diff --git a/sympy/functions/elementary/exponential.py b/sympy/functions/elementary/exponential.py index 5a5ee285715b..4cd84f026f7f 100644 --- a/sympy/functions/elementary/exponential.py +++ b/sympy/functions/elementary/exponential.py @@ -491,11 +491,11 @@ def _eval_rewrite_as_Pow(self, arg, **kwargs): ...
diff --git a/sympy/core/tests/test_evalf.py b/sympy/core/tests/test_evalf.py index 52aa0a56eb35..63a034768552 100644 --- a/sympy/core/tests/test_evalf.py +++ b/sympy/core/tests/test_evalf.py @@ -1,7 +1,7 @@ from sympy import (Abs, Add, atan, ceiling, cos, E, Eq, exp, factor, factorial, fibonacci, floor, Function,...
[ { "components": [ { "doc": "Try to match expr with a + b*I for real a and b.\n\n``match_real_imag`` returns a tuple containing the real and imaginary\nparts of expr or (None, None) if direct matching is not possible. Contrary\nto ``re()``, ``im()``, ``as_real_imag()``, this helper won't force thin...
[ "test_exp_values", "test_exp_period", "test_exp_log", "test_exp_expand", "test_exp__as_base_exp", "test_exp_infinity", "test_exp_subs", "test_exp_conjugate", "test_exp_rewrite", "test_exp_leading_term", "test_exp_taylor_term", "test_exp_MatrixSymbol", "test_exp_fdiff", "test_log_values", ...
[ "test_evalf_helpers", "test_evalf_basic", "test_cancellation", "test_evalf_powers", "test_evalf_rump", "test_evalf_complex", "test_evalf_complex_powers", "test_evalf_exponentiation", "test_evalf_complex_cancellation", "test_evalf_logs", "test_evalf_trig", "test_evalf_near_integers", "test_ev...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add automatic evaluation for compositions of inverse hyperbolic functions #### References to other Issues or PRs Closes #17421. The more difficult issue with evaluation near branch cuts is not addres...
Here is the discussion in the issues of the pull request. <issues> Incorrect evaluation of acos(-I + acosh(cosh(cosh(1) + I))) `-I + acosh(cosh(cosh(1) + I))` should be equivalent to `cosh(1)`, and this can be confirmed: ``` >>> N(-I + acosh(cosh(cosh(1) + I))) 1.54308063481524 + 0.e-20*I >>> N(cosh(1)) 1.543080...
c72f122f67553e1af930bac6c35732d2a0bbb776
prometheus__client_python-453
453
prometheus/client_python
null
86018734d50bb385d75a0abf0f62c4bb0d0c24cf
2019-08-13T13:02:19Z
diff --git a/prometheus_client/registry.py b/prometheus_client/registry.py index fa2717fb..7f86a000 100644 --- a/prometheus_client/registry.py +++ b/prometheus_client/registry.py @@ -12,11 +12,13 @@ class CollectorRegistry(object): exposition formats. """ - def __init__(self, auto_describe=False): + d...
diff --git a/tests/test_core.py b/tests/test_core.py index 9ad947cd..dac5c044 100644 --- a/tests/test_core.py +++ b/tests/test_core.py @@ -664,6 +664,9 @@ def test_duplicate_metrics_raises(self): # The name of the histogram itself isn't taken. Gauge('h', 'help', registry=registry) + Info('i',...
[ { "components": [ { "doc": "", "lines": [ 119, 127 ], "name": "CollectorRegistry.set_target_info", "signature": "def set_target_info(self, labels):", "type": "function" }, { "doc": "", "lines": [ 129,...
[ "tests/test_core.py::TestCollectorRegistry::test_target_info_duplicate_detected", "tests/test_core.py::TestCollectorRegistry::test_target_info_injected", "tests/test_core.py::TestCollectorRegistry::test_target_info_restricted_registry" ]
[ "tests/test_core.py::TestCounter::test_block_decorator", "tests/test_core.py::TestCounter::test_count_exceptions_not_observable", "tests/test_core.py::TestCounter::test_function_decorator", "tests/test_core.py::TestCounter::test_increment", "tests/test_core.py::TestCounter::test_negative_increment_raises", ...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add target_info to registries This allows target labels as needed by push-based systems to be provided, in a way that doesn't mess up Prometheus's own top-down pull based approach to SD. @SuperQ ...
09a5ae30602a7a81f6174dae4ba08b93ee7feed2
scikit-learn__scikit-learn-14593
14,593
scikit-learn/scikit-learn
0.22
66b0f5fed84d15b63943571e7b124d02763ef3ca
2019-08-07T20:35:07Z
diff --git a/doc/whats_new/v0.22.rst b/doc/whats_new/v0.22.rst index 2b4b0810b8fc3..3a5290dae81fb 100644 --- a/doc/whats_new/v0.22.rst +++ b/doc/whats_new/v0.22.rst @@ -348,6 +348,11 @@ Changelog - |Enhancement| :class:`model_selection.RandomizedSearchCV` now accepts lists of parameter distributions. :pr:`14549` by...
diff --git a/sklearn/metrics/tests/test_score_objects.py b/sklearn/metrics/tests/test_score_objects.py index 120bae5275281..71f3c80c72409 100644 --- a/sklearn/metrics/tests/test_score_objects.py +++ b/sklearn/metrics/tests/test_score_objects.py @@ -3,11 +3,13 @@ import shutil import os import numbers +from unittest....
diff --git a/doc/whats_new/v0.22.rst b/doc/whats_new/v0.22.rst index 2b4b0810b8fc3..3a5290dae81fb 100644 --- a/doc/whats_new/v0.22.rst +++ b/doc/whats_new/v0.22.rst @@ -348,6 +348,11 @@ Changelog - |Enhancement| :class:`model_selection.RandomizedSearchCV` now accepts lists of parameter distributions. :pr:`14549` by...
[ { "components": [ { "doc": "Call estimator with method and args and kwargs.", "lines": [ 48, 58 ], "name": "_cached_call", "signature": "def _cached_call(cache, estimator, method, *args, **kwargs):", "type": "function" }, { ...
[ "sklearn/metrics/tests/test_score_objects.py::test_all_scorers_repr", "sklearn/metrics/tests/test_score_objects.py::test_check_scoring_and_check_multimetric_scoring", "sklearn/metrics/tests/test_score_objects.py::test_check_scoring_gridsearchcv", "sklearn/metrics/tests/test_score_objects.py::test_make_scorer"...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> [MRG] Adds _MultimetricScorer for Optimized Scoring <!-- Thanks for contributing a pull request! Please ensure you have taken a look at the contribution guidelines: https://github.com/scikit-learn/...
c96e0958da46ebef482a4084cdda3285d5f5ad23
sympy__sympy-17308
17,308
sympy/sympy
1.5
1e211112f489713902a67c6f03339f44ebc24326
2019-07-31T18:36:02Z
diff --git a/sympy/tensor/array/arrayop.py b/sympy/tensor/array/arrayop.py index 1d22255a35c0..273897b5f4bc 100644 --- a/sympy/tensor/array/arrayop.py +++ b/sympy/tensor/array/arrayop.py @@ -1,10 +1,13 @@ import itertools -from sympy import S, Tuple, diff +from sympy import S, Tuple, diff, Basic from sympy.core.c...
diff --git a/sympy/core/tests/test_args.py b/sympy/core/tests/test_args.py index 20b421f5fd7c..9a7c0eda4a42 100644 --- a/sympy/core/tests/test_args.py +++ b/sympy/core/tests/test_args.py @@ -3982,6 +3982,12 @@ def test_sympy__tensor__array__array_comprehension__ArrayComprehension(): arrcom = ArrayComprehension(x, ...
[ { "components": [ { "doc": "Flatten an iterable object to a list in a lazy-evaluation way.\n\nNotes\n=====\n\nThis class is an iterator with which the memory cost can be economised.\nOptimisation has been considered to ameliorate the performance for some\nspecific data types like DenseNDimArray an...
[ "test_sympy__tensor__array__arrayop__Flatten", "test_tensorproduct", "test_tensorcontraction", "test_derivative_by_array", "test_issue_emerged_while_discussing_10972", "test_array_permutedims", "test_sparse", "test_calculation", "test_slices", "test_valued_tensor_iter" ]
[ "test_all_classes_are_tested", "test_sympy__assumptions__assume__AppliedPredicate", "test_sympy__assumptions__assume__Predicate", "test_sympy__assumptions__sathandlers__UnevaluatedOnFree", "test_sympy__assumptions__sathandlers__AllArgs", "test_sympy__assumptions__sathandlers__AnyArgs", "test_sympy__assu...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> New __iter__ for Array module <!-- 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 ...
c72f122f67553e1af930bac6c35732d2a0bbb776
sympy__sympy-17306
17,306
sympy/sympy
1.5
d3c1050bae5b6caeeacd03efbe25d3a57ff371a3
2019-07-31T14:29:29Z
diff --git a/sympy/stats/__init__.py b/sympy/stats/__init__.py index 0527237d119a..fbda90016983 100644 --- a/sympy/stats/__init__.py +++ b/sympy/stats/__init__.py @@ -100,6 +100,7 @@ GaussianUnitaryEnsemble, GaussianOrthogonalEnsemble, GaussianSymplecticEnsemble, + JointEigenDistribution, joint_e...
diff --git a/sympy/stats/tests/test_random_matrix.py b/sympy/stats/tests/test_random_matrix.py index 2984692fa735..8402e45a2bb0 100644 --- a/sympy/stats/tests/test_random_matrix.py +++ b/sympy/stats/tests/test_random_matrix.py @@ -1,10 +1,13 @@ from sympy import (sqrt, exp, Trace, pi, S, Integral, MatrixSymbol, Lambda...
[ { "components": [ { "doc": "Creates joint distribution of eigen values of matrices with random\nexpressions.\n\nParameters\n==========\n\nmat: Matrix\n The matrix under consideration\n\nReturns\n=======\n\nJointDistributionHandmade\n\nExamples\n========\n\n>>> from sympy.stats import Normal, Jo...
[ "test_GaussianEnsemble", "test_GaussianUnitaryEnsemble", "test_GaussianOrthogonalEnsemble", "test_GaussianSymplecticEnsemble" ]
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Matrices with random expressions <!-- 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 ...
c72f122f67553e1af930bac6c35732d2a0bbb776
sympy__sympy-17304
17,304
sympy/sympy
1.5
1b99ff5cc724f195265ec93f7d56b782c82dcb23
2019-07-31T14:17:59Z
diff --git a/sympy/stats/__init__.py b/sympy/stats/__init__.py index fbda90016983..f1ca9b8720f6 100644 --- a/sympy/stats/__init__.py +++ b/sympy/stats/__init__.py @@ -96,6 +96,10 @@ from . import random_matrix_models from .random_matrix_models import ( + CircularEnsemble, + CircularUnitaryEnsemble, + Circu...
diff --git a/sympy/core/tests/test_args.py b/sympy/core/tests/test_args.py index bd8178144048..3d3401813579 100644 --- a/sympy/core/tests/test_args.py +++ b/sympy/core/tests/test_args.py @@ -1621,11 +1621,11 @@ def test_sympy__stats__stochastic_process_types__ContinuousMarkovChain(): def test_sympy__stats__random_matr...
[ { "components": [ { "doc": "", "lines": [ 33, 40 ], "name": "RandomMatrixEnsemble.__new__", "signature": "def __new__(cls, sym, dim=None):", "type": "function" }, { "doc": "", "lines": [ 45, ...
[ "test_sympy__stats__random_matrix_models__RandomMatrixEnsemble", "test_sympy__stats__random_matrix_models__CircularEnsemble", "test_sympy__stats__random_matrix_models__CircularUnitaryEnsemble", "test_sympy__stats__random_matrix_models__CircularOrthogonalEnsemble", "test_sympy__stats__random_matrix_models__C...
[ "test_all_classes_are_tested", "test_sympy__assumptions__assume__AppliedPredicate", "test_sympy__assumptions__assume__Predicate", "test_sympy__assumptions__sathandlers__UnevaluatedOnFree", "test_sympy__assumptions__sathandlers__AllArgs", "test_sympy__assumptions__sathandlers__AnyArgs", "test_sympy__assu...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Added circular ensembles <!-- 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 ...
c72f122f67553e1af930bac6c35732d2a0bbb776
joke2k__faker-984
984
joke2k/faker
null
e93e4d1e5bfdb1cfa08ae5112466494d7ec1718b
2019-07-30T11:01:14Z
diff --git a/faker/providers/geo/pt_PT/__init__.py b/faker/providers/geo/pt_PT/__init__.py new file mode 100644 index 0000000000..7415c5cbfe --- /dev/null +++ b/faker/providers/geo/pt_PT/__init__.py @@ -0,0 +1,30 @@ +# coding=utf-8 + +from __future__ import unicode_literals +from .. import Provider as GeoProvider + + +...
diff --git a/tests/providers/test_geo.py b/tests/providers/test_geo.py index eb4b2fa34f..5b152eda5f 100644 --- a/tests/providers/test_geo.py +++ b/tests/providers/test_geo.py @@ -5,8 +5,10 @@ import re import unittest from decimal import Decimal +from six import string_types from faker import Faker +from faker.pr...
[ { "components": [ { "doc": "", "lines": [ 7, 30 ], "name": "Provider", "signature": "class Provider(GeoProvider):", "type": "class" }, { "doc": ":example 'Portuguesa'", "lines": [ 26, 30 ...
[ "tests/providers/test_geo.py::TestGlobal::test_local_latlng", "tests/providers/test_geo.py::TestEnUS::test_coordinate", "tests/providers/test_geo.py::TestEnUS::test_coordinate_centered", "tests/providers/test_geo.py::TestEnUS::test_coordinate_rounded", "tests/providers/test_geo.py::TestEnUS::test_latitude",...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Added nationalities for locale pt_PT. Tests are also provided ### What does this changes It adds nationalities in portuguese Tests are also provided Brief summary of the changes It adds national...
6edfdbf6ae90b0153309e3bf066aa3b2d16494a7
sympy__sympy-17266
17,266
sympy/sympy
1.5
2d700c4b3c0871a26741456787b0555eed9d5546
2019-07-26T06:35:30Z
diff --git a/.gitignore b/.gitignore index 2614e1546e15..db4a22815e50 100644 --- a/.gitignore +++ b/.gitignore @@ -7,6 +7,8 @@ # track a file that is ignored for some reason, you have to use # "git add -f". See "git help gitignore" for more information. +# Virtualenv +/.venv/ # Regular Python bytecode file *.py...
diff --git a/sympy/printing/tests/test_maple.py b/sympy/printing/tests/test_maple.py new file mode 100644 index 000000000000..70fbcda0c3af --- /dev/null +++ b/sympy/printing/tests/test_maple.py @@ -0,0 +1,384 @@ +from sympy.core import (S, pi, oo, symbols, Function, Rational, Integer, + Tuple, Sy...
diff --git a/.gitignore b/.gitignore index 2614e1546e15..db4a22815e50 100644 --- a/.gitignore +++ b/.gitignore @@ -7,6 +7,8 @@ # track a file that is ignored for some reason, you have to use # "git add -f". See "git help gitignore" for more information. +# Virtualenv +/.venv/ # Regular Python bytecode file *.py...
[ { "components": [ { "doc": "Printer which converts a sympy expression into a maple code.", "lines": [ 77, 262 ], "name": "MapleCodePrinter", "signature": "class MapleCodePrinter(CodePrinter):", "type": "class" }, { "do...
[ "test_Integer", "test_Rational", "test_Relational", "test_Function", "test_Pow", "test_basic_ops", "test_1_over_x_and_sqrt", "test_mix_number_mult_symbols", "test_mix_number_pow_symbols", "test_imag", "test_constants", "test_constants_other", "test_boolean", "test_Matrices", "test_Sparse...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add maple code printer <!-- Your title above should be a short description of what was changed. Do not include the issue number in the title. --> The development is not finished. But the overall s...
c72f122f67553e1af930bac6c35732d2a0bbb776
sympy__sympy-17239
17,239
sympy/sympy
1.5
8a375578647590e16aff119a2363a12ff171306c
2019-07-21T14:32:26Z
diff --git a/sympy/printing/ccode.py b/sympy/printing/ccode.py index 0aa125278d02..8ee46a3bfd19 100644 --- a/sympy/printing/ccode.py +++ b/sympy/printing/ccode.py @@ -390,7 +390,7 @@ def _print_Relational(self, expr): lhs_code = self._print(expr.lhs) rhs_code = self._print(expr.rhs) op = expr...
diff --git a/sympy/printing/tests/test_glsl.py b/sympy/printing/tests/test_glsl.py index 76ab05be2293..53a39d2595cb 100644 --- a/sympy/printing/tests/test_glsl.py +++ b/sympy/printing/tests/test_glsl.py @@ -1,4 +1,5 @@ -from sympy.core import pi, oo, symbols, Rational, Integer, GoldenRatio, EulerGamma, Catalan, Lambda,...
[ { "components": [ { "doc": "", "lines": [ 368, 373 ], "name": "FCodePrinter._print_Relational", "signature": "def _print_Relational(self, expr):", "type": "function" } ], "file": "sympy/printing/fcode.py" }, { "compo...
[ "test_glsl_code_Relational", "test_Relational" ]
[ "test_printmethod", "test_print_without_operators", "test_glsl_code_sqrt", "test_glsl_code_Pow", "test_glsl_code_constants_mathh", "test_glsl_code_constants_other", "test_glsl_code_Rational", "test_glsl_code_Integer", "test_glsl_code_functions", "test_glsl_code_inline_function", "test_glsl_code_...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Added relational operator printer for various languages <!-- Your title above should be a short description of what was changed. Do not include the issue number in the title. --> #### References t...
Here is the discussion in the issues of the pull request. <issues> Relational printing ```python3 from sympy import * from sympy.printing.ccode import ccode from sympy.printing.cxxcode import cxxcode from sympy.printing.fcode import fcode from sympy.printing.glsl import glsl_code from sympy.printing.jscode impo...
c72f122f67553e1af930bac6c35732d2a0bbb776
scikit-learn__scikit-learn-14307
14,307
scikit-learn/scikit-learn
0.22
bf8eff3feaded1464e81dcc0c4b7f9a3975c014f
2019-07-12T09:47:52Z
diff --git a/sklearn/cluster/k_means_.py b/sklearn/cluster/k_means_.py index 8f8d8f66c405e..33815b2c177f0 100644 --- a/sklearn/cluster/k_means_.py +++ b/sklearn/cluster/k_means_.py @@ -27,7 +27,7 @@ from ..utils import check_array from ..utils import gen_batches from ..utils import check_random_state -from ..utils.v...
diff --git a/sklearn/cluster/tests/test_k_means.py b/sklearn/cluster/tests/test_k_means.py index 4266dc6a17899..362b0a9145fca 100644 --- a/sklearn/cluster/tests/test_k_means.py +++ b/sklearn/cluster/tests/test_k_means.py @@ -909,14 +909,15 @@ def test_sample_weight_length(): # check that an error is raised when pa...
[ { "components": [ { "doc": "Set sample_weight if None, and check for correct dtype", "lines": [ 167, 179 ], "name": "_check_normalize_sample_weight", "signature": "def _check_normalize_sample_weight(sample_weight, X):", "type": "function"...
[ "sklearn/cluster/tests/test_k_means.py::test_kmeans_results[float32-dense-full]", "sklearn/cluster/tests/test_k_means.py::test_kmeans_results[float32-dense-elkan]", "sklearn/cluster/tests/test_k_means.py::test_kmeans_results[float32-sparse-full]", "sklearn/cluster/tests/test_k_means.py::test_kmeans_results[fl...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> MAINT Common sample_weight validation This implements a helper function for sample weight validation, and uses it consistently across the code base when applicable. Currently it's only applied to e...
c96e0958da46ebef482a4084cdda3285d5f5ad23
sympy__sympy-17174
17,174
sympy/sympy
1.5
8ca4a683d58ac1f61cfd2e4dacf7f58b9c0fefab
2019-07-11T16:16:07Z
diff --git a/sympy/stats/__init__.py b/sympy/stats/__init__.py index 6ae2ce1a961f..0527237d119a 100644 --- a/sympy/stats/__init__.py +++ b/sympy/stats/__init__.py @@ -94,6 +94,17 @@ ) __all__.extend(stochastic_process_types.__all__) +from . import random_matrix_models +from .random_matrix_models import ( + Gauss...
diff --git a/sympy/core/tests/test_args.py b/sympy/core/tests/test_args.py index a4ac9ff6f349..d28040d6b2e7 100644 --- a/sympy/core/tests/test_args.py +++ b/sympy/core/tests/test_args.py @@ -1563,6 +1563,12 @@ def test_sympy__stats__rv__RandomIndexedSymbol(): X = DiscreteMarkovChain("X") assert _test_args(Ran...
[ { "components": [ { "doc": "Represents probability space for\nrandom matrices. It contains the mechanics\nfor handling the API calls for random matrices.", "lines": [ 6, 24 ], "name": "RandomMatrixPSpace", "signature": "class RandomMatrixPSpace(P...
[ "test_sympy__stats__rv__RandomMatrixSymbol", "test_sympy__stats__random_matrix__RandomMatrixPSpace", "test_sympy__stats__random_matrix_models__RandomMatrixEnsemble", "test_sympy__stats__random_matrix_models__GaussianEnsemble", "test_sympy__stats__random_matrix_models__GaussianUnitaryEnsemble", "test_sympy...
[ "test_all_classes_are_tested", "test_sympy__assumptions__assume__AppliedPredicate", "test_sympy__assumptions__assume__Predicate", "test_sympy__assumptions__sathandlers__UnevaluatedOnFree", "test_sympy__assumptions__sathandlers__AllArgs", "test_sympy__assumptions__sathandlers__AnyArgs", "test_sympy__assu...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Added random matrices(Gaussian Ensembles only) <!-- Your title above should be a short description of what was changed. Do not include the issue number in the title. --> #### References to other I...
c72f122f67553e1af930bac6c35732d2a0bbb776
scrapy__scrapy-3862
3,862
scrapy/scrapy
null
ae4eab9843752e7cf75420a5d4f4fa58f8da8e50
2019-07-09T18:24:49Z
diff --git a/docs/topics/developer-tools.rst b/docs/topics/developer-tools.rst index 82857c9da90..dcf8af36523 100644 --- a/docs/topics/developer-tools.rst +++ b/docs/topics/developer-tools.rst @@ -252,9 +252,33 @@ If the handy ``has_next`` element is ``true`` (try loading `quotes.toscrape.com/api/quotes?page=10`_ in y...
diff --git a/tests/test_http_request.py b/tests/test_http_request.py index 952e208de0a..60494d792e1 100644 --- a/tests/test_http_request.py +++ b/tests/test_http_request.py @@ -269,6 +269,82 @@ def a_function(): with self.assertRaises(TypeError): self.request_class('http://example.com', a_function...
diff --git a/docs/topics/developer-tools.rst b/docs/topics/developer-tools.rst index 82857c9da90..dcf8af36523 100644 --- a/docs/topics/developer-tools.rst +++ b/docs/topics/developer-tools.rst @@ -252,9 +252,33 @@ If the handy ``has_next`` element is ``true`` (try loading `quotes.toscrape.com/api/quotes?page=10`_ in y...
[ { "components": [ { "doc": "Create a Request object from a string containing a `cURL\n<https://curl.haxx.se/>`_ command. It populates the HTTP method, the\nURL, the headers, the cookies and the body. It accepts the same\narguments as the :class:`Request` class, taking preference and\noverriding th...
[ "tests/test_http_request.py::RequestTest::test_ajax_url", "tests/test_http_request.py::RequestTest::test_body", "tests/test_http_request.py::RequestTest::test_callback_is_callable", "tests/test_http_request.py::RequestTest::test_copy", "tests/test_http_request.py::RequestTest::test_copy_inherited_classes", ...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> [MRG+1] Create Request from curl command This is a WIP, but I open this PR to discuss how to implement this feature. Based on: https://github.com/scrapy/scrapy/pull/2985 (abandoned) ---------- </...
57a5460529ff71c42e4d0381265b1b512b1eb09b
sympy__sympy-17163
17,163
sympy/sympy
1.5
fa8328d1cd9e7af7c81fdef579e788038465b665
2019-07-07T16:09:54Z
diff --git a/sympy/stats/__init__.py b/sympy/stats/__init__.py index 5364fce2185d..a9e304e726e2 100644 --- a/sympy/stats/__init__.py +++ b/sympy/stats/__init__.py @@ -83,10 +83,13 @@ from . import stochastic_process_types from .stochastic_process_types import ( StochasticProcess, + ContinuousTimeStochasticPro...
diff --git a/sympy/core/tests/test_args.py b/sympy/core/tests/test_args.py index 131bcd80a6c8..a2ad8d3fb2e3 100644 --- a/sympy/core/tests/test_args.py +++ b/sympy/core/tests/test_args.py @@ -1563,16 +1563,30 @@ def test_sympy__stats__stochastic_process_types__StochasticProcess(): from sympy.stats.stochastic_proces...
[ { "components": [ { "doc": "", "lines": [ 286, 290 ], "name": "RandomIndexedSymbol.key", "signature": "def key(self):", "type": "function" } ], "file": "sympy/stats/rv.py" }, { "components": [ { "doc": ...
[ "test_sympy__stats__stochastic_process_types__MarkovProcess", "test_sympy__stats__stochastic_process_types__ContinuousTimeStochasticProcess", "test_sympy__stats__stochastic_process_types__GeneratorMatrixOf", "test_sympy__stats__stochastic_process_types__ContinuousMarkovChain", "test_DiscreteMarkovChain" ]
[ "test_all_classes_are_tested", "test_sympy__assumptions__assume__AppliedPredicate", "test_sympy__assumptions__assume__Predicate", "test_sympy__assumptions__sathandlers__UnevaluatedOnFree", "test_sympy__assumptions__sathandlers__AllArgs", "test_sympy__assumptions__sathandlers__AnyArgs", "test_sympy__assu...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Added continuous time Markov chain <!-- 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...
c72f122f67553e1af930bac6c35732d2a0bbb776
scikit-learn__scikit-learn-14263
14,263
scikit-learn/scikit-learn
0.22
70aa46ae8e8f327924ace7b2d70cad7cbd01bf0b
2019-07-05T10:19:05Z
diff --git a/doc/modules/classes.rst b/doc/modules/classes.rst index 30fc3b5102bc6..ad290ef187aef 100644 --- a/doc/modules/classes.rst +++ b/doc/modules/classes.rst @@ -903,6 +903,9 @@ details. metrics.mean_squared_log_error metrics.median_absolute_error metrics.r2_score + metrics.mean_poisson_deviance + ...
diff --git a/sklearn/metrics/tests/test_common.py b/sklearn/metrics/tests/test_common.py index 6442b11834671..8d62caa8a16c6 100644 --- a/sklearn/metrics/tests/test_common.py +++ b/sklearn/metrics/tests/test_common.py @@ -44,6 +44,9 @@ from sklearn.metrics import matthews_corrcoef from sklearn.metrics import mean_abso...
diff --git a/doc/modules/classes.rst b/doc/modules/classes.rst index 30fc3b5102bc6..ad290ef187aef 100644 --- a/doc/modules/classes.rst +++ b/doc/modules/classes.rst @@ -903,6 +903,9 @@ details. metrics.mean_squared_log_error metrics.median_absolute_error metrics.r2_score + metrics.mean_poisson_deviance + ...
[ { "components": [ { "doc": "Mean Tweedie deviance regression loss.\n\nRead more in the :ref:`User Guide <mean_tweedie_deviance>`.\n\nParameters\n----------\ny_true : array-like of shape (n_samples,)\n Ground truth (correct) target values.\n\ny_pred : array-like of shape (n_samples,)\n Estima...
[ "sklearn/metrics/tests/test_common.py::test_symmetry_consistency", "sklearn/metrics/tests/test_common.py::test_symmetric_metric[accuracy_score]", "sklearn/metrics/tests/test_common.py::test_symmetric_metric[cohen_kappa_score]", "sklearn/metrics/tests/test_common.py::test_symmetric_metric[f1_score]", "sklear...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> ENH Add Poisson, Gamma and Tweedie deviances to regression metrics ### Reference Issues/PRs Contributes to #9405 #### What does this implement/fix? Adds new regression metrics that are natural f...
c96e0958da46ebef482a4084cdda3285d5f5ad23
sympy__sympy-17153
17,153
sympy/sympy
1.5
40da07b3a8ca3b315aaf25ec4ac21dfe4364a097
2019-07-05T04:58:35Z
diff --git a/sympy/geometry/ellipse.py b/sympy/geometry/ellipse.py index 699064603461..2d56c2ad53bf 100644 --- a/sympy/geometry/ellipse.py +++ b/sympy/geometry/ellipse.py @@ -1336,6 +1336,7 @@ def vradius(self): """ return self.args[2] + def second_moment_of_area(self, point=None): """...
diff --git a/sympy/geometry/tests/test_ellipse.py b/sympy/geometry/tests/test_ellipse.py index 1c3399136642..93b19ba629ca 100644 --- a/sympy/geometry/tests/test_ellipse.py +++ b/sympy/geometry/tests/test_ellipse.py @@ -1,4 +1,4 @@ -from sympy import Rational, S, Symbol, symbols, pi, sqrt, oo, Point2D, Segment2D, I +fro...
[ { "components": [ { "doc": "Returns the polar second moment of area of an Ellipse\n\nIt is a constituent of the second moment of area, linked through\nthe perpendicular axis theorem. While the planar second moment of\narea describes an object's resistance to deflection (bending) when\nsubjected to...
[ "test_section_modulus_and_polar_second_moment_of_area", "test_second_moment_of_area", "test_first_moment" ]
[ "test_ellipse_equation_using_slope", "test_object_from_equation", "test_construction", "test_ellipse_random_point", "test_repr", "test_transform", "test_bounds", "test_reflect", "test_is_tangent", "test_parameter_value", "test_circumference", "test_issue_15259", "test_issue_15797_equals", ...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Added functionality to determine polar second moment of area and section modulus of a polygon [Polar modulus](https://en.wikipedia.org/wiki/Polar_moment_of_inertia) and [section modulus](https://en.wi...
c72f122f67553e1af930bac6c35732d2a0bbb776
sympy__sympy-17145
17,145
sympy/sympy
1.5
12d8f5354db591ba6600c50f4188b7b973a859fc
2019-07-03T13:05:19Z
diff --git a/sympy/sets/fancysets.py b/sympy/sets/fancysets.py index 0d4804359b10..413fe1ab56b3 100644 --- a/sympy/sets/fancysets.py +++ b/sympy/sets/fancysets.py @@ -9,7 +9,7 @@ from sympy.core.singleton import Singleton, S from sympy.core.symbol import Dummy, symbols from sympy.core.sympify import _sympify, sympif...
diff --git a/sympy/sets/tests/test_fancysets.py b/sympy/sets/tests/test_fancysets.py index c952fc18caac..128618cc2517 100644 --- a/sympy/sets/tests/test_fancysets.py +++ b/sympy/sets/tests/test_fancysets.py @@ -309,6 +309,10 @@ def test_Range_set(): assert Range(builtin_range(1000000000000)) == \ ...
[ { "components": [ { "doc": "Rewrite a Range in terms of equalities and logic operators. ", "lines": [ 769, 776 ], "name": "Range.as_relational", "signature": "def as_relational(self, x):", "type": "function" } ], "file": "sy...
[ "test_Range_set" ]
[ "test_naturals", "test_naturals0", "test_integers", "test_ImageSet", "test_image_is_ImageSet", "test_halfcircle", "test_ImageSet_iterator_not_injective", "test_inf_Range_len", "test_range_range_intersection", "test_range_interval_intersection", "test_Integers_eval_imageset", "test_Range_eval_i...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> as_relational added in Range <!-- 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 <!--...
c72f122f67553e1af930bac6c35732d2a0bbb776
sympy__sympy-17134
17,134
sympy/sympy
1.5
de86581abcec1e9a6018f22e95010809eaf7d2f0
2019-07-01T11:26:00Z
diff --git a/sympy/series/formal.py b/sympy/series/formal.py index c6a6f1a225fa..8b7a84421217 100644 --- a/sympy/series/formal.py +++ b/sympy/series/formal.py @@ -1052,6 +1052,9 @@ def truncate(self, n=6): return self.polynomial(n) + Order(pt_xk, (x, x0)) + def zero_coeff(self): + return self._ev...
diff --git a/sympy/core/tests/test_args.py b/sympy/core/tests/test_args.py index 131bcd80a6c8..d7f688fc649f 100644 --- a/sympy/core/tests/test_args.py +++ b/sympy/core/tests/test_args.py @@ -3886,11 +3886,35 @@ def test_sympy__series__formal__FormalPowerSeries(): from sympy.series.formal import fps assert _te...
[ { "components": [ { "doc": "", "lines": [ 1055, 1056 ], "name": "FormalPowerSeries.zero_coeff", "signature": "def zero_coeff(self):", "type": "function" }, { "doc": "Base Class for Product, Compose and Inverse classes"...
[ "test_rational_algorithm", "test_rational_independent", "test_simpleDE", "test_exp_re", "test_hyper_re", "test_fps", "test_fps_shift", "test_fps__Add_expr", "test_fps__asymptotic", "test_fps__fractional", "test_fps__logarithmic_singularity", "test_fps_symbolic", "test_fps__slow", "test_fps...
[ "test_all_classes_are_tested", "test_sympy__assumptions__assume__AppliedPredicate", "test_sympy__assumptions__assume__Predicate", "test_sympy__assumptions__sathandlers__UnevaluatedOnFree", "test_sympy__assumptions__sathandlers__AllArgs", "test_sympy__assumptions__sathandlers__AnyArgs", "test_sympy__assu...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> [GSoC] Introduction of FormalPowerSeries sub-classes, which is being returned by product, compose and inverse functions <!-- Your title above should be a short description of what was changed. Do not...
c72f122f67553e1af930bac6c35732d2a0bbb776
scikit-learn__scikit-learn-14197
14,197
scikit-learn/scikit-learn
0.22
91819d58275adf1bb05944b9e51ff3133cebc7f9
2019-06-26T13:21:34Z
diff --git a/doc/whats_new/v0.21.rst b/doc/whats_new/v0.21.rst index 2e1c639e267b7..cf3302ad62c00 100644 --- a/doc/whats_new/v0.21.rst +++ b/doc/whats_new/v0.21.rst @@ -12,6 +12,18 @@ Version 0.21.3 Changelog --------- +:mod:`sklearn.datasets` +....................... + +- |Fix| :func:`datasets.fetch_california_hou...
diff --git a/sklearn/datasets/tests/test_base.py b/sklearn/datasets/tests/test_base.py index 1b58115d337e7..5e0af0318729f 100644 --- a/sklearn/datasets/tests/test_base.py +++ b/sklearn/datasets/tests/test_base.py @@ -8,6 +8,7 @@ from functools import partial import pytest +import joblib import numpy as np from ...
diff --git a/doc/whats_new/v0.21.rst b/doc/whats_new/v0.21.rst index 2e1c639e267b7..cf3302ad62c00 100644 --- a/doc/whats_new/v0.21.rst +++ b/doc/whats_new/v0.21.rst @@ -12,6 +12,18 @@ Version 0.21.3 Changelog --------- +:mod:`sklearn.datasets` +....................... + +- |Fix| :func:`datasets.fetch_california_hou...
[ { "components": [ { "doc": "", "lines": [ 925, 950 ], "name": "_refresh_cache", "signature": "def _refresh_cache(files, compress):", "type": "function" } ], "file": "sklearn/datasets/base.py" } ]
[ "sklearn/datasets/tests/test_base.py::test_data_home", "sklearn/datasets/tests/test_base.py::test_default_empty_load_files", "sklearn/datasets/tests/test_base.py::test_default_load_files", "sklearn/datasets/tests/test_base.py::test_load_files_w_categories_desc_and_encoding", "sklearn/datasets/tests/test_bas...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> FIX introduce a refresh_cache param to `fetch_...` functions. This kinda fixes #14177. This does not change the warning message. But it introduces a `refresh_cache` parameter to the `fetch_...` fu...
Here is the discussion in the issues of the pull request. <issues> Better warning message with deprecation of sklearn.externals._joblib When loading the olivetti dataset, I got the deprecation warning: ```python "sklearn.externals.joblib is deprecated in 0.21 and will be removed " "in 0.23. Please im...
c96e0958da46ebef482a4084cdda3285d5f5ad23
scikit-learn__scikit-learn-14180
14,180
scikit-learn/scikit-learn
0.23
b9403f62ac65e7e6575168ef74b43fb012010599
2019-06-25T02:18:38Z
diff --git a/doc/modules/classes.rst b/doc/modules/classes.rst index 3d9924638b69b..2489eaf55bac7 100644 --- a/doc/modules/classes.rst +++ b/doc/modules/classes.rst @@ -1569,6 +1569,7 @@ Plotting utils.deprecated utils.estimator_checks.check_estimator utils.estimator_checks.parametrize_with_checks + utils...
diff --git a/sklearn/tests/test_base.py b/sklearn/tests/test_base.py index 52f2e60b4af70..e20fa440d1933 100644 --- a/sklearn/tests/test_base.py +++ b/sklearn/tests/test_base.py @@ -23,6 +23,7 @@ from sklearn.base import TransformerMixin from sklearn.utils._mocking import MockDataFrame +from sklearn import config_co...
diff --git a/doc/modules/classes.rst b/doc/modules/classes.rst index 3d9924638b69b..2489eaf55bac7 100644 --- a/doc/modules/classes.rst +++ b/doc/modules/classes.rst @@ -1569,6 +1569,7 @@ Plotting utils.deprecated utils.estimator_checks.check_estimator utils.estimator_checks.parametrize_with_checks + utils...
[ { "components": [ { "doc": "HTML representation of estimator", "lines": [ 440, 442 ], "name": "BaseEstimator._repr_html_", "signature": "def _repr_html_(self):", "type": "function" }, { "doc": "Mime bundle used by jupy...
[ "sklearn/tests/test_base.py::test_clone", "sklearn/tests/test_base.py::test_clone_2", "sklearn/tests/test_base.py::test_clone_buggy", "sklearn/tests/test_base.py::test_clone_empty_array", "sklearn/tests/test_base.py::test_clone_nan", "sklearn/tests/test_base.py::test_clone_sparse_matrices", "sklearn/tes...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> ENH Adds HTML visualizations for estimators #### Reference Issues/PRs Closes https://github.com/scikit-learn/scikit-learn/issues/14061 #### What does this implement/fix? Explain your changes. Y...
4bb4856ee8f3198740d53dd28b0b1d2767b90795
sympy__sympy-17078
17,078
sympy/sympy
1.5
f50c2d86a7be2003b26211971c3e335d59325348
2019-06-23T19:42:02Z
diff --git a/sympy/functions/__init__.py b/sympy/functions/__init__.py index bcacdc3c08f6..b43bfcd5914f 100644 --- a/sympy/functions/__init__.py +++ b/sympy/functions/__init__.py @@ -35,7 +35,7 @@ from sympy.functions.special.delta_functions import DiracDelta, Heaviside from sympy.functions.special.bsplines import bs...
diff --git a/sympy/core/tests/test_args.py b/sympy/core/tests/test_args.py index a8f7f03755c2..879023ea2c38 100644 --- a/sympy/core/tests/test_args.py +++ b/sympy/core/tests/test_args.py @@ -2064,6 +2064,11 @@ def test_sympy__functions__special__bessel__airybiprime(): assert _test_args(airybiprime(2)) +def tes...
[ { "components": [ { "doc": "The Marcum Q-function\n\nIt is defined by the meromorphic continuation of\n\n.. math::\n Q_m(a, b) = a^{- m + 1} \\int_{b}^{\\infty} x^{m} e^{- \\frac{a^{2}}{2} - \\frac{x^{2}}{2}} I_{m - 1}\\left(a x\\right)\\, dx\n\nExamples\n========\n\n>>> from sympy import marcu...
[ "test_sympy__functions__special__bessel__marcumq", "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_conjugate", "test_branching", "t...
[ "test_all_classes_are_tested", "test_sympy__assumptions__assume__AppliedPredicate", "test_sympy__assumptions__assume__Predicate", "test_sympy__assumptions__sathandlers__UnevaluatedOnFree", "test_sympy__assumptions__sathandlers__AllArgs", "test_sympy__assumptions__sathandlers__AnyArgs", "test_sympy__assu...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add Marcum Q-function Closes #17073. #### Brief description of what is fixed or changed Added [Marcum Q-function](http://mathworld.wolfram.com/MarcumQ-Function.html) to `bessel.py`, with different...
Here is the discussion in the issues of the pull request. <issues> Implement Marcum Q-function The Marcum Q-function is used as a cumulative distribution function (more precisely, as a survivor function) for noncentral chi, noncentral chi-squared and Rice distributions. This function also arises in performance analy...
c72f122f67553e1af930bac6c35732d2a0bbb776
sympy__sympy-17077
17,077
sympy/sympy
1.5
e6a5b6cb700f9aee594d80bea058ca19a95551cc
2019-06-23T18:49:41Z
diff --git a/sympy/stats/__init__.py b/sympy/stats/__init__.py index 5364fce2185d..635094919db9 100644 --- a/sympy/stats/__init__.py +++ b/sympy/stats/__init__.py @@ -42,7 +42,7 @@ from . import rv_interface from .rv_interface import ( cdf, characteristic_function, covariance, density, dependent, E, given, indep...
diff --git a/sympy/stats/tests/test_rv.py b/sympy/stats/tests/test_rv.py index 417fe79b5c6b..2f4a53fe3464 100644 --- a/sympy/stats/tests/test_rv.py +++ b/sympy/stats/tests/test_rv.py @@ -1,11 +1,11 @@ -from sympy import (S, Symbol, Interval, +from sympy import (S, Symbol, symbols, Interval, FallingFactorial, ...
[ { "components": [ { "doc": "The factorial moment is a mathematical quantity defined as the expectation\nor average of the falling factorial of a random variable.\n\nfactorial_moment(X, n) = E(X*(X - 1)*(X - 2)*...*(X - n + 1))\n\nParameters\n==========\n\nn: A natural number, n-th factorial moment...
[ "test_where", "test_random_symbols", "test_pspace", "test_rs_swap", "test_RandomSymbol", "test_RandomSymbol_diff", "test_random_symbol_no_pspace", "test_overlap", "test_IndependentProductPSpace", "test_E", "test_H", "test_Sample", "test_given", "test_factorial_moment", "test_dependence",...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Added Factorial Moment <!-- 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...
c72f122f67553e1af930bac6c35732d2a0bbb776
sympy__sympy-17075
17,075
sympy/sympy
1.5
3729e1ba5a2afcfc3ceee7b98b07d5b57303f919
2019-06-23T12:43:58Z
diff --git a/sympy/printing/mathml.py b/sympy/printing/mathml.py index e5012efe74d8..3e48f1365f9e 100644 --- a/sympy/printing/mathml.py +++ b/sympy/printing/mathml.py @@ -741,6 +741,53 @@ def _print_NegativeInfinity(self, e): mrow.appendChild(x) return mrow + def _print_HBar(self, e): + x ...
diff --git a/sympy/printing/tests/test_mathml.py b/sympy/printing/tests/test_mathml.py index 4aed2e33394d..7e57d6a157be 100644 --- a/sympy/printing/tests/test_mathml.py +++ b/sympy/printing/tests/test_mathml.py @@ -4,7 +4,7 @@ S, MatrixSymbol, Function, Derivative, log, true, false, Range, Min, Max, \ Lambda,...
[ { "components": [ { "doc": "", "lines": [ 744, 747 ], "name": "MathMLPresentationPrinter._print_HBar", "signature": "def _print_HBar(self, e):", "type": "function" }, { "doc": "", "lines": [ 749, ...
[ "test_print_spaces", "test_print_constants", "test_print_Contains", "test_print_Dagger" ]
[ "test_mathml_printer", "test_content_printmethod", "test_content_mathml_core", "test_content_mathml_functions", "test_content_mathml_limits", "test_content_mathml_integrals", "test_content_mathml_matrices", "test_content_mathml_sums", "test_content_mathml_tuples", "test_content_mathml_add", "tes...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Added some MathML presentation printing 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 ...
c72f122f67553e1af930bac6c35732d2a0bbb776
sympy__sympy-17064
17,064
sympy/sympy
1.5
411757c159e16a56b5ad8141cb07dc32f4277caa
2019-06-20T19:56:16Z
diff --git a/sympy/series/formal.py b/sympy/series/formal.py index 2065b385f46f..c6a6f1a225fa 100644 --- a/sympy/series/formal.py +++ b/sympy/series/formal.py @@ -18,6 +18,7 @@ from sympy.core.sympify import sympify from sympy.discrete.convolutions import convolution from sympy.functions.combinatorial.factorials imp...
diff --git a/sympy/series/tests/test_formal.py b/sympy/series/tests/test_formal.py index 233e3382a7ef..86626c1ea332 100644 --- a/sympy/series/tests/test_formal.py +++ b/sympy/series/tests/test_formal.py @@ -519,3 +519,35 @@ def test_fps__convolution(): assert f1.product(f2, x, 3) == x + x**2 + O(x**3) assert ...
[ { "components": [ { "doc": "", "lines": [ 947, 953 ], "name": "FormalPowerSeries.__init__", "signature": "def __init__(self, *args):", "type": "function" }, { "doc": "self.coeff_bell(n) returns a sequence of Bell polyn...
[ "test_fps__composition" ]
[ "test_rational_algorithm", "test_rational_independent", "test_simpleDE", "test_exp_re", "test_hyper_re", "test_fps", "test_fps_shift", "test_fps__Add_expr", "test_fps__asymptotic", "test_fps__fractional", "test_fps__logarithmic_singularity", "test_fps_symbolic", "test_fps__slow", "test_fps...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> [GSoC] Implementation of composition and inversion of formal power series <!-- Your title above should be a short description of what was changed. Do not include the issue number in the title. --> ...
c72f122f67553e1af930bac6c35732d2a0bbb776
sympy__sympy-17041
17,041
sympy/sympy
1.5
dec26834d188f14f2647b1687837b1e87d92a8e5
2019-06-17T17:02:44Z
diff --git a/doc/src/modules/codegen.rst b/doc/src/modules/codegen.rst index 0ec801865bb8..6ad67e51df09 100644 --- a/doc/src/modules/codegen.rst +++ b/doc/src/modules/codegen.rst @@ -548,6 +548,9 @@ Classes and functions for rewriting expressions (sympy.codegen.rewriting) .. automodule:: sympy.codegen.rewriting :m...
diff --git a/sympy/codegen/tests/test_rewriting.py b/sympy/codegen/tests/test_rewriting.py index 93da5092ab86..da42a08819d9 100644 --- a/sympy/codegen/tests/test_rewriting.py +++ b/sympy/codegen/tests/test_rewriting.py @@ -1,11 +1,13 @@ from __future__ import (absolute_import, print_function) -from sympy import log,...
diff --git a/doc/src/modules/codegen.rst b/doc/src/modules/codegen.rst index 0ec801865bb8..6ad67e51df09 100644 --- a/doc/src/modules/codegen.rst +++ b/doc/src/modules/codegen.rst @@ -548,6 +548,9 @@ Classes and functions for rewriting expressions (sympy.codegen.rewriting) .. automodule:: sympy.codegen.rewriting :m...
[ { "components": [ { "doc": "Represents an operation to solve a linear matrix equation.\n\nParameters\n==========\n\nmatrix : MatrixSymbol\n\n Matrix representing the coefficients of variables in the linear\n equation. This matrix must be square and full-rank (i.e. all columns must\n be linearly...
[ "test_log2_opt", "test_exp2_opt", "test_expm1_opt", "test_log1p_opt", "test_optims_c99", "test_create_expand_pow_optimization", "test_sympy__codegen__matrix_nodes__MatrixSolve", "test_numpy_piecewise_regression", "test_Integer", "test_Rational", "test_Function", "test_Function_change_name", ...
[ "test_all_classes_are_tested", "test_sympy__assumptions__assume__AppliedPredicate", "test_sympy__assumptions__assume__Predicate", "test_sympy__assumptions__sathandlers__UnevaluatedOnFree", "test_sympy__assumptions__sathandlers__AllArgs", "test_sympy__assumptions__sathandlers__AnyArgs", "test_sympy__assu...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add optimization of numpy code involving matrix inverses <!-- Your title above should be a short description of what was changed. Do not include the issue number in the title. --> #### Brief descr...
c72f122f67553e1af930bac6c35732d2a0bbb776
joblib__joblib-894
894
joblib/joblib
null
c2087dbdeec9824c45822670395a8a0c45be2211
2019-06-14T18:33:04Z
diff --git a/CHANGES.rst b/CHANGES.rst index 5bf9c956e..e191018d6 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -4,11 +4,14 @@ Latest changes In development -------------- +- Allow caching co-routines with `Memory.cache`. + https://github.com/joblib/joblib/pull/894 + - Try to cast ``n_jobs`` to int in parallel ...
diff --git a/joblib/test/test_memory.py b/joblib/test/test_memory.py index ec9761fd1..120987b66 100644 --- a/joblib/test/test_memory.py +++ b/joblib/test/test_memory.py @@ -571,8 +571,8 @@ def test_func_dir(tmpdir): assert g._check_previous_func_code() # Test the robustness to failure of loading previous re...
diff --git a/CHANGES.rst b/CHANGES.rst index 5bf9c956e..e191018d6 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -4,11 +4,14 @@ Latest changes In development -------------- +- Allow caching co-routines with `Memory.cache`. + https://github.com/joblib/joblib/pull/894 + - Try to cast ``n_jobs`` to int in parallel ...
[ { "components": [ { "doc": "", "lines": [ 203, 204 ], "name": "MemorizedResult.func", "signature": "def func(self):", "type": "function" }, { "doc": "", "lines": [ 207, 208 ], ...
[ "joblib/test/test_memory.py::test_memory_integration", "joblib/test/test_memory.py::test_parallel_call_cached_function_defined_in_jupyter[True]", "joblib/test/test_memory.py::test_parallel_call_cached_function_defined_in_jupyter[False]", "joblib/test/test_memory.py::test_no_memory", "joblib/test/test_memory...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> ENH allow caching coroutine functions Addresses #889, allowing coroutine functions (available in Python 3.5+) to be decorated with `joblib.memory`. In short, the decorated function's `__call__` and `c...
41b70ff10c293bd292465456434620e406d90d88
sympy__sympy-17030
17,030
sympy/sympy
1.5
a9751e4b979129ec399920e987569ca02bd9f3e4
2019-06-14T16:16:01Z
diff --git a/sympy/stats/rv.py b/sympy/stats/rv.py index 353a13974f9d..31ee14eb5ad7 100644 --- a/sympy/stats/rv.py +++ b/sympy/stats/rv.py @@ -280,7 +280,7 @@ def __new__(cls, idx_obj, pspace=None): return Basic.__new__(cls, idx_obj, pspace) symbol = property(lambda self: self.args[0]) - name = symbo...
diff --git a/sympy/core/tests/test_args.py b/sympy/core/tests/test_args.py index 44b4bd07b751..8781cdc48a6d 100644 --- a/sympy/core/tests/test_args.py +++ b/sympy/core/tests/test_args.py @@ -1551,7 +1551,8 @@ def test_sympy__stats__rv__RandomIndexedSymbol(): def test_sympy__stats__stochastic_process__StochasticPSpace(...
[ { "components": [ { "doc": "", "lines": [ 46, 47 ], "name": "StochasticPSpace.distribution", "signature": "def distribution(self):", "type": "function" }, { "doc": "Transfers the task of handling queries to the specifi...
[ "test_sympy__stats__stochastic_process__StochasticPSpace" ]
[ "test_all_classes_are_tested", "test_sympy__assumptions__assume__AppliedPredicate", "test_sympy__assumptions__assume__Predicate", "test_sympy__assumptions__sathandlers__UnevaluatedOnFree", "test_sympy__assumptions__sathandlers__AllArgs", "test_sympy__assumptions__sathandlers__AnyArgs", "test_sympy__assu...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Adding more features to StochasticProcess <!-- 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...
c72f122f67553e1af930bac6c35732d2a0bbb776
sympy__sympy-17019
17,019
sympy/sympy
1.5
3febfc43ca0aa23d916ef06057e8c6d396a955e7
2019-06-12T16:45:32Z
diff --git a/sympy/assumptions/refine.py b/sympy/assumptions/refine.py index 0ed132bee5ae..52099d71abe7 100644 --- a/sympy/assumptions/refine.py +++ b/sympy/assumptions/refine.py @@ -240,6 +240,57 @@ def refine_Relational(expr, assumptions): return ask(Q.is_true(expr), assumptions) +def refine_re(expr, assumpt...
diff --git a/sympy/assumptions/tests/test_refine.py b/sympy/assumptions/tests/test_refine.py index 0fd1ef8031af..15f9878c37d9 100644 --- a/sympy/assumptions/tests/test_refine.py +++ b/sympy/assumptions/tests/test_refine.py @@ -1,6 +1,6 @@ from sympy import (Abs, exp, Expr, I, pi, Q, Rational, refine, S, sqrt, - ...
[ { "components": [ { "doc": "Handler for real part.\n\n>>> from sympy.assumptions.refine import refine_re\n>>> from sympy import Q, re\n>>> from sympy.abc import x\n>>> refine_re(re(x), Q.real(x))\nx\n>>> refine_re(re(x), Q.imaginary(x))\n0", "lines": [ 243, 260 ...
[ "test_re", "test_im", "test_complex" ]
[ "test_Abs", "test_pow1", "test_exp", "test_Relational", "test_Piecewise", "test_atan2", "test_func_args", "test_eval_refine" ]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add refine handlers for re(), im(). <!-- 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 PR...
c72f122f67553e1af930bac6c35732d2a0bbb776
sympy__sympy-16991
16,991
sympy/sympy
1.5
8f4999d744827bc6b29e05e8ec4e6bc1bf8a5d11
2019-06-08T12:04:27Z
diff --git a/doc/src/modules/combinatorics/index.rst b/doc/src/modules/combinatorics/index.rst index f753a41ae16a..2d70a46a13ee 100644 --- a/doc/src/modules/combinatorics/index.rst +++ b/doc/src/modules/combinatorics/index.rst @@ -23,3 +23,4 @@ Contents testutil.rst tensor_can.rst fp_groups.rst + pc_group...
diff --git a/sympy/combinatorics/tests/test_pc_groups.py b/sympy/combinatorics/tests/test_pc_groups.py new file mode 100644 index 000000000000..ff4b9e7dad55 --- /dev/null +++ b/sympy/combinatorics/tests/test_pc_groups.py @@ -0,0 +1,72 @@ +from sympy.combinatorics.pc_groups import PolycyclicGroup, Collector +from sympy....
diff --git a/doc/src/modules/combinatorics/index.rst b/doc/src/modules/combinatorics/index.rst index f753a41ae16a..2d70a46a13ee 100644 --- a/doc/src/modules/combinatorics/index.rst +++ b/doc/src/modules/combinatorics/index.rst @@ -23,3 +23,4 @@ Contents testutil.rst tensor_can.rst fp_groups.rst + pc_group...
[ { "components": [ { "doc": "", "lines": [ 7, 22 ], "name": "PolycyclicGroup", "signature": "class PolycyclicGroup(DefaultPrinting):", "type": "class" }, { "doc": "", "lines": [ 12, 16 ...
[ "test_pc_presentation" ]
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Added Polycyclic Group Class <!-- Your title above should be a short description of what was changed. Do not include the issue number in the title. --> <!-- If this pull request fixes an issue, wr...
c72f122f67553e1af930bac6c35732d2a0bbb776
sympy__sympy-16981
16,981
sympy/sympy
1.5
9576ee3c04cd779524efbf4fe67f1e0658ad93d1
2019-06-06T14:51:24Z
diff --git a/sympy/stats/__init__.py b/sympy/stats/__init__.py index ee5889933ebe..cf0037cab1d7 100644 --- a/sympy/stats/__init__.py +++ b/sympy/stats/__init__.py @@ -80,6 +80,16 @@ ) __all__.extend(joint_rv_types.__all__) +from . import stochastic_process_types +from .stochastic_process_types import ( + Stochas...
diff --git a/sympy/core/tests/test_args.py b/sympy/core/tests/test_args.py index b4912d134d17..c123936675c6 100644 --- a/sympy/core/tests/test_args.py +++ b/sympy/core/tests/test_args.py @@ -1530,6 +1530,43 @@ def test_sympy__stats__joint_rv_types__NegativeMultinomialDistribution(): from sympy.stats.joint_rv_types...
[ { "components": [ { "doc": "", "lines": [ 275, 284 ], "name": "RandomIndexedSymbol", "signature": "class RandomIndexedSymbol(RandomSymbol):", "type": "class" }, { "doc": "", "lines": [ 277, ...
[ "test_sympy__stats__rv__RandomIndexedSymbol", "test_sympy__stats__stochastic_process__StochasticPSpace", "test_sympy__stats__stochastic_process_types__StochasticProcess", "test_sympy__stats__stochastic_process_types__DiscreteTimeStochasticProcess", "test_sympy__stats__stochastic_process_types__TransitionMat...
[ "test_all_classes_are_tested", "test_sympy__assumptions__assume__AppliedPredicate", "test_sympy__assumptions__assume__Predicate", "test_sympy__assumptions__sathandlers__UnevaluatedOnFree", "test_sympy__assumptions__sathandlers__AllArgs", "test_sympy__assumptions__sathandlers__AnyArgs", "test_sympy__assu...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Added StochasticProcess and DiscreteMarkovChain <!-- Your title above should be a short description of what was changed. Do not include the issue number in the title. --> #### References to other...
c72f122f67553e1af930bac6c35732d2a0bbb776
dpkp__kafka-python-1833
1,833
dpkp/kafka-python
null
79dd508b14fd2d66a8b6d32353e8e64989c4ff84
2019-06-03T20:40:19Z
diff --git a/kafka/admin/__init__.py b/kafka/admin/__init__.py index a300301c6..c240fc6d0 100644 --- a/kafka/admin/__init__.py +++ b/kafka/admin/__init__.py @@ -2,9 +2,13 @@ from kafka.admin.config_resource import ConfigResource, ConfigResourceType from kafka.admin.client import KafkaAdminClient +from kafka.admin.a...
diff --git a/test/test_admin.py b/test/test_admin.py index 300d5bced..279f85abf 100644 --- a/test/test_admin.py +++ b/test/test_admin.py @@ -26,6 +26,37 @@ def test_new_partitions(): assert good_partitions.new_assignments == [[1, 2, 3]] +def test_acl_resource(): + good_acl = kafka.admin.ACL( + "User:...
diff --git a/servers/0.10.0.0/resources/kafka.properties b/servers/0.10.0.0/resources/kafka.properties index 7d8e2b1f0..534b7ba36 100644 --- a/servers/0.10.0.0/resources/kafka.properties +++ b/servers/0.10.0.0/resources/kafka.properties @@ -30,6 +30,9 @@ ssl.key.password=foobar ssl.truststore.location={ssl_dir}/kafka....
[ { "components": [ { "doc": "Type of kafka resource to set ACL for\n\nThe ANY value is only valid in a filter context", "lines": [ 12, 24 ], "name": "ResourceType", "signature": "class ResourceType(IntEnum):", "type": "class" }, ...
[ "test/test_admin.py::test_config_resource", "test/test_admin.py::test_new_partitions", "test/test_admin.py::test_acl_resource", "test/test_admin.py::test_new_topic" ]
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add ACL api to KafkaAdminClient This is a new attempt at creating user friendly ACL management methods to KafkaAdminClient. It's building on top of the previous PR (#1646) that only got the protoco...
Here is the discussion in the issues of the pull request. <issues> Add ACL kafka protocols to AdminClient I could not find any mention in these issues of adding ACL protocols to this project. Is that something that would be attractive to add? I could try and add the Create/Delete/Describe protocols and implement metho...
53dc740bce8ef19c32fad2881021d1f6bb055f7a
joke2k__faker-964
964
joke2k/faker
null
89eefd7962928b3150e72707fc8718613ab63e63
2019-05-27T10:39:41Z
diff --git a/faker/providers/person/pl_PL/__init__.py b/faker/providers/person/pl_PL/__init__.py index 49c622df8a..025b50f135 100644 --- a/faker/providers/person/pl_PL/__init__.py +++ b/faker/providers/person/pl_PL/__init__.py @@ -21,28 +21,6 @@ def checksum_identity_card_number(characters): return check_digit ...
diff --git a/tests/providers/test_person.py b/tests/providers/test_person.py index 3767ef4d89..90b8d4c2ca 100644 --- a/tests/providers/test_person.py +++ b/tests/providers/test_person.py @@ -4,9 +4,14 @@ import re import unittest - +import datetime import six +try: + from unittest import mock +except ImportEr...
[ { "components": [ { "doc": "", "lines": [ 707, 709 ], "name": "Provider.pesel_compute_check_digit", "signature": "def pesel_compute_check_digit(pesel):", "type": "function" }, { "doc": "", "lines": [ ...
[ "tests/providers/test_person.py::TestPlPL::test_pesel_birth_date", "tests/providers/test_person.py::TestPlPL::test_pesel_sex_female", "tests/providers/test_person.py::TestPlPL::test_pesel_sex_male", "tests/providers/test_person.py::TestPlPL::test_pwz_doctor", "tests/providers/test_person.py::TestPlPL::test_...
[ "tests/providers/test_person.py::TestAr::test_first_name", "tests/providers/test_person.py::TestAr::test_last_name", "tests/providers/test_person.py::TestJaJP::test_person", "tests/providers/test_person.py::TestNeNP::test_names", "tests/providers/test_person.py::TestFiFI::test_gender_first_names", "tests/...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> add pwz generator and date_of_brith and sex asargument to pesel (`pl_PL`) What does this changes - `Person` in `pl_PL` What was wrong - it wasn't possible to generate pesel number for given d...
Here is the discussion in the issues of the pull request. <issues> pl_PL tasks - a lot of things to add Hi, I'm using faker quite often, but there is some missing functionalities for pl_PL, like e.g. PESEL generator (Polish id for every person), car plates or some more. Can I contribute on my own branch (e.g. pl...
6edfdbf6ae90b0153309e3bf066aa3b2d16494a7
scrapy__scrapy-3796
3,796
scrapy/scrapy
null
a3d38041e230f886d55569f861a11a96ab8a1913
2019-05-27T06:17:15Z
diff --git a/.travis.yml b/.travis.yml index 08b0bf1195c..dc333a2012d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -26,6 +26,12 @@ matrix: sudo: true - python: 3.6 env: TOXENV=docs + - python: 3.7 + env: TOXENV=py37-extra-deps + dist: xenial + sudo: true + - python: 2.7 + e...
diff --git a/tests/test_downloadermiddleware_robotstxt.py b/tests/test_downloadermiddleware_robotstxt.py index 60306eacb84..816f88ca15c 100644 --- a/tests/test_downloadermiddleware_robotstxt.py +++ b/tests/test_downloadermiddleware_robotstxt.py @@ -11,6 +11,7 @@ from scrapy.http import Request, Response, TextResponse ...
diff --git a/.travis.yml b/.travis.yml index 08b0bf1195c..dc333a2012d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -26,6 +26,12 @@ matrix: sudo: true - python: 3.6 env: TOXENV=docs + - python: 3.7 + env: TOXENV=py37-extra-deps + dist: xenial + sudo: true + - python: 2.7 + e...
[ { "components": [ { "doc": "", "lines": [ 11, 36 ], "name": "RobotParser", "signature": "class RobotParser(with_metaclass(ABCMeta)): @classmethod @abstractmethod", "type": "class" }, { "doc": "Parse the content of a ro...
[ "tests/test_robotstxt_interface.py::PythonRobotParserTest::test_allowed", "tests/test_robotstxt_interface.py::PythonRobotParserTest::test_empty_response", "tests/test_robotstxt_interface.py::PythonRobotParserTest::test_garbage_response", "tests/test_robotstxt_interface.py::PythonRobotParserTest::test_order_ba...
[ "tests/test_downloadermiddleware_robotstxt.py::RobotsTxtMiddlewareTest::test_ignore_robotstxt_request", "tests/test_downloadermiddleware_robotstxt.py::RobotsTxtMiddlewareTest::test_robotstxt", "tests/test_downloadermiddleware_robotstxt.py::RobotsTxtMiddlewareTest::test_robotstxt_empty_response", "tests/test_d...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> [MRG+1] [GSoC 2019] Interface for robots.txt parsers [For Google Summer of Code 2019] This pull request is not ready for merging. Looking for reviews and suggestions. Excited for the awesome summer ah...
57a5460529ff71c42e4d0381265b1b512b1eb09b
sympy__sympy-16896
16,896
sympy/sympy
1.5
8e23c8091c4c60a4479a23c78bac1ee535adbcdc
2019-05-26T12:56:25Z
diff --git a/sympy/calculus/util.py b/sympy/calculus/util.py index 4c8a2559d051..90fce092429f 100644 --- a/sympy/calculus/util.py +++ b/sympy/calculus/util.py @@ -280,8 +280,8 @@ def not_empty_in(finset_intersection, *syms): if len(syms) == 0: raise ValueError("One or more symbols must be given in syms.")...
diff --git a/sympy/core/tests/test_args.py b/sympy/core/tests/test_args.py index ebb6a98cf299..b4911a41de20 100644 --- a/sympy/core/tests/test_args.py +++ b/sympy/core/tests/test_args.py @@ -898,14 +898,21 @@ def test_sympy__sets__setexpr__SetExpr(): assert _test_args(SetExpr(Interval(0, 1))) +def test_sympy__...
[ { "components": [ { "doc": "", "lines": [ 585, 586 ], "name": "StrPrinter._print_Rationals", "signature": "def _print_Rationals(self, expr):", "type": "function" } ], "file": "sympy/printing/str.py" }, { "components"...
[ "test_sympy__sets__fancysets__Rationals", "test_Lambda", "test_issue_6194", "test_naturals", "test_Rationals", "test_imageset", "test_intersect1", "test_contains", "test_interval_symbolic", "test_union_contains", "test_issue_10248" ]
[ "test_all_classes_are_tested", "test_sympy__assumptions__assume__AppliedPredicate", "test_sympy__assumptions__assume__Predicate", "test_sympy__assumptions__sathandlers__UnevaluatedOnFree", "test_sympy__assumptions__sathandlers__AllArgs", "test_sympy__assumptions__sathandlers__AnyArgs", "test_sympy__assu...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Rationals added to fancysets <!-- 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 <!--...
Here is the discussion in the issues of the pull request. <issues> Range._intersect fails when (in a line) the solution is returned in other order Hi all!, well trying to fix some issue i found this, basically, the problem start in this line: fancysets.py:684 ``` a, b = diop_linear(eq(r1, Dummy()) - eq(r2, Dummy()...
c72f122f67553e1af930bac6c35732d2a0bbb776
sympy__sympy-16845
16,845
sympy/sympy
1.5
6ffc2f04ad820e3f592b2107e66a16fd4585ac02
2019-05-16T22:52:03Z
diff --git a/sympy/tensor/array/__init__.py b/sympy/tensor/array/__init__.py index fac9822cd8c7..ecad09e7545d 100644 --- a/sympy/tensor/array/__init__.py +++ b/sympy/tensor/array/__init__.py @@ -204,5 +204,6 @@ from .sparse_ndim_array import MutableSparseNDimArray, ImmutableSparseNDimArray, SparseNDimArray from .ndim...
diff --git a/sympy/core/tests/test_args.py b/sympy/core/tests/test_args.py index 098a0a559ca2..f7ae7575bfd5 100644 --- a/sympy/core/tests/test_args.py +++ b/sympy/core/tests/test_args.py @@ -3843,6 +3843,12 @@ def test_sympy__tensor__array__sparse_ndim_array__ImmutableSparseNDimArray(): assert _test_args(sparr) ...
[ { "components": [ { "doc": "Generate a list comprehension\nIf there is a symbolic dimension, for example, say [i for i in range(1, N)] where\nN is a Symbol, then the expression will not be expanded to an array. Otherwise,\ncalling the doit() function will launch the expansion.\n\nExamples\n=======...
[ "test_sympy__tensor__array__array_comprehension__ArrayComprehension" ]
[ "test_all_classes_are_tested", "test_sympy__assumptions__assume__AppliedPredicate", "test_sympy__assumptions__assume__Predicate", "test_sympy__assumptions__sathandlers__UnevaluatedOnFree", "test_sympy__assumptions__sathandlers__AllArgs", "test_sympy__assumptions__sathandlers__AnyArgs", "test_sympy__assu...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> [Don't merge][GSoC]Added ArrayComprehension class <!-- Your title above should be a short description of what was changed. Do not include the issue number in the title. --> #### References to othe...
c72f122f67553e1af930bac6c35732d2a0bbb776
sympy__sympy-16843
16,843
sympy/sympy
1.5
d2308e8eb55ed6acb24bcd8dbb8c410c9e5e9d5c
2019-05-16T13:22:59Z
diff --git a/sympy/functions/__init__.py b/sympy/functions/__init__.py index bcacdc3c08f6..83049f5e0b37 100644 --- a/sympy/functions/__init__.py +++ b/sympy/functions/__init__.py @@ -26,7 +26,7 @@ erfinv, erfcinv, erf2inv, Ei, expint, E1, li, Li, Si, Ci, Shi, Chi, fresnels, fresnelc) from sympy.funct...
diff --git a/sympy/core/tests/test_args.py b/sympy/core/tests/test_args.py index 1a03df681874..37756114b63b 100644 --- a/sympy/core/tests/test_args.py +++ b/sympy/core/tests/test_args.py @@ -2218,6 +2218,10 @@ def test_sympy__functions__special__gamma_functions__uppergamma(): from sympy.functions.special.gamma_fun...
[ { "components": [ { "doc": "The multivariate gamma function is a generalization of the gamma function i.e,\n\n.. math::\n \\Gamma_p(z) = \\pi^{p(p-1)/4}\\prod_{k=1}^p \\Gamma[z + (1 - k)/2].\n\nSpecial case, multigamma(x, 1) = gamma(x)\n\nParameters\n==========\n\np: order or dimension of the m...
[ "test_sympy__functions__special__gamma_functions__multigamma", "test_gamma", "test_gamma_rewrite", "test_gamma_series", "test_lowergamma", "test_uppergamma", "test_polygamma", "test_polygamma_expand_func", "test_loggamma", "test_polygamma_expansion", "test_issue_8657", "test_issue_8524", "te...
[ "test_all_classes_are_tested", "test_sympy__assumptions__assume__AppliedPredicate", "test_sympy__assumptions__assume__Predicate", "test_sympy__assumptions__sathandlers__UnevaluatedOnFree", "test_sympy__assumptions__sathandlers__AllArgs", "test_sympy__assumptions__sathandlers__AnyArgs", "test_sympy__assu...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Added multigamma 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...
c72f122f67553e1af930bac6c35732d2a0bbb776
pvlib__pvlib-python-718
718
pvlib/pvlib-python
0.5
3c84edd644fa4db54955e2225a183fa3e0405eb0
2019-05-13T14:43:11Z
diff --git a/ci/requirements-py35.yml b/ci/requirements-py35.yml index 65b5c76d00..5fc0077991 100644 --- a/ci/requirements-py35.yml +++ b/ci/requirements-py35.yml @@ -24,4 +24,5 @@ dependencies: - shapely # pvfactors dependency - siphon # conda-forge - pip: + - nrel-pysam - pvfactors==1...
diff --git a/pvlib/test/conftest.py b/pvlib/test/conftest.py index 1c690c2555..8789bf99f4 100644 --- a/pvlib/test/conftest.py +++ b/pvlib/test/conftest.py @@ -151,6 +151,15 @@ def has_numba(): reason='requires pvfactors') +try: + import PySAM # noqa: F401 + has_pysam ...
diff --git a/ci/requirements-py35.yml b/ci/requirements-py35.yml index 65b5c76d00..5fc0077991 100644 --- a/ci/requirements-py35.yml +++ b/ci/requirements-py35.yml @@ -24,4 +24,5 @@ dependencies: - shapely # pvfactors dependency - siphon # conda-forge - pip: + - nrel-pysam - pvfactors==1...
[ { "components": [ { "doc": "Estimates parameters for the CEC single diode model (SDM) using the SAM\nSDK.\n\nParameters\n----------\ncelltype : str\n Value is one of 'monoSi', 'multiSi', 'polySi', 'cis', 'cigs', 'cdte',\n 'amorphous'\nv_mp : float\n Voltage at maximum power point [V]\ni_m...
[ "pvlib/test/test_ivtools.py::test_fit_sde_sandia", "pvlib/test/test_ivtools.py::test_fit_sde_sandia_bad_iv" ]
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Create ivtools pvlib python pull request guidelines ==================================== Thank you for your contribution to pvlib python! You may delete all of these instructions except for the li...
Here is the discussion in the issues of the pull request. <issues> CEC 6-parameter coefficient generation SAM is able to extract the CEC parameters required for calcparams_desoto. This is done through the 'CEC Performance Model with User Entered Specifications' module model, and coefficients are automatically extracte...
3c84edd644fa4db54955e2225a183fa3e0405eb0
sympy__sympy-16825
16,825
sympy/sympy
1.5
6ffc2f04ad820e3f592b2107e66a16fd4585ac02
2019-05-13T12:06:41Z
diff --git a/sympy/stats/joint_rv_types.py b/sympy/stats/joint_rv_types.py index 224e3f0b9230..f7614a0beb81 100644 --- a/sympy/stats/joint_rv_types.py +++ b/sympy/stats/joint_rv_types.py @@ -1,6 +1,7 @@ from sympy import (sympify, S, pi, sqrt, exp, Lambda, Indexed, Gt, IndexedBase, besselk, gamma,...
diff --git a/sympy/core/tests/test_args.py b/sympy/core/tests/test_args.py index 098a0a559ca2..722bf012b762 100644 --- a/sympy/core/tests/test_args.py +++ b/sympy/core/tests/test_args.py @@ -1501,6 +1501,11 @@ def test_sympy__stats__joint_rv_types__NormalGammaDistribution(): from sympy.stats.joint_rv_types import ...
[ { "components": [ { "doc": "", "lines": [ 401, 433 ], "name": "GeneralizedMultivariateLogGammaDistribution", "signature": "class GeneralizedMultivariateLogGammaDistribution(JointDistribution):", "type": "class" }, { "d...
[ "test_sympy__stats__joint_rv_types__GeneralizedMultivariateLogGammaDistribution", "test_GeneralizedMultivariateLogGammaDistribution" ]
[ "test_all_classes_are_tested", "test_sympy__assumptions__assume__AppliedPredicate", "test_sympy__assumptions__assume__Predicate", "test_sympy__assumptions__sathandlers__UnevaluatedOnFree", "test_sympy__assumptions__sathandlers__AllArgs", "test_sympy__assumptions__sathandlers__AnyArgs", "test_sympy__assu...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Added Generalized Multivariate Log Gamma Distribution <!-- Your title above should be a short description of what was changed. Do not include the issue number in the title. --> #### References to ...
c72f122f67553e1af930bac6c35732d2a0bbb776
sympy__sympy-16815
16,815
sympy/sympy
1.5
20234eb7782f1f66c1f1d2a6d05f1179091add0a
2019-05-12T11:50:53Z
diff --git a/sympy/stats/__init__.py b/sympy/stats/__init__.py index ee5889933ebe..12df043bf44b 100644 --- a/sympy/stats/__init__.py +++ b/sympy/stats/__init__.py @@ -50,7 +50,7 @@ from . import frv_types from .frv_types import ( - Bernoulli, Binomial, Coin, Die, DiscreteUniform, FiniteRV, Hypergeometric, + B...
diff --git a/sympy/core/tests/test_args.py b/sympy/core/tests/test_args.py index b4912d134d17..b78927ac34e1 100644 --- a/sympy/core/tests/test_args.py +++ b/sympy/core/tests/test_args.py @@ -1179,6 +1179,10 @@ def test_sympy__stats__frv_types__BinomialDistribution(): from sympy.stats.frv_types import BinomialDistr...
[ { "components": [ { "doc": "", "lines": [ 314, 332 ], "name": "BetaBinomialDistribution", "signature": "class BetaBinomialDistribution(SingleFiniteDistribution):", "type": "class" }, { "doc": "", "lines": [ ...
[ "test_sympy__stats__frv_types__BetaBinomialDistribution", "test_discreteuniform", "test_dice", "test_given", "test_domains", "test_dice_bayes", "test_die_args", "test_bernoulli", "test_cdf", "test_coins", "test_binomial_verify_parameters", "test_binomial_numeric", "test_binomial_quantile", ...
[ "test_all_classes_are_tested", "test_sympy__assumptions__assume__AppliedPredicate", "test_sympy__assumptions__assume__Predicate", "test_sympy__assumptions__sathandlers__UnevaluatedOnFree", "test_sympy__assumptions__sathandlers__AllArgs", "test_sympy__assumptions__sathandlers__AnyArgs", "test_sympy__assu...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> [GSoC] Added Beta-binomial distribution <!-- 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...
c72f122f67553e1af930bac6c35732d2a0bbb776
sympy__sympy-16814
16,814
sympy/sympy
1.5
19341137da6e3ae8fc59784f5d044412539d05e9
2019-05-12T08:57:13Z
diff --git a/sympy/stats/__init__.py b/sympy/stats/__init__.py index db7d4832713c..c38255f01257 100644 --- a/sympy/stats/__init__.py +++ b/sympy/stats/__init__.py @@ -61,9 +61,9 @@ Arcsin, Benini, Beta, BetaNoncentral, BetaPrime, Cauchy, Chi, ChiNoncentral, ChiSquared, Dagum, Erlang, Exponential, FDistributio...
diff --git a/sympy/core/tests/test_args.py b/sympy/core/tests/test_args.py index 32566f4c34f9..802fca1881d9 100644 --- a/sympy/core/tests/test_args.py +++ b/sympy/core/tests/test_args.py @@ -1387,6 +1387,10 @@ def test_sympy__stats__crv_types__NormalDistribution(): from sympy.stats.crv_types import NormalDistribut...
[ { "components": [ { "doc": "", "lines": [ 2340, 2381 ], "name": "GaussianInverseDistribution", "signature": "class GaussianInverseDistribution(SingleContinuousDistribution):", "type": "class" }, { "doc": "", "l...
[ "test_sympy__stats__crv_types__GaussianInverseDistribution", "test_single_normal", "test_conditional_1d", "test_ContinuousDomain", "test_symbolic", "test_cdf", "test_characteristic_function", "test_moment_generating_function", "test_sample_continuous", "test_ContinuousRV", "test_arcsin", "test...
[ "test_all_classes_are_tested", "test_sympy__assumptions__assume__AppliedPredicate", "test_sympy__assumptions__assume__Predicate", "test_sympy__assumptions__sathandlers__UnevaluatedOnFree", "test_sympy__assumptions__sathandlers__AllArgs", "test_sympy__assumptions__sathandlers__AnyArgs", "test_sympy__assu...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> [GSoC] Added Inverse Normal distribution <!-- 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 ...
c72f122f67553e1af930bac6c35732d2a0bbb776
sympy__sympy-16808
16,808
sympy/sympy
1.5
0b090278fd9bd2f9f6f02268b0d0ccf968a9db7b
2019-05-11T10:53:55Z
diff --git a/sympy/stats/joint_rv.py b/sympy/stats/joint_rv.py index 30cddf1e2ced..9a34cd4054b8 100644 --- a/sympy/stats/joint_rv.py +++ b/sympy/stats/joint_rv.py @@ -101,6 +101,7 @@ def marginal_distribution(self, *indices): if self.distribution.is_Continuous: f = Lambda(sym, integrate(self.distr...
diff --git a/sympy/core/tests/test_args.py b/sympy/core/tests/test_args.py index 7d8ea35b66cf..b86a8d3dd501 100644 --- a/sympy/core/tests/test_args.py +++ b/sympy/core/tests/test_args.py @@ -1496,6 +1496,13 @@ def test_sympy__stats__joint_rv_types__NormalGammaDistribution(): from sympy.stats.joint_rv_types import ...
[ { "components": [ { "doc": "", "lines": [ 255, 276 ], "name": "MultinomialDistribution", "signature": "class MultinomialDistribution(JointDistribution):", "type": "class" }, { "doc": "", "lines": [ 26...
[ "test_sympy__stats__joint_rv_types__MultinomialDistribution", "test_sympy__stats__joint_rv_types__NegativeMultinomialDistribution", "test_Multinomial", "test_NegativeMultinomial" ]
[ "test_all_classes_are_tested", "test_sympy__assumptions__assume__AppliedPredicate", "test_sympy__assumptions__assume__Predicate", "test_sympy__assumptions__sathandlers__UnevaluatedOnFree", "test_sympy__assumptions__sathandlers__AllArgs", "test_sympy__assumptions__sathandlers__AnyArgs", "test_sympy__assu...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Added Multinomial, NegativeMultinomial Distribution <!-- Your title above should be a short description of what was changed. Do not include the issue number in the title. --> #### References to ot...
c72f122f67553e1af930bac6c35732d2a0bbb776
joke2k__faker-954
954
joke2k/faker
null
6a26cd10b24e73f1efb2c53033b294a31f831417
2019-05-10T17:57:22Z
diff --git a/faker/providers/automotive/pl_PL/__init__.py b/faker/providers/automotive/pl_PL/__init__.py new file mode 100644 index 0000000000..965a996b9f --- /dev/null +++ b/faker/providers/automotive/pl_PL/__init__.py @@ -0,0 +1,28 @@ +# coding=utf-8 + +from __future__ import unicode_literals +from .. import Provider...
diff --git a/tests/providers/test_automotive.py b/tests/providers/test_automotive.py index 88c57c5cd0..20f3c39ec8 100644 --- a/tests/providers/test_automotive.py +++ b/tests/providers/test_automotive.py @@ -49,3 +49,15 @@ def setUp(self): def test_sv_SE_plate_format(self): plate = self.factory.license_pla...
[ { "components": [ { "doc": "", "lines": [ 7, 28 ], "name": "Provider", "signature": "class Provider(AutomotiveProvider):", "type": "class" }, { "doc": "", "lines": [ 27, 28 ], ...
[ "tests/providers/test_automotive.py::TestPtBR::test_plate_has_been_generated", "tests/providers/test_automotive.py::TestHuHU::test_hu_HU_plate_format", "tests/providers/test_automotive.py::TestDeDe::test_de_DE_plate_format", "tests/providers/test_automotive.py::TestSvSE::test_sv_SE_plate_format", "tests/pro...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Pldevelop ### What does this changes PESEL and automotive plates for Poland with tests. ---------- </request> There are several new functions or classes that need to be implemented, using the d...
6edfdbf6ae90b0153309e3bf066aa3b2d16494a7
falconry__falcon-1537
1,537
falconry/falcon
null
e46ca1c1695fb43fedd300c1a771bfff8bf5c34e
2019-05-07T20:14:07Z
diff --git a/docs/_newsfragments/urlencoded-form-media-handler.feature.rst b/docs/_newsfragments/urlencoded-form-media-handler.feature.rst new file mode 100644 index 000000000..9350c3745 --- /dev/null +++ b/docs/_newsfragments/urlencoded-form-media-handler.feature.rst @@ -0,0 +1,2 @@ +``URLEncodedFormHandler`` was adde...
diff --git a/tests/test_media_urlencoded.py b/tests/test_media_urlencoded.py new file mode 100644 index 000000000..6f05c2c7b --- /dev/null +++ b/tests/test_media_urlencoded.py @@ -0,0 +1,70 @@ +import io + +import pytest + +import falcon +from falcon import media +from falcon import testing + + +def test_deserialize_em...
diff --git a/docs/_newsfragments/urlencoded-form-media-handler.feature.rst b/docs/_newsfragments/urlencoded-form-media-handler.feature.rst new file mode 100644 index 000000000..9350c3745 --- /dev/null +++ b/docs/_newsfragments/urlencoded-form-media-handler.feature.rst @@ -0,0 +1,2 @@ +``URLEncodedFormHandler`` was adde...
[ { "components": [ { "doc": "URL-encoded form data handler.\n\nThis handler parses ``application/x-www-form-urlencoded`` HTML forms to a\n``dict`` in a similar way that URL query parameters are parsed.\n\nKeyword Arguments:\n keep_blank (bool): Whether to keep empty-string values from the form\n...
[ "tests/test_media_urlencoded.py::test_deserialize_empty_form", "tests/test_media_urlencoded.py::test_deserialize_invalid_unicode", "tests/test_media_urlencoded.py::test_urlencoded_form_handler_serialize[data0-hello=world]", "tests/test_media_urlencoded.py::test_urlencoded_form_handler_serialize[data1-number=1...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> feat(media): add URL-encoded form data handler ~~Just dropping a quick sketch from PyCon sprints, this still a bit rough on edges.~~ We could probably polish documentation & recipes etc, but otherw...
77d5e6394a88ead151c9469494749f95f06b24bf
falconry__falcon-1523
1,523
falconry/falcon
null
0fa55df85849650e6929152887d63f666e4389d4
2019-05-06T18:20:18Z
diff --git a/docs/api/cors.rst b/docs/api/cors.rst new file mode 100644 index 000000000..e67af1650 --- /dev/null +++ b/docs/api/cors.rst @@ -0,0 +1,34 @@ +.. _cors: + +CORS +===== + +`Cross Origin Resource Sharing <https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS>`_ +(CORS) is an additional security check perform...
diff --git a/tests/test_headers.py b/tests/test_headers.py index 1ee19c8ac..1c2951498 100644 --- a/tests/test_headers.py +++ b/tests/test_headers.py @@ -16,6 +16,12 @@ def client(): return testing.TestClient(app) +@pytest.fixture(scope='function') +def cors_client(): + app = falcon.API(cors_enable=True) + ...
diff --git a/docs/api/cors.rst b/docs/api/cors.rst new file mode 100644 index 000000000..e67af1650 --- /dev/null +++ b/docs/api/cors.rst @@ -0,0 +1,34 @@ +.. _cors: + +CORS +===== + +`Cross Origin Resource Sharing <https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS>`_ +(CORS) is an additional security check perform...
[ { "components": [ { "doc": "", "lines": [ 2, 29 ], "name": "CORSMiddleware", "signature": "class CORSMiddleware(object):", "type": "class" }, { "doc": "Implement a simple blanket CORS policy for all routes.\n\nThis mid...
[ "tests/test_headers.py::TestHeaders::test_enabled_cors_should_add_extra_headers_on_response", "tests/test_headers.py::TestHeaders::test_enabled_cors_should_accept_all_origins_requests", "tests/test_headers.py::TestHeaders::test_enabled_cors_handles_preflighting", "tests/test_headers.py::TestHeaders::test_enab...
[ "tests/test_headers.py::TestHeaders::test_content_length", "tests/test_headers.py::TestHeaders::test_declared_content_length_on_head", "tests/test_headers.py::TestHeaders::test_declared_content_length_overridden_by_no_body", "tests/test_headers.py::TestHeaders::test_declared_content_length_overriden_by_body_l...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> feat(API): Adding the flag to handle basic CORS policies in the framework Added a new flag to `falcon.API` class init method in order to turn on/off feature to handle basic CORS policies in the framew...
77d5e6394a88ead151c9469494749f95f06b24bf
scikit-learn__scikit-learn-13806
13,806
scikit-learn/scikit-learn
0.22
9adba491a209b2768274cd7f0499c6e41df8c8fa
2019-05-06T14:14:55Z
diff --git a/doc/whats_new/v0.22.rst b/doc/whats_new/v0.22.rst index 0518d6c9e0de4..44606556e7469 100644 --- a/doc/whats_new/v0.22.rst +++ b/doc/whats_new/v0.22.rst @@ -47,6 +47,12 @@ Changelog of the maximization procedure in :term:`fit`. :pr:`13618` by :user:`Yoshihiro Uchida <c56pony>`. +:mod:`sklearn.pipeli...
diff --git a/sklearn/tests/test_pipeline.py b/sklearn/tests/test_pipeline.py index bae3f0080da35..c8df039e347c6 100644 --- a/sklearn/tests/test_pipeline.py +++ b/sklearn/tests/test_pipeline.py @@ -16,6 +16,7 @@ from sklearn.utils.testing import assert_raises_regex from sklearn.utils.testing import assert_raise_messag...
diff --git a/doc/whats_new/v0.22.rst b/doc/whats_new/v0.22.rst index 0518d6c9e0de4..44606556e7469 100644 --- a/doc/whats_new/v0.22.rst +++ b/doc/whats_new/v0.22.rst @@ -47,6 +47,12 @@ Changelog of the maximization procedure in :term:`fit`. :pr:`13618` by :user:`Yoshihiro Uchida <c56pony>`. +:mod:`sklearn.pipeli...
[ { "components": [ { "doc": "Apply transforms, and score_samples of the final estimator.\n\nParameters\n----------\nX : iterable\n Data to predict on. Must fulfill input requirements of first step\n of the pipeline.\n\nReturns\n-------\ny_score : ndarray, shape (n_samples,)", "lines":...
[ "sklearn/tests/test_pipeline.py::test_pipeline_score_samples_pca_lof", "sklearn/tests/test_pipeline.py::test_score_samples_on_pipeline_without_score_samples" ]
[ "sklearn/tests/test_pipeline.py::test_pipeline_init", "sklearn/tests/test_pipeline.py::test_pipeline_init_tuple", "sklearn/tests/test_pipeline.py::test_pipeline_methods_anova", "sklearn/tests/test_pipeline.py::test_pipeline_fit_params", "sklearn/tests/test_pipeline.py::test_pipeline_sample_weight_supported"...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> [MRG] Add function score_samples to Pipeline (fix issue #12542) #### Reference Issues/PRs Fix issue #12542. #### What does this implement/fix? Explain your changes. The pull request adds a functi...
c96e0958da46ebef482a4084cdda3285d5f5ad23
pydata__xarray-2922
2,922
pydata/xarray
0.12
65a5bff79479c4b56d6f733236fe544b7f4120a8
2019-04-26T17:09:02Z
diff --git a/doc/api.rst b/doc/api.rst index 4492d882355..43a9cf53ead 100644 --- a/doc/api.rst +++ b/doc/api.rst @@ -165,6 +165,7 @@ Computation Dataset.groupby_bins Dataset.rolling Dataset.rolling_exp + Dataset.weighted Dataset.coarsen Dataset.resample Dataset.diff @@ -340,6 +341,7 @@ Computa...
diff --git a/xarray/tests/test_weighted.py b/xarray/tests/test_weighted.py new file mode 100644 index 00000000000..24531215dfb --- /dev/null +++ b/xarray/tests/test_weighted.py @@ -0,0 +1,311 @@ +import numpy as np +import pytest + +import xarray as xr +from xarray import DataArray +from xarray.tests import assert_allc...
diff --git a/doc/api.rst b/doc/api.rst index 4492d882355..43a9cf53ead 100644 --- a/doc/api.rst +++ b/doc/api.rst @@ -165,6 +165,7 @@ Computation Dataset.groupby_bins Dataset.rolling Dataset.rolling_exp + Dataset.weighted Dataset.coarsen Dataset.resample Dataset.diff @@ -340,6 +341,7 @@ Computa...
[ { "components": [ { "doc": "Weighted operations.\n\nParameters\n----------\nweights : DataArray\n An array of weights associated with the values in this Dataset.\n Each value in the data contributes to the reduction operation\n according to its associated weight.\n\nNotes\n-----\n``weight...
[ "xarray/tests/test_weighted.py::test_weighted_non_DataArray_weights[True]", "xarray/tests/test_weighted.py::test_weighted_non_DataArray_weights[False]", "xarray/tests/test_weighted.py::test_weighted_weights_nan_raises[weights0-True]", "xarray/tests/test_weighted.py::test_weighted_weights_nan_raises[weights0-F...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Feature/weighted - [X] Closes #422 - [X] Tests added - [X] Fully documented, including `whats-new.rst` for all changes and `api.rst` for new API I took a shot at the weighted function - I adde...
Here is the discussion in the issues of the pull request. <issues> add average function It would be nice to be able to do `ds.average()` to compute weighted averages (e.g. for geo data). Of course this would require the axes to be in a predictable order. Or to give a weight per dimension... ---------- Module error chec...
1c198a191127c601d091213c4b3292a8bb3054e1
sympy__sympy-16693
16,693
sympy/sympy
1.5
967df3b9dc4a5b98a019d18883d72ac14a5955d6
2019-04-20T07:41:44Z
diff --git a/sympy/core/basic.py b/sympy/core/basic.py index bac4d403209a..208b1be2b12a 100644 --- a/sympy/core/basic.py +++ b/sympy/core/basic.py @@ -1666,7 +1666,7 @@ def _visit_eval_derivative_array(self, base): # Types are (base: array/matrix, self: scalar) # Base is some kind of array/matrix, ...
diff --git a/sympy/matrices/expressions/tests/test_derivatives.py b/sympy/matrices/expressions/tests/test_derivatives.py index fd7bf3987901..fe0b8e7b96f7 100644 --- a/sympy/matrices/expressions/tests/test_derivatives.py +++ b/sympy/matrices/expressions/tests/test_derivatives.py @@ -10,6 +10,7 @@ from sympy.matrices.ex...
[ { "components": [ { "doc": "", "lines": [ 204, 208 ], "name": "MatrixExpr._eval_derivative_array", "signature": "def _eval_derivative_array(self, x):", "type": "function" } ], "file": "sympy/matrices/expressions/matexpr.py" ...
[ "test_matrix_derivative_by_scalar" ]
[ "test_matrix_derivative_non_matrix_result", "test_matrix_derivative_trivial_cases", "test_matrix_derivative_with_inverse", "test_matrix_derivative_vectors_and_scalars", "test_matrix_derivatives_of_traces", "test_derivatives_of_complicated_matrix_expr", "test_mixed_deriv_mixed_expressions", "test_deriv...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> allow matrix expression to be derived by scalar …d derivatives <!-- Your title above should be a short description of what was changed. Do not include the issue number in the title. --> #### Re...
c72f122f67553e1af930bac6c35732d2a0bbb776
sympy__sympy-16685
16,685
sympy/sympy
1.5
d10b94aa5a5863957c63eef687cee2a9d27bf99a
2019-04-19T10:19:37Z
diff --git a/sympy/matrices/__init__.py b/sympy/matrices/__init__.py index fe3ec2b31615..9eccd3757051 100644 --- a/sympy/matrices/__init__.py +++ b/sympy/matrices/__init__.py @@ -27,4 +27,4 @@ Transpose, ZeroMatrix, OneMatrix, blockcut, block_collapse, matrix_symbols, Adjoint, hadamard_product, HadamardProduc...
diff --git a/sympy/matrices/expressions/tests/test_hadamard.py b/sympy/matrices/expressions/tests/test_hadamard.py index d38e36aaa7ad..9864040fd29b 100644 --- a/sympy/matrices/expressions/tests/test_hadamard.py +++ b/sympy/matrices/expressions/tests/test_hadamard.py @@ -1,4 +1,4 @@ -from sympy import Identity +from sym...
[ { "components": [ { "doc": "Canonicalize the Hadamard product ``x`` with mathematical properties.\n\nExamples\n========\n\n>>> from sympy.matrices.expressions import MatrixSymbol, HadamardProduct\n>>> from sympy.matrices.expressions import OneMatrix, ZeroMatrix\n>>> from sympy.matrices.expressions...
[ "test_canonicalize" ]
[ "test_HadamardProduct", "test_HadamardProduct_isnt_commutative", "test_mixed_indexing", "test_hadamard" ]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Canonicalization of Hadamard Product <!-- 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 P...
c72f122f67553e1af930bac6c35732d2a0bbb776
sympy__sympy-16676
16,676
sympy/sympy
1.5
6da0ab837c472e933145cf37fd2ab0634ffa1aa6
2019-04-17T22:34:46Z
diff --git a/sympy/matrices/expressions/matexpr.py b/sympy/matrices/expressions/matexpr.py index b90c9cc933b7..8e4da20e3fa0 100644 --- a/sympy/matrices/expressions/matexpr.py +++ b/sympy/matrices/expressions/matexpr.py @@ -980,6 +980,45 @@ def __hash__(self): return super(GenericZeroMatrix, self).__hash__() ...
diff --git a/sympy/core/tests/test_args.py b/sympy/core/tests/test_args.py index eac4113f90c5..7d8ea35b66cf 100644 --- a/sympy/core/tests/test_args.py +++ b/sympy/core/tests/test_args.py @@ -2688,6 +2688,12 @@ def test_sympy__matrices__expressions__matexpr__ZeroMatrix(): from sympy.matrices.expressions.matexpr imp...
[ { "components": [ { "doc": "Matrix whose all entries are ones.", "lines": [ 983, 1019 ], "name": "OneMatrix", "signature": "class OneMatrix(MatrixExpr):", "type": "class" }, { "doc": "", "lines": [ 98...
[ "test_sympy__matrices__expressions__matexpr__OneMatrix", "test_det", "test_eval_determinant", "test_shape", "test_matexpr", "test_subs", "test_ZeroMatrix", "test_ZeroMatrix_doit", "test_OneMatrix", "test_OneMatrix_doit", "test_Identity", "test_Identity_doit", "test_addition", "test_multipl...
[ "test_all_classes_are_tested", "test_sympy__assumptions__assume__AppliedPredicate", "test_sympy__assumptions__assume__Predicate", "test_sympy__assumptions__sathandlers__UnevaluatedOnFree", "test_sympy__assumptions__sathandlers__AllArgs", "test_sympy__assumptions__sathandlers__AnyArgs", "test_sympy__assu...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> added OneMatrix for matrix expressions with only ones <!-- Your title above should be a short description of what was changed. Do not include the issue number in the title. --> #### References to ...
c72f122f67553e1af930bac6c35732d2a0bbb776
conan-io__conan-4963
4,963
conan-io/conan
null
84a38590987ecb9f3011f73babc95598ea62535f
2019-04-12T10:24:34Z
diff --git a/conans/client/tools/version.py b/conans/client/tools/version.py new file mode 100644 index 00000000000..7822658781b --- /dev/null +++ b/conans/client/tools/version.py @@ -0,0 +1,50 @@ +# coding=utf-8 + +from functools import total_ordering + +from semver import SemVer + +from conans.errors import ConanExce...
diff --git a/conans/test/unittests/client/tools/test_version.py b/conans/test/unittests/client/tools/test_version.py new file mode 100644 index 00000000000..46ca9a3983a --- /dev/null +++ b/conans/test/unittests/client/tools/test_version.py @@ -0,0 +1,111 @@ +# coding=utf-8 + + +import unittest + +import six + +from con...
[ { "components": [ { "doc": "", "lines": [ 11, 50 ], "name": "Version", "signature": "class Version(object):", "type": "class" }, { "doc": "", "lines": [ 15, 20 ], "name": "Ve...
[ "conans/test/unittests/client/tools/test_version.py::ToolVersionMainComponentsTests::test_compare", "conans/test/unittests/client/tools/test_version.py::ToolVersionMainComponentsTests::test_convert_str", "conans/test/unittests/client/tools/test_version.py::ToolVersionMainComponentsTests::test_gt", "conans/tes...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Implement tools.Version (based on SemVer) Changelog: Feature: Create `tools.Version` with _limited_ capabilities Docs: https://github.com/conan-io/docs/pull/1253 * I'm using `loose=True` to allow...
4a5b19a75db9225316c8cb022a2dfb9705a2af34
scrapy__scrapy-3739
3,739
scrapy/scrapy
null
6e49c379a8ecfe92c99a37b6bb6d7e440df56bd9
2019-04-10T11:08:17Z
diff --git a/docs/topics/contracts.rst b/docs/topics/contracts.rst index 70f20d4ed36..9337375bb7c 100644 --- a/docs/topics/contracts.rst +++ b/docs/topics/contracts.rst @@ -120,3 +120,23 @@ get the failures pretty printed:: for header in self.args: if header not in response.headers: ...
diff --git a/scrapy/commands/check.py b/scrapy/commands/check.py index b8a9ef989e7..ab73e85e7fb 100644 --- a/scrapy/commands/check.py +++ b/scrapy/commands/check.py @@ -6,7 +6,7 @@ from scrapy.commands import ScrapyCommand from scrapy.contracts import ContractsManager -from scrapy.utils.misc import load_object +fro...
diff --git a/docs/topics/contracts.rst b/docs/topics/contracts.rst index 70f20d4ed36..9337375bb7c 100644 --- a/docs/topics/contracts.rst +++ b/docs/topics/contracts.rst @@ -120,3 +120,23 @@ get the failures pretty printed:: for header in self.args: if header not in response.headers: ...
[ { "components": [ { "doc": "Temporarily set environment variables inside the context manager and\nfully restore previous environment afterwards", "lines": [ 150, 164 ], "name": "set_environ", "signature": "def set_environ(**kwargs):", "ty...
[ "tests/test_utils_misc/__init__.py::UtilsMiscTestCase::test_arg_to_iter", "tests/test_utils_misc/__init__.py::UtilsMiscTestCase::test_create_instance", "tests/test_utils_misc/__init__.py::UtilsMiscTestCase::test_load_object", "tests/test_utils_misc/__init__.py::UtilsMiscTestCase::test_set_environ", "tests/t...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> [MRG+1] Add SCRAPY_CHECK environment variable This PR implements the environment variable when running `scrapy check` as asked in #3704 . This way it is possible to have different behaviour in the scr...
Here is the discussion in the issues of the pull request. <issues> Set environment variable when running scrapy check Sometimes it is nice to be able to enable/disable functionality, e.g. calculating things in settings.py when just checking spider contracts instead of running a crawl. I therefor propose setting an envi...
57a5460529ff71c42e4d0381265b1b512b1eb09b
sympy__sympy-16576
16,576
sympy/sympy
1.5
c9330b1a062174f5d38bbbbc7afb2f47e2e72d6a
2019-04-06T17:54:46Z
diff --git a/sympy/stats/joint_rv_types.py b/sympy/stats/joint_rv_types.py index 5f3ecbdc9894..de452368a5ef 100644 --- a/sympy/stats/joint_rv_types.py +++ b/sympy/stats/joint_rv_types.py @@ -1,5 +1,6 @@ -from sympy import (sympify, S, pi, sqrt, exp, Lambda, Indexed, Gt, - IndexedBase, besselk, gamma, Interval, Range...
diff --git a/sympy/core/tests/test_args.py b/sympy/core/tests/test_args.py index b86a8d3dd501..29d785737a6a 100644 --- a/sympy/core/tests/test_args.py +++ b/sympy/core/tests/test_args.py @@ -1496,6 +1496,14 @@ def test_sympy__stats__joint_rv_types__NormalGammaDistribution(): from sympy.stats.joint_rv_types import ...
[ { "components": [ { "doc": "", "lines": [ 256, 275 ], "name": "MultivariateBetaDistribution", "signature": "class MultivariateBetaDistribution(JointDistribution):", "type": "class" }, { "doc": "", "lines": [ ...
[ "test_sympy__stats__joint_rv_types__MultivariateBetaDistribution", "test_sympy__stats__joint_rv_types__MultivariateEwensDistribution", "test_MultivariateBeta", "test_MultivariateEwens" ]
[ "test_all_classes_are_tested", "test_sympy__assumptions__assume__AppliedPredicate", "test_sympy__assumptions__assume__Predicate", "test_sympy__assumptions__sathandlers__UnevaluatedOnFree", "test_sympy__assumptions__sathandlers__AllArgs", "test_sympy__assumptions__sathandlers__AnyArgs", "test_sympy__assu...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Addition of Dirichlet, Ewens Distributions <!-- Your title above should be a short description of what was changed. Do not include the issue number in the title. --> #### References <!-- If this ...
c72f122f67553e1af930bac6c35732d2a0bbb776
sympy__sympy-16522
16,522
sympy/sympy
1.5
fb98dbb5a50dc13489b365ea6558e1efc5e62377
2019-03-31T17:55:05Z
diff --git a/sympy/combinatorics/fp_groups.py b/sympy/combinatorics/fp_groups.py index 8540e328057c..a3e9de25d22e 100644 --- a/sympy/combinatorics/fp_groups.py +++ b/sympy/combinatorics/fp_groups.py @@ -1,6 +1,7 @@ """Finitely Presented Groups and its algorithms. """ from __future__ import print_function, division ...
diff --git a/sympy/combinatorics/tests/test_fp_groups.py b/sympy/combinatorics/tests/test_fp_groups.py index b588e229b072..36f0428922da 100644 --- a/sympy/combinatorics/tests/test_fp_groups.py +++ b/sympy/combinatorics/tests/test_fp_groups.py @@ -225,8 +225,19 @@ def test_permutation_methods(): S = FpSubgroup(G, G...
[ { "components": [ { "doc": "Return ``True`` if group is Cyclic.", "lines": [ 516, 528 ], "name": "FpGroup.is_cyclic", "signature": "def is_cyclic(self):", "type": "function" } ], "file": "sympy/combinatorics/fp_groups.py" ...
[ "test_index" ]
[ "test_low_index_subgroups", "test_subgroup_presentations", "test_fp_subgroup", "test_permutation_methods", "test_simplify_presentation", "test_has", "test_generate", "test_order", "test_equality", "test_stabilizer", "test_center", "test_centralizer", "test_coset_rank", "test_coset_factor",...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Added function to check if a group is Cyclic or not <!-- Your title above should be a short description of what was changed. Do not include the issue number in the title. --> <!-- If this pull req...
c72f122f67553e1af930bac6c35732d2a0bbb776
scikit-learn__scikit-learn-13549
13,549
scikit-learn/scikit-learn
0.21
66cc1c7342f7f0cc0dc57fb6d56053fc46c8e5f0
2019-03-31T16:22:16Z
diff --git a/doc/whats_new/v0.21.rst b/doc/whats_new/v0.21.rst index 749fa73db7458..996952602e35c 100644 --- a/doc/whats_new/v0.21.rst +++ b/doc/whats_new/v0.21.rst @@ -691,6 +691,10 @@ Support for Python 3.4 and below has been officially dropped. :mod:`sklearn.utils` .................... +- |Feature| :func:`utils....
diff --git a/sklearn/utils/tests/test_utils.py b/sklearn/utils/tests/test_utils.py index 233d3c87efb28..f81a4830d7420 100644 --- a/sklearn/utils/tests/test_utils.py +++ b/sklearn/utils/tests/test_utils.py @@ -93,6 +93,67 @@ def test_resample(): assert_equal(len(resample([1, 2], n_samples=5)), 5) +def test_resa...
diff --git a/doc/whats_new/v0.21.rst b/doc/whats_new/v0.21.rst index 749fa73db7458..996952602e35c 100644 --- a/doc/whats_new/v0.21.rst +++ b/doc/whats_new/v0.21.rst @@ -691,6 +691,10 @@ Support for Python 3.4 and below has been officially dropped. :mod:`sklearn.utils` .................... +- |Feature| :func:`utils....
[ { "components": [ { "doc": "Computes approximate mode of multivariate hypergeometric.\n\nThis is an approximation to the mode of the multivariate\nhypergeometric given by class_counts and n_draws.\nIt shouldn't be off by more than one.\n\nIt is the mostly likely outcome of drawing n_draws many\nsa...
[ "sklearn/utils/tests/test_utils.py::test_resample_stratified", "sklearn/utils/tests/test_utils.py::test_resample_stratified_replace", "sklearn/utils/tests/test_utils.py::test_resample_stratify_2dy", "sklearn/utils/tests/test_utils.py::test_resample_stratify_sparse_error" ]
[ "sklearn/utils/tests/test_utils.py::test_make_rng", "sklearn/utils/tests/test_utils.py::test_deprecated", "sklearn/utils/tests/test_utils.py::test_resample", "sklearn/utils/tests/test_utils.py::test_safe_mask", "sklearn/utils/tests/test_utils.py::test_column_or_1d", "sklearn/utils/tests/test_utils.py::tes...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> [MRG] Add a stratify option to utils.resample <!-- Thanks for contributing a pull request! Please ensure you have taken a look at the contribution guidelines: https://github.com/scikit-learn/scikit-...
Here is the discussion in the issues of the pull request. <issues> Stratified subsampler utility? I have some data `X` and `y` that I want to subsample (i.e. only keep a subset of the samples) in a stratified way. Using something like ```py _, X_sub, _, y_sub = train_test_split( X, y, stratify=stratify, ...
66cc1c7342f7f0cc0dc57fb6d56053fc46c8e5f0
sympy__sympy-16516
16,516
sympy/sympy
1.5
fb98dbb5a50dc13489b365ea6558e1efc5e62377
2019-03-31T13:46:58Z
diff --git a/doc/src/modules/crypto.rst b/doc/src/modules/crypto.rst index f7808fa8f588..2cce9f948563 100644 --- a/doc/src/modules/crypto.rst +++ b/doc/src/modules/crypto.rst @@ -50,10 +50,18 @@ substitutions at different times in the message. .. autofunction:: decipher_shift +.. autofunction:: encipher_rot13 + +....
diff --git a/sympy/crypto/tests/test_crypto.py b/sympy/crypto/tests/test_crypto.py index e65f8182829a..f999cbf76fc8 100644 --- a/sympy/crypto/tests/test_crypto.py +++ b/sympy/crypto/tests/test_crypto.py @@ -14,7 +14,8 @@ dh_shared_key, decipher_shift, decipher_affine, encipher_bifid, decipher_bifid, bifid...
diff --git a/doc/src/modules/crypto.rst b/doc/src/modules/crypto.rst index f7808fa8f588..2cce9f948563 100644 --- a/doc/src/modules/crypto.rst +++ b/doc/src/modules/crypto.rst @@ -50,10 +50,18 @@ substitutions at different times in the message. .. autofunction:: decipher_shift +.. autofunction:: encipher_rot13 + +....
[ { "components": [ { "doc": "Performs the ROT13 encryption on a given plaintext ```msg```.\n\nNotes\n=====\n\nROT13 is a substitution cipher which substitutes each letter\nin the plaintext message for the letter furthest away from it\nin the English alphabet.\n\nEquivalently, it is just a Caeser (s...
[ "test_cycle_list", "test_encipher_shift", "test_encipher_rot13", "test_encipher_affine", "test_encipher_atbash", "test_encipher_substitution", "test_check_and_join", "test_encipher_vigenere", "test_decipher_vigenere", "test_encipher_hill", "test_decipher_hill", "test_encipher_bifid5", "test_...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Added ROT13 and Atbash to sympy.crypto <!-- 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...
Here is the discussion in the issues of the pull request. <issues> Implementing classical ciphers as special cases of already existing ciphers in crypto.py The file ```/sympy/crypto/crypto.py``` contains implementations of various classical ciphers. Extending this file to include certain other classical ciphers whic...
c72f122f67553e1af930bac6c35732d2a0bbb776
sympy__sympy-16452
16,452
sympy/sympy
1.5
4cdcbd914d66733eee1de77d592bbad3d693b049
2019-03-26T19:55:39Z
diff --git a/sympy/geometry/point.py b/sympy/geometry/point.py index 7630b517cef6..6a061ec78c5b 100644 --- a/sympy/geometry/point.py +++ b/sympy/geometry/point.py @@ -152,7 +152,7 @@ def __new__(cls, *args, **kwargs): raise ValueError(filldedent(''' on_morph value should be 'er...
diff --git a/sympy/matrices/tests/test_commonmatrix.py b/sympy/matrices/tests/test_commonmatrix.py index f71501f1216e..8daa32508411 100644 --- a/sympy/matrices/tests/test_commonmatrix.py +++ b/sympy/matrices/tests/test_commonmatrix.py @@ -308,7 +308,7 @@ def test_vstack(): # PropertiesOnlyMatrix tests def test_atoms(...
[ { "components": [ { "doc": "Returns a SparseMatrix from the given dictionary describing\nthe diagonals of the matrix. The keys are positive for upper\ndiagonals and negative for those below the main diagonal. The\nvalues may be:\n * expressions or single-argument functions,\n * lists or tupl...
[ "test_doktocsr", "test_csrtodok" ]
[ "test__MinimalMatrix", "test_vec", "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", "test_vstack", ...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> banded matrix construction <!-- Your title above should be a short description of what was changed. Do not include the issue number in the title. --> #### References to other Issues or PRs <!-- I...
Here is the discussion in the issues of the pull request. <issues> Modified function for easy creation of banded matrices <!-- 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 Fixes #16178 <!-- If this p...
c72f122f67553e1af930bac6c35732d2a0bbb776
sympy__sympy-16439
16,439
sympy/sympy
1.5
3729e1ba5a2afcfc3ceee7b98b07d5b57303f919
2019-03-25T17:57:37Z
diff --git a/sympy/physics/continuum_mechanics/beam.py b/sympy/physics/continuum_mechanics/beam.py index f4bca0cd9411..80c7b9adcc9b 100644 --- a/sympy/physics/continuum_mechanics/beam.py +++ b/sympy/physics/continuum_mechanics/beam.py @@ -13,6 +13,16 @@ from sympy.integrals import integrate from sympy.series import l...
diff --git a/sympy/physics/continuum_mechanics/tests/test_beam.py b/sympy/physics/continuum_mechanics/tests/test_beam.py index 980bcb1d76ef..5299ce7c98c9 100644 --- a/sympy/physics/continuum_mechanics/tests/test_beam.py +++ b/sympy/physics/continuum_mechanics/tests/test_beam.py @@ -501,6 +501,7 @@ def test_Beam3D(): ...
[ { "components": [ { "doc": "Returns the polar moment of area of the beam\nabout the X axis with respect to the centroid.\n\nExamples\n========\n\n>>> from sympy.physics.continuum_mechanics.beam import Beam3D\n>>> from sympy import symbols\n>>> l, E, G, I, A = symbols('l, E, G, I, A')\n>>> b = Beam...
[ "test_Beam3D", "test_polar_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" ]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Function to calculate Polar moment of inertia of a 3D Beam <!-- Your title above should be a short description of what was changed. Do not include the issue number in the title. --> #### Reference...
Here is the discussion in the issues of the pull request. <issues> No function for calculating polar moment of inertia and section modulus in continuum_mechanics in beam.py There is currently no function to calculate polar moment of inertia and section modulus of the beam . Both of these quantities are important in fur...
c72f122f67553e1af930bac6c35732d2a0bbb776
sympy__sympy-16423
16,423
sympy/sympy
1.5
815be53c35580e119f864466095fb1d7ecd65f4f
2019-03-24T15:14:21Z
diff --git a/sympy/physics/quantum/commutator.py b/sympy/physics/quantum/commutator.py index 487dc923e9f5..94cd53a1f245 100644 --- a/sympy/physics/quantum/commutator.py +++ b/sympy/physics/quantum/commutator.py @@ -2,7 +2,7 @@ from __future__ import print_function, division -from sympy import S, Expr, Mul, Add +fr...
diff --git a/sympy/physics/quantum/tests/test_commutator.py b/sympy/physics/quantum/tests/test_commutator.py index 021698740e04..a8aa1589b753 100644 --- a/sympy/physics/quantum/tests/test_commutator.py +++ b/sympy/physics/quantum/tests/test_commutator.py @@ -6,6 +6,7 @@ a, b, c = symbols('a,b,c') +n = symbols('n',...
[ { "components": [ { "doc": "", "lines": [ 120, 134 ], "name": "Commutator._expand_pow", "signature": "def _expand_pow(self, A, B, sign):", "type": "function" } ], "file": "sympy/physics/quantum/commutator.py" } ]
[ "test_commutator_identities" ]
[ "test_commutator", "test_commutator_dagger" ]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Handle Pow in Commutator expansion. #### Brief description of what is fixed or changed Handle expansion of commutators like ``` [A**2, C] = [A*A, C] -> A*[A, C] + [A, C]*A ``` but for arbitrary i...
c72f122f67553e1af930bac6c35732d2a0bbb776
astropy__astropy-8517
8,517
astropy/astropy
3.1
cfe7616626c00c3dc7a912c1f432c00d52dba8b0
2019-03-21T16:49:54Z
diff --git a/CHANGES.rst b/CHANGES.rst index 9cc0c28c2d96..5d5bf3f541a2 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -10,6 +10,9 @@ astropy.config astropy.constants ^^^^^^^^^^^^^^^^^ +- The version of constants can be specified via ScienceState in a way + that ``constants`` and ``units`` will be consistent. [#851...
diff --git a/astropy/constants/tests/test_prior_version.py b/astropy/constants/tests/test_prior_version.py index 5d13c66a7b98..c7f54ef75b60 100644 --- a/astropy/constants/tests/test_prior_version.py +++ b/astropy/constants/tests/test_prior_version.py @@ -163,6 +163,6 @@ def test_context_manager(): assert const.h...
diff --git a/CHANGES.rst b/CHANGES.rst index 9cc0c28c2d96..5d5bf3f541a2 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -10,6 +10,9 @@ astropy.config astropy.constants ^^^^^^^^^^^^^^^^^ +- The version of constants can be specified via ScienceState in a way + that ``constants`` and ``units`` will be consistent. [#851...
[ { "components": [ { "doc": "Base class for the real version-setters below", "lines": [ 163, 207 ], "name": "base_constants_version", "signature": "class base_constants_version(ScienceState):", "type": "class" }, { "doc...
[ "astropy/constants/tests/test_prior_version.py::test_c", "astropy/constants/tests/test_prior_version.py::test_h", "astropy/constants/tests/test_prior_version.py::test_e", "astropy/constants/tests/test_prior_version.py::test_g0", "astropy/constants/tests/test_prior_version.py::test_b_wien", "astropy/consta...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Set constants version via ScienceState classes Fixes #6948 Add ScienceState classes for `astropy.constants` versions, to allow a user to set constants versions before importing units or constants....
Here is the discussion in the issues of the pull request. <issues> Make units be consistent with versioned constants This motivation for this issue is fixing a subtle but important inconsistency that can now appear because constants are versioned (new feature in v2.0). The basic problem is that some units are effectiv...
12a4d64093b833e198b2736d3cff817a9b286efc
joke2k__faker-930
930
joke2k/faker
null
eb7d9c838cd297c70730c43f2728ce86fe7320d9
2019-03-20T16:04:43Z
diff --git a/faker/providers/company/nl_NL/__init__.py b/faker/providers/company/nl_NL/__init__.py new file mode 100644 index 0000000000..6799303495 --- /dev/null +++ b/faker/providers/company/nl_NL/__init__.py @@ -0,0 +1,109 @@ +# coding=utf-8 + +from __future__ import unicode_literals +from .. import Provider as C...
diff --git a/tests/providers/test_company.py b/tests/providers/test_company.py index 0334a08719..ed2ea4a74f 100644 --- a/tests/providers/test_company.py +++ b/tests/providers/test_company.py @@ -13,6 +13,7 @@ from faker.providers.company.pl_PL import ( company_vat_checksum, regon_checksum, local_regon_checksum, P...
[ { "components": [ { "doc": "", "lines": [ 7, 109 ], "name": "Provider", "signature": "class Provider(CompanyProvider):", "type": "class" }, { "doc": ":example: 'Bol.com'", "lines": [ 99, 103...
[ "tests/providers/test_company.py::TestFiFI::test_company_business_id", "tests/providers/test_company.py::TestJaJP::test_company", "tests/providers/test_company.py::TestPtBR::test_pt_BR_cnpj", "tests/providers/test_company.py::TestPtBR::test_pt_BR_company_id", "tests/providers/test_company.py::TestPtBR::test...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Added Dutch company names Added some prefixes and suffixes for common Dutch company names. Also added the top 500 companies in the Netherlands based on: https://www.mt.nl/management/reputatie/mt-500-...
Here is the discussion in the issues of the pull request. <issues> Support for companies for the nl_NL locale I'm currently using faker in a project and would love to use Dutch company namers. I already made changes to do this and would like to commit these. Can you make a branch avaiable for me so I can ask for a me...
6edfdbf6ae90b0153309e3bf066aa3b2d16494a7
sympy__sympy-16276
16,276
sympy/sympy
1.4
6979792bd194c385a851a8e44925b522630d04de
2019-03-16T12:26:02Z
diff --git a/doc/src/modules/plotting.rst b/doc/src/modules/plotting.rst index e9971d11f777..03ace2caa231 100644 --- a/doc/src/modules/plotting.rst +++ b/doc/src/modules/plotting.rst @@ -45,6 +45,12 @@ Plotting Function Reference .. autofunction:: sympy.plotting.plot_implicit.plot_implicit +PlotGrid Class +-------...
diff --git a/sympy/plotting/tests/test_plot.py b/sympy/plotting/tests/test_plot.py index 3052951889b0..a4a1488c11d1 100644 --- a/sympy/plotting/tests/test_plot.py +++ b/sympy/plotting/tests/test_plot.py @@ -2,7 +2,7 @@ oo, LambertW, I, meijerg, exp_polar, Max, Piecewise, And) from sympy.plotting im...
diff --git a/doc/src/modules/plotting.rst b/doc/src/modules/plotting.rst index e9971d11f777..03ace2caa231 100644 --- a/doc/src/modules/plotting.rst +++ b/doc/src/modules/plotting.rst @@ -45,6 +45,12 @@ Plotting Function Reference .. autofunction:: sympy.plotting.plot_implicit.plot_implicit +PlotGrid Class +-------...
[ { "components": [ { "doc": "This class helps to plot subplots from already created sympy plots\nin a single figure.\n\nExamples\n========\n\n.. plot::\n :context: close-figs\n :format: doctest\n :include-source: True\n\n >>> from sympy import symbols\n >>> from sympy.plotting import pl...
[ "test_experimental_lambify" ]
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> added functionality to obtain subplots from already created plots. This PR gives a solution to the problem as discussed in Issue #15328 A class `PlotGrid` have been introduced in `plot.py` of plottin...
e941ad69638189ea42507331e417b88837357dec
sympy__sympy-16253
16,253
sympy/sympy
1.4
93a65b9bb8a615906e73d5885ff03076bcabc555
2019-03-14T05:24:14Z
diff --git a/sympy/utilities/misc.py b/sympy/utilities/misc.py index 89b3ec95adf9..af19d67f3bdf 100644 --- a/sympy/utilities/misc.py +++ b/sympy/utilities/misc.py @@ -7,7 +7,8 @@ import re as _re import struct from textwrap import fill, dedent -from sympy.core.compatibility import get_function_name, range, as_int +f...
diff --git a/sympy/utilities/tests/test_misc.py b/sympy/utilities/tests/test_misc.py index 63d2203820ab..3eae4cdeb0a2 100644 --- a/sympy/utilities/tests/test_misc.py +++ b/sympy/utilities/tests/test_misc.py @@ -1,5 +1,6 @@ +from textwrap import dedent from sympy.core.compatibility import range, unichr -from sympy.util...
[ { "components": [ { "doc": "Return a cut-and-pastable string that, when printed, is\nequivalent to the input. The lines will be surrounded by\nparentheses and no line will be longer than c (default 64)\ncharacters. If the line contains newlines characters, the\n`rawlines` result will be returned....
[ "test_translate", "test_replace", "test_ordinal", "test_rawlines" ]
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> misc: add strlines When wanting to test the output that is a long string and needing to keep lines under 72 characters, it is a bit tedious to split the line and add the quotes. `strlines` can help in...
e941ad69638189ea42507331e417b88837357dec
sympy__sympy-16248
16,248
sympy/sympy
1.4
35b7b87c03f8cbbd7d185e55af8170702eb861af
2019-03-13T16:47:06Z
diff --git a/sympy/combinatorics/perm_groups.py b/sympy/combinatorics/perm_groups.py index b9aebfb6f47b..38f2a3130ecd 100644 --- a/sympy/combinatorics/perm_groups.py +++ b/sympy/combinatorics/perm_groups.py @@ -1678,6 +1678,31 @@ def is_abelian(self): return False return True + def is...
diff --git a/sympy/combinatorics/tests/test_perm_groups.py b/sympy/combinatorics/tests/test_perm_groups.py index 64dd4d299d11..0c03f4a5741c 100644 --- a/sympy/combinatorics/tests/test_perm_groups.py +++ b/sympy/combinatorics/tests/test_perm_groups.py @@ -888,3 +888,34 @@ def _strong_test(P): c = Permutation(4,5) ...
[ { "components": [ { "doc": "Return ``True`` if the group is elementary abelian. An elementary\nabelian group is a finite abelian group, where every nontrivial\nelement has order `p`, where `p` is a prime.\n\nExamples\n========\n\n>>> from sympy.combinatorics import Permutation\n>>> from sympy.comb...
[ "test_polycyclic" ]
[ "test_has", "test_generate", "test_order", "test_equality", "test_stabilizer", "test_center", "test_centralizer", "test_coset_rank", "test_coset_factor", "test_orbits", "test_is_normal", "test_eq", "test_derived_subgroup", "test_is_solvable", "test_rubik1", "test_direct_product", "te...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add Elementary and Polycyclic groups in Permutation groups <!-- Your title above should be a short description of what was changed. Do not include the issue number in the title. --> <!-- If this p...
e941ad69638189ea42507331e417b88837357dec
scikit-learn__scikit-learn-13439
13,439
scikit-learn/scikit-learn
0.21
a62775e99f2a5ea3d51db7160fad783f6cd8a4c5
2019-03-12T20:32:50Z
diff --git a/doc/whats_new/v0.21.rst b/doc/whats_new/v0.21.rst index 8787b07d5347e..cd4daebf9632b 100644 --- a/doc/whats_new/v0.21.rst +++ b/doc/whats_new/v0.21.rst @@ -413,6 +413,10 @@ Support for Python 3.4 and below has been officially dropped. - |API| :class:`pipeline.Pipeline` now supports using ``'passthrough'``...
diff --git a/sklearn/tests/test_pipeline.py b/sklearn/tests/test_pipeline.py index 8d6fe8f70374e..ed81db747e20c 100644 --- a/sklearn/tests/test_pipeline.py +++ b/sklearn/tests/test_pipeline.py @@ -1069,5 +1069,6 @@ def test_make_pipeline_memory(): assert pipeline.memory is memory pipeline = make_pipeline(Dumm...
diff --git a/doc/whats_new/v0.21.rst b/doc/whats_new/v0.21.rst index 8787b07d5347e..cd4daebf9632b 100644 --- a/doc/whats_new/v0.21.rst +++ b/doc/whats_new/v0.21.rst @@ -413,6 +413,10 @@ Support for Python 3.4 and below has been officially dropped. - |API| :class:`pipeline.Pipeline` now supports using ``'passthrough'``...
[ { "components": [ { "doc": "Returns the length of the Pipeline", "lines": [ 202, 206 ], "name": "Pipeline.__len__", "signature": "def __len__(self):", "type": "function" } ], "file": "sklearn/pipeline.py" } ]
[ "sklearn/tests/test_pipeline.py::test_make_pipeline_memory" ]
[ "sklearn/tests/test_pipeline.py::test_pipeline_init", "sklearn/tests/test_pipeline.py::test_pipeline_init_tuple", "sklearn/tests/test_pipeline.py::test_pipeline_methods_anova", "sklearn/tests/test_pipeline.py::test_pipeline_fit_params", "sklearn/tests/test_pipeline.py::test_pipeline_sample_weight_supported"...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> adding length function to pipeline.py <!-- Thanks for contributing a pull request! Please ensure you have taken a look at the contribution guidelines: https://github.com/scikit-learn/scikit-learn/bl...
Here is the discussion in the issues of the pull request. <issues> Pipeline should implement __len__ #### Description With the new indexing support `pipe[:len(pipe)]` raises an error. #### Steps/Code to Reproduce ```python from sklearn import svm from sklearn.datasets import samples_generator from sklearn.f...
66cc1c7342f7f0cc0dc57fb6d56053fc46c8e5f0
sympy__sympy-16225
16,225
sympy/sympy
1.4
faad12d1307099aff62b559a84df40a999b8219c
2019-03-10T20:52:32Z
diff --git a/sympy/utilities/iterables.py b/sympy/utilities/iterables.py index de844583b5a9..64fa22caee65 100644 --- a/sympy/utilities/iterables.py +++ b/sympy/utilities/iterables.py @@ -1,6 +1,6 @@ from __future__ import print_function, division -from collections import defaultdict +from collections import defaultd...
diff --git a/sympy/utilities/tests/test_iterables.py b/sympy/utilities/tests/test_iterables.py index a44fa6f51494..17fa2097d3ef 100644 --- a/sympy/utilities/tests/test_iterables.py +++ b/sympy/utilities/tests/test_iterables.py @@ -8,14 +8,15 @@ from sympy.core.compatibility import range from sympy.utilities.iterables...
[ { "components": [ { "doc": "Strongly connected components of a directed graph in reverse topological\norder.\n\n\nParameters\n==========\n\ngraph : tuple[list, list[tuple[T, T]]\n A tuple consisting of a list of vertices and a list of edges of\n a graph whose strongly connected components ar...
[ "test_postorder_traversal", "test_flatten", "test_group", "test_subsets", "test_variations", "test_cartes", "test_filter_symbols", "test_numbered_symbols", "test_sift", "test_take", "test_dict_merge", "test_prefixes", "test_postfixes", "test_topological_sort", "test_strongly_connected_co...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add connected_components function in iterables <!-- Your title above should be a short description of what was changed. Do not include the issue number in the title. --> #### References to other I...
Here is the discussion in the issues of the pull request. <issues> Graph theoretic algorithms for internal use (e.g. Tarjan's algorithm) I have thought of a couple of patches that would benefit from having algorithms for e.g. finding connected components of a graph. Do any graphs theoretic algorithms exist anywhere for...
e941ad69638189ea42507331e417b88837357dec
sympy__sympy-16221
16,221
sympy/sympy
1.4
8fc3b3a96b9f982ed6dc8f626129abee36bcda95
2019-03-10T09:11:58Z
diff --git a/sympy/printing/mathematica.py b/sympy/printing/mathematica.py index ca6ab2f556cb..fd01f493a691 100644 --- a/sympy/printing/mathematica.py +++ b/sympy/printing/mathematica.py @@ -160,6 +160,55 @@ def print_dims(): return 'SparseArray[{}, {}]'.format(print_data(), print_dims()) + def _print_I...
diff --git a/sympy/printing/tests/test_mathematica.py b/sympy/printing/tests/test_mathematica.py index 6f2210f51ddb..ad7658b2fd47 100644 --- a/sympy/printing/tests/test_mathematica.py +++ b/sympy/printing/tests/test_mathematica.py @@ -113,6 +113,58 @@ def test_matrices(): assert mcode(MutableDenseMatrix(3, 0, []))...
[ { "components": [ { "doc": "", "lines": [ 163, 164 ], "name": "MCodePrinter._print_ImmutableDenseNDimArray", "signature": "def _print_ImmutableDenseNDimArray(self, expr):", "type": "function" }, { "doc": "", "l...
[ "test_NDArray" ]
[ "test_Integer", "test_Rational", "test_Function", "test_Pow", "test_Mul", "test_constants", "test_containers", "test_matrices", "test_Integral", "test_Derivative", "test_Sum" ]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Printing : N-Dimensional Array for Mathematica <!-- Your title above should be a short description of what was changed. Do not include the issue number in the title. --> #### References to other I...
Here is the discussion in the issues of the pull request. <issues> Mathematica code: allow printing of matrices and arrays. Our printers for Wolfram Mathematica do not support matrices and arrays. We should add support for it. ---------- -------------------- </issues>
e941ad69638189ea42507331e417b88837357dec
sympy__sympy-16209
16,209
sympy/sympy
1.4
00252f18af78cdc3013042e7ef264af8161c9366
2019-03-09T09:07:04Z
diff --git a/sympy/matrices/matrices.py b/sympy/matrices/matrices.py index b0efd9dc4278..d44f73ae4dc8 100644 --- a/sympy/matrices/matrices.py +++ b/sympy/matrices/matrices.py @@ -4260,6 +4260,100 @@ def QRsolve(self, b): x.append(tmp / R[j, j]) return self._new([row._mat for row in reversed(x)]) ...
diff --git a/sympy/matrices/tests/test_matrices.py b/sympy/matrices/tests/test_matrices.py index f6f78c6e22d8..fc8d49a4ff35 100644 --- a/sympy/matrices/tests/test_matrices.py +++ b/sympy/matrices/tests/test_matrices.py @@ -3304,6 +3304,34 @@ def test_iszero_substitution(): # if a zero-substitution wasn't made, thi...
[ { "components": [ { "doc": "Returns a pair of matrices (`C`, `F`) with matching rank\nsuch that `A = C F`.\n\nParameters\n==========\n\niszerofunc : Function, optional\n A function used for detecting whether an element can\n act as a pivot. ``lambda x: x.is_zero`` is used by default.\n\nsim...
[ "test_rank_decomposition" ]
[ "test_args", "test_division", "test_sum", "test_abs", "test_addition", "test_fancy_index_matrix", "test_multiplication", "test_power", "test_creation", "test_tolist", "test_as_mutable", "test_determinant", "test_slicing", "test_submatrix_assignment", "test_extract", "test_reshape", "...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Matrices : Add rank factorization <!-- 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 ...
e941ad69638189ea42507331e417b88837357dec
joke2k__faker-919
919
joke2k/faker
null
9649c8d86e0baf8bc4fd33ba8661847ec33a62e1
2019-03-08T12:26:15Z
diff --git a/faker/providers/ssn/pt_BR/__init__.py b/faker/providers/ssn/pt_BR/__init__.py index 028637f21d..01e33307a1 100644 --- a/faker/providers/ssn/pt_BR/__init__.py +++ b/faker/providers/ssn/pt_BR/__init__.py @@ -1,6 +1,7 @@ # coding=utf-8 from __future__ import unicode_literals + from .. import Provider as ...
diff --git a/tests/providers/test_ssn.py b/tests/providers/test_ssn.py index 0e09f3f895..1955ae60c7 100644 --- a/tests/providers/test_ssn.py +++ b/tests/providers/test_ssn.py @@ -423,6 +423,14 @@ def test_pt_BR_cpf(self): for _ in range(100): assert re.search(r'\d{3}\.\d{3}\.\d{3}-\d{2}', self.fac...
[ { "components": [ { "doc": "Brazilian RG, return plain numbers.\nCheck: https://www.ngmatematica.com/2014/02/como-determinar-o-digito-verificador-do.html", "lines": [ 49, 66 ], "name": "Provider.rg", "signature": "def rg(self):", "type":...
[ "tests/providers/test_ssn.py::TestPtBR::test_pt_BR_rg" ]
[ "tests/providers/test_ssn.py::TestBgBG::test_vat_id", "tests/providers/test_ssn.py::TestCsCZ::test_vat_id", "tests/providers/test_ssn.py::TestDeAT::test_vat_id", "tests/providers/test_ssn.py::TestElCY::test_vat_id", "tests/providers/test_ssn.py::TestEnCA::test_ssn", "tests/providers/test_ssn.py::TestEnUS:...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Brazilian RG Feature ### What does this changes Address Brazilian RG (identity card) ### What was wrong New feature ### How this fixes it Fixes #918 ---------- </request> There are se...
Here is the discussion in the issues of the pull request. <issues> Brazilian RG (identity card) Add Generator to Brazilian RG (identity card) ### Steps to reproduce fake = Faker('pt_Br') fake.rg() ### Expected behavior return like this rules: https://www.ngmatematica.com/2014/02/como-determinar-o-digito-verif...
6edfdbf6ae90b0153309e3bf066aa3b2d16494a7
sympy__sympy-16199
16,199
sympy/sympy
1.4
34482a7071422e5766a16a0370fa12f9a0b7c8e0
2019-03-08T06:00:41Z
diff --git a/sympy/vector/__init__.py b/sympy/vector/__init__.py index fccb4e4d14a1..2493bff5c945 100644 --- a/sympy/vector/__init__.py +++ b/sympy/vector/__init__.py @@ -13,4 +13,4 @@ from sympy.vector.point import Point from sympy.vector.orienters import (AxisOrienter, BodyOrienter, ...
diff --git a/sympy/core/tests/test_args.py b/sympy/core/tests/test_args.py index 5895f1ca842c..2228bea932bd 100644 --- a/sympy/core/tests/test_args.py +++ b/sympy/core/tests/test_args.py @@ -4522,6 +4522,13 @@ def test_sympy__vector__operators__Curl(): assert _test_args(Curl(C.i)) +def test_sympy__vector__oper...
[ { "components": [ { "doc": "Represents unevaluated Laplacian.\n\nExamples\n========\n\n>>> from sympy.vector import CoordSys3D, Laplacian\n>>> R = CoordSys3D('R')\n>>> v = 3*R.x**3*R.y**2*R.z**3\n>>> Laplacian(v)\nLaplacian(3*R.x**3*R.y**2*R.z**3)", "lines": [ 330, 353 ...
[ "test_sympy__vector__operators__Laplacian", "test_Gradient", "test_Divergence", "test_Curl" ]
[ "test_all_classes_are_tested", "test_sympy__assumptions__assume__AppliedPredicate", "test_sympy__assumptions__assume__Predicate", "test_sympy__assumptions__sathandlers__UnevaluatedOnFree", "test_sympy__assumptions__sathandlers__AllArgs", "test_sympy__assumptions__sathandlers__AnyArgs", "test_sympy__assu...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Added class to represent unevaluated laplacian. <!-- Your title above should be a short description of what was changed. Do not include the issue number in the title. --> #### References to other ...
Here is the discussion in the issues of the pull request. <issues> Full support of laplacian in vector package In #12261 `laplacian` function was added. I think that it could be good idea to add to `vector` package full support of `laplacian` operator like it is done for `del` operator. For example support for `lapla...
e941ad69638189ea42507331e417b88837357dec
sympy__sympy-16194
16,194
sympy/sympy
1.4
0e987498b00167fdd4a08a41c852a97cb70ce8f2
2019-03-07T18:13:37Z
diff --git a/sympy/logic/boolalg.py b/sympy/logic/boolalg.py index e5cc6f680ba4..d81832e84711 100644 --- a/sympy/logic/boolalg.py +++ b/sympy/logic/boolalg.py @@ -719,6 +719,9 @@ def _eval_as_set(self): from sympy.sets.sets import Intersection return Intersection(*[arg.as_set() for arg in self.args]) ...
diff --git a/sympy/logic/tests/test_boolalg.py b/sympy/logic/tests/test_boolalg.py index 529a489221ed..e0f04a991ca2 100644 --- a/sympy/logic/tests/test_boolalg.py +++ b/sympy/logic/tests/test_boolalg.py @@ -109,6 +109,26 @@ def test_Xor(): assert Xor(e, e.canonical) == Xor(0, 0) == Xor(1, 1) +def test_rewrite_...
[ { "components": [ { "doc": "", "lines": [ 722, 723 ], "name": "And._eval_rewrite_as_Nor", "signature": "def _eval_rewrite_as_Nor(self, *args, **kwargs):", "type": "function" }, { "doc": "", "lines": [ ...
[ "test_rewrite_as_And", "test_rewrite_as_Or", "test_rewrite_as_Nand", "test_rewrite_as_Nor" ]
[ "test_overloading", "test_And", "test_Or", "test_Xor", "test_Not", "test_Nand", "test_Nor", "test_Xnor", "test_Implies", "test_Equivalent", "test_equals", "test_simplification", "test_bool_map", "test_bool_symbol", "test_is_boolean", "test_subs", "test_commutative", "test_and_assoc...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> logic equation suggestions <!-- Your title above should be a short description of what was changed. Do not include the issue number in the title. --> #### References to other Issues or PRs <!-- I...
e941ad69638189ea42507331e417b88837357dec
sympy__sympy-16189
16,189
sympy/sympy
1.4
0e987498b00167fdd4a08a41c852a97cb70ce8f2
2019-03-07T10:42:03Z
diff --git a/sympy/core/expr.py b/sympy/core/expr.py index 38bd1d2deffd..cd76f61a87ea 100644 --- a/sympy/core/expr.py +++ b/sympy/core/expr.py @@ -3537,6 +3537,27 @@ def _n2(a, b): return dif +def unchanged(func, *args): + """Return True if `func` applied to the `args` is unchanged. + Can be used...
diff --git a/sympy/functions/elementary/tests/test_complexes.py b/sympy/functions/elementary/tests/test_complexes.py index d328db8c8e8f..b0568209620b 100644 --- a/sympy/functions/elementary/tests/test_complexes.py +++ b/sympy/functions/elementary/tests/test_complexes.py @@ -5,6 +5,7 @@ Interval, comp, Integral, Ma...
[ { "components": [ { "doc": "Return True if `func` applied to the `args` is unchanged.\nCan be used instead of `assert foo == foo`.\n\nExamples\n========\n\n>>> from sympy.core.expr import unchanged\n>>> from sympy.functions.elementary.trigonometric import cos\n>>> from sympy.core.numbers import pi...
[ "test_re", "test_im", "test_sign", "test_as_real_imag", "test_Abs", "test_Abs_rewrite", "test_Abs_real", "test_Abs_properties", "test_abs", "test_arg", "test_arg_rewrite", "test_adjoint", "test_conjugate", "test_conjugate_transpose", "test_transpose", "test_polarify", "test_unpolarif...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Added an unchanged function in utilities Added a function `unchanged` in utilities/misc.py for checking if the expression remains unchanged. Return `True` if unchanged and `False` if changed <!--...
Here is the discussion in the issues of the pull request. <issues> add function to test for unchanged expression In #2942 there was a lot of discussion about tests that write `assert foo == foo`. An idea that I left there was this function which I still think could be used for cases when you want to assert that what...
e941ad69638189ea42507331e417b88837357dec
sympy__sympy-16142
16,142
sympy/sympy
1.4
8d8addc912dcef24e759ff8c62ff197cb7052931
2019-03-02T15:38:24Z
diff --git a/sympy/ntheory/__init__.py b/sympy/ntheory/__init__.py index 6d7ca7de9a2a..92c75d343860 100644 --- a/sympy/ntheory/__init__.py +++ b/sympy/ntheory/__init__.py @@ -9,7 +9,7 @@ pollard_pm1, pollard_rho, primefactors, totient, trailing, divisor_count, \ divisor_sigma, factorrat, reduced_totient, prim...
diff --git a/sympy/ntheory/tests/test_factor_.py b/sympy/ntheory/tests/test_factor_.py index 55e6d207cb89..4c48c4d8d5ab 100644 --- a/sympy/ntheory/tests/test_factor_.py +++ b/sympy/ntheory/tests/test_factor_.py @@ -14,7 +14,7 @@ from sympy.ntheory.factor_ import (smoothness, smoothness_p, antidivisors, antidiviso...
[ { "components": [ { "doc": "Returns True if the numbers `m` and `n` are \"amicable\", else False.\n\nAmicable numbers are two different numbers so related that the sum\nof the proper divisors of each is equal to that of the other.\n\nExamples\n========\n\n>>> from sympy.ntheory.factor_ import is_a...
[ "test_trailing_bitcount", "test_multiplicity", "test_perfect_power", "test_factorint", "test_divisors_and_divisor_count", "test_udivisors_and_udivisor_count", "test_issue_6981", "test_totient", "test_reduced_totient", "test_divisor_sigma", "test_udivisor_sigma", "test_issue_4356", "test_divi...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Added Functions for Amicable Number Amicable numbers are two different numbers so related that the sum of the proper divisors of each is equal to the other number. A proper divisor of a number is a po...
e941ad69638189ea42507331e417b88837357dec
sympy__sympy-16136
16,136
sympy/sympy
1.4
b786c995a59a7bb0e673e80ccb4ccece4dfbcaad
2019-03-02T13:00:06Z
diff --git a/sympy/utilities/__init__.py b/sympy/utilities/__init__.py index 4a5f8d59608f..96bb668185b6 100644 --- a/sympy/utilities/__init__.py +++ b/sympy/utilities/__init__.py @@ -5,7 +5,8 @@ variations, numbered_symbols, cartes, capture, dict_merge, postorder_traversal, interactive_traversal, prefixe...
diff --git a/sympy/utilities/tests/test_iterables.py b/sympy/utilities/tests/test_iterables.py index 9998af33e1b0..2fb1f5692f6a 100644 --- a/sympy/utilities/tests/test_iterables.py +++ b/sympy/utilities/tests/test_iterables.py @@ -15,7 +15,7 @@ multiset_permutations, necklaces, numbered_symbols, ordered, partition...
[ { "components": [ { "doc": "Return a generator giving the items in s as list where\neach subsequent list has the items rotated to the left (default)\nor right (dir=-1) relative to the previous list.\n\nExamples\n========\n\n>>> from sympy.utilities.iterables import rotations\n>>> list(rotations([1...
[ "test_postorder_traversal", "test_flatten", "test_group", "test_subsets", "test_variations", "test_cartes", "test_filter_symbols", "test_numbered_symbols", "test_sift", "test_take", "test_dict_merge", "test_prefixes", "test_postfixes", "test_topological_sort", "test_rotate", "test_mult...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Function for rotation in iterables <!-- 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...
Here is the discussion in the issues of the pull request. <issues> iterables could use rotations Would a simple routine to return the rotations of a sequence be something useful in iterables? ```python def rotations(s, dir=1): """Return a generator giving the items in s as list where each subsequent list ha...
e941ad69638189ea42507331e417b88837357dec
sympy__sympy-16109
16,109
sympy/sympy
1.4
a302bbeb5fa4418be4ad82b6b5b3607de3f2d65d
2019-02-28T20:05:57Z
diff --git a/sympy/ntheory/__init__.py b/sympy/ntheory/__init__.py index bf0065221703..6d7ca7de9a2a 100644 --- a/sympy/ntheory/__init__.py +++ b/sympy/ntheory/__init__.py @@ -8,7 +8,8 @@ from .factor_ import divisors, factorint, multiplicity, perfect_power, \ pollard_pm1, pollard_rho, primefactors, totient, trail...
diff --git a/sympy/ntheory/tests/test_factor_.py b/sympy/ntheory/tests/test_factor_.py index 6226323e26ac..55e6d207cb89 100644 --- a/sympy/ntheory/tests/test_factor_.py +++ b/sympy/ntheory/tests/test_factor_.py @@ -13,7 +13,8 @@ factorrat, reduced_totient) from sympy.ntheory.factor_ import (smoothness, smoothness...
[ { "components": [ { "doc": "Returns the difference between the sum of the positive\nproper divisors of a number and the number.\n\nExamples\n========\n\n>>> from sympy.ntheory import abundance, is_perfect, is_abundant\n>>> abundance(6)\n0\n>>> is_perfect(6)\nTrue\n>>> abundance(10)\n-2\n>>> is_abu...
[ "test_trailing_bitcount", "test_multiplicity", "test_perfect_power", "test_factorint", "test_divisors_and_divisor_count", "test_udivisors_and_udivisor_count", "test_issue_6981", "test_totient", "test_reduced_totient", "test_divisor_sigma", "test_udivisor_sigma", "test_issue_4356", "test_divi...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Added is_abundant and is_deficient with test cases <!-- Your title above should be a short description of what was changed. Do not include the issue number in the title. --> #### References to oth...
Here is the discussion in the issues of the pull request. <issues> Function for perfect, deficient, abundant numbers There should be a separate function for checking whether a number is perfect, deficient or abundant. If you liked this idea then I can add a pull request. - [x] perfect - [x] deficient - [x] abundan...
e941ad69638189ea42507331e417b88837357dec
scikit-learn__scikit-learn-13336
13,336
scikit-learn/scikit-learn
0.21
984871b89baa183b1d0e284ac9bb22de06a59e8d
2019-02-28T15:54:52Z
diff --git a/doc/whats_new/v0.21.rst b/doc/whats_new/v0.21.rst index 6f504a721ec75..e3e3ec9f88816 100644 --- a/doc/whats_new/v0.21.rst +++ b/doc/whats_new/v0.21.rst @@ -230,6 +230,10 @@ Support for Python 3.4 and below has been officially dropped. in version 0.21 and will be removed in version 0.23. :issue:`12821...
diff --git a/sklearn/linear_model/tests/test_ridge.py b/sklearn/linear_model/tests/test_ridge.py index eca4a53f4f507..a5ee524e8c557 100644 --- a/sklearn/linear_model/tests/test_ridge.py +++ b/sklearn/linear_model/tests/test_ridge.py @@ -815,21 +815,25 @@ def test_n_iter(): def test_ridge_fit_intercept_sparse(): X...
diff --git a/doc/whats_new/v0.21.rst b/doc/whats_new/v0.21.rst index 6f504a721ec75..e3e3ec9f88816 100644 --- a/doc/whats_new/v0.21.rst +++ b/doc/whats_new/v0.21.rst @@ -230,6 +230,10 @@ Support for Python 3.4 and below has been officially dropped. in version 0.21 and will be removed in version 0.23. :issue:`12821...
[ { "components": [ { "doc": "", "lines": [ 39, 52 ], "name": "_solve_sparse_cg._get_rescaled_operator", "signature": "def _get_rescaled_operator(X):", "type": "function" }, { "doc": "", "lines": [ 43, ...
[ "sklearn/linear_model/tests/test_ridge.py::test_ridge_fit_intercept_sparse" ]
[ "sklearn/linear_model/tests/test_ridge.py::test_ridge[svd]", "sklearn/linear_model/tests/test_ridge.py::test_ridge[sparse_cg]", "sklearn/linear_model/tests/test_ridge.py::test_ridge[cholesky]", "sklearn/linear_model/tests/test_ridge.py::test_ridge[lsqr]", "sklearn/linear_model/tests/test_ridge.py::test_ridg...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> [MRG] Implement fitting intercept with `sparse_cg` solver in Ridge regression <!-- Thanks for contributing a pull request! Please ensure you have taken a look at the contribution guidelines: https:/...
66cc1c7342f7f0cc0dc57fb6d56053fc46c8e5f0
sympy__sympy-16101
16,101
sympy/sympy
1.4
f4b483507a6704f2f431494413c54766f3d77d3e
2019-02-27T23:44:13Z
diff --git a/sympy/ntheory/__init__.py b/sympy/ntheory/__init__.py index 31977979af8f..bf0065221703 100644 --- a/sympy/ntheory/__init__.py +++ b/sympy/ntheory/__init__.py @@ -7,7 +7,8 @@ from .primetest import isprime from .factor_ import divisors, factorint, multiplicity, perfect_power, \ pollard_pm1, pollard_r...
diff --git a/sympy/ntheory/tests/test_factor_.py b/sympy/ntheory/tests/test_factor_.py index 2bcb8b5e62d9..6226323e26ac 100644 --- a/sympy/ntheory/tests/test_factor_.py +++ b/sympy/ntheory/tests/test_factor_.py @@ -13,7 +13,7 @@ factorrat, reduced_totient) from sympy.ntheory.factor_ import (smoothness, smoothness...
[ { "components": [ { "doc": "Returns the exponent ``i`` for the nth Mersenne prime (which\nhas the form `2^i - 1`).\n\nExamples\n========\n\n>>> from sympy.ntheory.factor_ import mersenne_prime_exponent\n>>> mersenne_prime_exponent(1)\n2\n>>> mersenne_prime_exponent(20)\n4423", "lines": [ ...
[ "test_trailing_bitcount", "test_multiplicity", "test_perfect_power", "test_factorint", "test_divisors_and_divisor_count", "test_udivisors_and_udivisor_count", "test_issue_6981", "test_totient", "test_reduced_totient", "test_divisor_sigma", "test_udivisor_sigma", "test_issue_4356", "test_divi...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Functions for Perfect Number <!-- 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 <!--...
e941ad69638189ea42507331e417b88837357dec
falconry__falcon-1459
1,459
falconry/falcon
null
4fd9de5c8a3f8a71f59b375bb374082312e673e8
2019-02-24T01:46:19Z
diff --git a/falcon/request.py b/falcon/request.py index 669bdd7cc..4ddcf54b8 100644 --- a/falcon/request.py +++ b/falcon/request.py @@ -355,32 +355,24 @@ class Request(object): range_unit (str): Unit of the range parsed from the value of the Range header, or ``None`` if the header is missing ...
diff --git a/tests/test_request_attrs.py b/tests/test_request_attrs.py index 2e710ff7d..a7f7b639b 100644 --- a/tests/test_request_attrs.py +++ b/tests/test_request_attrs.py @@ -5,14 +5,32 @@ import falcon from falcon.request import Request, RequestOptions -from falcon.request_helpers import make_etag +from falcon.r...
[ { "components": [ { "doc": "Parse a string containing one or more HTTP entity-tags.\n\nThe string is assumed to be formatted as defined for a precondition\nheader, and may contain either a single ETag, or multiple comma-separated\nETags. The string may also contain a '*' character, in order to ind...
[ "tests/test_request_attrs.py::TestRequestAttributes::test_missing_qs", "tests/test_request_attrs.py::TestRequestAttributes::test_empty", "tests/test_request_attrs.py::TestRequestAttributes::test_host", "tests/test_request_attrs.py::TestRequestAttributes::test_subdomain", "tests/test_request_attrs.py::TestRe...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> feat(etag): Improve etag performance and docs, plus usability of the ETag class ---------- </request> There are several new functions or classes that need to be implemented, using the definitions b...
77d5e6394a88ead151c9469494749f95f06b24bf
sympy__sympy-16057
16,057
sympy/sympy
1.4
5d06d9fcb8a954fc3ce0a0d8a69f1fc331b82880
2019-02-23T21:16:17Z
diff --git a/sympy/physics/optics/__init__.py b/sympy/physics/optics/__init__.py index 77306ae3e775..fc815db56c78 100644 --- a/sympy/physics/optics/__init__.py +++ b/sympy/physics/optics/__init__.py @@ -30,6 +30,7 @@ from . import utils -from .utils import (refraction_angle, deviation, brewster_angle, lens_makers_...
diff --git a/sympy/physics/optics/tests/test_utils.py b/sympy/physics/optics/tests/test_utils.py index 0155302e7e7c..22afadfcb04c 100644 --- a/sympy/physics/optics/tests/test_utils.py +++ b/sympy/physics/optics/tests/test_utils.py @@ -1,6 +1,7 @@ -from sympy.physics.optics.utils import (refraction_angle, deviation, - ...
[ { "components": [ { "doc": "This function uses Fresnel equations to calculate reflection and\ntransmission coefficients. Those are obtained for both polarisations\nwhen the electric field vector is in the plane of incidence (labelled 'p')\nand when the electric field vector is perpendicular to the...
[ "test_refraction_angle", "test_fresnel_coefficients", "test_deviation", "test_brewster_angle", "test_critical_angle", "test_lens_makers_formula", "test_mirror_formula", "test_lens_formula", "test_hyperfocal_distance" ]
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Calculation of critical angle and Fresnel coefficients <!-- BEGIN RELEASE NOTES --> * physics.optics * Added two new functions to `physics.optics.utils`: 1) `critical_angle() `calculates the ...
e941ad69638189ea42507331e417b88837357dec
pyocd__pyOCD-540
540
pyocd/pyOCD
null
31c3ca684cb7b595662d1fd378a9272e1e6ac8fe
2019-02-16T22:43:45Z
diff --git a/pyocd/board/board.py b/pyocd/board/board.py index 9e3eea1c2..7efee6015 100644 --- a/pyocd/board/board.py +++ b/pyocd/board/board.py @@ -17,16 +17,19 @@ from ..target import TARGET from ..target.pack import pack_target +from ..utility.graph import GraphNode import logging import six log = logging.g...
diff --git a/pyocd/test/test_graph.py b/pyocd/test/test_graph.py new file mode 100644 index 000000000..c5a81ceb0 --- /dev/null +++ b/pyocd/test/test_graph.py @@ -0,0 +1,110 @@ +# pyOCD debugger +# Copyright (c) 2019 Arm Limited +# SPDX-License-Identifier: Apache-2.0 +# +# Licensed under the Apache License, Version 2.0 ...
[ { "components": [ { "doc": "", "lines": [ 433, 440 ], "name": "CortexM.add_child", "signature": "def add_child(self, cmp):", "type": "function" } ], "file": "pyocd/coresight/cortex_m.py" }, { "components": [ { ...
[ "pyocd/test/test_graph.py::TestGraph::test_new", "pyocd/test/test_graph.py::TestGraph::test_add_child", "pyocd/test/test_graph.py::TestGraph::test_multiple_child", "pyocd/test/test_graph.py::TestGraph::test_multilevel", "pyocd/test/test_graph.py::TestGraph::test_find_breadth", "pyocd/test/test_graph.py::T...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Generic object graph This PR creates a more explicit graph out of the various objects in a session. A `GraphNode` base class is added that provides parent and child links, plus a couple methods to sea...
fe7d737424be818daa1d55ecbd59be1a0dffdf5b
sympy__sympy-15994
15,994
sympy/sympy
1.4
6f6707f96a51db7d49f59d0e26d2df95acbfc33f
2019-02-15T19:56:26Z
diff --git a/sympy/matrices/expressions/matadd.py b/sympy/matrices/expressions/matadd.py index 22315096ce33..1c28021249ed 100644 --- a/sympy/matrices/expressions/matadd.py +++ b/sympy/matrices/expressions/matadd.py @@ -8,8 +8,9 @@ from sympy.matrices.matrices import MatrixBase from sympy.matrices.expressions.transpos...
diff --git a/sympy/core/tests/test_args.py b/sympy/core/tests/test_args.py index dc98b2191cf1..5895f1ca842c 100644 --- a/sympy/core/tests/test_args.py +++ b/sympy/core/tests/test_args.py @@ -2666,6 +2666,9 @@ def test_sympy__matrices__expressions__matexpr__Identity(): from sympy.matrices.expressions.matexpr import...
[ { "components": [ { "doc": "", "lines": [ 742, 743 ], "name": "Identity.is_square", "signature": "def is_square(self):", "type": "function" }, { "doc": "An identity matrix without a specified shape\n\nThis exists prima...
[ "test_sympy__matrices__expressions__matexpr__GenericIdentity", "test_sympy__matrices__expressions__matexpr__GenericZeroMatrix", "test_shape", "test_matexpr", "test_subs", "test_ZeroMatrix", "test_ZeroMatrix_doit", "test_Identity", "test_Identity_doit", "test_addition", "test_multiplication", "...
[ "test_all_classes_are_tested", "test_sympy__assumptions__assume__AppliedPredicate", "test_sympy__assumptions__assume__Predicate", "test_sympy__assumptions__sathandlers__UnevaluatedOnFree", "test_sympy__assumptions__sathandlers__AllArgs", "test_sympy__assumptions__sathandlers__AnyArgs", "test_sympy__assu...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Add GenericZeroMatrix and GenericIdentity class in matrix expressions These are generic in the sense that they have no shape (.shape raises a TypeError). They are returned by MatAdd() and MatMul() wi...
Here is the discussion in the issues of the pull request. <issues> Add UndefinedMatrixShapeSymbol class This can be used as a symbolic shape in a matrix expression, and will not result in errors when compared to a different shape. For instance, _n = UndefinedMatrixShapeSymbol('_n') k = Symbol('k') A =...
e941ad69638189ea42507331e417b88837357dec
falconry__falcon-1447
1,447
falconry/falcon
null
35d5220c7ee359ac6b03788107a194644eb00344
2019-02-14T07:30:05Z
diff --git a/CHANGES.rst b/CHANGES.rst index bf705ab82..54c3a289a 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -61,6 +61,9 @@ Breaking Changes Falcon detects that it is running on the wsgiref server. If you need to normalize stream semantics between wsgiref and a production WSGI server, ``Request.bounded_stre...
diff --git a/tests/test_cookies.py b/tests/test_cookies.py index 9d34b461e..e0cbfcf90 100644 --- a/tests/test_cookies.py +++ b/tests/test_cookies.py @@ -241,7 +241,9 @@ def test_request_cookie_parsing(): 'Cookie', """ logged_in=no;_gh_sess=eyJzZXXzaW9uX2lkIjoiN2; - tz=E...
diff --git a/CHANGES.rst b/CHANGES.rst index bf705ab82..54c3a289a 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -61,6 +61,9 @@ Breaking Changes Falcon detects that it is running on the wsgiref server. If you need to normalize stream semantics between wsgiref and a production WSGI server, ``Request.bounded_stre...
[ { "components": [ { "doc": "Return all values provided in the Cookie header for the named cookie.\n\n(See also: :ref:`Getting Cookies <getting-cookies>`)\n\nArgs:\n name (str): Cookie name, case-sensitive.\n\nReturns:\n list: Ordered list of all values specified in the Cookie header for\n ...
[ "tests/test_cookies.py::test_request_cookie_parsing", "tests/test_cookies.py::test_invalid_cookies_are_ignored", "tests/test_cookies.py::test_duplicate_cookie", "tests/test_cookies.py::test_cookie_header_is_missing" ]
[ "tests/test_cookies.py::test_response_base_case", "tests/test_cookies.py::test_response_disable_secure_globally", "tests/test_cookies.py::test_response_complex_case", "tests/test_cookies.py::test_cookie_expires_naive", "tests/test_cookies.py::test_cookie_expires_aware", "tests/test_cookies.py::test_cookie...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> feat(Request): Improve request cookie handling This patch provides support for getting all values for a given cookie (when the same cookie is included multiple times in the request), and also optimiz...
Here is the discussion in the issues of the pull request. <issues> Multiple cookies with same name in request returns only one This looks like it could be relatively simple fix, but it would involve changing the cookie API a bit. If my browser has two cookies set using the same name - let's call this `_csrf` for exa...
77d5e6394a88ead151c9469494749f95f06b24bf
scikit-learn__scikit-learn-13146
13,146
scikit-learn/scikit-learn
0.22
c0c53137cec61a4d6cd72d8a43bbe0321476e440
2019-02-12T16:33:12Z
diff --git a/doc/inspection.rst b/doc/inspection.rst index 745539d51bf77..b53aeb436b4cd 100644 --- a/doc/inspection.rst +++ b/doc/inspection.rst @@ -5,6 +5,19 @@ Inspection ---------- +Predictive performance is often the main goal of developing machine learning +models. Yet summarising performance with an evaluatio...
diff --git a/sklearn/inspection/tests/test_permutation_importance.py b/sklearn/inspection/tests/test_permutation_importance.py new file mode 100644 index 0000000000000..9394202cfce97 --- /dev/null +++ b/sklearn/inspection/tests/test_permutation_importance.py @@ -0,0 +1,154 @@ +import pytest +import numpy as np + +from ...
diff --git a/doc/inspection.rst b/doc/inspection.rst index 745539d51bf77..b53aeb436b4cd 100644 --- a/doc/inspection.rst +++ b/doc/inspection.rst @@ -5,6 +5,19 @@ Inspection ---------- +Predictive performance is often the main goal of developing machine learning +models. Yet summarising performance with an evaluatio...
[ { "components": [ { "doc": "Set column on X using `col_idx`", "lines": [ 12, 17 ], "name": "_safe_column_setting", "signature": "def _safe_column_setting(X, col_idx, values):", "type": "function" }, { "doc": "Return co...
[ "sklearn/inspection/tests/test_permutation_importance.py::test_permutation_importance_correlated_feature_regression[1]", "sklearn/inspection/tests/test_permutation_importance.py::test_permutation_importance_correlated_feature_regression[2]", "sklearn/inspection/tests/test_permutation_importance.py::test_permuta...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> [MRG] Adds Permutation Importance <!-- Thanks for contributing a pull request! Please ensure you have taken a look at the contribution guidelines: https://github.com/scikit-learn/scikit-learn/blob/m...
c96e0958da46ebef482a4084cdda3285d5f5ad23
sympy__sympy-15924
15,924
sympy/sympy
1.4
27f2f10b965f912ea38bb189e6b498ec00efdb08
2019-02-04T15:54:08Z
diff --git a/sympy/core/relational.py b/sympy/core/relational.py index 45ff5a96f731..379789e59ca1 100644 --- a/sympy/core/relational.py +++ b/sympy/core/relational.py @@ -122,7 +122,39 @@ def reversed(self): """ ops = {Gt: Lt, Ge: Le, Lt: Gt, Le: Ge} a, b = self.args - return ops.get(s...
diff --git a/sympy/core/tests/test_relational.py b/sympy/core/tests/test_relational.py index 9c3d6c08d524..6b61c727f689 100644 --- a/sympy/core/tests/test_relational.py +++ b/sympy/core/tests/test_relational.py @@ -1,7 +1,7 @@ from sympy.utilities.pytest import XFAIL, raises from sympy import (S, Symbol, symbols, nan...
[ { "components": [ { "doc": "Return the negated relationship.\n\nExamples\n========\n\n>>> from sympy import Eq\n>>> from sympy.abc import x\n>>> Eq(x, 1)\nEq(x, 1)\n>>> _.negated\nNe(x, 1)\n>>> x < 1\nx < 1\n>>> _.negated\nx >= 1\n\nNotes\n=====\n\nThis works more or less identical to ``~``/``Not`...
[ "test_negated_atoms" ]
[ "test_rel_ne", "test_rel_subs", "test_wrappers", "test_Eq", "test_rel_Infinity", "test_bool", "test_rich_cmp", "test_doit", "test_new_relational", "test_relational_bool_output", "test_relational_logic_symbols", "test_univariate_relational_as_set", "test_Not", "test_evaluate", "test_imagi...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Added negated property to Relational and BooleanAtom <!-- Your title above should be a short description of what was changed. Do not include the issue number in the title. --> #### References to o...
Here is the discussion in the issues of the pull request. <issues> Logic: Add `canonical` property to `Not` #### Brief description of what is fixed or changed The `_new_args_filter` for `And` and `Or` calls `(~c).canonical` explicitly, which cause `AttributeError`s because that property is not implemented. To tr...
e941ad69638189ea42507331e417b88837357dec
pydicom__pydicom-802
802
pydicom/pydicom
1.2
aa42809add6faa389937c846582a3d5196531376
2019-02-02T20:55:26Z
diff --git a/doc/whatsnew/v1.3.0.rst b/doc/whatsnew/v1.3.0.rst index 33b3cb4035..3cc1ac230b 100644 --- a/doc/whatsnew/v1.3.0.rst +++ b/doc/whatsnew/v1.3.0.rst @@ -10,10 +10,15 @@ Changes Use ``dataelem.DataElement.VM`` instead. * ``dataelem.isStringOrStringList`` and ``dataelem.isString`` functions are removed +...
diff --git a/pydicom/tests/test_dictionary.py b/pydicom/tests/test_dictionary.py index bbcec875c6..f575aaa278 100644 --- a/pydicom/tests/test_dictionary.py +++ b/pydicom/tests/test_dictionary.py @@ -1,81 +1,137 @@ # Copyright 2008-2018 pydicom authors. See LICENSE file for details. """Test for datadict.py""" -impor...
diff --git a/doc/whatsnew/v1.3.0.rst b/doc/whatsnew/v1.3.0.rst index 33b3cb4035..3cc1ac230b 100644 --- a/doc/whatsnew/v1.3.0.rst +++ b/doc/whatsnew/v1.3.0.rst @@ -10,10 +10,15 @@ Changes Use ``dataelem.DataElement.VM`` instead. * ``dataelem.isStringOrStringList`` and ``dataelem.isString`` functions are removed +...
[ { "components": [ { "doc": "Update pydicom's private DICOM tag dictionary with a new entry.\n\nNotes\n----\nBehaves like `add_dict_entry`, only for a private tag entry.\n\nParameters\n----------\nprivate_creator : str\n The private creator for the new entry.\ntag : int\n The tag number for t...
[ "pydicom/tests/test_dictionary.py::TestDict::test_tag_not_found", "pydicom/tests/test_dictionary.py::TestDict::test_repeaters", "pydicom/tests/test_dictionary.py::TestDict::test_dict_has_tag", "pydicom/tests/test_dictionary.py::TestDict::test_repeater_has_tag", "pydicom/tests/test_dictionary.py::TestDict::t...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> [MRG] Added possibility to add tags to the private dictionary - datadict.add_dict_entry and datadict.add_dict_entries now raise if trying to add a private tag - the new methods datadict.add_privat...
3551f5b5a5f8d4de3ed92e5e479ac8c74a8c893a
sympy__sympy-15825
15,825
sympy/sympy
1.4
de3c43c77670a1430756e66d2d70975ee9c6affa
2019-01-22T15:38:51Z
diff --git a/sympy/crypto/__init__.py b/sympy/crypto/__init__.py index 757b33ab73b2..58ffb98e59e0 100644 --- a/sympy/crypto/__init__.py +++ b/sympy/crypto/__init__.py @@ -11,4 +11,4 @@ encipher_elgamal, dh_private_key, dh_public_key, dh_shared_key, padded_key, encipher_bifid, decipher_bifid, bifid_squ...
diff --git a/sympy/crypto/tests/test_crypto.py b/sympy/crypto/tests/test_crypto.py index 80a0946f3670..24fb8a101d1e 100644 --- a/sympy/crypto/tests/test_crypto.py +++ b/sympy/crypto/tests/test_crypto.py @@ -13,7 +13,8 @@ encipher_elgamal, decipher_elgamal, dh_private_key, dh_public_key, dh_shared_key, dec...
[ { "components": [ { "doc": "Check if p and q can be used as private keys for\nthe Blum–Goldwasser cryptosystem.\n\nThe three necessary checks for p and q to pass\nso that they can be used as private keys:\n\n 1. p and q must both be prime\n 2. p and q must be distinct\n 3. p and q must be...
[ "test_cycle_list", "test_encipher_shift", "test_encipher_affine", "test_encipher_substitution", "test_check_and_join", "test_encipher_vigenere", "test_decipher_vigenere", "test_encipher_hill", "test_decipher_hill", "test_encipher_bifid5", "test_bifid5_square", "test_decipher_bifid5", "test_e...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Added Blum Goldwasser cryptosystem <!-- 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...
e941ad69638189ea42507331e417b88837357dec
scikit-learn__scikit-learn-13003
13,003
scikit-learn/scikit-learn
0.24
57bd85ed6a613028c2abb5e27dcf30263f0daa4b
2019-01-17T12:26:31Z
diff --git a/benchmarks/bench_plot_polynomial_kernel_approximation.py b/benchmarks/bench_plot_polynomial_kernel_approximation.py new file mode 100644 index 0000000000000..2b7556f37320e --- /dev/null +++ b/benchmarks/bench_plot_polynomial_kernel_approximation.py @@ -0,0 +1,156 @@ +""" +==================================...
diff --git a/sklearn/tests/test_kernel_approximation.py b/sklearn/tests/test_kernel_approximation.py index 8d37ce218f227..0cee04f9f2d0a 100644 --- a/sklearn/tests/test_kernel_approximation.py +++ b/sklearn/tests/test_kernel_approximation.py @@ -10,6 +10,7 @@ from sklearn.kernel_approximation import AdditiveChi2Sampler...
diff --git a/doc/modules/classes.rst b/doc/modules/classes.rst index 2e54d000a13aa..70a5174629f37 100644 --- a/doc/modules/classes.rst +++ b/doc/modules/classes.rst @@ -706,6 +706,7 @@ Plotting kernel_approximation.AdditiveChi2Sampler kernel_approximation.Nystroem + kernel_approximation.PolynomialCountSketc...
[ { "components": [ { "doc": "Polynomial kernel approximation via Tensor Sketch.\n\nImplements Tensor Sketch, which approximates the feature map\nof the polynomial kernel::\n\n K(X, Y) = (gamma * <X, Y> + coef0)^degree\n\nby efficiently computing a Count Sketch of the outer product of a\nvector w...
[ "sklearn/tests/test_kernel_approximation.py::test_polynomial_count_sketch_raises_if_degree_lower_than_one[-1]", "sklearn/tests/test_kernel_approximation.py::test_polynomial_count_sketch_raises_if_degree_lower_than_one[0]", "sklearn/tests/test_kernel_approximation.py::test_polynomial_count_sketch[0-1-0.1-Y0-X0]"...
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> [MRG+3] FEA Add PolynomialCountSketch to Kernel Approximation module This PR adds the **Tensor Sketch** [1] algorithm for polynomial kernel feature map approximation to the Kernel Approximation module...
54ce4222694819ad52d544ce5cba5da274c34ab7
rytilahti__python-miio-451
451
rytilahti/python-miio
null
05f55bc6b6bea9cb0bc8a721e24631e0bac2ec39
2019-01-07T20:06:28Z
diff --git a/miio/airhumidifier.py b/miio/airhumidifier.py index 031d30c04..a143d1171 100644 --- a/miio/airhumidifier.py +++ b/miio/airhumidifier.py @@ -337,6 +337,20 @@ def set_led_brightness(self, brightness: LedBrightness): """Set led brightness.""" return self.send("set_led_b", [brightness.value])...
diff --git a/miio/tests/test_airhumidifier.py b/miio/tests/test_airhumidifier.py index a9bcfb973..af933d05f 100644 --- a/miio/tests/test_airhumidifier.py +++ b/miio/tests/test_airhumidifier.py @@ -147,6 +147,16 @@ def led_brightness(): self.device.set_led_brightness(LedBrightness.Off) assert led_brigh...
[ { "components": [ { "doc": "Turn led on/off.", "lines": [ 347, 352 ], "name": "AirHumidifier.set_led", "signature": "def set_led(self, led: bool):", "type": "function" } ], "file": "miio/airhumidifier.py" } ]
[ "miio/tests/test_airhumidifier.py::TestAirHumidifierV1::test_set_led", "miio/tests/test_airhumidifier.py::TestAirHumidifierCA1::test_set_led" ]
[ "miio/tests/test_airhumidifier.py::TestAirHumidifierV1::test_off", "miio/tests/test_airhumidifier.py::TestAirHumidifierV1::test_on", "miio/tests/test_airhumidifier.py::TestAirHumidifierV1::test_set_buzzer", "miio/tests/test_airhumidifier.py::TestAirHumidifierV1::test_set_child_lock", "miio/tests/test_airhum...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Air Humidifier: Add set_led method ---------- </request> There are several new functions or classes that need to be implemented, using the definitions below: <<NEW DEFINITIONS>> There are several ...
62427d2f796e603520acca3b57b29ec3e6489bca
conan-io__conan-4238
4,238
conan-io/conan
null
fe322a672307d29f99d2e7bc1c02c45c835028d7
2019-01-07T13:28:46Z
diff --git a/conans/util/sha.py b/conans/util/sha.py index 1e50aff2c80..026bfc98df8 100644 --- a/conans/util/sha.py +++ b/conans/util/sha.py @@ -7,3 +7,11 @@ def sha1(value): md = hashlib.sha1() md.update(value) return md.hexdigest() + + +def sha256(value): + if value is None: + return None + ...
diff --git a/conans/test/unittests/util/hashed_path_test.py b/conans/test/unittests/util/hashed_path_test.py new file mode 100644 index 00000000000..05b30f1bcfb --- /dev/null +++ b/conans/test/unittests/util/hashed_path_test.py @@ -0,0 +1,33 @@ +import os +import unittest + +from conans.test.utils.test_files import tem...
[ { "components": [ { "doc": "", "lines": [ 12, 17 ], "name": "sha256", "signature": "def sha256(value):", "type": "function" } ], "file": "conans/util/sha.py" }, { "components": [ { "doc": "", "l...
[ "conans/test/unittests/util/hashed_path_test.py::HashedPathTest::test_avoids_collisions", "conans/test/unittests/util/hashed_path_test.py::HashedPathTest::test_creates_deterministic_path", "conans/test/unittests/util/hashed_path_test.py::HashedPathTest::test_give_up_if_cannot_avoid_collisions" ]
[]
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> Feature/deterministic short paths Changelog: Feature: Generate deterministic short paths on Windows Docs: Omit Close #3971 This PR implements the generation of the deterministic paths on Window...
Here is the discussion in the issues of the pull request. <issues> deterministic short_paths (the issue template is shamelessly stolen from https://github.com/concourse/concourse) ## What challenge are you facing? We're building a big C++ application in our CI system that uses many Conan packages. Build times can...
4a5b19a75db9225316c8cb022a2dfb9705a2af34
scikit-learn__scikit-learn-12908
12,908
scikit-learn/scikit-learn
0.21
314686a65d543bd3b36d2af4b34ed23711991a57
2019-01-03T04:21:02Z
diff --git a/doc/modules/preprocessing.rst b/doc/modules/preprocessing.rst index 77abe294a331b..7b7c447beb34d 100644 --- a/doc/modules/preprocessing.rst +++ b/doc/modules/preprocessing.rst @@ -489,7 +489,7 @@ Continuing the example above:: >>> enc = preprocessing.OneHotEncoder() >>> X = [['male', 'from US', 'uses...
diff --git a/sklearn/preprocessing/tests/test_encoders.py b/sklearn/preprocessing/tests/test_encoders.py index 93b1de018d2e9..2734e61128beb 100644 --- a/sklearn/preprocessing/tests/test_encoders.py +++ b/sklearn/preprocessing/tests/test_encoders.py @@ -96,6 +96,20 @@ def test_one_hot_encoder_sparse(): enc.fit(...
diff --git a/doc/modules/preprocessing.rst b/doc/modules/preprocessing.rst index 77abe294a331b..7b7c447beb34d 100644 --- a/doc/modules/preprocessing.rst +++ b/doc/modules/preprocessing.rst @@ -489,7 +489,7 @@ Continuing the example above:: >>> enc = preprocessing.OneHotEncoder() >>> X = [['male', 'from US', 'uses...
[ { "components": [ { "doc": "", "lines": [ 477, 511 ], "name": "OneHotEncoder._compute_drop_idx", "signature": "def _compute_drop_idx(self):", "type": "function" }, { "doc": "", "lines": [ 513, ...
[ "sklearn/preprocessing/tests/test_encoders.py::test_one_hot_encoder_sparse", "sklearn/preprocessing/tests/test_encoders.py::test_one_hot_encoder_inverse[None-False]", "sklearn/preprocessing/tests/test_encoders.py::test_one_hot_encoder_inverse[None-True]", "sklearn/preprocessing/tests/test_encoders.py::test_on...
[ "sklearn/preprocessing/tests/test_encoders.py::test_one_hot_encoder_dense", "sklearn/preprocessing/tests/test_encoders.py::test_one_hot_encoder_deprecationwarnings", "sklearn/preprocessing/tests/test_encoders.py::test_one_hot_encoder_force_new_behaviour", "sklearn/preprocessing/tests/test_encoders.py::test_on...
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> <request> [MRG + 2] Add Drop Option to OneHotEncoder. #### Reference Issues/PRs Fixes #6488 and fixes #6053. This builds upon some of the code from #12884 (thanks @NicolasHug!), but also incorporates functio...
Here is the discussion in the issues of the pull request. <issues> OneHotEncoder - add option for 1 of k-1 encoding Like the title says. Would it be possible to add an option, say "independent = True" to OneHotEncoder that would return a 1 of k-1 encoding instead of a 1 of k encoding. This would be very useful to me wh...
66cc1c7342f7f0cc0dc57fb6d56053fc46c8e5f0