instance_id stringlengths 13 45 | pull_number int64 7 30.1k | repo stringclasses 83
values | version stringclasses 68
values | base_commit stringlengths 40 40 | created_at stringdate 2013-05-16 18:15:55 2025-01-08 15:12:50 | patch stringlengths 347 35.2k | test_patch stringlengths 432 113k | non_py_patch stringlengths 0 18.3k | new_components listlengths 0 40 | FAIL_TO_PASS listlengths 1 2.53k | PASS_TO_PASS listlengths 0 1.7k | problem_statement stringlengths 607 52.7k | hints_text stringlengths 0 57.4k | environment_setup_commit stringclasses 167
values |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
sympy__sympy-15699 | 15,699 | sympy/sympy | 1.4 | a627ef1d3b8d89be3349d6d59d8642d64afb02e5 | 2018-12-27T16:54:43Z | diff --git a/sympy/polys/subresultants_qq_zz.py b/sympy/polys/subresultants_qq_zz.py
index 90a32f0ac34e..d18fddad45c7 100644
--- a/sympy/polys/subresultants_qq_zz.py
+++ b/sympy/polys/subresultants_qq_zz.py
@@ -1,11 +1,14 @@
# -*- coding: utf-8 -*-
"""
This module contains functions for the computation
-of Euclidean... | diff --git a/sympy/polys/tests/test_subresultants_qq_zz.py b/sympy/polys/tests/test_subresultants_qq_zz.py
index 1c67d16ac5a3..b0e16e4d3f30 100644
--- a/sympy/polys/tests/test_subresultants_qq_zz.py
+++ b/sympy/polys/tests/test_subresultants_qq_zz.py
@@ -1,8 +1,9 @@
from sympy import var, sturm, subresultants, prem, p... | [
{
"components": [
{
"doc": "poly_seq is a polynomial remainder sequence computed either by\n(modified_)subresultants_bezout or by (modified_)subresultants_sylv.\n\nThis function removes from poly_seq all zero polynomials as well\nas all those whose degree is equal to the degree of a preceding\npol... | [
"test_sylvester",
"test_subresultants_sylv",
"test_modified_subresultants_sylv",
"test_res",
"test_res_q",
"test_res_z",
"test_bezout",
"test_subresultants_bezout",
"test_modified_subresultants_bezout",
"test_sturm_pg",
"test_sturm_q",
"test_sturm_amv",
"test_euclid_pg",
"test_euclid_q",
... | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Subresultants_qq_zz: additions and extensions
<!-- 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... | e941ad69638189ea42507331e417b88837357dec | ||
sympy__sympy-15693 | 15,693 | sympy/sympy | 1.4 | cb8a524e930266fe2f4cda39d7d0b1523c4fa38b | 2018-12-25T15:59:18Z | diff --git a/sympy/stats/__init__.py b/sympy/stats/__init__.py
index 1782923ff885..4a44b8ac6a3a 100644
--- a/sympy/stats/__init__.py
+++ b/sympy/stats/__init__.py
@@ -13,6 +13,7 @@
------------------------- -----------------------------
``P(condition)`` Probability
``E(expression)`` Expected value... | diff --git a/sympy/stats/tests/test_rv.py b/sympy/stats/tests/test_rv.py
index 18dfafa7e1ae..61696d4cb09d 100644
--- a/sympy/stats/tests/test_rv.py
+++ b/sympy/stats/tests/test_rv.py
@@ -1,10 +1,10 @@
from __future__ import unicode_literals
from sympy import (EmptySet, FiniteSet, S, Symbol, Interval, exp, erf, sqrt,
... | [
{
"components": [
{
"doc": "Calculuates entropy of a probability distribution\n\nParameters\n==========\n\nexpression : the random expression whose entropy is to be calculated\ncondition : optional, to specify conditions on random expression\nb: base of the logarithm, optional\n By default, it i... | [
"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_dependence",
"test_normality",
"tes... | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Added entropy to stats module
<!-- Your title above should be a short description of what
was changed. Do not include the issue number in the title. -->
#### References
The following papers and l... | e941ad69638189ea42507331e417b88837357dec | ||
joke2k__faker-884 | 884 | joke2k/faker | null | ee0ea73cd56a24f44be6ce81d2e228ee179b5660 | 2018-12-22T12:50:45Z | diff --git a/faker/providers/lorem/__init__.py b/faker/providers/lorem/__init__.py
index a9dadc14a8..933f66fff2 100644
--- a/faker/providers/lorem/__init__.py
+++ b/faker/providers/lorem/__init__.py
@@ -196,3 +196,16 @@ def text(self, max_nb_chars=200, ext_word_list=None):
text.pop()
return ... | diff --git a/tests/test_factory.py b/tests/test_factory.py
index e784e7115c..a9422b2f63 100644
--- a/tests/test_factory.py
+++ b/tests/test_factory.py
@@ -413,6 +413,30 @@ def test_unique_words(self):
assert word not in checked_words
checked_words.append(word)
+ def test_texts_count(self)... | [
{
"components": [
{
"doc": "Generate an array of texts\n:example [text1, text2, text3]\n:param nb_texts: How many texts to return\n:param max_nb_chars: Maximum number of characters the text should contain (minimum 5)\n:param ext_word_list: a list of words you would like to have instead of 'Lorem i... | [
"tests/test_factory.py::FactoryTestCase::test_texts_chars_count",
"tests/test_factory.py::FactoryTestCase::test_texts_count",
"tests/test_factory.py::FactoryTestCase::test_texts_word_list"
] | [
"tests/test_factory.py::FactoryTestCase::test_add_provider_gives_priority_to_newly_added_provider",
"tests/test_factory.py::FactoryTestCase::test_binary",
"tests/test_factory.py::FactoryTestCase::test_cli_seed",
"tests/test_factory.py::FactoryTestCase::test_cli_seed_with_repeat",
"tests/test_factory.py::Fac... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Add texts gen
### What does this changes
Added texts method to generate list of texts.
Added unit tests for it.
----------
</request>
There are several new functions or classes that need to be... | 6edfdbf6ae90b0153309e3bf066aa3b2d16494a7 | ||
sympy__sympy-15661 | 15,661 | sympy/sympy | 1.4 | e3b2c4e302c05d4a438fdebb49d348010b71c882 | 2018-12-17T21:49:18Z | diff --git a/sympy/functions/elementary/exponential.py b/sympy/functions/elementary/exponential.py
index e906b8c67cb9..2827ad648385 100644
--- a/sympy/functions/elementary/exponential.py
+++ b/sympy/functions/elementary/exponential.py
@@ -467,6 +467,12 @@ def _eval_rewrite_as_sqrt(self, arg, **kwargs):
... | diff --git a/sympy/functions/elementary/tests/test_exponential.py b/sympy/functions/elementary/tests/test_exponential.py
index dffa1d0a32e9..98acb806c337 100644
--- a/sympy/functions/elementary/tests/test_exponential.py
+++ b/sympy/functions/elementary/tests/test_exponential.py
@@ -2,7 +2,7 @@
symbols, log, ln, Fl... | [
{
"components": [
{
"doc": "",
"lines": [
470,
474
],
"name": "exp._eval_rewrite_as_Pow",
"signature": "def _eval_rewrite_as_Pow(self, arg, **kwargs):",
"type": "function"
}
],
"file": "sympy/functions/elementary/exponential... | [
"test_exp_rewrite"
] | [
"test_exp_values",
"test_exp_log",
"test_exp_expand",
"test_exp__as_base_exp",
"test_exp_infinity",
"test_exp_subs",
"test_exp_conjugate",
"test_exp_leading_term",
"test_exp_taylor_term",
"test_exp_MatrixSymbol",
"test_log_values",
"test_log_base",
"test_log_symbolic",
"test_exp_assumption... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
functions: Add a rewrite from exp to Pow
#### References to other Issues or PRs
Fixes #15659
#### Brief description of what is fixed or changed
The added functionality `exp.rewrite(Pow)` is ... | Here is the discussion in the issues of the pull request.
<issues>
exp cannot be rewritten as Pow
This seems inconsistent:
```
>>> from sympy import *
>>> z, w = symbols('z w')
>>> (z**w).rewrite(exp)
exp(w*log(z))
>>> exp(w*log(z)).rewrite(Pow)
exp(w*log(z))
```
It should go both ways, as both forms are mathe... | e941ad69638189ea42507331e417b88837357dec | |
scikit-learn__scikit-learn-12789 | 12,789 | scikit-learn/scikit-learn | 0.22 | d1c52f402c89586ff66c2ec6e86f794da7715a18 | 2018-12-14T20:54:02Z | diff --git a/doc/modules/model_evaluation.rst b/doc/modules/model_evaluation.rst
index 856a104469bfc..789ffa038f25d 100644
--- a/doc/modules/model_evaluation.rst
+++ b/doc/modules/model_evaluation.rst
@@ -313,6 +313,7 @@ Others also work in the multiclass case:
confusion_matrix
hinge_loss
matthews_corrcoef
... | diff --git a/sklearn/metrics/tests/test_common.py b/sklearn/metrics/tests/test_common.py
index 67e9b66a4b695..6442b11834671 100644
--- a/sklearn/metrics/tests/test_common.py
+++ b/sklearn/metrics/tests/test_common.py
@@ -211,6 +211,12 @@ def precision_recall_curve_padded_thresholds(*args, **kwargs):
"weighted_roc_... | diff --git a/doc/modules/model_evaluation.rst b/doc/modules/model_evaluation.rst
index 856a104469bfc..789ffa038f25d 100644
--- a/doc/modules/model_evaluation.rst
+++ b/doc/modules/model_evaluation.rst
@@ -313,6 +313,7 @@ Others also work in the multiclass case:
confusion_matrix
hinge_loss
matthews_corrcoef
... | [
{
"components": [
{
"doc": "Average one-versus-one scores for multiclass classification.\n\nUses the binary metric for one-vs-one multiclass classification,\nwhere the score is computed according to the Hand & Till (2001) algorithm.\n\nParameters\n----------\nbinary_metric : callable\n The bina... | [
"sklearn/metrics/tests/test_common.py::test_sample_order_invariance[ovo_roc_auc]",
"sklearn/metrics/tests/test_common.py::test_sample_order_invariance[ovr_roc_auc]",
"sklearn/metrics/tests/test_common.py::test_sample_order_invariance[weighted_ovo_roc_auc]",
"sklearn/metrics/tests/test_common.py::test_sample_o... | [
"sklearn/metrics/tests/test_common.py::test_symmetry",
"sklearn/metrics/tests/test_common.py::test_sample_order_invariance[accuracy_score]",
"sklearn/metrics/tests/test_common.py::test_sample_order_invariance[adjusted_balanced_accuracy_score]",
"sklearn/metrics/tests/test_common.py::test_sample_order_invarian... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
[MRG] Adds multiclass ROC AUC
<!--
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/maste... | c96e0958da46ebef482a4084cdda3285d5f5ad23 | |
pvlib__pvlib-python-635 | 635 | pvlib/pvlib-python | 0.5 | 5d2a6c82449942346967fe7b9821c0eb524e3816 | 2018-12-14T09:26:29Z | diff --git a/ci/requirements-py27.yml b/ci/requirements-py27.yml
index 81df9d068c..cb77db8ca4 100644
--- a/ci/requirements-py27.yml
+++ b/ci/requirements-py27.yml
@@ -19,3 +19,4 @@ dependencies:
- pip:
- coveralls
- pytest-timeout
+ - pvfactors==0.1.5
diff --git a/ci/requirements-py35.yml ... | diff --git a/pvlib/test/conftest.py b/pvlib/test/conftest.py
index 48fbea3437..431ea8e46f 100644
--- a/pvlib/test/conftest.py
+++ b/pvlib/test/conftest.py
@@ -69,6 +69,7 @@ def inner():
def pandas_0_17():
return parse_version(pd.__version__) >= parse_version('0.17.0')
+
needs_pandas_0_17 = pytest.mark.skipif(
... | diff --git a/ci/requirements-py27.yml b/ci/requirements-py27.yml
index 81df9d068c..cb77db8ca4 100644
--- a/ci/requirements-py27.yml
+++ b/ci/requirements-py27.yml
@@ -19,3 +19,4 @@ dependencies:
- pip:
- coveralls
- pytest-timeout
+ - pvfactors==0.1.5
diff --git a/ci/requirements-py35.yml ... | [
{
"components": [
{
"doc": "Calculate front and back surface plane-of-array irradiance on\na fixed tilt or single-axis tracker PV array configuration, and using\nthe open-source \"pvfactors\" package.\nPlease refer to pvfactors online documentation for more details:\nhttps://sunpower.github.io/pvf... | [
"pvlib/test/test_tools.py::test_build_kwargs[keys0-input_dict0-expected0]",
"pvlib/test/test_tools.py::test_build_kwargs[keys1-input_dict1-expected1]",
"pvlib/test/test_tools.py::test_build_kwargs[keys2-input_dict2-expected2]",
"pvlib/test/test_tools.py::test_build_kwargs[keys3-input_dict3-expected3]"
] | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
pvfactors limited implementation for bifacial calculations
pvlib python pull request guidelines
====================================
Thank you for your contribution to pvlib python! You may delete... | Here is the discussion in the issues of the pull request.
<issues>
bifacial PV system modeling
implement NREL's rear-surface irradiance model for regular, fixed tilt arrays of bifacial PV models.
----------
Is this your practice problem, Cliff?!?
uh no this will be a big lift :) #423 is a good practice problem.
Mappin... | 3c84edd644fa4db54955e2225a183fa3e0405eb0 |
sympy__sympy-15627 | 15,627 | sympy/sympy | 1.4 | e2fbe231f48ec768bee63fb4fc54bdf9f31c3bd1 | 2018-12-13T21:37:58Z | diff --git a/sympy/matrices/expressions/applyfunc.py b/sympy/matrices/expressions/applyfunc.py
new file mode 100644
index 000000000000..823ff876d730
--- /dev/null
+++ b/sympy/matrices/expressions/applyfunc.py
@@ -0,0 +1,67 @@
+from sympy.matrices.expressions import MatrixExpr
+from sympy import MatrixBase
+
+
+class El... | diff --git a/sympy/core/tests/test_args.py b/sympy/core/tests/test_args.py
index b927e05ca77a..cc41e4519174 100644
--- a/sympy/core/tests/test_args.py
+++ b/sympy/core/tests/test_args.py
@@ -2622,6 +2622,14 @@ def test_sympy__matrices__expressions__slice__MatrixSlice():
assert _test_args(MatrixSlice(X, (0, 2), (0,... | [
{
"components": [
{
"doc": "Apply function to a matrix elementwise without evaluating.\n\nExamples\n========\n\n>>> from sympy.matrices.expressions import MatrixSymbol\n>>> from sympy.matrices.expressions.applyfunc import ElementwiseApplyFunction\n>>> from sympy import exp\n>>> X = MatrixSymbol(\"... | [
"test_sympy__matrices__expressions__applyfunc__ElementwiseApplyFunction"
] | [
"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>
elementwise applyfunc for matrix 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 Iss... | e941ad69638189ea42507331e417b88837357dec | ||
sympy__sympy-15615 | 15,615 | sympy/sympy | 1.4 | dd21c36eec81db24a606f6508e5fbacee5e22e17 | 2018-12-11T21:41:53Z | diff --git a/sympy/matrices/expressions/inverse.py b/sympy/matrices/expressions/inverse.py
index f2dc96ea995f..79fe8a4e45ce 100644
--- a/sympy/matrices/expressions/inverse.py
+++ b/sympy/matrices/expressions/inverse.py
@@ -67,6 +67,18 @@ def doit(self, **hints):
else:
return self.arg.inverse()
+... | diff --git a/sympy/matrices/expressions/tests/test_derivatives.py b/sympy/matrices/expressions/tests/test_derivatives.py
index 52ec7f753b53..d2735dfb2345 100644
--- a/sympy/matrices/expressions/tests/test_derivatives.py
+++ b/sympy/matrices/expressions/tests/test_derivatives.py
@@ -36,6 +36,26 @@ def test_matrix_deriva... | [
{
"components": [
{
"doc": "",
"lines": [
70,
80
],
"name": "Inverse._eval_derivative_matrix_lines",
"signature": "def _eval_derivative_matrix_lines(self, x):",
"type": "function"
}
],
"file": "sympy/matrices/expressions/inv... | [
"test_matrix_derivatives_of_traces"
] | [
"test_matrix_derivative_non_matrix_result",
"test_matrix_derivative_trivial_cases",
"test_matrix_derivative_with_inverse",
"test_matrix_derivative_vectors_and_scalars"
] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Derivative of matrix expression is now implicit
Got rid of all parsers of indexed expressions for the calculation of the matrix derivative.
<!-- Your title above should be a short description of wh... | e941ad69638189ea42507331e417b88837357dec | ||
conan-io__conan-4103 | 4,103 | conan-io/conan | null | e250f738c68383c06b46dde32fe386d160c5bd5a | 2018-12-10T18:24:30Z | diff --git a/conans/client/conan_api.py b/conans/client/conan_api.py
index 357ce44ad2f..12d306421c3 100644
--- a/conans/client/conan_api.py
+++ b/conans/client/conan_api.py
@@ -922,12 +922,12 @@ def read_profile(self, profile=None):
@api_method
def get_path(self, reference, package_id=None, path=None, remot... | diff --git a/conans/test/functional/tgz_macos_dot_files.py b/conans/test/functional/tgz_macos_dot_files.py
new file mode 100644
index 00000000000..1f4d46ee85a
--- /dev/null
+++ b/conans/test/functional/tgz_macos_dot_files.py
@@ -0,0 +1,103 @@
+import os
+import platform
+import shutil
+import subprocess
+import tempfil... | [
{
"components": [
{
"doc": "",
"lines": [
136,
144
],
"name": "apple_dot_clean",
"signature": "def apple_dot_clean(folder):",
"type": "function"
}
],
"file": "conans/client/tools/apple.py"
}
] | [
"conans/test/unittests/client/tools/test_files.py::DotCleanTest::test_handle_dirs",
"conans/test/unittests/client/tools/test_files.py::DotCleanTest::test_only_remove_matching_ones",
"conans/test/unittests/client/tools/test_files.py::DotCleanTest::test_removal_normal"
] | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Remove files containing Macos meta-data
Changelog: Feature: Remove files containing Macos meta-data (files beginning by `._`)
- [x] closes #3529
- [x] Docs: https://github.com/conan-io/docs/pull/... | Here is the discussion in the issues of the pull request.
<issues>
[question] Are there environment difference between the "developer workflow" and `conan create`?
While moving one of our _fat_ dependencies from prebuilt binaries (packaged through Conan ; ) to a recipe actually building the thing, we are encountering a... | 4a5b19a75db9225316c8cb022a2dfb9705a2af34 | |
joke2k__faker-874 | 874 | joke2k/faker | null | 02f678a3d15041e3aa10b226faae88e7d28d6696 | 2018-12-02T08:23:21Z | diff --git a/faker/providers/company/ja_JP/__init__.py b/faker/providers/company/ja_JP/__init__.py
index 649fafadaa..b650fb06f7 100644
--- a/faker/providers/company/ja_JP/__init__.py
+++ b/faker/providers/company/ja_JP/__init__.py
@@ -5,10 +5,15 @@
class Provider(CompanyProvider):
formats = (
- '{{compan... | diff --git a/tests/providers/test_company.py b/tests/providers/test_company.py
index ca6b220b55..0334a08719 100644
--- a/tests/providers/test_company.py
+++ b/tests/providers/test_company.py
@@ -37,15 +37,19 @@ def setUp(self):
def test_company(self):
prefixes = JaProvider.company_prefixes
-
pr... | [
{
"components": [
{
"doc": "",
"lines": [
18,
19
],
"name": "Provider.company_category",
"signature": "def company_category(self):",
"type": "function"
}
],
"file": "faker/providers/company/ja_JP/__init__.py"
}
] | [
"tests/providers/test_company.py::TestJaJP::test_company"
] | [
"tests/providers/test_company.py::TestFiFI::test_company_business_id",
"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_pt_BR_company_id_checksum",
"tests/providers/test_company.... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Add categories to Japanese company provider
### What does this changes
Added variety of Japanese company names.
The category list is from Ruby Faker. https://github.com/stympy/faker/blob/master/... | 6edfdbf6ae90b0153309e3bf066aa3b2d16494a7 | ||
scrapy__scrapy-3505 | 3,505 | scrapy/scrapy | null | 094dde6fdb1b03351888e437828af5da03f46352 | 2018-11-24T16:45:57Z | diff --git a/docs/topics/request-response.rst b/docs/topics/request-response.rst
index e29914dbf0f..37b73edd11d 100644
--- a/docs/topics/request-response.rst
+++ b/docs/topics/request-response.rst
@@ -508,6 +508,44 @@ method for this job. Here's an example spider which uses it::
# continue scraping with ... | diff --git a/tests/test_http_request.py b/tests/test_http_request.py
index 58326a38430..49f14801658 100644
--- a/tests/test_http_request.py
+++ b/tests/test_http_request.py
@@ -2,6 +2,8 @@
import cgi
import unittest
import re
+import json
+import warnings
import six
from six.moves import xmlrpc_client as xmlrpcl... | diff --git a/docs/topics/request-response.rst b/docs/topics/request-response.rst
index e29914dbf0f..37b73edd11d 100644
--- a/docs/topics/request-response.rst
+++ b/docs/topics/request-response.rst
@@ -508,6 +508,44 @@ method for this job. Here's an example spider which uses it::
# continue scraping with ... | [
{
"components": [
{
"doc": "",
"lines": [
15,
53
],
"name": "JSONRequest",
"signature": "class JSONRequest(Request):",
"type": "class"
},
{
"doc": "",
"lines": [
16,
36
],
"n... | [
"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+2] Request subclass for json requests #3504
PR for #3504
This is a more convenient subclass of Request when dealing with json requests. This would allow something like this.
from scrap... | 57a5460529ff71c42e4d0381265b1b512b1eb09b | |
sympy__sympy-15490 | 15,490 | sympy/sympy | 1.4 | abd4da1552b5019a2e8b4a0e3ade21478bc1783f | 2018-11-13T17:11:34Z | diff --git a/sympy/codegen/array_utils.py b/sympy/codegen/array_utils.py
index 3fbacd310fe0..db34d3356c48 100644
--- a/sympy/codegen/array_utils.py
+++ b/sympy/codegen/array_utils.py
@@ -64,6 +64,9 @@ def __new__(cls, expr, *contraction_indices, **kwargs):
contraction_indices = _sort_contraction_indices(contra... | diff --git a/sympy/codegen/tests/test_array_utils.py b/sympy/codegen/tests/test_array_utils.py
index 62ff5a875134..cfcec788a05e 100644
--- a/sympy/codegen/tests/test_array_utils.py
+++ b/sympy/codegen/tests/test_array_utils.py
@@ -22,6 +22,9 @@
def test_codegen_array_contraction_construction():
+ cg = CodegenAr... | [
{
"components": [
{
"doc": "Get the mapping of indices at the positions before the contraction\noccures.\n\nExamples\n========\n\n>>> from sympy.codegen.array_utils import CodegenArrayContraction, CodegenArrayTensorProduct\n>>> from sympy import MatrixSymbol\n>>> M = MatrixSymbol(\"M\", 3, 3)\n>>>... | [
"test_codegen_array_contraction_construction"
] | [
"test_codegen_array_contraction_indices_types",
"test_codegen_array_recognize_matrix_mul_lines",
"test_codegen_array_flatten",
"test_codegen_array_parse",
"test_codegen_array_diagonal",
"test_codegen_recognize_matrix_expression",
"test_codegen_array_shape",
"test_codegen_array_parse_out_of_bounds"
] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Allow permutation of dimensions to be sunk into the expression tree
<!-- Your title above should be a short description of what
was changed. Do not include the issue number in the title. -->
#### ... | e941ad69638189ea42507331e417b88837357dec | ||
scikit-learn__scikit-learn-12569 | 12,569 | scikit-learn/scikit-learn | 0.22 | d369a5f294bed106135216325bbc12a85f161a3d | 2018-11-12T13:38:46Z | diff --git a/doc/modules/classes.rst b/doc/modules/classes.rst
index 444895245bf6b..f02e91782e07d 100644
--- a/doc/modules/classes.rst
+++ b/doc/modules/classes.rst
@@ -1208,9 +1208,10 @@ Model validation
:template: class.rst
naive_bayes.BernoulliNB
+ naive_bayes.CategoricalNB
+ naive_bayes.ComplementNB
... | diff --git a/sklearn/tests/test_naive_bayes.py b/sklearn/tests/test_naive_bayes.py
index 60770041e0dfd..0eee076bd91e5 100644
--- a/sklearn/tests/test_naive_bayes.py
+++ b/sklearn/tests/test_naive_bayes.py
@@ -20,6 +20,7 @@
from sklearn.naive_bayes import GaussianNB, BernoulliNB
from sklearn.naive_bayes import Multi... | diff --git a/doc/modules/classes.rst b/doc/modules/classes.rst
index 444895245bf6b..f02e91782e07d 100644
--- a/doc/modules/classes.rst
+++ b/doc/modules/classes.rst
@@ -1208,9 +1208,10 @@ Model validation
:template: class.rst
naive_bayes.BernoulliNB
+ naive_bayes.CategoricalNB
+ naive_bayes.ComplementNB
... | [
{
"components": [
{
"doc": "Validate input X\n ",
"lines": [
55,
58
],
"name": "BaseNB._check_X",
"signature": "def _check_X(self, X):",
"type": "function"
},
{
"doc": "",
"lines": [
210,
... | [
"sklearn/tests/test_naive_bayes.py::test_gnb",
"sklearn/tests/test_naive_bayes.py::test_gnb_prior",
"sklearn/tests/test_naive_bayes.py::test_gnb_sample_weight",
"sklearn/tests/test_naive_bayes.py::test_gnb_neg_priors",
"sklearn/tests/test_naive_bayes.py::test_gnb_priors",
"sklearn/tests/test_naive_bayes.p... | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
[MRG+1] FEA Add Categorical Naive Bayes
#### Reference Issues/PRs
Impelements Categorical NB from [#10856](https://github.com/scikit-learn/scikit-learn/issues/10856)
#### What does this implement/... | c96e0958da46ebef482a4084cdda3285d5f5ad23 | |
joke2k__faker-865 | 865 | joke2k/faker | null | 8b32acac10662f7fbd34a62e9939dd3367fe9d79 | 2018-10-31T16:23:08Z | diff --git a/faker/providers/automotive/sv_SE/__init__.py b/faker/providers/automotive/sv_SE/__init__.py
new file mode 100644
index 0000000000..1cb540ae80
--- /dev/null
+++ b/faker/providers/automotive/sv_SE/__init__.py
@@ -0,0 +1,16 @@
+# coding=utf-8
+
+
+from __future__ import unicode_literals
+from .. import Provid... | diff --git a/tests/providers/test_automotive.py b/tests/providers/test_automotive.py
index 784fe1d05a..88c57c5cd0 100644
--- a/tests/providers/test_automotive.py
+++ b/tests/providers/test_automotive.py
@@ -39,3 +39,13 @@ def test_de_DE_plate_format(self):
plate = self.factory.license_plate()
assert r... | [
{
"components": [
{
"doc": "",
"lines": [
8,
15
],
"name": "Provider",
"signature": "class Provider(AutomotiveProvider):",
"type": "class"
}
],
"file": "faker/providers/automotive/sv_SE/__init__.py"
}
] | [
"tests/providers/test_automotive.py::TestSvSE::test_sv_SE_plate_format"
] | [
"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"
] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
sv_SE license plates added
### What does this changes
Added Swedish license plate format.
### What was wrong
```python
fake.license_plate()
#=> 'RRT-6172'
```
### How this fixes it
... | 6edfdbf6ae90b0153309e3bf066aa3b2d16494a7 | ||
astropy__astropy-7970 | 7,970 | astropy/astropy | 3.0 | e222ffffbab7e38aec2134a31552c99aa90b0047 | 2018-10-25T17:06:00Z | diff --git a/CHANGES.rst b/CHANGES.rst
index bbd4ad7014dc..ca55537547af 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -224,6 +224,8 @@ astropy.units
- ``AB`` and ``ST`` are now enabled by default, and have alternate names
``ABflux`` and ``STflux`` [#7891]
+- Added ``littleh`` unit and associated ``with_H0`` equiv... | diff --git a/astropy/units/tests/test_equivalencies.py b/astropy/units/tests/test_equivalencies.py
index 1ddd556627a3..5b7b2a7fe434 100644
--- a/astropy/units/tests/test_equivalencies.py
+++ b/astropy/units/tests/test_equivalencies.py
@@ -10,7 +10,7 @@
# LOCAL
from ... import units as u
-from ... import constants
+... | diff --git a/CHANGES.rst b/CHANGES.rst
index bbd4ad7014dc..ca55537547af 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -224,6 +224,8 @@ astropy.units
- ``AB`` and ``ST`` are now enabled by default, and have alternate names
``ABflux`` and ``STflux`` [#7891]
+- Added ``littleh`` unit and associated ``with_H0`` equiv... | [
{
"components": [
{
"doc": "Convert between quantities with little-h and the equivalent physical units.\n\nParameters\n----------\nH0 : `None` or `~astropy.units.Quantity`\n The value of the Hubble constant to assume. If a `~astropy.units.Quantity`,\n will assume the quantity *is* ``H0``. I... | [
"astropy/units/tests/test_equivalencies.py::test_littleh"
] | [
"astropy/units/tests/test_equivalencies.py::test_dimensionless_angles",
"astropy/units/tests/test_equivalencies.py::test_logarithmic[log_unit0]",
"astropy/units/tests/test_equivalencies.py::test_logarithmic[log_unit1]",
"astropy/units/tests/test_equivalencies.py::test_logarithmic[log_unit2]",
"astropy/units... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Little h equivalency
This adds a new `littleh` equivalency. Based on my experience as a grad student, this PR will serve to rescue many students from confusion who are starting with extragalactic or c... | 7de4f351b0a2b9b177b5ada1143caca467367cfe | |
lark-parser__lark-260 | 260 | lark-parser/lark | null | a892f184e30632455487aa6174b456b2bfc7e135 | 2018-10-24T15:35:55Z | diff --git a/docs/classes.md b/docs/classes.md
index 3a69f7327..68c133c6b 100644
--- a/docs/classes.md
+++ b/docs/classes.md
@@ -76,7 +76,11 @@ Returns all nodes of the tree whose data equals the given data.
#### iter_subtrees(self)
-Iterates over all the subtrees, never returning to the same node twice (Lark's pa... | diff --git a/tests/test_trees.py b/tests/test_trees.py
index 564d02bad..7e1d841e9 100644
--- a/tests/test_trees.py
+++ b/tests/test_trees.py
@@ -21,6 +21,17 @@ def test_pickle(self):
data = pickle.dumps(s)
assert pickle.loads(data) == s
+ def test_iter_subtrees(self):
+ expected = [Tree('b... | diff --git a/docs/classes.md b/docs/classes.md
index 3a69f7327..68c133c6b 100644
--- a/docs/classes.md
+++ b/docs/classes.md
@@ -76,7 +76,11 @@ Returns all nodes of the tree whose data equals the given data.
#### iter_subtrees(self)
-Iterates over all the subtrees, never returning to the same node twice (Lark's pa... | [
{
"components": [
{
"doc": "",
"lines": [
104,
112
],
"name": "Tree.iter_subtrees_topdown",
"signature": "def iter_subtrees_topdown(self):",
"type": "function"
}
],
"file": "lark/tree.py"
}
] | [
"tests/test_trees.py::TestTrees::test_iter_subtrees_topdown"
] | [
"tests/test_trees.py::TestTrees::test_deepcopy",
"tests/test_trees.py::TestTrees::test_interp",
"tests/test_trees.py::TestTrees::test_iter_subtrees",
"tests/test_trees.py::TestTrees::test_pickle",
"tests/test_trees.py::TestTrees::test_transformer",
"tests/test_trees.py::TestTrees::test_vargs"
] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Method iter_subtrees_topdown added
I am not a big hacker, but looks working
----------
</request>
There are several new functions or classes that need to be implemented, using the definitions below:... | 5faea9223cc54d1dbd0985cf830d05a10a7729ec | |
joke2k__faker-846 | 846 | joke2k/faker | null | 6ec90cdafd211713ca77b242114feefd55e972bc | 2018-10-20T00:07:17Z | diff --git a/faker/providers/ssn/bg_BG/__init__.py b/faker/providers/ssn/bg_BG/__init__.py
new file mode 100644
index 0000000000..d606f148d6
--- /dev/null
+++ b/faker/providers/ssn/bg_BG/__init__.py
@@ -0,0 +1,21 @@
+# coding=utf-8
+from .. import Provider as BaseProvider
+
+
+class Provider(BaseProvider):
+ """
+ ... | diff --git a/tests/providers/test_ssn.py b/tests/providers/test_ssn.py
index 495a612ed1..0e09f3f895 100644
--- a/tests/providers/test_ssn.py
+++ b/tests/providers/test_ssn.py
@@ -2,8 +2,8 @@
from __future__ import unicode_literals
-import unittest
import re
+import unittest
from datetime import datetime
impor... | [
{
"components": [
{
"doc": "A Faker provider for the Bulgarian VAT IDs",
"lines": [
5,
21
],
"name": "Provider",
"signature": "class Provider(BaseProvider):",
"type": "class"
},
{
"doc": "http://ec.europa.eu/taxation_c... | [
"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::TestEsES::test_vat_id",
"tests/providers/test_ssn.py::TestEt... | [
"tests/providers/test_ssn.py::TestEnCA::test_ssn",
"tests/providers/test_ssn.py::TestEnUS::test_bad_tin_type",
"tests/providers/test_ssn.py::TestEnUS::test_ein",
"tests/providers/test_ssn.py::TestEnUS::test_itin",
"tests/providers/test_ssn.py::TestEnUS::test_prohibited_ssn_value",
"tests/providers/test_ss... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Feature/tax ids
### What does this changes
This adds VAT IDs for European Union Locales to the SSN provider
### What was wrong
It was simply a feature I was missing and thought would be worth... | Here is the discussion in the issues of the pull request.
<issues>
How to write external provider with locale support?
Brief summary of the issue goes here.
### Steps to reproduce
1. Build an external provider package
2. Set the locale for Faker
3. Generate a fake using your own provider
### Expected behavio... | 6edfdbf6ae90b0153309e3bf066aa3b2d16494a7 | |
joke2k__faker-840 | 840 | joke2k/faker | null | 222dbaedf9304df429b30b990eed274f149f0436 | 2018-10-16T18:23:15Z | diff --git a/faker/providers/bank/pl_PL/__init__.py b/faker/providers/bank/pl_PL/__init__.py
new file mode 100644
index 0000000000..8fa318adae
--- /dev/null
+++ b/faker/providers/bank/pl_PL/__init__.py
@@ -0,0 +1,6 @@
+from .. import Provider as BankProvider
+
+
+class Provider(BankProvider):
+ bban_format = '#' * 2... | diff --git a/tests/providers/test_bank.py b/tests/providers/test_bank.py
index 3a0ae3bb7a..2e58af4612 100644
--- a/tests/providers/test_bank.py
+++ b/tests/providers/test_bank.py
@@ -15,3 +15,18 @@ def setUp(self):
def test_bban(self):
bban = self.factory.bban()
assert re.match("\d{11}", bban)
+
... | [
{
"components": [
{
"doc": "",
"lines": [
4,
6
],
"name": "Provider",
"signature": "class Provider(BankProvider):",
"type": "class"
}
],
"file": "faker/providers/bank/pl_PL/__init__.py"
}
] | [
"tests/providers/test_bank.py::TestPlPL::test_bban",
"tests/providers/test_bank.py::TestPlPL::test_iban"
] | [
"tests/providers/test_bank.py::TestNoNO::test_bban"
] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Add bank provider for pl_PL locale
### What does this changes
Adds bank provider for pl_PL locale.
### What was wrong
Bank provider for pl_PL locale didn't exist before.
### How this fixes... | 6edfdbf6ae90b0153309e3bf066aa3b2d16494a7 | ||
joke2k__faker-839 | 839 | joke2k/faker | null | 222dbaedf9304df429b30b990eed274f149f0436 | 2018-10-16T15:36:08Z | diff --git a/faker/providers/phone_number/th_TH/__init__.py b/faker/providers/phone_number/th_TH/__init__.py
new file mode 100644
index 0000000000..609bbb2182
--- /dev/null
+++ b/faker/providers/phone_number/th_TH/__init__.py
@@ -0,0 +1,9 @@
+from __future__ import unicode_literals
+from .. import Provider as PhoneNumb... | diff --git a/tests/providers/test_phone_number.py b/tests/providers/test_phone_number.py
index 156082cbff..f433f88952 100644
--- a/tests/providers/test_phone_number.py
+++ b/tests/providers/test_phone_number.py
@@ -73,3 +73,25 @@ def setUp(self):
def test_phone_number(self):
phone_number = self.factory.ph... | [
{
"components": [
{
"doc": "",
"lines": [
5,
8
],
"name": "Provider",
"signature": "class Provider(PhoneNumberProvider):",
"type": "class"
}
],
"file": "faker/providers/phone_number/th_TH/__init__.py"
}
] | [
"tests/providers/test_phone_number.py::TestThTH::test_phone_number_should_be_in_defined_format"
] | [
"tests/providers/test_phone_number.py::TestPhoneNumber::test_cellphone_pt_br",
"tests/providers/test_phone_number.py::TestPhoneNumber::test_msisdn",
"tests/providers/test_phone_number.py::TestPhoneNumber::test_msisdn_pt_br",
"tests/providers/test_phone_number.py::TestPhoneNumber::test_phone_number",
"tests/... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Add phone number format in Thailand :bear:
### What does this changes
* Add phone number format in Thailand.
* Add test to check the format.
----------
</request>
There are several new funct... | 6edfdbf6ae90b0153309e3bf066aa3b2d16494a7 | ||
sympy__sympy-15396 | 15,396 | sympy/sympy | 1.6 | 20358ad1d00438592b54451ddd372fd715e29733 | 2018-10-16T14:28:07Z | diff --git a/sympy/polys/domains/gaussiandomains.py b/sympy/polys/domains/gaussiandomains.py
new file mode 100644
index 000000000000..ee1bc87f094a
--- /dev/null
+++ b/sympy/polys/domains/gaussiandomains.py
@@ -0,0 +1,317 @@
+"""Domains of Gaussian type."""
+
+from sympy.core.basic import Basic
+from sympy.core.numbers ... | diff --git a/sympy/polys/domains/tests/test_domains.py b/sympy/polys/domains/tests/test_domains.py
index 87b9ecec6736..068ef65d8920 100644
--- a/sympy/polys/domains/tests/test_domains.py
+++ b/sympy/polys/domains/tests/test_domains.py
@@ -1,10 +1,11 @@
"""Tests for classes defining properties of ground domains, e.g. Z... | [
{
"components": [
{
"doc": "Base class for elements of Gaussian type domains.",
"lines": [
12,
100
],
"name": "GaussianElement",
"signature": "class GaussianElement(DomainElement):",
"type": "class"
},
{
"doc": "",
... | [
"test_Domain_unify",
"test_Domain_unify_composite",
"test_Domain_unify_algebraic",
"test_Domain_unify_with_symbols",
"test_Domain__contains__",
"test_Domain_get_ring",
"test_Domain_get_field",
"test_Domain_get_exact",
"test_Domain_convert",
"test_PolynomialRing__init",
"test_FractionField__init"... | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
domains: Added Gaussian integers and rationals
<!-- 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... | 6daf556517f9fa61a7805fe93d8a366688781617 | ||
scikit-learn__scikit-learn-12371 | 12,371 | scikit-learn/scikit-learn | 0.22 | 70b0ddea992c01df1a41588fa9e2d130fb6b13f8 | 2018-10-12T17:50:41Z | diff --git a/doc/modules/classes.rst b/doc/modules/classes.rst
index 7d5ba88cd571b..cdbdc3142a80f 100644
--- a/doc/modules/classes.rst
+++ b/doc/modules/classes.rst
@@ -152,6 +152,7 @@ details.
:template: function.rst
compose.make_column_transformer
+ compose.make_column_selector
.. _covariance_ref:
di... | diff --git a/sklearn/compose/tests/test_column_transformer.py b/sklearn/compose/tests/test_column_transformer.py
index e95cef53df359..b635842e3d648 100644
--- a/sklearn/compose/tests/test_column_transformer.py
+++ b/sklearn/compose/tests/test_column_transformer.py
@@ -2,19 +2,23 @@
Test the ColumnTransformer.
"""
im... | diff --git a/doc/modules/classes.rst b/doc/modules/classes.rst
index 7d5ba88cd571b..cdbdc3142a80f 100644
--- a/doc/modules/classes.rst
+++ b/doc/modules/classes.rst
@@ -152,6 +152,7 @@ details.
:template: function.rst
compose.make_column_transformer
+ compose.make_column_selector
.. _covariance_ref:
di... | [
{
"components": [
{
"doc": "Create a callable to select columns to be used with\n:class:`ColumnTransformer`.\n\n:func:`make_column_selector` can select columns based on datatype or the\ncolumns name with a regex. When using multiple selection criteria, **all**\ncriteria must match for a column to ... | [
"sklearn/compose/tests/test_column_transformer.py::test_column_transformer",
"sklearn/compose/tests/test_column_transformer.py::test_column_transformer_dataframe",
"sklearn/compose/tests/test_column_transformer.py::test_column_transformer_empty_columns[list-pandas]",
"sklearn/compose/tests/test_column_transfo... | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
FEA Add make_column_selector for ColumnTransformer
#### Reference Issues/PRs
Addresses #12303 for data type selection.
#### What does this implement/fix? Explain your changes.
Adds a factory meth... | Here is the discussion in the issues of the pull request.
<issues>
[WIP] Column selector functions for ColumnTransformer
#### Reference Issues
Closes #11190
#### What does this implement?
This PR introduces functions to generate column selector callables that can be passed to `make_column_transformer` and `Column... | c96e0958da46ebef482a4084cdda3285d5f5ad23 |
rytilahti__python-miio-390 | 390 | rytilahti/python-miio | null | 8eb7097955949453d480ec2d7ebbcfcdb31e655f | 2018-10-08T19:35:16Z | diff --git a/miio/airfresh.py b/miio/airfresh.py
index ce7adf22b..8007cd3fe 100644
--- a/miio/airfresh.py
+++ b/miio/airfresh.py
@@ -80,6 +80,11 @@ def mode(self) -> OperationMode:
"""Current operation mode."""
return OperationMode(self.data["mode"])
+ @property
+ def led(self) -> bool:
+ ... | diff --git a/miio/tests/test_airfresh.py b/miio/tests/test_airfresh.py
index aa200f445..5259a2129 100644
--- a/miio/tests/test_airfresh.py
+++ b/miio/tests/test_airfresh.py
@@ -28,7 +28,7 @@ def __init__(self, *args, **kwargs):
'filter_life': 80,
'f_hour': 3500,
'favorite_level': ... | [
{
"components": [
{
"doc": "Return True if LED is on.",
"lines": [
84,
86
],
"name": "AirFreshStatus.led",
"signature": "def led(self) -> bool:",
"type": "function"
},
{
"doc": "Turn led on/off.",
"lines": [
... | [
"miio/tests/test_airfresh.py::TestAirFresh::test_set_led",
"miio/tests/test_airfresh.py::TestAirFresh::test_status"
] | [
"miio/tests/test_airfresh.py::TestAirFresh::test_off",
"miio/tests/test_airfresh.py::TestAirFresh::test_on",
"miio/tests/test_airfresh.py::TestAirFresh::test_reset_filter",
"miio/tests/test_airfresh.py::TestAirFresh::test_set_buzzer",
"miio/tests/test_airfresh.py::TestAirFresh::test_set_child_lock",
"miio... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Add property LED to the Xiaomi Air Fresh
----------
</request>
There are several new functions or classes that need to be implemented, using the definitions below:
<<NEW DEFINITIONS>>
There are se... | 62427d2f796e603520acca3b57b29ec3e6489bca | ||
sympy__sympy-15333 | 15,333 | sympy/sympy | 1.4 | e9391157d4d75e9369b323520bb1517be23d38a6 | 2018-10-03T16:29:30Z | diff --git a/sympy/tensor/array/dense_ndim_array.py b/sympy/tensor/array/dense_ndim_array.py
index 8cedc0ce08a8..d71adb505004 100644
--- a/sympy/tensor/array/dense_ndim_array.py
+++ b/sympy/tensor/array/dense_ndim_array.py
@@ -48,15 +48,7 @@ def __getitem__(self, index):
return syindex
if isinst... | diff --git a/sympy/tensor/array/tests/test_immutable_ndim_array.py b/sympy/tensor/array/tests/test_immutable_ndim_array.py
index d17387ed92c2..d0c708b3e43b 100644
--- a/sympy/tensor/array/tests/test_immutable_ndim_array.py
+++ b/sympy/tensor/array/tests/test_immutable_ndim_array.py
@@ -13,6 +13,14 @@ def test_ndim_arra... | [
{
"components": [
{
"doc": "",
"lines": [
428,
432
],
"name": "NDimArray._slice_expand",
"signature": "def _slice_expand(self, s, dim):",
"type": "function"
},
{
"doc": "",
"lines": [
434,
4... | [
"test_slices_assign"
] | [
"test_ndim_array_initiation",
"test_reshape",
"test_iterator",
"test_sparse",
"test_calculation",
"test_ndim_array_converting",
"test_converting_functions",
"test_equality",
"test_arithmetic",
"test_higher_dimenions",
"test_rebuild_immutable_arrays",
"test_slices",
"test_diff_and_applyfunc",... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Added support for slice assignments to N-dimensional arrays
<!-- Your title above should be a short description of what
was changed. Do not include the issue number in the title. -->
#### Referenc... | e941ad69638189ea42507331e417b88837357dec | ||
scikit-learn__scikit-learn-12232 | 12,232 | scikit-learn/scikit-learn | 0.21 | e1c3c228b28c0fd1b1c6763a3da579d21bee63d1 | 2018-10-01T10:40:42Z | diff --git a/doc/modules/classes.rst b/doc/modules/classes.rst
index 57ccfb5cff704..0084bb3f76b85 100644
--- a/doc/modules/classes.rst
+++ b/doc/modules/classes.rst
@@ -865,6 +865,7 @@ details.
:template: function.rst
metrics.explained_variance_score
+ metrics.max_error
metrics.mean_absolute_error
m... | diff --git a/sklearn/metrics/tests/test_common.py b/sklearn/metrics/tests/test_common.py
index 16e4f5d4c76da..21c5e97444db6 100644
--- a/sklearn/metrics/tests/test_common.py
+++ b/sklearn/metrics/tests/test_common.py
@@ -40,6 +40,7 @@
from sklearn.metrics import label_ranking_average_precision_score
from sklearn.metr... | diff --git a/doc/modules/classes.rst b/doc/modules/classes.rst
index 57ccfb5cff704..0084bb3f76b85 100644
--- a/doc/modules/classes.rst
+++ b/doc/modules/classes.rst
@@ -865,6 +865,7 @@ details.
:template: function.rst
metrics.explained_variance_score
+ metrics.max_error
metrics.mean_absolute_error
m... | [
{
"components": [
{
"doc": "max_error metric calculates the maximum residual error.\n\nRead more in the :ref:`User Guide <max_error>`.\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 ... | [
"sklearn/metrics/tests/test_common.py::test_symmetry",
"sklearn/metrics/tests/test_common.py::test_sample_order_invariance[micro_recall_score]",
"sklearn/metrics/tests/test_common.py::test_sample_order_invariance[macro_precision_score]",
"sklearn/metrics/tests/test_common.py::test_sample_order_invariance[micr... | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
[MRG+2] Add max_error to the existing set of metrics for regression
<!--
Thanks for contributing a pull request! Please ensure you have taken a look at
the contribution guidelines: https://github.co... | Here is the discussion in the issues of the pull request.
<issues>
Add max error metric for regression
<!--
If your issue is a usage question, submit it here instead:
- StackOverflow with the scikit-learn tag: http://stackoverflow.com/questions/tagged/scikit-learn
- Mailing List: https://mail.python.org/mailman/list... | 66cc1c7342f7f0cc0dc57fb6d56053fc46c8e5f0 |
sphinx-doc__sphinx-5474 | 5,474 | sphinx-doc/sphinx | 7.2 | c9d4a1a204f514dab89c9238a463c96a2d0e0105 | 2018-09-23T14:40:19Z | diff --git a/CHANGES b/CHANGES
index e74ec0e63e9..8cd074da2e5 100644
--- a/CHANGES
+++ b/CHANGES
@@ -22,6 +22,8 @@ Features added
* #11526: Support ``os.PathLike`` types and ``pathlib.Path`` objects
in many more places.
+* #5474: coverage: Print summary statistics tables.
+ Patch by Jorge Leitao.
Bugs fixed
... | diff --git a/tests/test_ext_coverage.py b/tests/test_ext_coverage.py
index 55064e63adc..af8cf535211 100644
--- a/tests/test_ext_coverage.py
+++ b/tests/test_ext_coverage.py
@@ -28,7 +28,7 @@ def test_build(app, status, warning):
assert 'api.h' in c_undoc
assert ' * Py_SphinxTest' in c_undoc
- undoc_py, u... | diff --git a/CHANGES b/CHANGES
index e74ec0e63e9..8cd074da2e5 100644
--- a/CHANGES
+++ b/CHANGES
@@ -22,6 +22,8 @@ Features added
* #11526: Support ``os.PathLike`` types and ``pathlib.Path`` objects
in many more places.
+* #5474: coverage: Print summary statistics tables.
+ Patch by Jorge Leitao.
Bugs fixed
... | [
{
"components": [
{
"doc": "",
"lines": [
48,
55
],
"name": "_write_table",
"signature": "def _write_table(table: list[list[str]]) -> Iterator[str]:",
"type": "function"
},
{
"doc": "",
"lines": [
58,... | [
"tests/test_ext_coverage.py::test_build",
"tests/test_ext_coverage.py::test_coverage_ignore_pyobjects"
] | [
"tests/test_ext_coverage.py::test_show_missing_items",
"tests/test_ext_coverage.py::test_show_missing_items_quiet"
] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Adds summary statistics to coverage report
Subject: Adds a table with a summary of the coverage report:
```
+-----------------------+----------+--------------+
| Module | Coverage ... | 05a14ff007038c45336d18b137718c6eab16f9cf | |
prometheus__client_python-306 | 306 | prometheus/client_python | null | d1e8b3493ce4c2a86c7f419c6122a428edad15b0 | 2018-09-20T12:29:19Z | diff --git a/prometheus_client/core.py b/prometheus_client/core.py
index cb1e7c5b..dfd814e3 100644
--- a/prometheus_client/core.py
+++ b/prometheus_client/core.py
@@ -49,6 +49,8 @@ class Timestamp(object):
def __init__(self, sec, nsec):
if nsec < 0 or nsec >= 1e9:
raise ValueError("Invalid va... | diff --git a/tests/openmetrics/test_exposition.py b/tests/openmetrics/test_exposition.py
index 56462722..b4b08961 100644
--- a/tests/openmetrics/test_exposition.py
+++ b/tests/openmetrics/test_exposition.py
@@ -134,11 +134,13 @@ def collect(self):
generate_latest(self.registry)
def test_gaugehistogr... | [
{
"components": [
{
"doc": "",
"lines": [
69,
70
],
"name": "Timestamp.__ne__",
"signature": "def __ne__(self, other):",
"type": "function"
},
{
"doc": "",
"lines": [
72,
73
],
... | [
"tests/openmetrics/test_exposition.py::TestGenerateText::test_gaugehistogram",
"tests/openmetrics/test_parser.py::TestParse::test_duplicate_timestamps",
"tests/openmetrics/test_parser.py::TestParse::test_info_timestamps",
"tests/openmetrics/test_parser.py::TestParse::test_invalid_input",
"tests/openmetrics/... | [
"tests/openmetrics/test_exposition.py::TestGenerateText::test_counter",
"tests/openmetrics/test_exposition.py::TestGenerateText::test_counter_total",
"tests/openmetrics/test_exposition.py::TestGenerateText::test_enum",
"tests/openmetrics/test_exposition.py::TestGenerateText::test_escaping",
"tests/openmetri... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Add gsum/gcount to GaugeHistogram.
Allow gsum, gcount, and created to be sanely returned in Prometheus
format.
Extend openmetrics parser unittests to cover Info and StateSet.
@SuperQ
---------... | 09a5ae30602a7a81f6174dae4ba08b93ee7feed2 | ||
sympy__sympy-15247 | 15,247 | sympy/sympy | 1.4 | a5f8d07d55219e577f671bbbd7408fa2a1e3cd93 | 2018-09-15T12:08:11Z | diff --git a/sympy/utilities/misc.py b/sympy/utilities/misc.py
index 8e013b3c4142..cb80df3bddf1 100644
--- a/sympy/utilities/misc.py
+++ b/sympy/utilities/misc.py
@@ -7,7 +7,7 @@
import re as _re
import struct
from textwrap import fill, dedent
-from sympy.core.compatibility import get_function_name, range
+from symp... | diff --git a/sympy/utilities/tests/test_misc.py b/sympy/utilities/tests/test_misc.py
index 14df99ab743f..153325135abc 100644
--- a/sympy/utilities/tests/test_misc.py
+++ b/sympy/utilities/tests/test_misc.py
@@ -1,5 +1,5 @@
from sympy.core.compatibility import unichr
-from sympy.utilities.misc import translate, replace... | [
{
"components": [
{
"doc": "Return ordinal number string of num, e.g. 1 becomes 1st.\n ",
"lines": [
426,
450
],
"name": "ordinal",
"signature": "def ordinal(num):",
"type": "function"
}
],
"file": "sympy/utilities/misc.p... | [
"test_translate",
"test_replace"
] | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
ordinal(1)->1st: ordinal added to misc
<!-- 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 ... | e941ad69638189ea42507331e417b88837357dec | ||
scrapy__scrapy-3415 | 3,415 | scrapy/scrapy | null | 23bffff5673137654568bc7de39a07550aeb1f2f | 2018-09-05T13:50:40Z | diff --git a/docs/topics/telnetconsole.rst b/docs/topics/telnetconsole.rst
index ce79c9f3535..bf2ffa44303 100644
--- a/docs/topics/telnetconsole.rst
+++ b/docs/topics/telnetconsole.rst
@@ -16,6 +16,17 @@ The telnet console is a :ref:`built-in Scrapy extension
disable it if you want. For more information about the exte... | diff --git a/tests/test_extension_telnet.py b/tests/test_extension_telnet.py
new file mode 100644
index 00000000000..4f389e5cb0f
--- /dev/null
+++ b/tests/test_extension_telnet.py
@@ -0,0 +1,60 @@
+try:
+ import unittest.mock as mock
+except ImportError:
+ import mock
+
+from twisted.trial import unittest
+from t... | diff --git a/docs/topics/telnetconsole.rst b/docs/topics/telnetconsole.rst
index ce79c9f3535..bf2ffa44303 100644
--- a/docs/topics/telnetconsole.rst
+++ b/docs/topics/telnetconsole.rst
@@ -16,6 +16,17 @@ The telnet console is a :ref:`built-in Scrapy extension
disable it if you want. For more information about the exte... | [
{
"components": [
{
"doc": "An implementation of IPortal",
"lines": [
80,
93
],
"name": "TelnetConsole.protocol.Portal",
"signature": "class Portal:",
"type": "class"
},
{
"doc": "",
"lines": [
83,
... | [
"tests/test_extension_telnet.py::TelnetExtensionTest::test_bad_credentials",
"tests/test_extension_telnet.py::TelnetExtensionTest::test_custom_credentials",
"tests/test_extension_telnet.py::TelnetExtensionTest::test_good_credentials"
] | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
[MRG+1] Telnet console authentication
This PR adds username/password authentication to Telnet console extension.
ToDo:
- [x] Implement username/password auth
- [x] Implement random password by de... | 57a5460529ff71c42e4d0381265b1b512b1eb09b | |
prometheus__client_python-302 | 302 | prometheus/client_python | null | 10c8eb4a83069877dc89695fbad236a88e2094f9 | 2018-09-05T11:48:04Z | diff --git a/prometheus_client/core.py b/prometheus_client/core.py
index da3034d0..cb1e7c5b 100644
--- a/prometheus_client/core.py
+++ b/prometheus_client/core.py
@@ -185,7 +185,7 @@ def get_sample_value(self, name, labels=None):
REGISTRY = CollectorRegistry(auto_describe=True)
'''The default registry.'''
-_METRIC_... | diff --git a/tests/test_multiprocess.py b/tests/test_multiprocess.py
index ca84913f..501cb62f 100644
--- a/tests/test_multiprocess.py
+++ b/tests/test_multiprocess.py
@@ -1,9 +1,17 @@
from __future__ import unicode_literals
+import glob
import os
import shutil
+import sys
import tempfile
-import unittest
+
+if sy... | [
{
"components": [
{
"doc": "Format a key for use in the mmap file.",
"lines": [
589,
593
],
"name": "_mmap_key",
"signature": "def _mmap_key(metric_name, name, labelnames, labelvalues):",
"type": "function"
}
],
"file": "pro... | [
"tests/test_multiprocess.py::TestMultiProcess::test_merge_no_accumulate"
] | [
"tests/test_multiprocess.py::TestMultiProcess::test_collect",
"tests/test_multiprocess.py::TestMultiProcess::test_counter_across_forks",
"tests/test_multiprocess.py::TestMultiProcess::test_counter_adds",
"tests/test_multiprocess.py::TestMultiProcess::test_gauge_all",
"tests/test_multiprocess.py::TestMultiPr... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Refactor MultiProcessCollector.collect() to allow for arbitrary merging.
Factors out a merge() method from the previous collect() method, which
is parameterized, and thus can be used for arbitrary me... | 09a5ae30602a7a81f6174dae4ba08b93ee7feed2 | ||
sympy__sympy-15184 | 15,184 | sympy/sympy | 1.2 | b69d4c27f298766f1f9c5f6bb17dcf7ae71bb67b | 2018-09-03T17:25:19Z | diff --git a/sympy/series/sequences.py b/sympy/series/sequences.py
index 08f36df06177..1959e7ac6229 100644
--- a/sympy/series/sequences.py
+++ b/sympy/series/sequences.py
@@ -3,7 +3,8 @@
from sympy.core.basic import Basic
from sympy.core.mul import Mul
from sympy.core.singleton import S, Singleton
-from sympy.core.s... | diff --git a/sympy/core/tests/test_args.py b/sympy/core/tests/test_args.py
index 538682f0329e..f0a801914c40 100644
--- a/sympy/core/tests/test_args.py
+++ b/sympy/core/tests/test_args.py
@@ -10,7 +10,7 @@
import io
from sympy import (Basic, S, symbols, sqrt, sin, oo, Interval, exp, Lambda, pi,
- E... | [
{
"components": [
{
"doc": "A finite degree recursive sequence.\n\nThat is, a sequence a(n) that depends on a fixed, finite number of its\nprevious values. The general form is\n\n a(n) = f(a(n - 1), a(n - 2), ..., a(n - d))\n\nfor some fixed, positive integer d, where f is some function defined... | [
"test_sympy__series__sequences__RecursiveSeq"
] | [
"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 expression-based recursive sequence
#### Brief description of what is fixed or changed
Introduces a new SeqBase subclass, `RecursiveSeq`, for sequences defined recursively. Specifically, ... | b69d4c27f298766f1f9c5f6bb17dcf7ae71bb67b | ||
prometheus__client_python-301 | 301 | prometheus/client_python | null | 8586b8de002eb8dd0aff27d9b43a06f56a57ebcb | 2018-08-31T07:40:29Z | diff --git a/prometheus_client/__init__.py b/prometheus_client/__init__.py
index 8208d458..3a239353 100644
--- a/prometheus_client/__init__.py
+++ b/prometheus_client/__init__.py
@@ -4,6 +4,7 @@
from . import exposition
from . import process_collector
from . import platform_collector
+from . import gc_collector
_... | diff --git a/tests/test_gc_collector.py b/tests/test_gc_collector.py
new file mode 100644
index 00000000..573a7dac
--- /dev/null
+++ b/tests/test_gc_collector.py
@@ -0,0 +1,54 @@
+from __future__ import unicode_literals
+
+import unittest
+
+from prometheus_client import CollectorRegistry, GCCollector
+
+
+class TestGC... | [
{
"components": [
{
"doc": "Collector for Garbage collection statistics.",
"lines": [
10,
55
],
"name": "GCCollector",
"signature": "class GCCollector(object):",
"type": "class"
},
{
"doc": "",
"lines": [
... | [
"tests/test_gc_collector.py::TestGCCollector::test_working"
] | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Add detailed Garbage Collection statistics.
We've found this useful in monitoring pythons Garbage Collection. If you are
interested in including this:
- Should the name default to python_gc perhaps?
... | 09a5ae30602a7a81f6174dae4ba08b93ee7feed2 | ||
sympy__sympy-15079 | 15,079 | sympy/sympy | 1.2 | 962285d7cbaa554c9a9993ad91cb1d4e3c36ebab | 2018-08-11T20:35:07Z | diff --git a/sympy/stats/joint_rv.py b/sympy/stats/joint_rv.py
index b6884cee44e3..d1720637c8ee 100644
--- a/sympy/stats/joint_rv.py
+++ b/sympy/stats/joint_rv.py
@@ -101,6 +101,25 @@ def marginal_distribution(self, *indices):
f = Lambda(sym, summation(self.distribution(all_syms), limits))
return ... | diff --git a/sympy/stats/tests/test_joint_rv.py b/sympy/stats/tests/test_joint_rv.py
index 0af7b30b4feb..0b668cc96e4c 100644
--- a/sympy/stats/tests/test_joint_rv.py
+++ b/sympy/stats/tests/test_joint_rv.py
@@ -3,7 +3,7 @@
from sympy.stats.joint_rv import marginal_distribution
from sympy.stats.joint_rv_types import J... | [
{
"components": [
{
"doc": "",
"lines": [
108,
125
],
"name": "JointPSpace.integrate",
"signature": "def integrate(self, expr, rvs=None, evaluate=False, **kwargs):",
"type": "function"
}
],
"file": "sympy/stats/joint_rv.py"
... | [
"test_Normal",
"test_expectation"
] | [
"test_MultivariateTDist",
"test_multivariate_laplace",
"test_NormalGamma",
"test_JointPSpace_margial_distribution",
"test_JointRV"
] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Added `integrate` for joint probability spaces
<!-- Your title above should be a short description of what
was changed. Do not include the issue number in the title. -->
#### References to other... | b69d4c27f298766f1f9c5f6bb17dcf7ae71bb67b | ||
sympy__sympy-15068 | 15,068 | sympy/sympy | 1.2 | 0b350a21abb4be018dc3f279307ee676c9888ba7 | 2018-08-09T22:11:32Z | diff --git a/sympy/physics/continuum_mechanics/beam.py b/sympy/physics/continuum_mechanics/beam.py
index 3a85a9f630b2..ec347e2595cb 100644
--- a/sympy/physics/continuum_mechanics/beam.py
+++ b/sympy/physics/continuum_mechanics/beam.py
@@ -1118,7 +1118,7 @@ def max_deflection(self):
-class Beam_3d(Beam):
+class Be... | diff --git a/sympy/physics/continuum_mechanics/tests/test_beam.py b/sympy/physics/continuum_mechanics/tests/test_beam.py
index aba5e206cf62..f69220400691 100644
--- a/sympy/physics/continuum_mechanics/tests/test_beam.py
+++ b/sympy/physics/continuum_mechanics/tests/test_beam.py
@@ -3,6 +3,7 @@
from sympy.functions imp... | [
{
"components": [
{
"doc": "This class handles loads applied in any direction of a 3D space along\nwith unequal values of Second moment along different axes.\n\n.. note::\n While solving a beam bending problem, a user should choose its\n own sign convention and should stick to it. The results ... | [
"test_Beam",
"test_insufficient_bconditions",
"test_statically_indeterminate",
"test_beam_units",
"test_composite_beam",
"test_point_cflexure",
"test_remove_load",
"test_apply_support",
"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>
`Beam3D` can now solve for reaction loads
#### Brief description of what is fixed or changed
This PR includes the following changes:
- Changed `beam_3d` -> `Beam3D`.
- `solve_for_reaction_loads... | b69d4c27f298766f1f9c5f6bb17dcf7ae71bb67b | ||
falconry__falcon-1343 | 1,343 | falconry/falcon | null | c91ee07a90a126d90ff99f399a46909b96d2b0ff | 2018-08-04T18:01:20Z | diff --git a/CHANGES.rst b/CHANGES.rst
index 6d067148e..128b21a10 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -23,6 +23,8 @@ Changes to Supported Platforms
New & Improved
--------------
+- Added a new ``headers`` property to the ``Response`` class.
+
Fixed
-----
diff --git a/docs/changes/2.0.0.rst b/docs/chan... | diff --git a/tests/test_response.py b/tests/test_response.py
index 333798cbe..1c88f35b5 100644
--- a/tests/test_response.py
+++ b/tests/test_response.py
@@ -1,3 +1,5 @@
+import pytest
+
import falcon
from falcon import MEDIA_TEXT
@@ -11,3 +13,36 @@ def test_response_set_content_type_set():
def test_response_set_co... | diff --git a/CHANGES.rst b/CHANGES.rst
index 6d067148e..128b21a10 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -23,6 +23,8 @@ Changes to Supported Platforms
New & Improved
--------------
+- Added a new ``headers`` property to the ``Response`` class.
+
Fixed
-----
diff --git a/docs/changes/2.0.0.rst b/docs/chan... | [
{
"components": [
{
"doc": "",
"lines": [
210,
211
],
"name": "Response.headers",
"signature": "def headers(self):",
"type": "function"
}
],
"file": "falcon/response.py"
}
] | [
"tests/test_response.py::test_response_get_headers",
"tests/test_response.py::test_response_attempt_to_set_read_only_headers"
] | [
"tests/test_response.py::test_response_set_content_type_set",
"tests/test_response.py::test_response_set_content_type_not_set"
] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Add headers property to Response class
Closes https://github.com/falconry/falcon/issues/1269
----------
</request>
There are several new functions or classes that need to be implemented, using the d... | 77d5e6394a88ead151c9469494749f95f06b24bf | |
scikit-learn__scikit-learn-11699 | 11,699 | scikit-learn/scikit-learn | 0.21 | fc6d906c01848a24b6f247b8598ba5a37c0098fb | 2018-07-27T23:07:38Z | diff --git a/benchmarks/bench_plot_lasso_path.py b/benchmarks/bench_plot_lasso_path.py
index 3dec822449112..ee9ce5bd98a64 100644
--- a/benchmarks/bench_plot_lasso_path.py
+++ b/benchmarks/bench_plot_lasso_path.py
@@ -9,7 +9,7 @@
import numpy as np
-from sklearn.linear_model import lars_path
+from sklearn.linear_mo... | diff --git a/sklearn/linear_model/tests/test_least_angle.py b/sklearn/linear_model/tests/test_least_angle.py
index 2cd2ddcad5d76..167a8c5cf5187 100644
--- a/sklearn/linear_model/tests/test_least_angle.py
+++ b/sklearn/linear_model/tests/test_least_angle.py
@@ -3,13 +3,13 @@
from distutils.version import LooseVersion
... | diff --git a/doc/modules/classes.rst b/doc/modules/classes.rst
index 8b3bf22183691..11d93b2c48cb3 100644
--- a/doc/modules/classes.rst
+++ b/doc/modules/classes.rst
@@ -756,6 +756,7 @@ Kernels:
linear_model.enet_path
linear_model.lars_path
+ linear_model.lars_path_gram
linear_model.lasso_path
linear... | [
{
"components": [
{
"doc": "lars_path in the sufficient stats mode [1]\n\nThe optimization objective for the case method='lasso' is::\n\n(1 / (2 * n_samples)) * ||y - Xw||^2_2 + alpha * ||w||_1\n\nin the case of method='lars', the objective function is only known in\nthe form of an implicit equati... | [
"sklearn/linear_model/tests/test_least_angle.py::test_lars_path_gram_equivalent[True-lar]",
"sklearn/linear_model/tests/test_least_angle.py::test_lars_path_gram_equivalent[True-lasso]",
"sklearn/linear_model/tests/test_least_angle.py::test_lars_path_gram_equivalent[False-lar]",
"sklearn/linear_model/tests/tes... | [
"sklearn/linear_model/tests/test_least_angle.py::test_simple",
"sklearn/linear_model/tests/test_least_angle.py::test_simple_precomputed",
"sklearn/linear_model/tests/test_least_angle.py::test_all_precomputed",
"sklearn/linear_model/tests/test_least_angle.py::test_lars_lstsq",
"sklearn/linear_model/tests/tes... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
ENH Enable the "sufficient stats" mode of LARS
#### What does this implement/fix? Explain your changes.
We'd like to enable the "gram and cov matrix" based mode of the LARS algorithm in the functio... | 66cc1c7342f7f0cc0dc57fb6d56053fc46c8e5f0 | |
sympy__sympy-14968 | 14,968 | sympy/sympy | 1.2 | b5b4b50ced63173f6d95b874819fc3f969dcfbb3 | 2018-07-24T17:38:33Z | diff --git a/sympy/combinatorics/coset_table.py b/sympy/combinatorics/coset_table.py
index f7b1d14d2475..33096012e9a6 100644
--- a/sympy/combinatorics/coset_table.py
+++ b/sympy/combinatorics/coset_table.py
@@ -816,6 +816,35 @@ def conjugates(self, R):
R_set.difference_update(r)
return R_c_list
... | diff --git a/sympy/combinatorics/tests/test_fp_groups.py b/sympy/combinatorics/tests/test_fp_groups.py
index 20298957d9c3..e537b881eefa 100644
--- a/sympy/combinatorics/tests/test_fp_groups.py
+++ b/sympy/combinatorics/tests/test_fp_groups.py
@@ -167,14 +167,31 @@ def test_order():
assert f.order() == 1
def tes... | [
{
"components": [
{
"doc": "Compute the coset representative of a given coset.\n\nExamples\n========\n>>> from sympy.combinatorics.free_groups import free_group\n>>> from sympy.combinatorics.fp_groups import FpGroup, coset_enumeration_r\n>>> F, x, y = free_group(\"x, y\")\n>>> f = FpGroup(F, [x**3... | [
"test_fp_subgroup"
] | [
"test_low_index_subgroups",
"test_subgroup_presentations",
"test_order"
] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Compute map from subgroup to parent group
<!-- Your title above should be a short description of what
was changed. Do not include the issue number in the title. -->
#### Brief description of what ... | b69d4c27f298766f1f9c5f6bb17dcf7ae71bb67b | ||
sympy__sympy-14954 | 14,954 | sympy/sympy | 1.2 | 31cabef814fee7243cb292629fb8be5934408666 | 2018-07-22T04:55:45Z | diff --git a/sympy/discrete/__init__.py b/sympy/discrete/__init__.py
index 9870d8f5341e..4b671639ee48 100644
--- a/sympy/discrete/__init__.py
+++ b/sympy/discrete/__init__.py
@@ -3,9 +3,9 @@
Transforms - fft, ifft, ntt, intt, fwht, ifwht,
mobius_transform, inverse_mobius_transform
Convolution - convolution, conv... | diff --git a/sympy/discrete/tests/test_convolution.py b/sympy/discrete/tests/test_convolution.py
index 746f85e98d61..d5c010686bca 100644
--- a/sympy/discrete/tests/test_convolution.py
+++ b/sympy/discrete/tests/test_convolution.py
@@ -5,7 +5,7 @@
from sympy.core.compatibility import range
from sympy.discrete.convolut... | [
{
"components": [
{
"doc": "Returns the intersecting product of given sequences.\n\nThe indices of each argument, considered as bit strings, correspond to\nsubsets of a finite set.\n\nThe intersecting product of given sequences is the sequence which\ncontains the sums of products of the elements o... | [
"test_convolution",
"test_cyclic_convolution",
"test_convolution_fft",
"test_convolution_ntt",
"test_convolution_fwht",
"test_convolution_subset",
"test_covering_product"
] | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Implement intersecting product using Möbius transform
#### Brief description of what is fixed or changed
Möbius transform is used for calculating intersecting product (returns list of sum of products... | b69d4c27f298766f1f9c5f6bb17dcf7ae71bb67b | ||
scikit-learn__scikit-learn-11596 | 11,596 | scikit-learn/scikit-learn | 0.20 | 51407623e4f491f00e3b465626dd5c4b55860bd0 | 2018-07-17T15:42:55Z | diff --git a/doc/developers/contributing.rst b/doc/developers/contributing.rst
index 1b43400f4a7a0..dd17515aaf23d 100644
--- a/doc/developers/contributing.rst
+++ b/doc/developers/contributing.rst
@@ -140,6 +140,14 @@ feedback:
your **Python, scikit-learn, numpy, and scipy versions**. This information
can be foun... | diff --git a/sklearn/utils/tests/test_print_versions.py b/sklearn/utils/tests/test_print_versions.py
new file mode 100644
index 0000000000000..f55bc8b945b6a
--- /dev/null
+++ b/sklearn/utils/tests/test_print_versions.py
@@ -0,0 +1,32 @@
+
+from sklearn.utils._show_versions import _get_sys_info
+from sklearn.utils._show... | diff --git a/doc/developers/contributing.rst b/doc/developers/contributing.rst
index 1b43400f4a7a0..dd17515aaf23d 100644
--- a/doc/developers/contributing.rst
+++ b/doc/developers/contributing.rst
@@ -140,6 +140,14 @@ feedback:
your **Python, scikit-learn, numpy, and scipy versions**. This information
can be foun... | [
{
"components": [
{
"doc": "System information\n\nReturn\n------\nsys_info : dict\n system and Python version information",
"lines": [
13,
30
],
"name": "_get_sys_info",
"signature": "def _get_sys_info():",
"type": "function"
},
... | [
"sklearn/utils/tests/test_print_versions.py::test_get_sys_info",
"sklearn/utils/tests/test_print_versions.py::test_get_deps_info",
"sklearn/utils/tests/test_print_versions.py::test_show_versions_with_blas"
] | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
[MRG+2] Add sklearn show_versions() method
PR that adds a `show_versions()` method convenient for debugging.
#### Reference Issues/PRs
Fixes #11522
#### What does this implement/fix? Explain y... | Here is the discussion in the issues of the pull request.
<issues>
Add sklearn.show_versions() similar to pandas.show_versions (with numpy blas binding info)
Some numeric issues are related to the specific blas that numpy is using. I'm wondering if it makes sense to add the relevant ``system_info`` invocations to the t... | 51407623e4f491f00e3b465626dd5c4b55860bd0 |
sympy__sympy-14928 | 14,928 | sympy/sympy | 1.2 | e53b24ad345e11769dd1989e4873380c0f94b4e2 | 2018-07-16T10:37:43Z | diff --git a/sympy/discrete/__init__.py b/sympy/discrete/__init__.py
index 0cd8b6753f2e..9870d8f5341e 100644
--- a/sympy/discrete/__init__.py
+++ b/sympy/discrete/__init__.py
@@ -3,9 +3,9 @@
Transforms - fft, ifft, ntt, intt, fwht, ifwht,
mobius_transform, inverse_mobius_transform
Convolution - convolution, conv... | diff --git a/sympy/discrete/tests/test_convolution.py b/sympy/discrete/tests/test_convolution.py
index 8036cbbb1ddf..746f85e98d61 100644
--- a/sympy/discrete/tests/test_convolution.py
+++ b/sympy/discrete/tests/test_convolution.py
@@ -5,7 +5,7 @@
from sympy.core.compatibility import range
from sympy.discrete.convolut... | [
{
"components": [
{
"doc": "Returns the covering product of given sequences.\n\nThe indices of each argument, considered as bit strings, correspond to\nsubsets of a finite set.\n\nThe covering product of given sequences is a sequence which contains\nsum of products of the elements of the given seq... | [
"test_convolution",
"test_cyclic_convolution",
"test_convolution_fft",
"test_convolution_ntt",
"test_convolution_fwht",
"test_convolution_subset"
] | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Implement covering product in convolution module
#### Brief description of what is fixed or changed
Use Möbius Transform for calculating `covering_product` (returns list of sum of products of element... | b69d4c27f298766f1f9c5f6bb17dcf7ae71bb67b | ||
dpkp__kafka-python-1540 | 1,540 | dpkp/kafka-python | null | 6380c1db52b6b4d06a189bbfad62e3393cde60c8 | 2018-07-12T18:45:02Z | diff --git a/kafka/__init__.py b/kafka/__init__.py
index 897ebb095..fa50bf61c 100644
--- a/kafka/__init__.py
+++ b/kafka/__init__.py
@@ -18,6 +18,7 @@ def emit(self, record):
logging.getLogger(__name__).addHandler(NullHandler())
+from kafka.admin import KafkaAdmin
from kafka.consumer import KafkaConsumer
from ka... | diff --git a/test/test_admin.py b/test/test_admin.py
new file mode 100644
index 000000000..fd9c54ddd
--- /dev/null
+++ b/test/test_admin.py
@@ -0,0 +1,47 @@
+import pytest
+
+import kafka.admin
+from kafka.errors import IllegalArgumentError
+
+
+def test_config_resource():
+ with pytest.raises(KeyError):
+ ba... | [
{
"components": [
{
"doc": "An enumerated type of config resources",
"lines": [
11,
15
],
"name": "ConfigResourceType",
"signature": "class ConfigResourceType(IntEnum):",
"type": "class"
},
{
"doc": "A class for specif... | [
"test/test_admin.py::test_config_resource",
"test/test_admin.py::test_new_partitions",
"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 KafkaAdmin class
Requires cluster version > 0.10.0.0, and uses new wire protocol
classes to do many things via broker connection that previously
needed to be done directly in zookeeper.
<!-- Re... | 53dc740bce8ef19c32fad2881021d1f6bb055f7a | ||
sympy__sympy-14896 | 14,896 | sympy/sympy | 1.2 | b425652464523e13ba3f52c69422b0d1170db36f | 2018-07-12T12:48:53Z | diff --git a/sympy/plotting/plot.py b/sympy/plotting/plot.py
index bb36d16dedf7..a890927f8123 100644
--- a/sympy/plotting/plot.py
+++ b/sympy/plotting/plot.py
@@ -819,9 +819,8 @@ def get_meshes(self):
### Contours
class ContourSeries(BaseSeries):
"""Representation for a contour plot."""
- #The code is mostly ... | diff --git a/sympy/plotting/tests/test_plot.py b/sympy/plotting/tests/test_plot.py
index 0c8449e9f13b..58897db5102d 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... | [
{
"components": [
{
"doc": "Draws contour plot of a function\n\nUsage\n=====\n\nSingle plot\n\n``plot_contour(expr, range_x, range_y, **kwargs)``\n\nIf the ranges are not specified, then a default range of (-10, 10) is used.\n\nMultiple plot with the same range.\n\n``plot_contour(expr1, expr2, ran... | [
"test_experimental_lambify"
] | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
added contour plotting method in sympy/plotting/plot.py
Added contour plotting method in sympy/plotting/plot.py and modified test_plot.py for contour plotting
#12034
Fixes #12034
Took help and re... | Here is the discussion in the issues of the pull request.
<issues>
Add contour plot function
(Mentioned on [gitter](https://gitter.im/sympy/sympy?at=58740606cbcb2817704aa5dd), no responses yet.)
I saw 2d plots mentioned on [this wiki page](https://github.com/sympy/sympy/wiki/Plotting-capabilities#types-of-plots), bu... | b69d4c27f298766f1f9c5f6bb17dcf7ae71bb67b | |
sympy__sympy-14878 | 14,878 | sympy/sympy | 1.2 | 92d4924237026e105c32cda6db1d575fb3c41f13 | 2018-07-07T03:47:45Z | diff --git a/sympy/discrete/convolution.py b/sympy/discrete/convolution.py
index 3edf813605c7..d8a7f5d54297 100644
--- a/sympy/discrete/convolution.py
+++ b/sympy/discrete/convolution.py
@@ -4,8 +4,8 @@
"""
from __future__ import print_function, division
-from sympy.core import S
-from sympy.core.compatibility impo... | diff --git a/sympy/discrete/tests/test_convolution.py b/sympy/discrete/tests/test_convolution.py
index 8c2fa929905c..1b1bf6d568a8 100644
--- a/sympy/discrete/tests/test_convolution.py
+++ b/sympy/discrete/tests/test_convolution.py
@@ -4,7 +4,8 @@
from sympy.core import S, Symbol, symbols, I
from sympy.core.compatibil... | [
{
"components": [
{
"doc": "Performs Subset Convolution of given sequences.\n\nThe indices of each argument, considered as bit strings, correspond to\nsubsets of a finite set.\n\nThe sequence is automatically padded to the right with zeros, as the\ndefinition of subset based on bitmasks (indices) ... | [
"test_convolution",
"test_cyclic_convolution",
"test_convolution_fft",
"test_convolution_ntt",
"test_convolution_fwht"
] | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Implement subset convolution for discrete module
The method `convolution_subset` and corresponding keyword `subset` for exportable method `convolution` is added, which expects sequences for which the ... | b69d4c27f298766f1f9c5f6bb17dcf7ae71bb67b | ||
sympy__sympy-14861 | 14,861 | sympy/sympy | 1.2 | aff706ccbef0234e57bc5025b63c7ee45bf8e452 | 2018-07-02T20:25:00Z | diff --git a/sympy/combinatorics/homomorphisms.py b/sympy/combinatorics/homomorphisms.py
index ee6613d7047c..3ac6a5742f79 100644
--- a/sympy/combinatorics/homomorphisms.py
+++ b/sympy/combinatorics/homomorphisms.py
@@ -1,8 +1,11 @@
from __future__ import print_function, division
-
-from sympy.combinatorics.fp_groups i... | diff --git a/sympy/combinatorics/tests/test_homomorphisms.py b/sympy/combinatorics/tests/test_homomorphisms.py
index 1603b927c79e..bd38902d88d9 100644
--- a/sympy/combinatorics/tests/test_homomorphisms.py
+++ b/sympy/combinatorics/tests/test_homomorphisms.py
@@ -1,9 +1,9 @@
from sympy.combinatorics import Permutation
... | [
{
"components": [
{
"doc": "Compute an isomorphism between 2 given groups.\n\nArguments:\n G (a finite `FpGroup` or a `PermutationGroup`) -- First group\n H (a finite `FpGroup` or a `PermutationGroup`) -- Second group\n isomorphism (boolean) -- This is used to avoid the computation of hom... | [
"test_homomorphism"
] | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Add methods for isomorphism computation
<!-- Your title above should be a short description of what
was changed. Do not include the issue number in the title. -->
#### Brief description of what ... | b69d4c27f298766f1f9c5f6bb17dcf7ae71bb67b | ||
sympy__sympy-14853 | 14,853 | sympy/sympy | 1.2 | 267634a6e1de6835e5a5da047cadfdf2c2e97e1e | 2018-07-01T10:28:33Z | diff --git a/sympy/discrete/__init__.py b/sympy/discrete/__init__.py
index e08c0cc5eb2d..443f52d6dc80 100644
--- a/sympy/discrete/__init__.py
+++ b/sympy/discrete/__init__.py
@@ -1,10 +1,12 @@
"""A module containing discrete functions.
-Transforms - fft, ifft, ntt, intt, fwht, ifwht, fzt, ifzt, fmt, ifmt
+Transforms... | diff --git a/sympy/discrete/tests/test_transforms.py b/sympy/discrete/tests/test_transforms.py
index d679a2183bb5..2c89609c4121 100644
--- a/sympy/discrete/tests/test_transforms.py
+++ b/sympy/discrete/tests/test_transforms.py
@@ -3,7 +3,8 @@
from sympy import sqrt
from sympy.core import S, Symbol, symbols, I
from s... | [
{
"components": [
{
"doc": "Utility function for performing Möbius Transform using\nYate's Dynamic Programming (DP)",
"lines": [
331,
366
],
"name": "_mobius_transform",
"signature": "def _mobius_transform(seq, sgn, subset):",
"type": "fu... | [
"test_fft_ifft",
"test_ntt_intt",
"test_fwht_ifwht"
] | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Added Möbius transform to discrete module
#### Brief description of what is fixed or changed
Möbius transform is implemented using Yate's Dynamic Programming (DP) method.
The method `mobius_transfor... | b69d4c27f298766f1f9c5f6bb17dcf7ae71bb67b | ||
falconry__falcon-1329 | 1,329 | falconry/falcon | null | 4afb296c34c68fae99854e2217b07021d60eec73 | 2018-06-27T17:58:09Z | diff --git a/docs/api/routing.rst b/docs/api/routing.rst
index d13cd3961..1e000b5e3 100644
--- a/docs/api/routing.rst
+++ b/docs/api/routing.rst
@@ -239,23 +239,32 @@ A custom router is any class that implements the following interface:
.. code:: python
class MyRouter(object):
- def add_route(self, uri_t... | diff --git a/tests/test_custom_router.py b/tests/test_custom_router.py
index a0ddea70a..3f6db6ed7 100644
--- a/tests/test_custom_router.py
+++ b/tests/test_custom_router.py
@@ -72,7 +72,7 @@ def test_can_pass_additional_params_to_add_route():
check = []
class CustomRouter(object):
- def add_route(sel... | diff --git a/docs/api/routing.rst b/docs/api/routing.rst
index d13cd3961..1e000b5e3 100644
--- a/docs/api/routing.rst
+++ b/docs/api/routing.rst
@@ -239,23 +239,32 @@ A custom router is any class that implements the following interface:
.. code:: python
class MyRouter(object):
- def add_route(self, uri_t... | [
{
"components": [
{
"doc": "Map HTTP methods (e.g., GET, POST) to methods of a resource object.\n\nThis method is called from :meth:`~.add_route` and may be overridden to\nprovide a custom mapping strategy.\n\nArgs:\n resource (instance): Object which represents a REST resource.\n The de... | [
"tests/test_custom_router.py::test_can_pass_additional_params_to_add_route",
"tests/test_default_router.py::test_user_regression_versioned_url",
"tests/test_default_router.py::test_user_regression_recipes",
"tests/test_default_router.py::test_user_regression_special_chars[/serviceRoot/People|{field}-/serviceR... | [
"tests/test_custom_router.py::test_custom_router_add_route_should_be_used",
"tests/test_custom_router.py::test_custom_router_find_should_be_used",
"tests/test_custom_router.py::test_custom_router_takes_req_positional_argument",
"tests/test_custom_router.py::test_custom_router_takes_req_keyword_argument",
"t... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
feat(api): Facilitate the overriding of the default method mapping logic
This is a rebased version of #1252 plus some doc updates and method signature tweaks.
----------
</request>
There are several... | 77d5e6394a88ead151c9469494749f95f06b24bf | |
scikit-learn__scikit-learn-11364 | 11,364 | scikit-learn/scikit-learn | 0.21 | 28d97b37e3a98511a119312183563ffe0b8c8e40 | 2018-06-27T03:50:36Z | diff --git a/doc/modules/compose.rst b/doc/modules/compose.rst
index c7e4afe5f359a..9e654310ef485 100644
--- a/doc/modules/compose.rst
+++ b/doc/modules/compose.rst
@@ -60,7 +60,7 @@ is an estimator object::
>>> pipe # doctest: +NORMALIZE_WHITESPACE, +ELLIPSIS
Pipeline(memory=None,
steps=[('redu... | diff --git a/sklearn/compose/tests/test_column_transformer.py b/sklearn/compose/tests/test_column_transformer.py
index a8a1cbea8e524..c150492eae209 100644
--- a/sklearn/compose/tests/test_column_transformer.py
+++ b/sklearn/compose/tests/test_column_transformer.py
@@ -1,6 +1,7 @@
"""
Test the ColumnTransformer.
"""
... | diff --git a/doc/modules/compose.rst b/doc/modules/compose.rst
index c7e4afe5f359a..9e654310ef485 100644
--- a/doc/modules/compose.rst
+++ b/doc/modules/compose.rst
@@ -60,7 +60,7 @@ is an estimator object::
>>> pipe # doctest: +NORMALIZE_WHITESPACE, +ELLIPSIS
Pipeline(memory=None,
steps=[('redu... | [
{
"components": [
{
"doc": "",
"lines": [
390,
393
],
"name": "ColumnTransformer._log_message",
"signature": "def _log_message(self, name, idx, total):",
"type": "function"
}
],
"file": "sklearn/compose/_column_transformer.p... | [
"sklearn/compose/tests/test_column_transformer.py::test_column_transformer",
"sklearn/compose/tests/test_column_transformer.py::test_column_transformer_dataframe",
"sklearn/compose/tests/test_column_transformer.py::test_column_transformer_empty_columns[list-pandas]",
"sklearn/compose/tests/test_column_transfo... | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
[MRG+1] Add verbose option to Pipeline, FeatureUnion, and ColumnTransformer
#### Reference Issues/PRs
Continues work on PR #10435.
Fixes #9668. Fixes #8568. Fixes #5298. Fixes #5321.
#### Wha... | Here is the discussion in the issues of the pull request.
<issues>
[STALLED] Optional verbosity for Pipeline
Adds named verbosity argument in Pipeline constructor.
After each step, verbose pipelines print to standard output lines like:
`[Pipeline] <step name>, <action> (fit or transform), <duration>`
#5298
----------... | 66cc1c7342f7f0cc0dc57fb6d56053fc46c8e5f0 |
scikit-learn__scikit-learn-11354 | 11,354 | scikit-learn/scikit-learn | 0.21 | fda8f4786df97669025c9a664d7868105ef74799 | 2018-06-25T18:34:31Z | diff --git a/doc/modules/grid_search.rst b/doc/modules/grid_search.rst
index a492b6011bdf1..3287ff95dcdcf 100644
--- a/doc/modules/grid_search.rst
+++ b/doc/modules/grid_search.rst
@@ -88,6 +88,12 @@ evaluated and the best combination is retained.
for an example of :class:`GridSearchCV` being used to evaluate mu... | diff --git a/sklearn/model_selection/tests/test_search.py b/sklearn/model_selection/tests/test_search.py
index f70e38589f982..2d5ea0db37c08 100644
--- a/sklearn/model_selection/tests/test_search.py
+++ b/sklearn/model_selection/tests/test_search.py
@@ -592,6 +592,112 @@ def test_refit():
clf.fit(X, y)
+def tes... | diff --git a/doc/modules/grid_search.rst b/doc/modules/grid_search.rst
index a492b6011bdf1..3287ff95dcdcf 100644
--- a/doc/modules/grid_search.rst
+++ b/doc/modules/grid_search.rst
@@ -88,6 +88,12 @@ evaluated and the best combination is retained.
for an example of :class:`GridSearchCV` being used to evaluate mu... | [
{
"components": [
{
"doc": "Calculate the lower bound within 1 standard deviation\nof the best `mean_test_scores`.\n\nParameters\n----------\ncv_results : dict of numpy(masked) ndarrays\n See attribute cv_results_ of `GridSearchCV`\n\nReturns\n-------\nfloat\n Lower bound within 1 standard d... | [
"sklearn/model_selection/tests/test_search.py::test_refit_callable",
"sklearn/model_selection/tests/test_search.py::test_refit_callable_invalid_type",
"sklearn/model_selection/tests/test_search.py::test_refit_callable_out_bound",
"sklearn/model_selection/tests/test_search.py::test_refit_callable_multi_metric"... | [
"sklearn/model_selection/tests/test_search.py::test_validate_parameter_grid_input[0-TypeError-Parameter",
"sklearn/model_selection/tests/test_search.py::test_validate_parameter_grid_input[input1-TypeError-Parameter",
"sklearn/model_selection/tests/test_search.py::test_validate_parameter_grid_input[input2-TypeEr... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
[MRG] Allow for refit=callable in *SearchCV to add flexibility in identifying the best estimator #11269
<!--
Thanks for contributing a pull request! Please ensure you have taken a look at
the contri... | Here is the discussion in the issues of the pull request.
<issues>
Allow GridSearchCV() to account for model variance to select .best_estimator_
Say we have a machine learning model and we want find the best value of one of its hyperparameters out of two values. To do this, we use the [`cross_val_score()`](https://scik... | 66cc1c7342f7f0cc0dc57fb6d56053fc46c8e5f0 |
sympy__sympy-14830 | 14,830 | sympy/sympy | 1.2 | d6ffcfd4e2bd28f5486e56035a38574864a42bd7 | 2018-06-24T07:28:40Z | diff --git a/sympy/combinatorics/coset_table.py b/sympy/combinatorics/coset_table.py
index 7ed15aaf5aa7..f7b1d14d2475 100644
--- a/sympy/combinatorics/coset_table.py
+++ b/sympy/combinatorics/coset_table.py
@@ -5,6 +5,7 @@
from itertools import chain, product
from bisect import bisect_left
+from sympy.combinatorics... | diff --git a/sympy/combinatorics/tests/test_coset_table.py b/sympy/combinatorics/tests/test_coset_table.py
index f000629c68cc..c0e325b0a4d5 100644
--- a/sympy/combinatorics/tests/test_coset_table.py
+++ b/sympy/combinatorics/tests/test_coset_table.py
@@ -2,6 +2,7 @@
from sympy.combinatorics.fp_groups import FpGroup
f... | [
{
"components": [
{
"doc": "Define a function p_p from from [1..n] to A* as\nan additional component of the modified coset table.\n\nInput: \\alpha \\in \\Omega, x \\in A*\n\nSee Also\n========\ndefine",
"lines": [
823,
835
],
"name": "CosetTable.modifie... | [
"test_scan_1",
"test_coset_enumeration",
"test_look_ahead"
] | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Add implementation of the modified coset enumeration
<!-- Your title above should be a short description of what
was changed. Do not include the issue number in the title. -->
#### Brief descr... | b69d4c27f298766f1f9c5f6bb17dcf7ae71bb67b | ||
sympy__sympy-14826 | 14,826 | sympy/sympy | 1.1 | ec9e3c0436fbff934fa84e22bf07f1b3ef5bfac3 | 2018-06-22T15:01:20Z | diff --git a/sympy/physics/continuum_mechanics/beam.py b/sympy/physics/continuum_mechanics/beam.py
index bf2a79c2fafa..35a03d043d5c 100644
--- a/sympy/physics/continuum_mechanics/beam.py
+++ b/sympy/physics/continuum_mechanics/beam.py
@@ -1,7 +1,6 @@
"""
This module can be used to solve 2D beam bending problems with
... | diff --git a/sympy/physics/continuum_mechanics/tests/test_beam.py b/sympy/physics/continuum_mechanics/tests/test_beam.py
index d1a8d481fd45..0c0a46c3c451 100644
--- a/sympy/physics/continuum_mechanics/tests/test_beam.py
+++ b/sympy/physics/continuum_mechanics/tests/test_beam.py
@@ -173,6 +173,29 @@ def test_Beam():
... | [
{
"components": [
{
"doc": "Returns maximum Shear force and its coordinate\nin the Beam object.",
"lines": [
748,
798
],
"name": "Beam.max_shear_force",
"signature": "def max_shear_force(self):",
"type": "function"
},
{
... | [
"test_statically_indeterminate",
"test_max_bmoment"
] | [
"test_Beam",
"test_composite_beam",
"test_point_cflexure",
"test_remove_load",
"test_apply_support"
] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Added support for statically indeterminate beams. Also added `max_shear_force`and `max_bmoment` methods.
#### Brief description of what is fixed or changed
`solve_for_reaction_loads` was updated to s... | ec9e3c0436fbff934fa84e22bf07f1b3ef5bfac3 | ||
joke2k__faker-775 | 775 | joke2k/faker | null | 6c83a263a589c031ef68244fa81d21c03c620100 | 2018-06-19T19:30:11Z | diff --git a/faker/providers/date_time/__init__.py b/faker/providers/date_time/__init__.py
index 11c7b8fc0d..8b10d4c33f 100644
--- a/faker/providers/date_time/__init__.py
+++ b/faker/providers/date_time/__init__.py
@@ -1203,15 +1203,24 @@ def date_time(self, tzinfo=None, end_datetime=None):
return datetime(197... | diff --git a/tests/providers/test_date_time.py b/tests/providers/test_date_time.py
index 6b912b969f..3f011a7972 100644
--- a/tests/providers/test_date_time.py
+++ b/tests/providers/test_date_time.py
@@ -471,3 +471,95 @@ def test_ar_eg(self):
factory.month_name(),
ArProvider.MONTH_NAMES.values(... | [
{
"components": [
{
"doc": "Generate a random date of birth represented as a Date object,\nconstrained by optional miminimum_age and maximum_age\nparameters.\n\n:param tzinfo Defaults to None.\n:param minimum_age Defaults to 0.\n:param maximum_age Defaults to 115.\n\n:example Date('1979-02-02')\n:... | [
"tests/providers/test_date_time.py::DatesOfBirth::test_acceptable_age_range_eighteen_years",
"tests/providers/test_date_time.py::DatesOfBirth::test_acceptable_age_range_five_years",
"tests/providers/test_date_time.py::DatesOfBirth::test_bad_age_range",
"tests/providers/test_date_time.py::DatesOfBirth::test_da... | [
"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 a date of birth provider
### What does this change
Implements a `date_of_birth()` function as part of the `date_time` provider. Minimum and maximum ages can be specified as optional parameters.... | Here is the discussion in the issues of the pull request.
<issues>
Give the user the ability to generate adult vs. minor dates of birth
Presently, dates of birth in the Profile provider are chosen randomly between unix epoch timestamp 0 and the present date and time. This isn't particularly useful from a testing perspe... | 6edfdbf6ae90b0153309e3bf066aa3b2d16494a7 | |
scikit-learn__scikit-learn-11281 | 11,281 | scikit-learn/scikit-learn | 0.20 | 4143356c3c51831300789e4fdf795d83716dbab6 | 2018-06-15T17:15:25Z | diff --git a/doc/whats_new/v0.20.rst b/doc/whats_new/v0.20.rst
index 87569d8649d86..14a694b1f3e82 100644
--- a/doc/whats_new/v0.20.rst
+++ b/doc/whats_new/v0.20.rst
@@ -581,6 +581,11 @@ Decomposition, manifold learning and clustering
pairwise distances or squared distances. :issue:`9775` by
:user:`William de Vaze... | diff --git a/sklearn/mixture/tests/test_bayesian_mixture.py b/sklearn/mixture/tests/test_bayesian_mixture.py
index e678c07d9236f..540b6265ca0e1 100644
--- a/sklearn/mixture/tests/test_bayesian_mixture.py
+++ b/sklearn/mixture/tests/test_bayesian_mixture.py
@@ -1,12 +1,16 @@
# Author: Wei Xue <xuewei4d@gmail.com>
# ... | diff --git a/doc/whats_new/v0.20.rst b/doc/whats_new/v0.20.rst
index 87569d8649d86..14a694b1f3e82 100644
--- a/doc/whats_new/v0.20.rst
+++ b/doc/whats_new/v0.20.rst
@@ -581,6 +581,11 @@ Decomposition, manifold learning and clustering
pairwise distances or squared distances. :issue:`9775` by
:user:`William de Vaze... | [
{
"components": [
{
"doc": "Estimate model parameters using X and predict the labels for X.\n\nThe method fits the model n_init times and sets the parameters with\nwhich the model has the largest likelihood or lower bound. Within each\ntrial, the method iterates between E-step and M-step for `max_... | [
"sklearn/mixture/tests/test_bayesian_mixture.py::test_bayesian_mixture_fit_predict",
"sklearn/mixture/tests/test_gaussian_mixture.py::test_gaussian_mixture_fit_predict"
] | [
"sklearn/mixture/tests/test_bayesian_mixture.py::test_log_dirichlet_norm",
"sklearn/mixture/tests/test_bayesian_mixture.py::test_log_wishart_norm",
"sklearn/mixture/tests/test_bayesian_mixture.py::test_bayesian_mixture_covariance_type",
"sklearn/mixture/tests/test_bayesian_mixture.py::test_bayesian_mixture_we... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
[MRG + 1] #10336 adding fit_predict to mixture models
#### Reference Issues
Fixes #10336
#### What does this implement/fix? Explain your changes.
Added `fit_predict` method to all Gaussian m... | Here is the discussion in the issues of the pull request.
<issues>
Should mixture models have a clusterer-compatible interface
Mixture models are currently a bit different. They are basically clusterers, except they are probabilistic, and are applied to inductive problems unlike many clusterers. But they are unlike clu... | 51407623e4f491f00e3b465626dd5c4b55860bd0 |
joke2k__faker-772 | 772 | joke2k/faker | null | da96379c07dbd22bea070db5a8a3e1ad85e4cf04 | 2018-06-15T02:21:52Z | diff --git a/faker/providers/ssn/en_US/__init__.py b/faker/providers/ssn/en_US/__init__.py
index 4357535cf0..a6930f4aa5 100644
--- a/faker/providers/ssn/en_US/__init__.py
+++ b/faker/providers/ssn/en_US/__init__.py
@@ -1,19 +1,169 @@
# coding=utf-8
from __future__ import unicode_literals
+
+import random
from .. imp... | diff --git a/tests/providers/test_ssn.py b/tests/providers/test_ssn.py
index ea58fcf8e7..06234fd58b 100644
--- a/tests/providers/test_ssn.py
+++ b/tests/providers/test_ssn.py
@@ -15,6 +15,7 @@
from faker.providers.ssn.pl_PL import checksum as pl_checksum, calculate_month as pl_calculate_mouth
from faker.providers.ssn... | [
{
"components": [
{
"doc": "Generate a random United States Individual Taxpayer Identification Number (ITIN).\n\nAn United States Individual Taxpayer Identification Number\n(ITIN) is a tax processing number issued by the Internal\nRevenue Service. It is a nine-digit number that always begins\nwith... | [
"tests/providers/test_ssn.py::TestEnUS::test_bad_tin_type",
"tests/providers/test_ssn.py::TestEnUS::test_ein",
"tests/providers/test_ssn.py::TestEnUS::test_itin",
"tests/providers/test_ssn.py::TestEnUS::test_ssn",
"tests/providers/test_ssn.py::TestEnUS::test_wrong_tin_type_case"
] | [
"tests/providers/test_ssn.py::TestEnCA::test_ssn",
"tests/providers/test_ssn.py::TestEnUS::test_prohibited_ssn_value",
"tests/providers/test_ssn.py::TestEtEE::test_ssn",
"tests/providers/test_ssn.py::TestEtEE::test_ssn_checksum",
"tests/providers/test_ssn.py::TestFiFI::test_artifical_ssn",
"tests/provider... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Implement US ITIN and EIN tax identification numbers
* Correctly generate ITIN and EIN tax identification numbers
* Implement tests
* Apply PEP8
Closes #771
----------
</request>
There are sev... | Here is the discussion in the issues of the pull request.
<issues>
Support United States ITIN and EIN tax identification numbers
While United States SSNs are used by naturalized aliens and citizens, but businesses are identified by EINs and IRS issues ITINs to foreign nationals and others who have federal tax reporting... | 6edfdbf6ae90b0153309e3bf066aa3b2d16494a7 | |
sympy__sympy-14786 | 14,786 | sympy/sympy | 1.1 | 1599d495dc68ce515bb1c166b8eeb3541424ad88 | 2018-06-09T16:45:22Z | diff --git a/sympy/physics/continuum_mechanics/beam.py b/sympy/physics/continuum_mechanics/beam.py
index b2a3d0446bdc..bf2a79c2fafa 100644
--- a/sympy/physics/continuum_mechanics/beam.py
+++ b/sympy/physics/continuum_mechanics/beam.py
@@ -273,6 +273,62 @@ def join(self, beam, via="fixed"):
new_beam._hinge_... | diff --git a/sympy/physics/continuum_mechanics/tests/test_beam.py b/sympy/physics/continuum_mechanics/tests/test_beam.py
index 7b8c94e9bfd9..d1a8d481fd45 100644
--- a/sympy/physics/continuum_mechanics/tests/test_beam.py
+++ b/sympy/physics/continuum_mechanics/tests/test_beam.py
@@ -255,3 +255,43 @@ def test_remove_load... | [
{
"components": [
{
"doc": "This method applies support to a particular beam object.\n\nParameters\n==========\nloc : Sympifyable\n Location of point at which support is applied.\ntype : String\n Determines type of Beam support applied. To apply support structure\n with\n - zero degree... | [
"test_apply_support"
] | [
"test_Beam",
"test_composite_beam",
"test_point_cflexure",
"test_remove_load"
] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
added `apply_support` and `max_deflection` methods
#### Brief description of what is fixed or changed
`apply_support` applies Support at a particular position. Support can be `cantilever`(fixed suppo... | ec9e3c0436fbff934fa84e22bf07f1b3ef5bfac3 | ||
sympy__sympy-14783 | 14,783 | sympy/sympy | 1.1 | 5f07be400f3f5743e00cb4bf8c6586ac92b8aee2 | 2018-06-09T01:32:19Z | diff --git a/sympy/discrete/__init__.py b/sympy/discrete/__init__.py
index 23f7f8705632..ea589a2c438b 100644
--- a/sympy/discrete/__init__.py
+++ b/sympy/discrete/__init__.py
@@ -1,11 +1,10 @@
"""A module containing discrete functions.
Transforms - fft, ifft, ntt, intt, fwht, ifwht, fzt, ifzt, fmt, ifmt
-Convolutio... | diff --git a/sympy/discrete/tests/test_convolution.py b/sympy/discrete/tests/test_convolution.py
index 71f30b0de173..8c2fa929905c 100644
--- a/sympy/discrete/tests/test_convolution.py
+++ b/sympy/discrete/tests/test_convolution.py
@@ -1,14 +1,15 @@
from __future__ import print_function, division
from sympy import s... | [
{
"components": [
{
"doc": "Performs dyadic (XOR) convolution using Fast Walsh Hadamard Transform.\n\nThe convolution is automatically padded to the right with zeros, as the\nradix 2 FWHT requires the number of sample points to be a power of 2.\n\nParameters\n==========\n\na, b : iterables\n Th... | [
"test_convolution",
"test_cyclic_convolution",
"test_convolution_fft",
"test_convolution_ntt"
] | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Implemented convolution using Walsh Hadamard Transform
#### Brief description of what is fixed or changed
1. Added convolution using Walsh Hadamard Transform
2. Included `convolution_fwht` in `convo... | ec9e3c0436fbff934fa84e22bf07f1b3ef5bfac3 | ||
scikit-learn__scikit-learn-11196 | 11,196 | scikit-learn/scikit-learn | 0.20 | 989f9c764734efc21bbff21b0202b52a1112bfc3 | 2018-06-04T12:31:15Z | diff --git a/sklearn/preprocessing/label.py b/sklearn/preprocessing/label.py
index 7f95a1426c873..3fb5e627b3da0 100644
--- a/sklearn/preprocessing/label.py
+++ b/sklearn/preprocessing/label.py
@@ -16,7 +16,7 @@
from ..base import BaseEstimator, TransformerMixin
-from ..utils.fixes import sparse_min_max
+from ..uti... | diff --git a/sklearn/utils/tests/test_sparsefuncs.py b/sklearn/utils/tests/test_sparsefuncs.py
index f2b35e7459833..3cb7d6577bc3d 100644
--- a/sklearn/utils/tests/test_sparsefuncs.py
+++ b/sklearn/utils/tests/test_sparsefuncs.py
@@ -1,3 +1,4 @@
+import pytest
import numpy as np
import scipy.sparse as sp
@@ -344,60 ... | [
{
"components": [
{
"doc": "",
"lines": [
338,
341
],
"name": "_minor_reduce",
"signature": "def _minor_reduce(X, ufunc):",
"type": "function"
},
{
"doc": "",
"lines": [
344,
364
],
... | [
"sklearn/utils/tests/test_sparsefuncs.py::test_min_max[0-amin-amax-False-csr_matrix-0-float32]",
"sklearn/utils/tests/test_sparsefuncs.py::test_min_max[0-amin-amax-False-csr_matrix-0-float64]",
"sklearn/utils/tests/test_sparsefuncs.py::test_min_max[0-amin-amax-False-csr_matrix-1-float32]",
"sklearn/utils/test... | [
"sklearn/utils/tests/test_sparsefuncs.py::test_mean_variance_axis0",
"sklearn/utils/tests/test_sparsefuncs.py::test_mean_variance_axis1",
"sklearn/utils/tests/test_sparsefuncs.py::test_incr_mean_variance_axis",
"sklearn/utils/tests/test_sparsefuncs.py::test_mean_variance_illegal_axis",
"sklearn/utils/tests/... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
[MRG] EHN: add function to ignore nan in min/max sparse functions
<!--
Thanks for contributing a pull request! Please ensure you have taken a look at
the contribution guidelines: https://github.com/... | 51407623e4f491f00e3b465626dd5c4b55860bd0 | ||
sympy__sympy-14765 | 14,765 | sympy/sympy | 1.1 | cb0ea62fdb5df23a8320032ca356c8280c4404fb | 2018-06-02T18:42:59Z | diff --git a/sympy/discrete/__init__.py b/sympy/discrete/__init__.py
index 4a4ca5649591..23f7f8705632 100644
--- a/sympy/discrete/__init__.py
+++ b/sympy/discrete/__init__.py
@@ -7,5 +7,5 @@
"""
-from .transforms import (fft, ifft, ntt, intt)
+from .transforms import (fft, ifft, ntt, intt, fwht, ifwht)
from .conv... | diff --git a/sympy/discrete/tests/test_transforms.py b/sympy/discrete/tests/test_transforms.py
index d053903a4909..d679a2183bb5 100644
--- a/sympy/discrete/tests/test_transforms.py
+++ b/sympy/discrete/tests/test_transforms.py
@@ -1,9 +1,9 @@
from __future__ import print_function, division
from sympy import sqrt
-f... | [
{
"components": [
{
"doc": "Utility function for the Walsh Hadamard transform (WHT)",
"lines": [
248,
276
],
"name": "_walsh_hadamard_transform",
"signature": "def _walsh_hadamard_transform(seq, inverse=False):",
"type": "function"
... | [
"test_fft_ifft",
"test_ntt_intt"
] | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Added Walsh Hadamard Transform
#### Brief description of what is fixed or changed
1. Added Walsh Hadamard Transform
2. Polished implementation of convolution, transforms
----------
</request>
Ther... | ec9e3c0436fbff934fa84e22bf07f1b3ef5bfac3 | ||
scikit-learn__scikit-learn-11179 | 11,179 | scikit-learn/scikit-learn | 0.21 | a1fabce6531bc75964588ef9f7f95527cae899bc | 2018-05-31T23:57:09Z | diff --git a/doc/modules/classes.rst b/doc/modules/classes.rst
index fb050fd87e88c..473ea1c6a3539 100644
--- a/doc/modules/classes.rst
+++ b/doc/modules/classes.rst
@@ -846,6 +846,7 @@ details.
metrics.jaccard_similarity_score
metrics.log_loss
metrics.matthews_corrcoef
+ metrics.multilabel_confusion_matri... | diff --git a/sklearn/metrics/tests/test_classification.py b/sklearn/metrics/tests/test_classification.py
index 8e18af7128350..3152521f23b77 100644
--- a/sklearn/metrics/tests/test_classification.py
+++ b/sklearn/metrics/tests/test_classification.py
@@ -46,6 +46,7 @@
from sklearn.metrics import recall_score
from sklea... | diff --git a/doc/modules/classes.rst b/doc/modules/classes.rst
index fb050fd87e88c..473ea1c6a3539 100644
--- a/doc/modules/classes.rst
+++ b/doc/modules/classes.rst
@@ -846,6 +846,7 @@ details.
metrics.jaccard_similarity_score
metrics.log_loss
metrics.matthews_corrcoef
+ metrics.multilabel_confusion_matri... | [
{
"components": [
{
"doc": "Compute a confusion matrix for each class or sample\n\n.. versionadded:: 0.21\n\nCompute class-wise (default) or sample-wise (samplewise=True) multilabel\nconfusion matrix to evaluate the accuracy of a classification, and output\nconfusion matrices for each class or sam... | [
"sklearn/metrics/tests/test_classification.py::test_classification_report_dictionary_output",
"sklearn/metrics/tests/test_classification.py::test_multilabel_accuracy_score_subset_accuracy",
"sklearn/metrics/tests/test_classification.py::test_precision_recall_f1_score_binary",
"sklearn/metrics/tests/test_class... | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
[MRG] FEA multilabel confusion matrix
<!--
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>
[WIP] ENH Multilabel confusion matrix
This PR considers a helper for multilabel/set-wise evaluation metrics such as precision, recall, fbeta, jaccard (#10083), fall-out, miss rate and specificity (#5516). It also incorporates suggestions from #8126 rega... | 66cc1c7342f7f0cc0dc57fb6d56053fc46c8e5f0 |
sympy__sympy-14753 | 14,753 | sympy/sympy | 1.1 | 00beb465dbfdb63c7ff037236baef7b3a510643f | 2018-05-29T18:19:29Z | diff --git a/sympy/physics/continuum_mechanics/beam.py b/sympy/physics/continuum_mechanics/beam.py
index c8d7b1b587df..e843d5d83180 100644
--- a/sympy/physics/continuum_mechanics/beam.py
+++ b/sympy/physics/continuum_mechanics/beam.py
@@ -502,6 +502,46 @@ def bending_moment(self):
x = self.variable
re... | diff --git a/sympy/physics/continuum_mechanics/tests/test_beam.py b/sympy/physics/continuum_mechanics/tests/test_beam.py
index 014834f0feb6..8819c44b2cd8 100644
--- a/sympy/physics/continuum_mechanics/tests/test_beam.py
+++ b/sympy/physics/continuum_mechanics/tests/test_beam.py
@@ -1,4 +1,4 @@
-from sympy import Symbol... | [
{
"components": [
{
"doc": "Returns a Set of point(s) with zero bending moment and\nwhere bending moment curve of the beam object changes\nits sign from negative to positive or vice versa.\nExamples\n========\nThere is is 10 meter long overhanging beam. There are\ntwo simple supports below the bea... | [
"test_point_cflexure"
] | [
"test_Beam"
] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
continuum_mechanics : added method to find point of contraflexure
#### References to other Issues or PRs
#### Other comments
----------
</request>
There are several new functions or classes... | ec9e3c0436fbff934fa84e22bf07f1b3ef5bfac3 | ||
sympy__sympy-14745 | 14,745 | sympy/sympy | 1.1 | 4526f0e02f7288d0e1214add48d21be346f3d28c | 2018-05-25T13:22:34Z | diff --git a/sympy/discrete/__init__.py b/sympy/discrete/__init__.py
index 39b406ab7269..4a4ca5649591 100644
--- a/sympy/discrete/__init__.py
+++ b/sympy/discrete/__init__.py
@@ -1,9 +1,11 @@
"""A module containing discrete functions.
Transforms - fft, ifft, ntt, intt, fwht, ifwht, fzt, ifzt, fmt, ifmt
-Convolution... | diff --git a/sympy/discrete/tests/test_convolution.py b/sympy/discrete/tests/test_convolution.py
new file mode 100644
index 000000000000..71f30b0de173
--- /dev/null
+++ b/sympy/discrete/tests/test_convolution.py
@@ -0,0 +1,144 @@
+from __future__ import print_function, division
+
+from sympy import sqrt, pi, E, exp
+fr... | [
{
"components": [
{
"doc": "Performs convolution by determining the type of desired\nconvolution using hints.\n\nIf no hints are given, linear convolution is performed using\nFFT.\n\nParameters\n==========\n\na, b : iterables\n The sequences for which convolution is performed.\nhints : dict\n ... | [
"test_convolution",
"test_cyclic_convolution",
"test_convolution_fft"
] | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Added convolution module
#### Brief description of what is fixed or changed
The following changes will be covered in this PR:
- [x] Add convolution module
- [x] convolution_fft method
- [x] convol... | ec9e3c0436fbff934fa84e22bf07f1b3ef5bfac3 | ||
sympy__sympy-14725 | 14,725 | sympy/sympy | 1.1 | 125e8863c84473636ddc94500abbd667c291961a | 2018-05-18T07:11:28Z | diff --git a/setup.py b/setup.py
index 196a6ba655ce..a4327e32eed1 100755
--- a/setup.py
+++ b/setup.py
@@ -91,6 +91,7 @@
'sympy.crypto',
'sympy.deprecated',
'sympy.diffgeom',
+ 'sympy.discrete',
'sympy.external',
'sympy.functions',
'sympy.functions.combinatorial',
@@ -312,6 +313,7 @@ de... | diff --git a/sympy/discrete/tests/__init__.py b/sympy/discrete/tests/__init__.py
new file mode 100644
index 000000000000..e69de29bb2d1
diff --git a/sympy/discrete/tests/test_transforms.py b/sympy/discrete/tests/test_transforms.py
new file mode 100644
index 000000000000..d053903a4909
--- /dev/null
+++ b/sympy/discrete/t... | [
{
"components": [
{
"doc": "Utility function for the Discrete Fourier Transform (DFT)",
"lines": [
23,
69
],
"name": "_fourier_transform",
"signature": "def _fourier_transform(seq, dps, inverse=False):",
"type": "function"
},
... | [
"test_fft_ifft"
] | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Added discrete module, transforms
#### Brief description of what is fixed or changed
The following changes will be covered in this PR:
- [x] Add discrete module
- [x] Fast Fourier Transform
- [x] ... | ec9e3c0436fbff934fa84e22bf07f1b3ef5bfac3 | ||
falconry__falcon-1297 | 1,297 | falconry/falcon | null | a946f5a59bc3f5802f10fb3e360cb05fb4faadc0 | 2018-05-15T14:14:52Z | diff --git a/falcon/request.py b/falcon/request.py
index e0fd1cc44..a923627e9 100644
--- a/falcon/request.py
+++ b/falcon/request.py
@@ -1638,6 +1638,23 @@ def get_param_as_json(self, name, required=False, store=None):
This method has been deprecated and will be removed in a future release.
"""
+ def... | diff --git a/tests/test_query_params.py b/tests/test_query_params.py
index 31813b624..128fbe849 100644
--- a/tests/test_query_params.py
+++ b/tests/test_query_params.py
@@ -773,6 +773,19 @@ def test_get_dict_invalid(self, simulate_request, client, resource):
with pytest.raises(HTTPInvalidParam):
r... | [
{
"components": [
{
"doc": "Determine whether or not the query string parameter already exists.\n\nArgs:\n name (str): Parameter name, case-sensitive (e.g., 'sort').\n\nReturns:\n bool: ``True`` if param is found, or ``False`` if param is\n not found.",
"lines": [
1641,
... | [
"tests/test_query_params.py::TestQueryParams::test_has_param[simulate_request_get_query_params]",
"tests/test_query_params.py::TestQueryParams::test_has_param[simulate_request_post_query_params]"
] | [
"tests/test_query_params.py::TestQueryParams::test_none[simulate_request_get_query_params]",
"tests/test_query_params.py::TestQueryParams::test_none[simulate_request_post_query_params]",
"tests/test_query_params.py::TestQueryParams::test_blank[simulate_request_get_query_params]",
"tests/test_query_params.py::... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
feat(Request)Add a has_param() method to Request
closes: #1273
----------
</request>
There are several new functions or classes that need to be implemented, using the definitions below:
<<NEW DEFIN... | 77d5e6394a88ead151c9469494749f95f06b24bf | ||
falconry__falcon-1285 | 1,285 | falconry/falcon | null | 899c31f228df78c45e2fd4da28df400558c85a48 | 2018-05-14T16:23:23Z | diff --git a/falcon/request.py b/falcon/request.py
index 6ac421f3e..e725e9581 100644
--- a/falcon/request.py
+++ b/falcon/request.py
@@ -1232,6 +1232,75 @@ def get_param_as_int(self, name,
raise errors.HTTPMissingParam(name)
+ def get_param_as_float(self, name,
+ required=False... | diff --git a/tests/test_query_params.py b/tests/test_query_params.py
index 35ddcf320..31813b624 100644
--- a/tests/test_query_params.py
+++ b/tests/test_query_params.py
@@ -82,6 +82,7 @@ def test_none(self, simulate_request, client, resource):
assert req.get_param('limit', store) is None
assert 'limit... | [
{
"components": [
{
"doc": "Return the value of a query string parameter as an float.\n\nArgs:\n name (str): Parameter name, case-sensitive (e.g., 'limit').\n\nKeyword Args:\n required (bool): Set to ``True`` to raise\n ``HTTPBadRequest`` instead of returning ``None`` when the\n ... | [
"tests/test_query_params.py::TestQueryParams::test_none[simulate_request_get_query_params]",
"tests/test_query_params.py::TestQueryParams::test_none[simulate_request_post_query_params]",
"tests/test_query_params.py::TestQueryParams::test_required[get_param_as_float-simulate_request_get_query_params]",
"tests/... | [
"tests/test_query_params.py::TestQueryParams::test_blank[simulate_request_get_query_params]",
"tests/test_query_params.py::TestQueryParams::test_blank[simulate_request_post_query_params]",
"tests/test_query_params.py::TestQueryParams::test_simple[simulate_request_get_query_params]",
"tests/test_query_params.p... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
chore(request): Add a new method, get_param_as_float()
test: Add relevant tests.
----------
</request>
There are several new functions or classes that need to be implemented, using the definitions b... | 77d5e6394a88ead151c9469494749f95f06b24bf | ||
rytilahti__python-miio-310 | 310 | rytilahti/python-miio | null | 476aadc2c25372eafcbed394bf1490014d37f145 | 2018-04-16T08:49:56Z | diff --git a/miio/vacuum.py b/miio/vacuum.py
index 3012b4470..15d0afef1 100644
--- a/miio/vacuum.py
+++ b/miio/vacuum.py
@@ -73,6 +73,35 @@ def home(self):
self.send("app_stop")
return self.send("app_charge")
+ @command(
+ click.argument("x_coord", type=int),
+ click.argument("y_coo... | diff --git a/miio/tests/test_vacuum.py b/miio/tests/test_vacuum.py
index 496e77287..6116eafbc 100644
--- a/miio/tests/test_vacuum.py
+++ b/miio/tests/test_vacuum.py
@@ -10,9 +10,11 @@
class DummyVacuum(DummyDevice, Vacuum):
STATE_CHARGING = 8
STATE_CLEANING = 5
+ STATE_ZONED_CLEAN = 9
STATE_IDLE = 3
... | [
{
"components": [
{
"doc": "Go to specific target.\n:param int x_coord: x coordinate\n:param int y_coord: y coordinate",
"lines": [
80,
85
],
"name": "Vacuum.goto",
"signature": "def goto(self, x_coord: int, y_coord: int):",
"type": "func... | [
"miio/tests/test_vacuum.py::TestVacuum::test_goto",
"miio/tests/test_vacuum.py::TestVacuum::test_zoned_clean"
] | [
"miio/tests/test_vacuum.py::TestVacuum::test_home",
"miio/tests/test_vacuum.py::TestVacuum::test_pause",
"miio/tests/test_vacuum.py::TestVacuum::test_spot",
"miio/tests/test_vacuum.py::TestVacuum::test_start_and_stop",
"miio/tests/test_vacuum.py::TestVacuum::test_status",
"miio/tests/test_vacuum.py::TestV... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Added new commands app_goto_target and app_zoned_clean
In theory, app_zoned_clean should be able to take multiple zones at once - but I do not know how to implement this.
----------
</request>
There... | 62427d2f796e603520acca3b57b29ec3e6489bca | ||
sympy__sympy-14628 | 14,628 | sympy/sympy | 1.1 | 04f0f664992d49844748e428c2caae1d80d70739 | 2018-04-15T06:50:29Z | diff --git a/sympy/ntheory/factor_.py b/sympy/ntheory/factor_.py
index b71ea53da3bb..9a9c70e2b549 100644
--- a/sympy/ntheory/factor_.py
+++ b/sympy/ntheory/factor_.py
@@ -797,7 +797,7 @@ def done(n, d):
fails = 0
else:
fails += 1
- # d = 6*(i+1) - 1
+ # d = 6*(i + 1) - 1... | diff --git a/sympy/ntheory/tests/test_factor_.py b/sympy/ntheory/tests/test_factor_.py
index fcc3746af563..8f579845397e 100644
--- a/sympy/ntheory/tests/test_factor_.py
+++ b/sympy/ntheory/tests/test_factor_.py
@@ -173,6 +173,12 @@ def test_factorint():
assert factorint(64015937, multiple=True) == [7993, 8009]
... | [
{
"components": [
{
"doc": "",
"lines": [
17,
18
],
"name": "_azeros",
"signature": "def _azeros(n):",
"type": "function"
},
{
"doc": "",
"lines": [
21,
22
],
"name": "_aset"... | [
"test_factorint",
"test_generate"
] | [
"test_trailing_bitcount",
"test_multiplicity",
"test_perfect_power",
"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_divisors",
"test_divis... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Added totient and mobius range in Sieve
#### Brief description of what is fixed or changed
Changes made:
1. `sieve.totientrange(a, b)`: Totient function is sieved using `O(n * lg(n))` method.
2. `s... | ec9e3c0436fbff934fa84e22bf07f1b3ef5bfac3 | ||
joke2k__faker-739 | 739 | joke2k/faker | null | 5159a00f3965fca5d3c5a73c6e352a00d16d37bd | 2018-04-06T13:22:46Z | diff --git a/faker/providers/__init__.py b/faker/providers/__init__.py
index 417a033e7c..3a12f97eba 100644
--- a/faker/providers/__init__.py
+++ b/faker/providers/__init__.py
@@ -91,6 +91,14 @@ def random_letter(self):
return self.generator.random.choice(
getattr(string, 'letters', string.ascii_le... | diff --git a/tests/test_base_provider.py b/tests/test_base_provider.py
index e45c6692f6..e604912ba0 100644
--- a/tests/test_base_provider.py
+++ b/tests/test_base_provider.py
@@ -105,3 +105,20 @@ def test_hexify(self):
for c in hexified:
self.assertIn(c, string.hexdigits[:-6].upper())
... | [
{
"components": [
{
"doc": "Returns a random lowercase letter (between a-z).",
"lines": [
94,
96
],
"name": "BaseProvider.random_lowercase_letter",
"signature": "def random_lowercase_letter(self):",
"type": "function"
},
{
... | [
"tests/test_base_provider.py::TestBaseProvider::test_random_lowercase_letter",
"tests/test_base_provider.py::TestBaseProvider::test_random_uppercase_letter"
] | [
"tests/test_base_provider.py::TestBaseProvider::test_bothify_empty_text",
"tests/test_base_provider.py::TestBaseProvider::test_bothify_mixed_values",
"tests/test_base_provider.py::TestBaseProvider::test_bothify_only_letters",
"tests/test_base_provider.py::TestBaseProvider::test_hexify",
"tests/test_base_pro... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Added random lower and uppercase letters
### What does this changes
Added method to get lowercase and uppercase ASCII letters.
### What was wrong
In my previous PR (#738), I wanted to have a ... | 6edfdbf6ae90b0153309e3bf066aa3b2d16494a7 | ||
joke2k__faker-738 | 738 | joke2k/faker | null | 5159a00f3965fca5d3c5a73c6e352a00d16d37bd | 2018-04-06T13:01:29Z | diff --git a/faker/providers/file/__init__.py b/faker/providers/file/__init__.py
index a6ab2777e8..594151cd38 100644
--- a/faker/providers/file/__init__.py
+++ b/faker/providers/file/__init__.py
@@ -1,5 +1,7 @@
# coding=utf-8
from __future__ import unicode_literals
+
+import string
from collections import OrderedDic... | diff --git a/tests/providers/test_file.py b/tests/providers/test_file.py
index cca458d0bf..767d48ecc1 100644
--- a/tests/providers/test_file.py
+++ b/tests/providers/test_file.py
@@ -22,3 +22,27 @@ def test_file_path(self):
self.assertTrue(re.search(r'\/\w+\/\w+\.pdf', file_path))
file_path = ... | [
{
"components": [
{
"doc": ":param prefix: sd|vd|xvd",
"lines": [
231,
238
],
"name": "Provider.unix_device",
"signature": "def unix_device(self, prefix=None):",
"type": "function"
},
{
"doc": ":param prefix: sd|vd|xvd... | [
"tests/providers/test_file.py::TestFile::test_unix_device",
"tests/providers/test_file.py::TestFile::test_unix_partition"
] | [
"tests/providers/test_file.py::TestFile::test_file_path"
] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Added Unix device & partition
### What does this changes
I added:
- File.unix_device : To create Unix device path. ie: /dev/sda, /dev/xvde, etc
- File.unix_partition: To create Unix partition pat... | 6edfdbf6ae90b0153309e3bf066aa3b2d16494a7 | ||
rytilahti__python-miio-300 | 300 | rytilahti/python-miio | null | 6eade936e21cd9675e06a52b6baec705cd92e71a | 2018-04-04T07:27:58Z | diff --git a/miio/airhumidifier.py b/miio/airhumidifier.py
index f1e02c650..72aa136e7 100644
--- a/miio/airhumidifier.py
+++ b/miio/airhumidifier.py
@@ -6,7 +6,7 @@
import click
from .click_common import command, format_output, EnumType
-from .device import Device, DeviceException
+from .device import Device, Devic... | diff --git a/miio/tests/test_airhumidifier.py b/miio/tests/test_airhumidifier.py
index 321c79eee..45bc3eb9c 100644
--- a/miio/tests/test_airhumidifier.py
+++ b/miio/tests/test_airhumidifier.py
@@ -6,10 +6,32 @@
from miio.airhumidifier import (OperationMode, LedBrightness,
AirHumidifier... | [
{
"components": [
{
"doc": "",
"lines": [
108,
116
],
"name": "AirHumidifierStatus.strong_mode_enabled",
"signature": "def strong_mode_enabled(self) -> bool:",
"type": "function"
},
{
"doc": "Returns the fw_ver of miIO... | [
"miio/tests/test_airhumidifier.py::TestAirHumidifier::test_status"
] | [
"miio/tests/test_airhumidifier.py::TestAirHumidifier::test_off",
"miio/tests/test_airhumidifier.py::TestAirHumidifier::test_on",
"miio/tests/test_airhumidifier.py::TestAirHumidifier::test_set_buzzer",
"miio/tests/test_airhumidifier.py::TestAirHumidifier::test_set_child_lock",
"miio/tests/test_airhumidifier.... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Air Humidifier: Strong mode property added and docstrings updated
----------
</request>
There are several new functions or classes that need to be implemented, using the definitions below:
<<NEW D... | 62427d2f796e603520acca3b57b29ec3e6489bca | ||
rytilahti__python-miio-285 | 285 | rytilahti/python-miio | null | 1e789fab793c2f57cc3517b43bd46277558418fc | 2018-03-29T10:09:44Z | diff --git a/miio/discovery.py b/miio/discovery.py
index 2200e8cb3..ebc8262f8 100644
--- a/miio/discovery.py
+++ b/miio/discovery.py
@@ -5,7 +5,7 @@
import codecs
from . import (Device, Vacuum, ChuangmiPlug, PowerStrip, AirPurifier, Ceil,
PhilipsBulb, PhilipsEyecare, ChuangmiIr, AirHumidifier,
- ... | diff --git a/miio/tests/test_wifirepeater.py b/miio/tests/test_wifirepeater.py
index 9097839f0..2ec42b907 100644
--- a/miio/tests/test_wifirepeater.py
+++ b/miio/tests/test_wifirepeater.py
@@ -100,6 +100,12 @@ def configuration(self):
def info(self):
return self.device.info()
+ def wifi_roaming(self)... | [
{
"components": [
{
"doc": "",
"lines": [
7,
8
],
"name": "WifiRepeaterException",
"signature": "class WifiRepeaterException(DeviceException):",
"type": "class"
},
{
"doc": "Return the roaming setting.",
"lines... | [
"miio/tests/test_wifirepeater.py::TestWifiRepeater::test_rssi_accesspoint",
"miio/tests/test_wifirepeater.py::TestWifiRepeater::test_set_wifi_roaming"
] | [
"miio/tests/test_wifirepeater.py::TestWifiRepeater::test_configuration",
"miio/tests/test_wifirepeater.py::TestWifiRepeater::test_set_configuration",
"miio/tests/test_wifirepeater.py::TestWifiRepeater::test_status"
] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
WiFi Repeater: Wifi roaming and signal strange indicator added
----------
</request>
There are several new functions or classes that need to be implemented, using the definitions below:
<<NEW DEFI... | 62427d2f796e603520acca3b57b29ec3e6489bca | ||
joke2k__faker-731 | 731 | joke2k/faker | null | 7a0a4f4541a6f164d81af14983a5ab96f86e109a | 2018-03-23T15:38:59Z | diff --git a/faker/providers/automotive/de_DE/__init__.py b/faker/providers/automotive/de_DE/__init__.py
new file mode 100644
index 0000000000..14bc54d32c
--- /dev/null
+++ b/faker/providers/automotive/de_DE/__init__.py
@@ -0,0 +1,46 @@
+# coding=utf-8
+
+
+from __future__ import unicode_literals
+from .. import Provid... | diff --git a/tests/providers/test_automotive.py b/tests/providers/test_automotive.py
index 10604e2e4d..82c529a29a 100644
--- a/tests/providers/test_automotive.py
+++ b/tests/providers/test_automotive.py
@@ -28,3 +28,13 @@ def test_hu_HU_plate_format(self):
plate = self.factory.license_plate()
assert... | [
{
"components": [
{
"doc": "",
"lines": [
9,
46
],
"name": "Provider",
"signature": "class Provider(AutomotiveProvider):",
"type": "class"
},
{
"doc": "",
"lines": [
44,
46
],
... | [
"tests/providers/test_automotive.py::TestDeDe::test_de_DE_plate_format"
] | [
"tests/providers/test_automotive.py::TestPtBR::test_plate_has_been_generated",
"tests/providers/test_automotive.py::TestHuHU::test_hu_HU_plate_format"
] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Add car license plate format for de_DE
`fake.license_plate()`
returns now a valid license plate format for **de_DE**
----------
</request>
There are several new functions or classes that need... | 6edfdbf6ae90b0153309e3bf066aa3b2d16494a7 | ||
boto__boto3-1486 | 1,486 | boto/boto3 | null | 04ec386146f114db4304a65daae7d5249b63030b | 2018-03-20T22:55:37Z | diff --git a/.changes/next-release/enhancement-DynamoDB-97758.json b/.changes/next-release/enhancement-DynamoDB-97758.json
new file mode 100644
index 0000000000..16b294001e
--- /dev/null
+++ b/.changes/next-release/enhancement-DynamoDB-97758.json
@@ -0,0 +1,5 @@
+{
+ "type": "enhancement",
+ "category": "DynamoDB",
+... | diff --git a/tests/unit/dynamodb/test_types.py b/tests/unit/dynamodb/test_types.py
index fca7fd7248..0dd9748b2c 100644
--- a/tests/unit/dynamodb/test_types.py
+++ b/tests/unit/dynamodb/test_types.py
@@ -49,6 +49,9 @@ def test_not_equal(self):
def test_str(self):
self.assertEqual(Binary(b'\x01').__str__(),... | diff --git a/.changes/next-release/enhancement-DynamoDB-97758.json b/.changes/next-release/enhancement-DynamoDB-97758.json
new file mode 100644
index 0000000000..16b294001e
--- /dev/null
+++ b/.changes/next-release/enhancement-DynamoDB-97758.json
@@ -0,0 +1,5 @@
+{
+ "type": "enhancement",
+ "category": "DynamoDB",
+... | [
{
"components": [
{
"doc": "",
"lines": [
68,
69
],
"name": "Binary.__bytes__",
"signature": "def __bytes__(self):",
"type": "function"
}
],
"file": "boto3/dynamodb/types.py"
}
] | [
"tests/unit/dynamodb/test_types.py::TestBinary::test_bytes"
] | [
"tests/unit/dynamodb/test_types.py::TestBinary::test_bytearray_input",
"tests/unit/dynamodb/test_types.py::TestBinary::test_bytes_input",
"tests/unit/dynamodb/test_types.py::TestBinary::test_integer_throws_error",
"tests/unit/dynamodb/test_types.py::TestBinary::test_non_ascii_bytes_input",
"tests/unit/dynam... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Give Binary a __bytes__ interface
The `boto3.dynamodb.types.Binary` class is meant to make it easier to work with values across Python 2/3, but it lacks a `bytes` interface, which makes working with i... | 196a2da7490a1a661a0103b8770bd31e34e147f2 | |
scikit-learn__scikit-learn-10827 | 10,827 | scikit-learn/scikit-learn | 0.20 | 4905934f1ad87446a60bf789654c8a3f33859259 | 2018-03-17T21:59:23Z | diff --git a/doc/modules/classes.rst b/doc/modules/classes.rst
index 68494051041be..7cc6982e4bfa7 100644
--- a/doc/modules/classes.rst
+++ b/doc/modules/classes.rst
@@ -893,6 +893,7 @@ details.
metrics.adjusted_mutual_info_score
metrics.adjusted_rand_score
metrics.calinski_harabaz_score
+ metrics.davies_b... | diff --git a/sklearn/metrics/cluster/tests/test_common.py b/sklearn/metrics/cluster/tests/test_common.py
index 3536fdcaa69fa..71534380fe6ec 100644
--- a/sklearn/metrics/cluster/tests/test_common.py
+++ b/sklearn/metrics/cluster/tests/test_common.py
@@ -13,6 +13,7 @@
from sklearn.metrics.cluster import v_measure_score
... | diff --git a/doc/modules/classes.rst b/doc/modules/classes.rst
index 68494051041be..7cc6982e4bfa7 100644
--- a/doc/modules/classes.rst
+++ b/doc/modules/classes.rst
@@ -893,6 +893,7 @@ details.
metrics.adjusted_mutual_info_score
metrics.adjusted_rand_score
metrics.calinski_harabaz_score
+ metrics.davies_b... | [
{
"components": [
{
"doc": "Computes the Davies-Bouldin score.\n\nThe score is defined as the ratio of within-cluster distances to\nbetween-cluster distances.\n\nRead more in the :ref:`User Guide <davies-bouldin_index>`.\n\nParameters\n----------\nX : array-like, shape (``n_samples``, ``n_features... | [
"sklearn/metrics/cluster/tests/test_common.py::test_symmetric_non_symmetric_union",
"sklearn/metrics/cluster/tests/test_common.py::test_symmetry[adjusted_rand_score-y10-y20]",
"sklearn/metrics/cluster/tests/test_common.py::test_symmetry[v_measure_score-y11-y21]",
"sklearn/metrics/cluster/tests/test_common.py:... | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
[MRG+1] Add Davies-Bouldin index
Add another unsupervised quality metric for clustering results, the Davies-Bouldin Index.
#### Reference Issues/PRs
closes #7942
#### What does this implement/f... | Here is the discussion in the issues of the pull request.
<issues>
[STALLED] Davies bouldin index
<!--
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/master/CONTRIBUTING.md#Contributing-Pull-Requests
-->
#... | 51407623e4f491f00e3b465626dd5c4b55860bd0 |
joke2k__faker-716 | 716 | joke2k/faker | null | 0e3dfffc3cfbd40b304fc37a916bd837bb0cf021 | 2018-03-07T16:33:59Z | diff --git a/faker/providers/ssn/no_NO/__init__.py b/faker/providers/ssn/no_NO/__init__.py
new file mode 100644
index 0000000000..0e38427658
--- /dev/null
+++ b/faker/providers/ssn/no_NO/__init__.py
@@ -0,0 +1,83 @@
+# coding=utf-8
+
+from __future__ import unicode_literals
+from .. import Provider as SsnProvider
+... | diff --git a/tests/providers/test_ssn.py b/tests/providers/test_ssn.py
index dddcd44d37..ab5db852f1 100644
--- a/tests/providers/test_ssn.py
+++ b/tests/providers/test_ssn.py
@@ -11,6 +11,7 @@
from faker.providers.ssn.hr_HR import checksum as hr_checksum
from faker.providers.ssn.pt_BR import checksum as pt_checksum
... | [
{
"components": [
{
"doc": "Calculate checksum of Norwegian personal identity code.\n\nChecksum is calculated with \"Module 11\" method using a scale.\nThe digits of the personal code are multiplied by the corresponding\nnumber in the scale and summed;\nif remainder of module 11 of the sum is less... | [
"tests/providers/test_ssn.py::TestEtEE::test_ssn",
"tests/providers/test_ssn.py::TestEtEE::test_ssn_checksum",
"tests/providers/test_ssn.py::TestHrHR::test_ssn",
"tests/providers/test_ssn.py::TestHrHR::test_ssn_checksum",
"tests/providers/test_ssn.py::TestHuHU::test_ssn",
"tests/providers/test_ssn.py::Tes... | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Added a provider for a Norwegian ssn number.
### What does this changes
Added a Norwegian ssn provider.
### What was wrong
The was no provider for a Norwegian ssn number.
### How this fixe... | Here is the discussion in the issues of the pull request.
<issues>
Norwegian SSN: Incorrect format
The format for Norwegian SSN is 11 digits:
- The first six digits represent the date of birth in the order date, month, year
- The next three digits are an individual number, the third digit of which indicates gender –... | 6edfdbf6ae90b0153309e3bf066aa3b2d16494a7 | |
joke2k__faker-707 | 707 | joke2k/faker | null | cbbda12df70ddb8bba4ffcfd7d9f2bc78173c1bf | 2018-02-24T18:55:23Z | diff --git a/faker/providers/__init__.py b/faker/providers/__init__.py
index b7418fc179..417a033e7c 100644
--- a/faker/providers/__init__.py
+++ b/faker/providers/__init__.py
@@ -12,6 +12,7 @@
_re_excl = re.compile(r'!')
_re_at = re.compile(r'@')
_re_qm = re.compile(r'\?')
+_re_cir = re.compile(r'\^')
class Bas... | diff --git a/tests/test_base_provider.py b/tests/test_base_provider.py
index 299ae362e5..e45c6692f6 100644
--- a/tests/test_base_provider.py
+++ b/tests/test_base_provider.py
@@ -1,4 +1,5 @@
import unittest
+import string
from faker import Generator
from faker.providers import BaseProvider
@@ -89,3 +90,18 @@ def t... | [
{
"components": [
{
"doc": "Replaces all circumflex ('^') occurrences with a random\nhexadecimal character.\n\n:param text: string to be parsed\n:param upper: Format as uppercase hexadecimal\n:returns: string with all letter placeholders filled in",
"lines": [
218,
230
... | [
"tests/test_base_provider.py::TestBaseProvider::test_hexify"
] | [
"tests/test_base_provider.py::TestBaseProvider::test_bothify_empty_text",
"tests/test_base_provider.py::TestBaseProvider::test_bothify_mixed_values",
"tests/test_base_provider.py::TestBaseProvider::test_bothify_only_letters",
"tests/test_base_provider.py::TestBaseProvider::test_lexify_empty_text",
"tests/te... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Added hexify
### What does this changes
In the same spirit than lexify, I added hexify, to format strings with hexadecimal numbers.
I could be useful in many case, especially to develop provider... | 6edfdbf6ae90b0153309e3bf066aa3b2d16494a7 | ||
rytilahti__python-miio-216 | 216 | rytilahti/python-miio | null | 0aa83ab89651e6580918808a6201fe990442b9e9 | 2018-02-12T15:22:35Z | diff --git a/miio/ceil.py b/miio/ceil.py
index 46004fbb4..fc539248e 100644
--- a/miio/ceil.py
+++ b/miio/ceil.py
@@ -117,6 +117,16 @@ def set_color_temperature(self, level: int):
return self.send("set_cct", [level])
+ def set_brightness_and_color_temperature(self, brightness: int, cct: int):
+ ""... | diff --git a/miio/tests/test_ceil.py b/miio/tests/test_ceil.py
index 9fd0d64d2..28084509c 100644
--- a/miio/tests/test_ceil.py
+++ b/miio/tests/test_ceil.py
@@ -1,5 +1,6 @@
from unittest import TestCase
from miio import Ceil
+from miio.ceil import CeilException
from .dummies import DummyDevice
import pytest
@@ -2... | [
{
"components": [
{
"doc": "Set brightness level and the correlated color temperature.",
"lines": [
120,
128
],
"name": "Ceil.set_brightness_and_color_temperature",
"signature": "def set_brightness_and_color_temperature(self, brightness: int, cct... | [
"miio/tests/test_ceil.py::TestCeil::test_set_brightness_and_color_temperature"
] | [
"miio/tests/test_ceil.py::TestCeil::test_automatic_color_temperature_on",
"miio/tests/test_ceil.py::TestCeil::test_delay_off",
"miio/tests/test_ceil.py::TestCeil::test_off",
"miio/tests/test_ceil.py::TestCeil::test_on",
"miio/tests/test_ceil.py::TestCeil::test_set_brightness",
"miio/tests/test_ceil.py::Te... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Philips Ceiling Lamp: New setter "bricct" added
----------
</request>
There are several new functions or classes that need to be implemented, using the definitions below:
<<NEW DEFINITIONS>>
There... | 62427d2f796e603520acca3b57b29ec3e6489bca | ||
sympy__sympy-14171 | 14,171 | sympy/sympy | 1.1 | 2c0a3a103baa547de12e332382d44ee3733d485f | 2018-02-12T06:52:20Z | diff --git a/sympy/physics/mechanics/functions.py b/sympy/physics/mechanics/functions.py
index 5d7806b2122e..cee733eca8fb 100644
--- a/sympy/physics/mechanics/functions.py
+++ b/sympy/physics/mechanics/functions.py
@@ -341,6 +341,45 @@ def potential_energy(*body):
raise TypeError('*body must have only Part... | diff --git a/sympy/physics/mechanics/tests/test_functions.py b/sympy/physics/mechanics/tests/test_functions.py
index db8d3ca1495c..dd94b908d238 100644
--- a/sympy/physics/mechanics/tests/test_functions.py
+++ b/sympy/physics/mechanics/tests/test_functions.py
@@ -6,6 +6,8 @@
kinetic... | [
{
"components": [
{
"doc": "Returns a list of gravity forces given the acceleration\ndue to gravity and any number of particles or rigidbodies.\n\nExamples\n========\n\n>>> from sympy.physics.mechanics import ReferenceFrame, Point, Particle, outer, RigidBody\n>>> from sympy.physics.mechanics.funct... | [
"test_inertia",
"test_inertia_of_point_mass",
"test_linear_momentum",
"test_angular_momentum_and_linear_momentum",
"test_kinetic_energy",
"test_potential_energy",
"test_msubs",
"test_find_dynamicsymbols"
] | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Gravity function
<!-- Your title above should be a short description of what
was changed. Do not include the issue number in the title. -->
#### References to other Issues or PRs
<!-- If this pul... | ec9e3c0436fbff934fa84e22bf07f1b3ef5bfac3 | ||
scikit-learn__scikit-learn-10591 | 10,591 | scikit-learn/scikit-learn | 0.24 | 0550793bd61b84beb60d3a92c3eb90cc788a27a8 | 2018-02-05T18:10:45Z | diff --git a/doc/modules/classes.rst b/doc/modules/classes.rst
index 2e54d000a13aa..2fd1366e18434 100644
--- a/doc/modules/classes.rst
+++ b/doc/modules/classes.rst
@@ -946,6 +946,7 @@ details.
metrics.cohen_kappa_score
metrics.confusion_matrix
metrics.dcg_score
+ metrics.detection_error_tradeoff_curve
... | diff --git a/sklearn/metrics/tests/test_common.py b/sklearn/metrics/tests/test_common.py
index 3f2ba83b474c7..24f01d46610a7 100644
--- a/sklearn/metrics/tests/test_common.py
+++ b/sklearn/metrics/tests/test_common.py
@@ -29,6 +29,7 @@
from sklearn.metrics import cohen_kappa_score
from sklearn.metrics import confusion... | diff --git a/doc/modules/classes.rst b/doc/modules/classes.rst
index 2e54d000a13aa..2fd1366e18434 100644
--- a/doc/modules/classes.rst
+++ b/doc/modules/classes.rst
@@ -946,6 +946,7 @@ details.
metrics.cohen_kappa_score
metrics.confusion_matrix
metrics.dcg_score
+ metrics.detection_error_tradeoff_curve
... | [
{
"components": [
{
"doc": "Compute error rates for different probability thresholds.\n\nNote: This metrics is used for ranking evaluation of a binary\nclassification task.\n\nRead more in the :ref:`User Guide <det_curve>`.\n\nParameters\n----------\ny_true : array, shape = [n_samples]\n True t... | [
"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>
[MRG] Add Detection Error Tradeoff (DET) curve classification metrics
#### Reference Issues/PRs
Continuation of the awesome work in PR #4980 and PR #8724 respectively.
- Resumes and closes #4980... | Here is the discussion in the issues of the pull request.
<issues>
[WIP] Added DET curve to classification metrics (Rebased)
#### Reference Issue
Resumes #4980 started by @jkarnows , which was left almost entirely finished.
#### What does this implement/fix? Explain your changes.
The great PR #4980 was left somew... | 54ce4222694819ad52d544ce5cba5da274c34ab7 |
rytilahti__python-miio-190 | 190 | rytilahti/python-miio | null | ae5f4ba49acc9b767cb8795e67e8e79b14f508eb | 2018-01-28T20:34:12Z | diff --git a/miio/airpurifier.py b/miio/airpurifier.py
index b032dda92..818cc0481 100644
--- a/miio/airpurifier.py
+++ b/miio/airpurifier.py
@@ -19,6 +19,12 @@ class OperationMode(enum.Enum):
Idle = 'idle'
+class SleepMode(enum.Enum):
+ Off = 'poweroff'
+ Silent = 'silent'
+ Idle = 'idle'
+
+
class L... | diff --git a/miio/tests/test_airpurifier.py b/miio/tests/test_airpurifier.py
index 220557972..b6d383fd7 100644
--- a/miio/tests/test_airpurifier.py
+++ b/miio/tests/test_airpurifier.py
@@ -1,7 +1,7 @@
from unittest import TestCase
from miio import AirPurifier
from miio.airpurifier import (
- OperationMode, LedBri... | [
{
"components": [
{
"doc": "",
"lines": [
22,
25
],
"name": "SleepMode",
"signature": "class SleepMode(enum.Enum):",
"type": "class"
}
],
"file": "miio/airpurifier.py"
}
] | [
"miio/tests/test_airpurifier.py::TestAirPurifier::test_off",
"miio/tests/test_airpurifier.py::TestAirPurifier::test_on",
"miio/tests/test_airpurifier.py::TestAirPurifier::test_reset_filter",
"miio/tests/test_airpurifier.py::TestAirPurifier::test_set_auto_detect",
"miio/tests/test_airpurifier.py::TestAirPuri... | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Air Purifier: SleepMode enum added. SleepMode isn't a subset of OperationMode
----------
</request>
There are several new functions or classes that need to be implemented, using the definitions bel... | 62427d2f796e603520acca3b57b29ec3e6489bca | ||
rytilahti__python-miio-188 | 188 | rytilahti/python-miio | null | e861c3a11b588dbd03ecde807cb41c595678202e | 2018-01-28T09:56:00Z | diff --git a/miio/airpurifier.py b/miio/airpurifier.py
index 1cf4fea7e..b032dda92 100644
--- a/miio/airpurifier.py
+++ b/miio/airpurifier.py
@@ -103,6 +103,7 @@ def temperature(self) -> Optional[float]:
"""Current temperature, if available."""
if self.data["temp_dec"] is not None:
return ... | diff --git a/miio/tests/test_airpurifier.py b/miio/tests/test_airpurifier.py
index 466be9afc..220557972 100644
--- a/miio/tests/test_airpurifier.py
+++ b/miio/tests/test_airpurifier.py
@@ -33,6 +33,11 @@ def __init__(self, *args, **kwargs):
'rfid_product_id': '0:0:41:30',
'rfid_tag': '10:20:30... | [
{
"components": [
{
"doc": "Operation mode of the sleep state. (Idle vs. Silent)",
"lines": [
115,
120
],
"name": "AirPurifierStatus.sleep_mode",
"signature": "def sleep_mode(self) -> Optional[OperationMode]:",
"type": "function"
},... | [
"miio/tests/test_airpurifier.py::TestAirPurifier::test_set_auto_detect",
"miio/tests/test_airpurifier.py::TestAirPurifier::test_set_extra_features",
"miio/tests/test_airpurifier.py::TestAirPurifier::test_status"
] | [
"miio/tests/test_airpurifier.py::TestAirPurifier::test_off",
"miio/tests/test_airpurifier.py::TestAirPurifier::test_on",
"miio/tests/test_airpurifier.py::TestAirPurifier::test_reset_filter",
"miio/tests/test_airpurifier.py::TestAirPurifier::test_set_buzzer",
"miio/tests/test_airpurifier.py::TestAirPurifier:... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Features of mixed air purifier models added
----------
</request>
There are several new functions or classes that need to be implemented, using the definitions below:
<<NEW DEFINITIONS>>
There are... | 62427d2f796e603520acca3b57b29ec3e6489bca | ||
rytilahti__python-miio-187 | 187 | rytilahti/python-miio | null | e861c3a11b588dbd03ecde807cb41c595678202e | 2018-01-28T08:37:23Z | diff --git a/miio/airqualitymonitor.py b/miio/airqualitymonitor.py
index 075e9b55d..71cf51d03 100644
--- a/miio/airqualitymonitor.py
+++ b/miio/airqualitymonitor.py
@@ -28,21 +28,39 @@ def usb_power(self) -> bool:
@property
def aqi(self) -> int:
- """Air quality index value."""
+ """Air qualit... | diff --git a/miio/tests/test_airqualitymonitor.py b/miio/tests/test_airqualitymonitor.py
index 243bf6015..578599d53 100644
--- a/miio/tests/test_airqualitymonitor.py
+++ b/miio/tests/test_airqualitymonitor.py
@@ -10,7 +10,8 @@ def __init__(self, *args, **kwargs):
'power': 'on',
'aqi': 34,
... | [
{
"components": [
{
"doc": "Current time state.",
"lines": [
40,
42
],
"name": "AirQualityMonitorStatus.time_state",
"signature": "def time_state(self) -> str:",
"type": "function"
},
{
"doc": "",
"lines": [
... | [
"miio/tests/test_airqualitymonitor.py::TestAirQualityMonitor::test_status"
] | [
"miio/tests/test_airqualitymonitor.py::TestAirQualityMonitor::test_off",
"miio/tests/test_airqualitymonitor.py::TestAirQualityMonitor::test_on"
] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Air Quality Monitor: New property "time_state" added
----------
</request>
There are several new functions or classes that need to be implemented, using the definitions below:
<<NEW DEFINITIONS>>
... | 62427d2f796e603520acca3b57b29ec3e6489bca | ||
rytilahti__python-miio-186 | 186 | rytilahti/python-miio | null | e861c3a11b588dbd03ecde807cb41c595678202e | 2018-01-28T08:15:05Z | diff --git a/miio/philips_bulb.py b/miio/philips_bulb.py
index 84938d7e7..3269cfb53 100644
--- a/miio/philips_bulb.py
+++ b/miio/philips_bulb.py
@@ -93,6 +93,16 @@ def set_color_temperature(self, level: int):
return self.send("set_cct", [level])
+ def set_brightness_and_color_temperature(self, brightnes... | diff --git a/miio/tests/test_philips_bulb.py b/miio/tests/test_philips_bulb.py
index 7c2398674..dc20306a1 100644
--- a/miio/tests/test_philips_bulb.py
+++ b/miio/tests/test_philips_bulb.py
@@ -21,6 +21,10 @@ def __init__(self, *args, **kwargs):
'set_cct': lambda x: self._set_state("cct", x),
'... | [
{
"components": [
{
"doc": "Set brightness level and the correlated color temperature.",
"lines": [
96,
104
],
"name": "PhilipsBulb.set_brightness_and_color_temperature",
"signature": "def set_brightness_and_color_temperature(self, brightness: in... | [
"miio/tests/test_philips_bulb.py::TestPhilipsBulb::test_set_brightness_and_color_temperature"
] | [
"miio/tests/test_philips_bulb.py::TestPhilipsBulb::test_delay_off",
"miio/tests/test_philips_bulb.py::TestPhilipsBulb::test_off",
"miio/tests/test_philips_bulb.py::TestPhilipsBulb::test_on",
"miio/tests/test_philips_bulb.py::TestPhilipsBulb::test_set_brightness",
"miio/tests/test_philips_bulb.py::TestPhilip... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Philips Bulb: New setter "bricct" added
Brightness and color temperature can be set at once.
----------
</request>
There are several new functions or classes that need to be implemented, using the d... | 62427d2f796e603520acca3b57b29ec3e6489bca | ||
rytilahti__python-miio-173 | 173 | rytilahti/python-miio | null | 9202f1d95eed88426a4b6ccfa55f6d752013250b | 2018-01-22T21:50:46Z | diff --git a/miio/airhumidifier.py b/miio/airhumidifier.py
index cc45645e7..db59494a8 100644
--- a/miio/airhumidifier.py
+++ b/miio/airhumidifier.py
@@ -2,11 +2,15 @@
import enum
from typing import Any, Dict, Optional
from collections import defaultdict
-from .device import Device
+from .device import Device, Device... | diff --git a/miio/tests/test_airhumidifier.py b/miio/tests/test_airhumidifier.py
index 317f4c85d..3b5a12fad 100644
--- a/miio/tests/test_airhumidifier.py
+++ b/miio/tests/test_airhumidifier.py
@@ -1,6 +1,6 @@
from unittest import TestCase
from miio import AirHumidifier
-from miio.airhumidifier import OperationMode, L... | [
{
"components": [
{
"doc": "",
"lines": [
10,
11
],
"name": "AirHumidifierException",
"signature": "class AirHumidifierException(DeviceException):",
"type": "class"
},
{
"doc": "Return True if child lock is on.",
... | [
"miio/tests/test_airhumidifier.py::TestAirHumidifier::test_off",
"miio/tests/test_airhumidifier.py::TestAirHumidifier::test_on",
"miio/tests/test_airhumidifier.py::TestAirHumidifier::test_set_buzzer",
"miio/tests/test_airhumidifier.py::TestAirHumidifier::test_set_child_lock",
"miio/tests/test_airhumidifier.... | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
New properties of the Xiaomi Air Humidifier added
----------
</request>
There are several new functions or classes that need to be implemented, using the definitions below:
<<NEW DEFINITIONS>>
The... | 62427d2f796e603520acca3b57b29ec3e6489bca | ||
sympy__sympy-13829 | 13,829 | sympy/sympy | 1.1 | 265d30890c34ab37dab58a7bdb4e73950f0258ad | 2018-01-03T17:33:55Z | diff --git a/sympy/functions/__init__.py b/sympy/functions/__init__.py
index 0c8fda287d89..9f4f17ea8199 100644
--- a/sympy/functions/__init__.py
+++ b/sympy/functions/__init__.py
@@ -33,7 +33,7 @@
KroneckerDelta)
from sympy.functions.special.singularity_functions import SingularityFunction
from sympy.functio... | diff --git a/sympy/functions/special/tests/test_bsplines.py b/sympy/functions/special/tests/test_bsplines.py
index f46b7a7a291d..e52b1bcc0d05 100644
--- a/sympy/functions/special/tests/test_bsplines.py
+++ b/sympy/functions/special/tests/test_bsplines.py
@@ -1,7 +1,7 @@
-from sympy.functions import bspline_basis_set
+f... | [
{
"components": [
{
"doc": "Return spline of degree ``d`` interpolating for given\n``X`` and ``Y`` values.\n\nThis function returns a piecewise function such that each part is\na polynomial of degreeat most ``d`` .\nThe degree ``d`` must be at least 1. The values listed in X must\nbe strictly incr... | [
"test_basic_degree_0",
"test_basic_degree_1",
"test_basic_degree_2",
"test_basic_degree_3",
"test_repeated_degree_1",
"test_repeated_degree_2",
"test_10_points_degree_1",
"test_3_points_degree_2",
"test_5_points_degree_2"
] | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Interpolating spline
# Added an interpolating_spline function for symbolic interpolation of splines
### Fixes #13809
It returns B-splines at x of degree d for given x and y values.
I made some c... | Here is the discussion in the issues of the pull request.
<issues>
Implement interpolating splines
SymPy has [`interpolating_poly`](http://docs.sympy.org/latest/modules/polys/reference.html#sympy.polys.specialpolys.interpolating_poly) but no interpolating spline method that I know of. Symbolic interpolating splines are... | ec9e3c0436fbff934fa84e22bf07f1b3ef5bfac3 | |
falconry__falcon-1174 | 1,174 | falconry/falcon | null | 919fd3f5a3129d04f1c7d23f5eff440ec4598e35 | 2017-12-18T22:06:28Z | diff --git a/falcon/request.py b/falcon/request.py
index b1f92e12f..5bc5d412a 100644
--- a/falcon/request.py
+++ b/falcon/request.py
@@ -26,7 +26,8 @@
import io
NativeStream = io.BufferedReader
-from wsgiref.validate import InputWrapper # NOQA: I202
+from uuid import UUID # NOQA: I202
+from wsgiref.valida... | diff --git a/tests/test_query_params.py b/tests/test_query_params.py
index e90567d4b..348577333 100644
--- a/tests/test_query_params.py
+++ b/tests/test_query_params.py
@@ -1,4 +1,5 @@
from datetime import date, datetime
+from uuid import UUID
try:
import ujson as json
@@ -72,7 +73,7 @@ class TestQueryParams(o... | [
{
"components": [
{
"doc": "Return the value of a query string parameter as an UUID.\n\nThe value to convert must conform to the standard UUID string\nrepresentation per RFC 4122. For example, the following\nstrings are all valid::\n\n # Lowercase\n '64be949b-3433-4d36-a4a8-9f19d352fee8'\n\n... | [
"tests/test_query_params.py::TestQueryParams::test_required[get_param_as_uuid-simulate_request_get_query_params]",
"tests/test_query_params.py::TestQueryParams::test_required[get_param_as_uuid-simulate_request_post_query_params]",
"tests/test_query_params.py::TestQueryParams::test_uuid[simulate_request_get_quer... | [
"tests/test_query_params.py::TestQueryParams::test_none[simulate_request_get_query_params]",
"tests/test_query_params.py::TestQueryParams::test_none[simulate_request_post_query_params]",
"tests/test_query_params.py::TestQueryParams::test_blank[simulate_request_get_query_params]",
"tests/test_query_params.py::... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
feat(Request): Add get_param_as_uuid()
Closes #1132
----------
</request>
There are several new functions or classes that need to be implemented, using the definitions below:
<<NEW DEFINITIONS>>
Th... | Here is the discussion in the issues of the pull request.
<issues>
Add a get_param_as_uuid method to `falcon.Request`
It would be great to be able to get a parameter and to cast it to an UUID, raising a HTTPBadRequest otherwise.
----------
--------------------
</issues> | 77d5e6394a88ead151c9469494749f95f06b24bf | |
scikit-learn__scikit-learn-10280 | 10,280 | scikit-learn/scikit-learn | 0.20 | 1557cb8a1910bce6dc33cd5cd3a08c380bdec566 | 2017-12-10T10:27:31Z | diff --git a/doc/modules/classes.rst b/doc/modules/classes.rst
index 68494051041be..99731c7fda599 100644
--- a/doc/modules/classes.rst
+++ b/doc/modules/classes.rst
@@ -955,6 +955,7 @@ See the :ref:`metrics` section of the user guide for further details.
metrics.pairwise_distances
metrics.pairwise_distances_arg... | diff --git a/sklearn/metrics/tests/test_pairwise.py b/sklearn/metrics/tests/test_pairwise.py
index 799b3e4fe9bf7..0ef089c7a3619 100644
--- a/sklearn/metrics/tests/test_pairwise.py
+++ b/sklearn/metrics/tests/test_pairwise.py
@@ -1,11 +1,15 @@
+from types import GeneratorType
+
import numpy as np
from numpy import lin... | diff --git a/doc/modules/classes.rst b/doc/modules/classes.rst
index 68494051041be..99731c7fda599 100644
--- a/doc/modules/classes.rst
+++ b/doc/modules/classes.rst
@@ -955,6 +955,7 @@ See the :ref:`metrics` section of the user guide for further details.
metrics.pairwise_distances
metrics.pairwise_distances_arg... | [
{
"components": [
{
"doc": "",
"lines": [
261,
264
],
"name": "_argmin_min_reduce",
"signature": "def _argmin_min_reduce(dist, start):",
"type": "function"
},
{
"doc": "Checks chunk is a sequence of expected size or a ... | [
"sklearn/metrics/tests/test_pairwise.py::test_pairwise_distances",
"sklearn/metrics/tests/test_pairwise.py::test_pairwise_boolean_distance",
"sklearn/metrics/tests/test_pairwise.py::test_pairwise_precomputed",
"sklearn/metrics/tests/test_pairwise.py::test_pairwise_callable_nonstrict_metric",
"sklearn/metric... | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
[MRG+1] ENH Add working_memory global config for chunked operations
We often get issues related to memory consumption and don't deal with them particularly well. Indeed, Scikit-learn should be at hom... | Here is the discussion in the issues of the pull request.
<issues>
[MRG] ENH: Added block_size parameter for lesser memory consumption
#### Reference Issue
Fixes #7287
#### What does this implement/fix? Explain your changes.
This intends to add a function `pairwise_distances_blockwise` with an additional block_s... | 51407623e4f491f00e3b465626dd5c4b55860bd0 |
prometheus__client_python-220 | 220 | prometheus/client_python | null | 4e25eab26abae9aa5885798257074996826a5b9a | 2017-12-07T18:09:53Z | diff --git a/prometheus_client/core.py b/prometheus_client/core.py
index 426096f8..840fc9b2 100644
--- a/prometheus_client/core.py
+++ b/prometheus_client/core.py
@@ -176,6 +176,29 @@ def __eq__(self, other):
and self.samples == other.samples)
+class UntypedMetricFamily(Metric):
+ '''A single un... | diff --git a/tests/test_core.py b/tests/test_core.py
index 6242537f..609d96b1 100644
--- a/tests/test_core.py
+++ b/tests/test_core.py
@@ -321,6 +321,16 @@ def collect(self):
return [metric_family]
self.registry.register(CustomCollector())
+ def test_untyped(self):
+ self.custom_co... | [
{
"components": [
{
"doc": "A single untyped metric and its samples.\nFor use by custom collectors.",
"lines": [
179,
199
],
"name": "UntypedMetricFamily",
"signature": "class UntypedMetricFamily(Metric):",
"type": "class"
},
... | [
"tests/test_core.py::TestMetricFamilies::test_bad_constructors",
"tests/test_core.py::TestMetricFamilies::test_labelnames",
"tests/test_core.py::TestMetricFamilies::test_untyped",
"tests/test_core.py::TestMetricFamilies::test_untyped_labels"
] | [
"tests/test_core.py::TestCounter::test_block_decorator",
"tests/test_core.py::TestCounter::test_function_decorator",
"tests/test_core.py::TestCounter::test_increment",
"tests/test_core.py::TestCounter::test_negative_increment_raises",
"tests/test_core.py::TestGauge::test_block_decorator",
"tests/test_core... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Add UntypedMetricFamily to prometheus_client.core
I thought this one was missing from prometheus_client.core, so that's why I propose to add it. But their may be a reason why it wasn't added in the fi... | 09a5ae30602a7a81f6174dae4ba08b93ee7feed2 | ||
falconry__falcon-1157 | 1,157 | falconry/falcon | null | 064232a826070c8ff528b739e560917e7da67e1e | 2017-12-07T00:46:11Z | diff --git a/falcon/api.py b/falcon/api.py
index beb4fff92..a003f6d25 100644
--- a/falcon/api.py
+++ b/falcon/api.py
@@ -140,7 +140,8 @@ def process_response(self, req, resp, resource, req_succeeded)
__slots__ = ('_request_type', '_response_type',
'_error_handlers', '_media_type', '_router', '_si... | diff --git a/tests/test_headers.py b/tests/test_headers.py
index 0f03eccd2..79ab1df2e 100644
--- a/tests/test_headers.py
+++ b/tests/test_headers.py
@@ -52,6 +52,7 @@ def on_get(self, req, resp):
# Relative URI's are OK per http://goo.gl/DbVqR
resp.location = '/things/87'
resp.content_locatio... | [
{
"components": [
{
"doc": "Add a route to a directory of static files.\n\nStatic routes provide a way to serve files directly. This\nfeature provides an alternative to serving files at the web server\nlevel when you don't have that option, when authorization is\nrequired, or for testing purposes.... | [
"tests/test_headers.py::TestHeaders::test_content_length",
"tests/test_headers.py::TestHeaders::test_default_value",
"tests/test_headers.py::TestHeaders::test_required_header",
"tests/test_headers.py::TestHeaders::test_no_content_length[204",
"tests/test_headers.py::TestHeaders::test_no_content_length[304",... | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
feat(routing): Implement static routing
Fixes #219
----------
</request>
There are several new functions or classes that need to be implemented, using the definitions below:
<<NEW DEFINITIONS>>
The... | Here is the discussion in the issues of the pull request.
<issues>
Route to static file
On a PaaS you may not be able to server static files from the web server directly, so let's make it easy to do this in Falcon.
Depends on #181
----------
Consider using zerobuffer for this...
May be better to put this in Talons? Se... | 77d5e6394a88ead151c9469494749f95f06b24bf | |
sympy__sympy-13686 | 13,686 | sympy/sympy | 1.6 | b17ef6effe278d5b861d65896cc53442a6370d8f | 2017-12-07T00:37:29Z | diff --git a/sympy/logic/boolalg.py b/sympy/logic/boolalg.py
index f03f6c236972..d9bd39ae64bb 100644
--- a/sympy/logic/boolalg.py
+++ b/sympy/logic/boolalg.py
@@ -4,7 +4,7 @@
from __future__ import print_function, division
from collections import defaultdict
-from itertools import combinations, product
+from iterto... | diff --git a/sympy/logic/tests/test_boolalg.py b/sympy/logic/tests/test_boolalg.py
index 5d1753376b2c..3fea482504e0 100644
--- a/sympy/logic/tests/test_boolalg.py
+++ b/sympy/logic/tests/test_boolalg.py
@@ -15,7 +15,8 @@
eliminate_implications, is_nnf, is_cnf, is_dnf, simplify_logic,
to_nnf, to_cnf, to_dnf, t... | [
{
"components": [
{
"doc": "",
"lines": [
477,
478
],
"name": "BooleanFunction.to_anf",
"signature": "def to_anf(self, deep=True):",
"type": "function"
},
{
"doc": "",
"lines": [
501,
511
... | [
"test_overloading",
"test_And",
"test_Or",
"test_Xor",
"test_rewrite_as_And",
"test_rewrite_as_Or",
"test_rewrite_as_Nand",
"test_rewrite_as_Nor",
"test_Not",
"test_Nand",
"test_Nor",
"test_Xnor",
"test_Implies",
"test_Equivalent",
"test_equals",
"test_simplification",
"test_bool_map... | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Logic: algebraic normal form (Zhegalkin polynomial)
<!-- BEGIN RELEASE NOTES -->
* logic
* Added a new normal form - `ANFform`. Function `ANFform` converts a list of truth values to an expression ... | 6daf556517f9fa61a7805fe93d8a366688781617 | ||
sympy__sympy-13666 | 13,666 | sympy/sympy | 1.1 | 53fc684467088cdf0acccb6ad770cbde97e32268 | 2017-12-04T06:24:08Z | diff --git a/doc/src/modules/crypto.rst b/doc/src/modules/crypto.rst
index 54a6fdcb7b90..b34a1424b1e7 100644
--- a/doc/src/modules/crypto.rst
+++ b/doc/src/modules/crypto.rst
@@ -118,3 +118,11 @@ substitutions at different times in the message.
.. autofunction:: encipher_elgamal
.. autofunction:: decipher_elgamal
+... | diff --git a/sympy/crypto/tests/test_crypto.py b/sympy/crypto/tests/test_crypto.py
index 333e68a0a3c2..80a0946f3670 100644
--- a/sympy/crypto/tests/test_crypto.py
+++ b/sympy/crypto/tests/test_crypto.py
@@ -12,7 +12,8 @@
encode_morse, decode_morse, elgamal_private_key, elgamal_public_key,
encipher_elgamal... | diff --git a/doc/src/modules/crypto.rst b/doc/src/modules/crypto.rst
index 54a6fdcb7b90..b34a1424b1e7 100644
--- a/doc/src/modules/crypto.rst
+++ b/doc/src/modules/crypto.rst
@@ -118,3 +118,11 @@ substitutions at different times in the message.
.. autofunction:: encipher_elgamal
.. autofunction:: decipher_elgamal
+... | [
{
"components": [
{
"doc": "Returns the legendre symbol of a and p\nassuming that p is a prime\n\ni.e. 1 if a is a quadratic residue mod p\n -1 if a is not a quadratic residue mod p\n 0 if a is divisible by p\n\nParameters\n==========\n\na : int the number to test\np : the prime to test a a... | [
"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>
Goldwasser Micali Encryption
Added Goldwasser-Micali encryption/decryption method to the crypto module.
----------
</request>
There are several new functions or classes that need to be implemented, ... | ec9e3c0436fbff934fa84e22bf07f1b3ef5bfac3 | |
scikit-learn__scikit-learn-10209 | 10,209 | scikit-learn/scikit-learn | 0.20 | a320c085b75b8d18b3d10e7283a5e7695806bc1a | 2017-11-27T09:14:59Z | diff --git a/sklearn/preprocessing/_encoders.py b/sklearn/preprocessing/_encoders.py
index eee30948e8db4..7516b2af9ec82 100644
--- a/sklearn/preprocessing/_encoders.py
+++ b/sklearn/preprocessing/_encoders.py
@@ -16,7 +16,7 @@
from ..utils import deprecated
from ..utils.fixes import _argmax
from ..utils.validation i... | diff --git a/sklearn/preprocessing/tests/test_encoders.py b/sklearn/preprocessing/tests/test_encoders.py
index d5acd110e2865..d4f8aaefc34af 100644
--- a/sklearn/preprocessing/tests/test_encoders.py
+++ b/sklearn/preprocessing/tests/test_encoders.py
@@ -339,10 +339,10 @@ def test_one_hot_encoder_set_params():
def c... | [
{
"components": [
{
"doc": "",
"lines": [
40,
57
],
"name": "_encode_numpy",
"signature": "def _encode_numpy(values, uniques=None, encode=False):",
"type": "function"
},
{
"doc": "",
"lines": [
60,
... | [
"sklearn/preprocessing/tests/test_encoders.py::test_one_hot_encoder_sparse",
"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... | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
[MRG] Use hashtable (python sets/dicts) for object dtype data in Encoders
#### Reference Issues/PRs
Fixes #7432, see also https://github.com/scikit-learn/scikit-learn/pull/9151
#### What does this... | Here is the discussion in the issues of the pull request.
<issues>
Make LabelEncoder use a hash table
<!--
If your issue is a usage question, submit it here instead:
- StackOverflow with the scikit-learn tag: http://stackoverflow.com/questions/tagged/scikit-learn
- Mailing List: https://mail.python.org/mailman/listinfo... | 51407623e4f491f00e3b465626dd5c4b55860bd0 | |
scikit-learn__scikit-learn-10198 | 10,198 | scikit-learn/scikit-learn | 0.20 | 726fa36f2556e0d604d85a1de48ba56a8b6550db | 2017-11-24T16:19:38Z | diff --git a/doc/whats_new/v0.20.rst b/doc/whats_new/v0.20.rst
index 5b9216926b834..f9b76dc355bca 100644
--- a/doc/whats_new/v0.20.rst
+++ b/doc/whats_new/v0.20.rst
@@ -302,6 +302,11 @@ Preprocessing
:class:`feature_extraction.text.CountVectorizer` initialized with a
vocabulary. :issue:`10908` by :user:`Mohamed M... | diff --git a/sklearn/preprocessing/tests/test_encoders.py b/sklearn/preprocessing/tests/test_encoders.py
index e655acd20b30d..9ec16b85df60d 100644
--- a/sklearn/preprocessing/tests/test_encoders.py
+++ b/sklearn/preprocessing/tests/test_encoders.py
@@ -1,3 +1,4 @@
+# -*- coding: utf-8 -*-
from __future__ import divisi... | diff --git a/doc/whats_new/v0.20.rst b/doc/whats_new/v0.20.rst
index 5b9216926b834..f9b76dc355bca 100644
--- a/doc/whats_new/v0.20.rst
+++ b/doc/whats_new/v0.20.rst
@@ -302,6 +302,11 @@ Preprocessing
:class:`feature_extraction.text.CountVectorizer` initialized with a
vocabulary. :issue:`10908` by :user:`Mohamed M... | [
{
"components": [
{
"doc": "Return feature names for output features.\n\nParameters\n----------\ninput_features : list of string, length n_features, optional\n String names for input features if available. By default,\n \"x0\", \"x1\", ... \"xn_features\" is used.\n\nReturns\n-------\noutput... | [
"sklearn/preprocessing/tests/test_encoders.py::test_one_hot_encoder_feature_names",
"sklearn/preprocessing/tests/test_encoders.py::test_one_hot_encoder_feature_names_unicode"
] | [
"sklearn/preprocessing/tests/test_encoders.py::test_one_hot_encoder_sparse",
"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... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
[MRG] Add get_feature_names to OneHotEncoder
**Reference Issues/PRs**
Fixes #10181
**What does this implement/fix? Explain your changes.**
Added function **get_feature_names()** to **Categori... | Here is the discussion in the issues of the pull request.
<issues>
add get_feature_names to CategoricalEncoder
We should add a ``get_feature_names`` to the new CategoricalEncoder, as discussed [here](https://github.com/scikit-learn/scikit-learn/pull/9151#issuecomment-345830056). I think it would be good to be consisten... | 51407623e4f491f00e3b465626dd5c4b55860bd0 |
sympy__sympy-13628 | 13,628 | sympy/sympy | 1.1 | 50d8a102f0735da8e165a0369bbb994c7d0592a6 | 2017-11-19T13:55:25Z | diff --git a/sympy/functions/combinatorial/numbers.py b/sympy/functions/combinatorial/numbers.py
index 9e2800dfbd13..2784fa5a48e9 100644
--- a/sympy/functions/combinatorial/numbers.py
+++ b/sympy/functions/combinatorial/numbers.py
@@ -977,6 +977,18 @@ def _eval_rewrite_as_Product(self, n):
k = Dummy('k', integ... | diff --git a/sympy/functions/combinatorial/tests/test_comb_numbers.py b/sympy/functions/combinatorial/tests/test_comb_numbers.py
index 0510fc5d0042..9f1c4999d75e 100644
--- a/sympy/functions/combinatorial/tests/test_comb_numbers.py
+++ b/sympy/functions/combinatorial/tests/test_comb_numbers.py
@@ -338,7 +338,9 @@ def t... | [
{
"components": [
{
"doc": "",
"lines": [
980,
982
],
"name": "catalan._eval_is_integer",
"signature": "def _eval_is_integer(self):",
"type": "function"
},
{
"doc": "",
"lines": [
984,
986
... | [
"test_catalan"
] | [
"test_bernoulli",
"test_fibonacci",
"test_bell",
"test_harmonic",
"test_harmonic_rational",
"test_harmonic_evalf",
"test_harmonic_rewrite_polygamma",
"test_harmonic_rewrite_sum",
"test_euler",
"test_euler_odd",
"test_euler_polynomials",
"test_euler_polynomial_rewrite",
"test_genocchi",
"te... | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Some assumptions on Catalan numbers + tests
This implements assumptions about Catalan numbers, proposed in #13627.
----------
</request>
There are several new functions or classes that need to be im... | ec9e3c0436fbff934fa84e22bf07f1b3ef5bfac3 | ||
joke2k__faker-647 | 647 | joke2k/faker | null | b0ce0cfcb9c875a394f1cec0c9f5ce3f7f7981a2 | 2017-11-07T21:02:04Z | diff --git a/faker/providers/bank/__init__.py b/faker/providers/bank/__init__.py
new file mode 100644
index 0000000000..b1cffc2bab
--- /dev/null
+++ b/faker/providers/bank/__init__.py
@@ -0,0 +1,41 @@
+# coding=utf-8
+
+localized = True
+default_locale = 'en_GB'
+
+from .. import BaseProvider
+import string
+from strin... | diff --git a/tests/utils/test_utils.py b/tests/utils/test_utils.py
index cfdfe9850c..6e8e4b01d9 100644
--- a/tests/utils/test_utils.py
+++ b/tests/utils/test_utils.py
@@ -61,6 +61,7 @@ def test_find_available_providers(self):
expected_providers = list(map(str, [
'faker.providers.address',
... | [
{
"components": [
{
"doc": "Provider for IBAN/BBAN: it generates valid (valid length, valid checksum)\nIBAN/BBANs for the given country. But the ids of the banks are random and\nnot valid banks! Same for account numbers.",
"lines": [
11,
41
],
"name": "P... | [
"tests/utils/test_utils.py::UtilsTestCase::test_find_available_providers"
] | [
"tests/utils/test_utils.py::UtilsTestCase::test_add_dicts",
"tests/utils/test_utils.py::UtilsTestCase::test_choice_distribution",
"tests/utils/test_utils.py::UtilsTestCase::test_find_available_locales"
] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
added iban provider
### What does this changes
see #643
added a provider for fake iban/bban data.
the iban/bban codes are valid in term of checksum, but they do not hold valid bank identifiers o... | 6edfdbf6ae90b0153309e3bf066aa3b2d16494a7 | ||
scikit-learn__scikit-learn-10078 | 10,078 | scikit-learn/scikit-learn | 0.20 | b2d1fa6ec33222eb0eb3b5f562750282f379ca0a | 2017-11-06T16:15:42Z | diff --git a/doc/developers/utilities.rst b/doc/developers/utilities.rst
index 39c0925de0d4f..a19c1dbd08248 100644
--- a/doc/developers/utilities.rst
+++ b/doc/developers/utilities.rst
@@ -250,4 +250,4 @@ Warnings and Exceptions
- :class:`deprecated`: Decorator to mark a function or class as deprecated.
- :class:`s... | diff --git a/sklearn/covariance/tests/test_graph_lasso.py b/sklearn/covariance/tests/test_graph_lasso.py
index b87e67e910d66..60978fa25978f 100644
--- a/sklearn/covariance/tests/test_graph_lasso.py
+++ b/sklearn/covariance/tests/test_graph_lasso.py
@@ -8,6 +8,7 @@
from sklearn.utils.testing import assert_array_almost_... | diff --git a/doc/developers/utilities.rst b/doc/developers/utilities.rst
index 39c0925de0d4f..a19c1dbd08248 100644
--- a/doc/developers/utilities.rst
+++ b/doc/developers/utilities.rst
@@ -250,4 +250,4 @@ Warnings and Exceptions
- :class:`deprecated`: Decorator to mark a function or class as deprecated.
- :class:`s... | [
{
"components": [
{
"doc": "l1-penalized covariance estimator\n\nRead more in the :ref:`User Guide <sparse_inverse_covariance>`.\n\nParameters\n----------\nemp_cov : 2D ndarray, shape (n_features, n_features)\n Empirical covariance from which to compute the covariance estimate.\n\nalpha : posit... | [
"sklearn/covariance/tests/test_graph_lasso.py::test_graph_lasso",
"sklearn/covariance/tests/test_graph_lasso.py::test_graph_lasso_iris",
"sklearn/covariance/tests/test_graph_lasso.py::test_graph_lasso_iris_singular",
"sklearn/covariance/tests/test_graph_lasso.py::test_graph_lasso_cv",
"sklearn/covariance/te... | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
MAINT Rename GraphLasso to GraphicalLasso
#### Reference Issues/PRs
Fixes #9993
#### What does this implement/fix? Explain your changes.
- Add deprecation warnings to `GraphLasso` , `GraphLassoC... | Here is the discussion in the issues of the pull request.
<issues>
Rename GraphLasso to GraphicalLasso to avoid ambiguity.
**Graphical Lasso** is a method for sparse inverse covariance estimation.
- [Paper](http://statweb.stanford.edu/~tibs/ftp/graph.pdf)
- [Sklearn method](http://scikit-learn.org/stable/modules/g... | 51407623e4f491f00e3b465626dd5c4b55860bd0 |
sympy__sympy-13549 | 13,549 | sympy/sympy | 1.1 | 9476425b9e34363c2d9ac38e9f04aa75ae54a775 | 2017-10-29T13:49:17Z | diff --git a/sympy/physics/mechanics/functions.py b/sympy/physics/mechanics/functions.py
index 2aea3bb35a55..5d7806b2122e 100644
--- a/sympy/physics/mechanics/functions.py
+++ b/sympy/physics/mechanics/functions.py
@@ -399,20 +399,44 @@ def Lagrangian(frame, *body):
return kinetic_energy(frame, *body) - potential_... | diff --git a/sympy/physics/mechanics/tests/test_functions.py b/sympy/physics/mechanics/tests/test_functions.py
index 548e4f71684a..db8d3ca1495c 100644
--- a/sympy/physics/mechanics/tests/test_functions.py
+++ b/sympy/physics/mechanics/tests/test_functions.py
@@ -6,6 +6,8 @@
kinetic... | [
{
"components": [
{
"doc": "Returns the free symbols in the measure numbers of the vector\nexpressed in the given reference frame.\n\nParameter\n=========\n\nreference_frame : ReferenceFrame\n The frame with respect to which the free symbols of the\n given vector is to be determined.",
... | [
"test_Vector"
] | [
"test_inertia",
"test_inertia_of_point_mass",
"test_linear_momentum",
"test_angular_momentum_and_linear_momentum",
"test_kinetic_energy",
"test_potential_energy",
"test_msubs",
"test_Vector_diffs",
"test_vector_var_in_dcm"
] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
free_symbols and find_dynamicsymbols methods for vectors directly
Fixes #13398
I have made changes in the physics module specifically. As the issue demanded that It would be nice to be able to call ... | Here is the discussion in the issues of the pull request.
<issues>
physics.vector.Vector should have atoms and free_symbols
It would be nice to be able to call `free_symbols` on a physics vector and it works as it does with any expression. It would also be nice if `find_dynamicsymbols` worked with vectors. A current ha... | ec9e3c0436fbff934fa84e22bf07f1b3ef5bfac3 | |
scikit-learn__scikit-learn-9978 | 9,978 | scikit-learn/scikit-learn | 1.0 | 40b45e6b7c65e08311a13cc7a8528c3988e3b405 | 2017-10-22T20:50:37Z | diff --git a/doc/modules/classes.rst b/doc/modules/classes.rst
index 5462e06f81214..cdeb6f0523422 100644
--- a/doc/modules/classes.rst
+++ b/doc/modules/classes.rst
@@ -839,6 +839,7 @@ Any estimator using the Huber loss would also be robust to outliers, e.g.
:template: class.rst
linear_model.HuberRegressor
+ ... | diff --git a/sklearn/linear_model/tests/test_quantile.py b/sklearn/linear_model/tests/test_quantile.py
new file mode 100644
index 0000000000000..6118889f4d1b6
--- /dev/null
+++ b/sklearn/linear_model/tests/test_quantile.py
@@ -0,0 +1,254 @@
+# Authors: David Dale <dale.david@mail.ru>
+# Christian Lorentzen <lo... | diff --git a/doc/modules/classes.rst b/doc/modules/classes.rst
index 5462e06f81214..cdeb6f0523422 100644
--- a/doc/modules/classes.rst
+++ b/doc/modules/classes.rst
@@ -839,6 +839,7 @@ Any estimator using the Huber loss would also be robust to outliers, e.g.
:template: class.rst
linear_model.HuberRegressor
+ ... | [
{
"components": [
{
"doc": "Plot points with highlighting.",
"lines": [
26,
33
],
"name": "plot_points_highlighted",
"signature": "def plot_points_highlighted(x, y, model_low, model_high, ax):",
"type": "function"
}
],
"file... | [
"sklearn/linear_model/tests/test_quantile.py::test_init_parameters_validation[params0-Quantile",
"sklearn/linear_model/tests/test_quantile.py::test_init_parameters_validation[params1-Quantile",
"sklearn/linear_model/tests/test_quantile.py::test_init_parameters_validation[params2-Quantile",
"sklearn/linear_mod... | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
[MRG] Add quantile regression
This PR fixes issue #3148
This new feature implements quantile regression - an algorithm that directly minimizes mean absolute error of a linear regression model.
... | 3c732b9f6a77e95dfa6beb154ca2e1e7848b74f9 | |
sympy__sympy-13517 | 13,517 | sympy/sympy | 1.1 | 269c1523edf9c0fc0a6d338760a5fc82a2fafece | 2017-10-22T19:10:49Z | diff --git a/sympy/core/symbol.py b/sympy/core/symbol.py
index 06318721c8b7..cac613357202 100644
--- a/sympy/core/symbol.py
+++ b/sympy/core/symbol.py
@@ -1,7 +1,8 @@
from __future__ import print_function, division
from sympy.core.assumptions import StdFactKB
-from sympy.core.compatibility import string_types, rang... | diff --git a/sympy/core/tests/test_symbol.py b/sympy/core/tests/test_symbol.py
index 6d814c0a19af..5844036299d5 100644
--- a/sympy/core/tests/test_symbol.py
+++ b/sympy/core/tests/test_symbol.py
@@ -1,9 +1,10 @@
from sympy import (Symbol, Wild, GreaterThan, LessThan, StrictGreaterThan,
- StrictLessThan, pi, I, Rati... | [
{
"components": [
{
"doc": "Return a Tuple containing the passed expressions with symbols\nthat appear the same when printed replaced with numerically\nsubscripted symbols, and all Dummy symbols replaced with Symbols.\n\nParameters\n==========\n\niter: list of symbols or expressions.\n\nExamples\n... | [
"test_Symbol",
"test_Dummy",
"test_Dummy_force_dummy_index",
"test_as_dummy",
"test_lt_gt",
"test_no_len",
"test_ineq_unequal",
"test_Wild_properties",
"test_symbols",
"test_call",
"test_unicode",
"test__uniquely_named_symbol_and__symbol"
] | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
disambiguate() implemented
implemented `disambiguate_symbols()` as suggested in #13431 .
- [x] Docstring needs to be added.
- [x] Test cases to be worked on.
I will add docstring in the next ... | ec9e3c0436fbff934fa84e22bf07f1b3ef5bfac3 | ||
scikit-learn__scikit-learn-9951 | 9,951 | scikit-learn/scikit-learn | 0.22 | 01ba635cfcd523d01604ae9eb37a13844df6d92e | 2017-10-18T19:22:30Z | diff --git a/doc/modules/model_evaluation.rst b/doc/modules/model_evaluation.rst
index 35b82e16f0bca..6cea0b62bee5e 100644
--- a/doc/modules/model_evaluation.rst
+++ b/doc/modules/model_evaluation.rst
@@ -1664,6 +1664,67 @@ Here is a small example of usage of this function::
* Tsoumakas, G., Katakis, I., & Vlahavas,... | diff --git a/sklearn/metrics/tests/test_common.py b/sklearn/metrics/tests/test_common.py
index 8d62caa8a16c6..6459f93c68449 100644
--- a/sklearn/metrics/tests/test_common.py
+++ b/sklearn/metrics/tests/test_common.py
@@ -56,6 +56,8 @@
from sklearn.metrics import roc_auc_score
from sklearn.metrics import roc_curve
fr... | diff --git a/doc/modules/model_evaluation.rst b/doc/modules/model_evaluation.rst
index 35b82e16f0bca..6cea0b62bee5e 100644
--- a/doc/modules/model_evaluation.rst
+++ b/doc/modules/model_evaluation.rst
@@ -1664,6 +1664,67 @@ Here is a small example of usage of this function::
* Tsoumakas, G., Katakis, I., & Vlahavas,... | [
{
"components": [
{
"doc": "Compute Discounted Cumulative Gain.\n\nSum the true scores ranked in the order induced by the predicted scores,\nafter applying a logarithmic discount.\n\nThis ranking metric yields a high value if true labels are ranked high by\n``y_score``.\n\nParameters\n----------\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>
[MRG+1] Add Normalized Discounted Cumulative Gain
After #9921, it was decided that the old implementation of NDCG would be removed (#9932), but that a new one might be useful.
Discounted Cumulative... | c96e0958da46ebef482a4084cdda3285d5f5ad23 | |
joke2k__faker-615 | 615 | joke2k/faker | null | 4822823bdc06b985b0278f86c75d763a9cd0d7d2 | 2017-10-01T23:34:49Z | diff --git a/faker/providers/automotive/pt_BR/__init__.py b/faker/providers/automotive/pt_BR/__init__.py
new file mode 100644
index 0000000000..cc991920d0
--- /dev/null
+++ b/faker/providers/automotive/pt_BR/__init__.py
@@ -0,0 +1,11 @@
+# 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
new file mode 100644
index 0000000000..66d0d02ca2
--- /dev/null
+++ b/tests/providers/test_automotive.py
@@ -0,0 +1,20 @@
+# coding=utf-8
+from __future__ import unicode_literals
+
+import re
+import unittest
+
+from faker import Facto... | [
{
"components": [
{
"doc": "",
"lines": [
7,
10
],
"name": "Provider",
"signature": "class Provider(AutomotiveProvider):",
"type": "class"
}
],
"file": "faker/providers/automotive/pt_BR/__init__.py"
}
] | [
"tests/providers/test_automotive.py::TestPtBR::test_plate_has_been_generated"
] | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
Create a provider to Brazilian license plates
----------
</request>
There are several new functions or classes that need to be implemented, using the definitions below:
<<NEW DEFINITIONS>>
There a... | 6edfdbf6ae90b0153309e3bf066aa3b2d16494a7 | ||
sympy__sympy-13378 | 13,378 | sympy/sympy | 1.1 | 9e49c22b376cca8b50231be90d0c2431efe40322 | 2017-10-01T17:06:12Z | diff --git a/sympy/polys/agca/extensions.py b/sympy/polys/agca/extensions.py
new file mode 100644
index 000000000000..7755906d1578
--- /dev/null
+++ b/sympy/polys/agca/extensions.py
@@ -0,0 +1,153 @@
+"""Finite extensions of ring domains."""
+
+from __future__ import print_function, division
+
+from sympy.polys.polyerr... | diff --git a/sympy/polys/agca/tests/test_extensions.py b/sympy/polys/agca/tests/test_extensions.py
new file mode 100644
index 000000000000..a995f701ca4a
--- /dev/null
+++ b/sympy/polys/agca/tests/test_extensions.py
@@ -0,0 +1,36 @@
+from sympy.polys.polytools import Poly
+from sympy.polys.agca.extensions import FiniteE... | [
{
"components": [
{
"doc": "Element of a finite extension.\n\nA class of univariate polynomials modulo the ``modulus``\nof the extension ``ext``. It is represented by the\nunique polynomial ``rep`` of lowest degree. Both\n``rep`` and the representation ``mod`` of ``modulus``\nare of class DMP.",
... | [
"test_printmethod",
"test_Add",
"test_Function",
"test_Geometry",
"test_Singletons",
"test_Integer",
"test_list",
"test_Matrix",
"test_empty_Matrix",
"test_Rational",
"test_Float",
"test_Symbol",
"test_Symbol_two_assumptions",
"test_Symbol_no_special_commutative_treatment",
"test_Wild",
... | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
agca: Finite ring extensions
<!-- Please give this pull request a descriptive title. Pull requests with descriptive titles are more likely to receive reviews. Describe what you changed! A title that o... | ec9e3c0436fbff934fa84e22bf07f1b3ef5bfac3 | ||
conan-io__conan-1815 | 1,815 | conan-io/conan | null | dac34c4c1c19b94969f7b0d2aef44d0650285e3a | 2017-09-29T08:35:55Z | diff --git a/conans/client/tools/__init__.py b/conans/client/tools/__init__.py
index d5577b11850..7ba93fc3691 100644
--- a/conans/client/tools/__init__.py
+++ b/conans/client/tools/__init__.py
@@ -13,3 +13,5 @@
from .win import *
# noinspection PyUnresolvedReferences
from .pkg_config import *
+# noinspection PyUnres... | diff --git a/conans/test/util/apple_test.py b/conans/test/util/apple_test.py
new file mode 100644
index 00000000000..c7fe106303e
--- /dev/null
+++ b/conans/test/util/apple_test.py
@@ -0,0 +1,110 @@
+#!/usr/bin/env python
+# -*- coding: utf-8 -*-
+
+import unittest
+import platform
+import os
+from conans import tools
+... | [
{
"components": [
{
"doc": "returns True if OS is Apple one (Macos, iOS, watchOS or tvOS",
"lines": [
7,
9
],
"name": "is_apple_os",
"signature": "def is_apple_os(os_):",
"type": "function"
},
{
"doc": "converts conan-... | [
"conans/test/util/apple_test.py::AppleTest::test_apple_sdk_name",
"conans/test/util/apple_test.py::AppleTest::test_deployment_target_env_name",
"conans/test/util/apple_test.py::AppleTest::test_deployment_target_flag_name",
"conans/test/util/apple_test.py::AppleTest::test_is_apple_os",
"conans/test/util/appl... | [] | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
<request>
- add tools for Apple development
add various tools I am using for apple development
I was using them for my private recipes and keep copy-pasting between packages
now I am compiling bincrafters pac... | Here is the discussion in the issues of the pull request.
<issues>
Suggestion: adding a helper for darwin host
Hi,
I was wondering if a helper could be added in `tools` to detect if the `os` setting is targeting a darwin platform. Here is my use-case:
```python
if self.settings.os in ["Macos", "iOS", "watchO... | 4a5b19a75db9225316c8cb022a2dfb9705a2af34 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.