repo
stringlengths
10
39
pull_number
int64
74
29.2k
url
stringlengths
37
68
instance_id
stringlengths
14
45
issue_numbers
stringclasses
26 values
base_commit
stringlengths
40
40
patch
stringlengths
525
15.9k
test_patch
stringlengths
606
17.8k
created_at
timestamp[s]date
2015-03-20 20:39:55
2025-01-02 13:53:18
readmes
stringclasses
2 values
files
stringlengths
365
430k
non_py_patch
stringlengths
0
7.21k
new_components
stringlengths
142
6.63k
version
stringclasses
37 values
FAIL_TO_PASS
stringlengths
13
15.6k
PASS_TO_PASS
stringlengths
2
65k
environment_setup_commit
stringlengths
40
40
problem_statement
stringlengths
367
40.7k
pvlib/pvlib-python
1,585
https://github.com/pvlib/pvlib-python/pull/1585
pvlib__pvlib-python-1585
[]
e6e5b043f5f59af1c5fde0f25cc1793d79caa78b
diff --git a/docs/sphinx/source/reference/pv_modeling.rst b/docs/sphinx/source/reference/pv_modeling.rst index 4e57130711..797681ce23 100644 --- a/docs/sphinx/source/reference/pv_modeling.rst +++ b/docs/sphinx/source/reference/pv_modeling.rst @@ -186,6 +186,7 @@ Utilities for working with IV curve data :toctree: ge...
diff --git a/pvlib/tests/ivtools/test_utils.py b/pvlib/tests/ivtools/test_utils.py index 8f7826bdc2..d8a35e554d 100644 --- a/pvlib/tests/ivtools/test_utils.py +++ b/pvlib/tests/ivtools/test_utils.py @@ -1,7 +1,7 @@ import numpy as np import pandas as pd import pytest -from pvlib.ivtools.utils import _numdiff, rectif...
2022-11-02T19:51:38
{"README.md": "<p align=\"center\">\n <a href=\"https://gmago-leway.github.io/fea-bench.github.io/\">\n <img src=\"assets/FEA-Bench-full.png\" style=\"height: 10em\" alt=\"fea-bench\" />\n </a>\n</p>\n\n<p align=\"center\">\n <em>A benchmark that aims to evaluate the capability of implementing new features in the...
{"docs/sphinx/source/reference/pv_modeling.rst": ".. currentmodule:: pvlib\n\nPV Modeling\n===========\n\nClasses\n-------\n\nThe :py:class:`~pvsystem.PVSystem` class provides many methods that\nwrap the functions listed below. See its documentation for details.\n\n.. autosummary::\n :toctree: generated/\n\n pvsyst...
diff --git a/docs/sphinx/source/reference/pv_modeling.rst b/docs/sphinx/source/reference/pv_modeling.rst index 4e57130711..797681ce23 100644 --- a/docs/sphinx/source/reference/pv_modeling.rst +++ b/docs/sphinx/source/reference/pv_modeling.rst @@ -186,6 +186,7 @@ Utilities for working with IV curve data :toctree: ge...
{"pvlib/ivtools/utils.py": [{"type": "function", "name": "astm_e1036", "lines": [429, 546], "signature": "def astm_e1036(v, i, imax_limits=(0.75, 1.15), vmax_limits=(0.75, 1.15), voc_points=3, isc_points=3, mp_fit_order=4):", "doc": "Extract photovoltaic IV parameters according to ASTM E1036. Assumes that\nthe power pr...
0.8
["pvlib/tests/ivtools/test_utils.py::test__numdiff", "pvlib/tests/ivtools/test_utils.py::test_rectify_iv_curve", "pvlib/tests/ivtools/test_utils.py::test__schmumaker_qspline[x0-y0-expected0]", "pvlib/tests/ivtools/test_utils.py::test__schmumaker_qspline[x1-y1-expected1]", "pvlib/tests/ivtools/test_utils.py::test__schmu...
[]
311781d2380997044da0e484dc90aa146a74ca44
{"first_commit_time": 1667418392.0, "pr_title": "add ASTM E1036 parameter extraction", "pr_body": " - [x] I am familiar with the [contributing guidelines](https://pvlib-python.readthedocs.io/en/latest/contributing.html)\r\n - [x] Tests added\r\n - [x] Updates entries in [`docs/sphinx/source/reference`](https://github.c...
pvlib/pvlib-python
1,705
https://github.com/pvlib/pvlib-python/pull/1705
pvlib__pvlib-python-1705
[]
5596be380227cc71ef67fa066683f1edd22606b0
diff --git a/docs/sphinx/source/reference/irradiance/decomposition.rst b/docs/sphinx/source/reference/irradiance/decomposition.rst index f0d1495889..0677d6ac95 100644 --- a/docs/sphinx/source/reference/irradiance/decomposition.rst +++ b/docs/sphinx/source/reference/irradiance/decomposition.rst @@ -15,3 +15,5 @@ DNI est...
diff --git a/pvlib/tests/test_irradiance.py b/pvlib/tests/test_irradiance.py index cffdd23e40..d0158dad1a 100644 --- a/pvlib/tests/test_irradiance.py +++ b/pvlib/tests/test_irradiance.py @@ -246,6 +246,7 @@ def test_haydavies_components(irrad_data, ephem_data, dni_et): assert_allclose(result['horizon'], expected['...
2023-03-23T20:46:35
{"README.md": "<p align=\"center\">\n <a href=\"https://gmago-leway.github.io/fea-bench.github.io/\">\n <img src=\"assets/FEA-Bench-full.png\" style=\"height: 10em\" alt=\"fea-bench\" />\n </a>\n</p>\n\n<p align=\"center\">\n <em>A benchmark that aims to evaluate the capability of implementing new features in the...
{"docs/sphinx/source/reference/irradiance/decomposition.rst": ".. currentmodule:: pvlib\n\n.. _dniestmodels:\n\nDNI estimation models\n---------------------\n\n.. autosummary::\n :toctree: ../generated/\n\n irradiance.disc\n irradiance.dirint\n irradiance.dirindex\n irradiance.erbs\n irradiance.boland\n i...
diff --git a/docs/sphinx/source/reference/irradiance/decomposition.rst b/docs/sphinx/source/reference/irradiance/decomposition.rst index f0d1495889..0677d6ac95 100644 --- a/docs/sphinx/source/reference/irradiance/decomposition.rst +++ b/docs/sphinx/source/reference/irradiance/decomposition.rst @@ -15,3 +15,5 @@ DNI est...
{"pvlib/irradiance.py": [{"type": "function", "name": "louche", "lines": [3122, 3180], "signature": "def louche(ghi, solar_zenith, datetime_or_doy, max_zenith=90):", "doc": "Determine DNI and DHI from GHI using the Louche model.\n\nParameters\n----------\nghi : numeric\n Global horizontal irradiance. [W/m^2]\n\nsola...
0.9
["pvlib/tests/test_irradiance.py::test_louche"]
["pvlib/tests/test_irradiance.py::test_get_extra_radiation[asce-300-1383.636203]", "pvlib/tests/test_irradiance.py::test_get_extra_radiation[asce-300.0-1383.636203]", "pvlib/tests/test_irradiance.py::test_get_extra_radiation[asce-testval2-1383.636203]", "pvlib/tests/test_irradiance.py::test_get_extra_radiation[asce-tes...
d53f97e984bfdd268aa92f8bf482ced0edda0110
{"first_commit_time": 1679603561.0, "pr_title": "Implement `pvlib.irradiance.louche` decomposition model", "pr_body": "\r\n - [x] Fulfills pvl_louche from #2 \r\n - [x] I am familiar with the [contributing guidelines](https://pvlib-python.readthedocs.io/en/latest/contributing.html)\r\n - [x] Tests added\r\n - [x] Updat...
pvlib/pvlib-python
1,730
https://github.com/pvlib/pvlib-python/pull/1730
pvlib__pvlib-python-1730
[]
cfd6e78235e9eff55308f138d4dfe79317b72299
diff --git a/docs/sphinx/source/reference/irradiance/decomposition.rst b/docs/sphinx/source/reference/irradiance/decomposition.rst index 0677d6ac95..08724be38e 100644 --- a/docs/sphinx/source/reference/irradiance/decomposition.rst +++ b/docs/sphinx/source/reference/irradiance/decomposition.rst @@ -12,6 +12,7 @@ DNI est...
diff --git a/pvlib/tests/test_irradiance.py b/pvlib/tests/test_irradiance.py index d0158dad1a..ab1af612a7 100644 --- a/pvlib/tests/test_irradiance.py +++ b/pvlib/tests/test_irradiance.py @@ -821,6 +821,22 @@ def test_boland(): assert np.allclose(out, expected) +def test_orgill_hollands(): + index = pd.Datet...
2023-05-10T23:08:53
{"README.md": "<p align=\"center\">\n <a href=\"https://gmago-leway.github.io/fea-bench.github.io/\">\n <img src=\"assets/FEA-Bench-full.png\" style=\"height: 10em\" alt=\"fea-bench\" />\n </a>\n</p>\n\n<p align=\"center\">\n <em>A benchmark that aims to evaluate the capability of implementing new features in the...
{"docs/sphinx/source/reference/irradiance/decomposition.rst": ".. currentmodule:: pvlib\n\n.. _dniestmodels:\n\nDNI estimation models\n---------------------\n\n.. autosummary::\n :toctree: ../generated/\n\n irradiance.disc\n irradiance.dirint\n irradiance.dirindex\n irradiance.erbs\n irradiance.boland\n i...
diff --git a/docs/sphinx/source/reference/irradiance/decomposition.rst b/docs/sphinx/source/reference/irradiance/decomposition.rst index 0677d6ac95..08724be38e 100644 --- a/docs/sphinx/source/reference/irradiance/decomposition.rst +++ b/docs/sphinx/source/reference/irradiance/decomposition.rst @@ -12,6 +12,7 @@ DNI est...
{"pvlib/irradiance.py": [{"type": "function", "name": "orgill_hollands", "lines": [2270, 2354], "signature": "def orgill_hollands(ghi, zenith, datetime_or_doy, dni_extra=None, min_cos_zenith=0.065, max_zenith=87):", "doc": "Estimate DNI and DHI from GHI using the Orgill and Hollands model.\n\nThe Orgill and Hollands mo...
0.9
["pvlib/tests/test_irradiance.py::test_orgill_hollands"]
["pvlib/tests/test_irradiance.py::test_get_extra_radiation[asce-300-1383.636203]", "pvlib/tests/test_irradiance.py::test_get_extra_radiation[asce-300.0-1383.636203]", "pvlib/tests/test_irradiance.py::test_get_extra_radiation[asce-testval2-1383.636203]", "pvlib/tests/test_irradiance.py::test_get_extra_radiation[asce-tes...
d53f97e984bfdd268aa92f8bf482ced0edda0110
{"first_commit_time": 1683758527.0, "pr_title": "add orgill hollands decomposition", "pr_body": "<!-- Thank you for your contribution! The following items must be addressed before the code can be merged. Please don't hesitate to ask for help if you're unsure of how to accomplish any of the items. Feel free to remove ch...
pvlib/pvlib-python
784
https://github.com/pvlib/pvlib-python/pull/784
pvlib__pvlib-python-784
[]
e94d9238a8c6eacee57e03f4a4fa267673f941f3
diff --git a/docs/sphinx/source/api.rst b/docs/sphinx/source/api.rst index c37bedf7df..26786d4f88 100644 --- a/docs/sphinx/source/api.rst +++ b/docs/sphinx/source/api.rst @@ -303,6 +303,7 @@ Functions for fitting PV models ivtools.fit_sde_sandia ivtools.fit_sdm_cec_sam + ivtools.fit_sdm_desoto Other ...
diff --git a/pvlib/test/test_ivtools.py b/pvlib/test/test_ivtools.py index d4aca050c4..6f9fdd6fec 100644 --- a/pvlib/test/test_ivtools.py +++ b/pvlib/test/test_ivtools.py @@ -102,6 +102,35 @@ def test_fit_sdm_cec_sam(get_cec_params_cansol_cs5p_220p): cells_in_series=1, temp_ref=25) +@requires_scipy...
2019-10-02T23:52:22
{"README.md": "<p align=\"center\">\n <a href=\"https://gmago-leway.github.io/fea-bench.github.io/\">\n <img src=\"assets/FEA-Bench-full.png\" style=\"height: 10em\" alt=\"fea-bench\" />\n </a>\n</p>\n\n<p align=\"center\">\n <em>A benchmark that aims to evaluate the capability of implementing new features in the...
{"docs/sphinx/source/api.rst": ".. currentmodule:: pvlib\n\n#############\nAPI reference\n#############\n\n\nClasses\n=======\n\npvlib-python provides a collection of classes for users that prefer\nobject-oriented programming. These classes can help users keep track of\ndata in a more organized way, and can help to sim...
diff --git a/docs/sphinx/source/api.rst b/docs/sphinx/source/api.rst index c37bedf7df..26786d4f88 100644 --- a/docs/sphinx/source/api.rst +++ b/docs/sphinx/source/api.rst @@ -303,6 +303,7 @@ Functions for fitting PV models ivtools.fit_sde_sandia ivtools.fit_sdm_cec_sam + ivtools.fit_sdm_desoto Other ...
{"pvlib/ivtools.py": [{"type": "function", "name": "fit_sdm_desoto", "lines": [265, 403], "signature": "def fit_sdm_desoto(v_mp, i_mp, v_oc, i_sc, alpha_sc, beta_voc, cells_in_series, EgRef=1.121, dEgdT=-0.0002677, temp_ref=25, irrad_ref=1000, root_kwargs={}):", "doc": "Calculates the parameters for the De Soto single ...
0.6
["pvlib/test/test_ivtools.py::test_fit_sdm_desoto", "pvlib/test/test_ivtools.py::test_fit_sdm_desoto_failure"]
["pvlib/test/test_ivtools.py::test_fit_sde_sandia", "pvlib/test/test_ivtools.py::test_fit_sde_sandia_bad_iv", "pvlib/test/test_ivtools.py::test_fit_sdm_cec_sam"]
7fc595a13bcd42e3269c0806f5505ac907af9730
{"first_commit_time": 1566409816.0, "pr_title": "coefficient estimation method following DeSoto(2006)", "pr_body": "\r\n - [x] I am familiar with the [contributing guidelines](http://pvlib-python.readthedocs.io/en/latest/contributing.html).\r\n - [x] Fully tested. Added and/or modified tests to ensure correct behavior ...
pydata/xarray
4,155
https://github.com/pydata/xarray/pull/4155
pydata__xarray-4155
["4078"]
a198218ddabe557adbb04311b3234ec8d20419e7
diff --git a/doc/whats-new.rst b/doc/whats-new.rst index 2ad2a426532..7e76066cb33 100644 --- a/doc/whats-new.rst +++ b/doc/whats-new.rst @@ -162,9 +162,10 @@ New Features Enhancements ~~~~~~~~~~~~ - Performance improvement of :py:meth:`DataArray.interp` and :py:func:`Dataset.interp` - For orthogonal linear- and nea...
diff --git a/xarray/tests/test_dataarray.py b/xarray/tests/test_dataarray.py index e0da3f1527f..d7e88735fbf 100644 --- a/xarray/tests/test_dataarray.py +++ b/xarray/tests/test_dataarray.py @@ -3147,7 +3147,8 @@ def test_upsample_interpolate_regression_1605(self): @requires_dask @requires_scipy - def test...
2020-06-15T14:42:32
{}
{"doc/whats-new.rst": ".. currentmodule:: xarray\n\nWhat's New\n==========\n\n.. ipython:: python\n :suppress:\n\n import numpy as np\n import pandas as pd\n import xarray as xray\n import xarray\n import xarray as xr\n\n np.random.seed(123456)\n\n.. _whats-new.0.16.1:\n\nv0.16.1 (unreleased)\n----...
diff --git a/doc/whats-new.rst b/doc/whats-new.rst index 2ad2a426532..7e76066cb33 100644 --- a/doc/whats-new.rst +++ b/doc/whats-new.rst @@ -162,9 +162,10 @@ New Features Enhancements ~~~~~~~~~~~~ - Performance improvement of :py:meth:`DataArray.interp` and :py:func:`Dataset.interp` - For orthogonal linear- and nea...
{"xarray/core/missing.py": [{"type": "function", "name": "_dask_aware_interpnd", "lines": [770, 799], "signature": "def _dask_aware_interpnd(var, *coords, interp_func, interp_kwargs, localize=True):", "doc": "Wrapper for `_interpnd` through `blockwise`\n\nThe first half arrays in `coords` are original coordinates,\nthe...
0.12
["xarray/tests/test_interp.py::test_interpolate_1d[1-x-linear]", "xarray/tests/test_interp.py::test_interpolate_1d[1-x-cubic]", "xarray/tests/test_interp.py::test_interpolate_1d[1-y-linear]", "xarray/tests/test_interp.py::test_interpolate_1d[1-y-cubic]", "xarray/tests/test_interp.py::test_interpolate_vectorize[True]", ...
["xarray/tests/test_interp.py::test_keywargs", "xarray/tests/test_interp.py::test_interpolate_1d[0-x-linear]", "xarray/tests/test_interp.py::test_interpolate_1d[0-x-cubic]", "xarray/tests/test_interp.py::test_interpolate_1d[0-y-linear]", "xarray/tests/test_interp.py::test_interpolate_1d[0-y-cubic]", "xarray/tests/test_...
1c198a191127c601d091213c4b3292a8bb3054e1
{"first_commit_time": 1592225757.0, "pr_title": "Implement interp for interpolating between chunks of data (dask)", "pr_body": "In a project of mine I need to interpolate a dask-based xarray between chunk of data.\r\n\r\nWhen using the current official `interp` function (xarray v0.15.1), the code:\r\n\r\n```python\r\n ...
pydata/xarray
4,886
https://github.com/pydata/xarray/pull/4886
pydata__xarray-4886
[]
10f0227a1667c5ab3c88465ff1572065322cde77
diff --git a/xarray/backends/plugins.py b/xarray/backends/plugins.py index b8cd2bf6378..88c29306d18 100644 --- a/xarray/backends/plugins.py +++ b/xarray/backends/plugins.py @@ -8,19 +8,19 @@ from .common import BACKEND_ENTRYPOINTS +STANDARD_BACKENDS_ORDER = ["netcdf4", "h5netcdf", "scipy"] -def remove_duplicates...
diff --git a/xarray/tests/test_plugins.py b/xarray/tests/test_plugins.py index 64a1c563dba..0cda2901cee 100644 --- a/xarray/tests/test_plugins.py +++ b/xarray/tests/test_plugins.py @@ -58,13 +58,13 @@ def test_remove_duplicates_warnings(dummy_duplicated_entrypoints): @mock.patch("pkg_resources.EntryPoint.load", mo...
2021-02-11T04:53:51
{}
{"xarray/backends/plugins.py": "import functools\nimport inspect\nimport itertools\nimport logging\nimport warnings\n\nimport pkg_resources\n\nfrom .common import BACKEND_ENTRYPOINTS\n\n\ndef remove_duplicates(backend_entrypoints):\n\n # sort and group entrypoints by name\n backend_entrypoints = sorted(backend_en...
{"xarray/backends/plugins.py": [{"type": "function", "name": "backends_dict_from_pkg", "lines": [54, 60], "signature": "def backends_dict_from_pkg(pkg_entrypoints):", "doc": ""}, {"type": "function", "name": "sort_backends", "lines": [70, 78], "signature": "def sort_backends(backend_entrypoints):", "doc": ""}]}
0.12
["xarray/tests/test_plugins.py::test_backends_dict_from_pkg", "xarray/tests/test_plugins.py::test_build_engines_sorted"]
["xarray/tests/test_plugins.py::test_remove_duplicates", "xarray/tests/test_plugins.py::test_remove_duplicates_warnings", "xarray/tests/test_plugins.py::test_set_missing_parameters", "xarray/tests/test_plugins.py::test_set_missing_parameters_raise_error", "xarray/tests/test_plugins.py::test_build_engines"]
1c198a191127c601d091213c4b3292a8bb3054e1
{"first_commit_time": 1612185410.0, "pr_title": "Sort backends", "pr_body": "Ensure that backend list are always sorted in the same way. In particular:\r\n- the standards backend are always the first in the following order: \"netcdf4\", \"h5netcdf\", \"scipy\"\r\n- all the other backends a sorted in lexicographic order...
pydicom/pydicom
1,648
https://github.com/pydicom/pydicom/pull/1648
pydicom__pydicom-1648
[]
1db21d627e2e57dcc3aa4ec15666e71267220f62
diff --git a/doc/release_notes/v2.4.0.rst b/doc/release_notes/v2.4.0.rst index 5660c80c9b..ef05a87dc4 100644 --- a/doc/release_notes/v2.4.0.rst +++ b/doc/release_notes/v2.4.0.rst @@ -4,6 +4,7 @@ Version 2.4.0 Enhancements ------------ * Added attribute :attr:`~pydicom.valuerep.PersonName.alphabetic` (:pr:`1634`) +* ...
diff --git a/pydicom/tests/test_tag.py b/pydicom/tests/test_tag.py index 3a8933cdca..8fb01a23a9 100644 --- a/pydicom/tests/test_tag.py +++ b/pydicom/tests/test_tag.py @@ -205,6 +205,13 @@ def test_str(self): assert '(1000, 2000)' == str(BaseTag(0x10002000)) assert '(ffff, fffe)' == str(BaseTag(0xFFFFF...
2022-06-03T01:33:26
{"README.md": "<p align=\"center\">\n <a href=\"https://gmago-leway.github.io/fea-bench.github.io/\">\n <img src=\"assets/FEA-Bench-full.png\" style=\"height: 10em\" alt=\"fea-bench\" />\n </a>\n</p>\n\n<p align=\"center\">\n <em>A benchmark that aims to evaluate the capability of implementing new features in the...
{"doc/release_notes/v2.4.0.rst": "Version 2.4.0\n=================================\n\nEnhancements\n------------\n* Added attribute :attr:`~pydicom.valuerep.PersonName.alphabetic` (:pr:`1634`)\n* Added value validation for numerical VRs, add type validation for all\n validated VRs (:issue:`1414`)\n\nFixes\n-----\n* Fi...
diff --git a/doc/release_notes/v2.4.0.rst b/doc/release_notes/v2.4.0.rst index 5660c80c9b..ef05a87dc4 100644 --- a/doc/release_notes/v2.4.0.rst +++ b/doc/release_notes/v2.4.0.rst @@ -4,6 +4,7 @@ Version 2.4.0 Enhancements ------------ * Added attribute :attr:`~pydicom.valuerep.PersonName.alphabetic` (:pr:`1634`) +* ...
{"pydicom/tag.py": [{"type": "function", "name": "BaseTag.json_key", "lines": [205, 207], "signature": "def json_key(self) -> str:", "doc": "Return the tag value as a JSON key string 'GGGGEEEE'."}]}
2.3
["pydicom/tests/test_tag.py::TestBaseTag::test_json_key"]
["pydicom/tests/test_tag.py::TestBaseTag::test_le_same_class", "pydicom/tests/test_tag.py::TestBaseTag::test_le_diff_class", "pydicom/tests/test_tag.py::TestBaseTag::test_le_subclass", "pydicom/tests/test_tag.py::TestBaseTag::test_le_tuple", "pydicom/tests/test_tag.py::TestBaseTag::test_le_raises", "pydicom/tests/test_...
1db21d627e2e57dcc3aa4ec15666e71267220f62
{"first_commit_time": 1654219563.0, "pr_title": "[MRG] json_key method for BaseTag", "pr_body": "#### Describe the changes\r\nAdded a new 'json_key' method to BaseTag class that returns a string, used as key for JSON representation of DICOM data, as explained in Sec F.2.1.1.2 here: https://dicom.nema.org/dicom/2013/out...
pygments/pygments
2,654
https://github.com/pygments/pygments/pull/2654
pygments__pygments-2654
[]
41a8a63c993affb665d193222d8da5fdb9ae173a
diff --git a/AUTHORS b/AUTHORS index a7928ea88b..4ec64ba1ef 100644 --- a/AUTHORS +++ b/AUTHORS @@ -116,6 +116,8 @@ Other contributors, listed alphabetically, are: MSDOS session, BC, WDiff * Brian R. Jackson -- Tea lexer * Christian Jann -- ShellSession lexer +* Jonas Camillus Jeppesen -- Line numbers and line high...
diff --git a/tests/test_rtf_formatter.py b/tests/test_rtf_formatter.py index a21939f043..6379e37d16 100644 --- a/tests/test_rtf_formatter.py +++ b/tests/test_rtf_formatter.py @@ -7,12 +7,17 @@ """ from io import StringIO +import itertools +import re +import pytest from pygments.formatters import RtfFormatter +fr...
2024-02-25T22:46:46
{}
{"AUTHORS": "Pygments is written and maintained by Georg Brandl <georg@python.org>.\n\nMajor developers are Tim Hatch <tim@timhatch.com> and Armin Ronacher\n<armin.ronacher@active-4.com>.\n\nOther contributors, listed alphabetically, are:\n\n* Sam Aaron -- Ioke lexer\n* Jean Abou Samra -- LilyPond lexer\n* João Abecasi...
diff --git a/AUTHORS b/AUTHORS index a7928ea88b..4ec64ba1ef 100644 --- a/AUTHORS +++ b/AUTHORS @@ -116,6 +116,8 @@ Other contributors, listed alphabetically, are: MSDOS session, BC, WDiff * Brian R. Jackson -- Tea lexer * Christian Jann -- ShellSession lexer +* Jonas Camillus Jeppesen -- Line numbers and line high...
{"pygments/formatters/rtf.py": [{"type": "function", "name": "RtfFormatter.hex_to_rtf_color", "lines": [185, 192], "signature": "def hex_to_rtf_color(hex_color):", "doc": ""}, {"type": "function", "name": "RtfFormatter._split_tokens_on_newlines", "lines": [195, 211], "signature": "def _split_tokens_on_newlines(self, to...
null
["tests/test_rtf_formatter.py::test_rtf_footer", "tests/test_rtf_formatter.py::test_ascii_characters", "tests/test_rtf_formatter.py::test_escape_characters", "tests/test_rtf_formatter.py::test_single_characters", "tests/test_rtf_formatter.py::test_double_characters", "tests/test_rtf_formatter.py::test_linenos_all_defau...
["tests/test_rtf_formatter.py::test_rtf_header", "tests/test_rtf_formatter.py::test_all_options"]
e08bdbba2fa78270dba5ca700d053569f85d0351
{"first_commit_time": 1708895456.0, "pr_title": "Add line numbers and line highlighting to the RTF-formatter", "pr_body": "Finally implemented line numbers and line highlighting as discussed in issue #1217.\r\n\r\n![Screenshot from 2024-02-25 23-01-27](https://github.com/pygments/pygments/assets/3301843/efbb744a-99ff-4...
pylint-dev/pylint
5,315
https://github.com/pylint-dev/pylint/pull/5315
pylint-dev__pylint-5315
[]
0089cf3fd2d53b3c547e873bd9f728244d2c594b
diff --git a/ChangeLog b/ChangeLog index 4a8b2eb81a..478b5587a6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -70,6 +70,9 @@ Release date: TBA Closes #3688 +* Added the ``--enable-all-extensions`` command line option. It will load all available extensions + which can be listed by running ``--list-extensions`` + * ...
diff --git a/tests/test_self.py b/tests/test_self.py index a4a3ac7940..8441a5acb0 100644 --- a/tests/test_self.py +++ b/tests/test_self.py @@ -58,7 +58,7 @@ import pytest from py._path.local import LocalPath # type: ignore -from pylint import modify_sys_path +from pylint import extensions, modify_sys_path from py...
2021-11-15T21:29:43
{}
{"ChangeLog": "------------------\nPylint's ChangeLog\n------------------\n\n\n\nWhat's New in Pylint 2.12.0?\n============================\nRelease date: TBA\n\n..\n Put new features here and also in 'doc/whatsnew/2.12.rst'\n\n* Fix ``install graphiz`` message which isn't needed for puml output format.\n\n* Fix ``sim...
diff --git a/ChangeLog b/ChangeLog index 4a8b2eb81a..478b5587a6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -70,6 +70,9 @@ Release date: TBA Closes #3688 +* Added the ``--enable-all-extensions`` command line option. It will load all available extensions + which can be listed by running ``--list-extensions`` + * ...
{"pylint/lint/run.py": [{"type": "function", "name": "Run.cb_enable_all_extensions", "lines": [489, 501], "signature": "def cb_enable_all_extensions(self, option_name: str, value: None) -> None:", "doc": "Callback to load and enable all available extensions"}]}
2.11
["tests/test_self.py::TestRunTC::test_enable_all_extensions"]
["tests/test_self.py::TestRunTC::test_pkginfo", "tests/test_self.py::TestRunTC::test_all", "tests/test_self.py::TestRunTC::test_no_ext_file", "tests/test_self.py::TestRunTC::test_w0704_ignored", "tests/test_self.py::TestRunTC::test_exit_zero", "tests/test_self.py::TestRunTC::test_generate_config_option", "tests/test_se...
0089cf3fd2d53b3c547e873bd9f728244d2c594b
{"first_commit_time": 1637011674.0, "pr_title": "Add ``enable-all-extensions`` option", "pr_body": "- [x] Add yourself to CONTRIBUTORS if you are a new contributor.\r\n- [x] Add a ChangeLog entry describing what your PR does.\r\n- [x] If it's a new feature, or an important bug fix, add a What's New entry in\r\n `d...
pypa/hatch
211
https://github.com/pypa/hatch/pull/211
pypa__hatch-211
["199"]
d4489b8dfa702f9ce3a0999b20446e8e33e0f6ca
diff --git a/docs/history.md b/docs/history.md index 9e4144f6b..3c775a40e 100644 --- a/docs/history.md +++ b/docs/history.md @@ -12,6 +12,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), ***Added:*** +- Add `dep show requirements` command - Use `tomllib` on Python 3.11+ ###...
diff --git a/tests/cli/dep/show/test_requirements.py b/tests/cli/dep/show/test_requirements.py new file mode 100644 index 000000000..d00c1ea57 --- /dev/null +++ b/tests/cli/dep/show/test_requirements.py @@ -0,0 +1,195 @@ +from hatch.project.core import Project + + +def test_project_only(hatch, helpers, temp_dir, config...
2022-04-27T11:41:20
{"README.md": "<p align=\"center\">\n <a href=\"https://gmago-leway.github.io/fea-bench.github.io/\">\n <img src=\"assets/FEA-Bench-full.png\" style=\"height: 10em\" alt=\"fea-bench\" />\n </a>\n</p>\n\n<p align=\"center\">\n <em>A benchmark that aims to evaluate the capability of implementing new features in the...
{"docs/history.md": "# History\n\n-----\n\nAll notable changes to this project will be documented in this file.\n\nThe format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).\n\n## **Hatch**\n\n### Unreleased\n\...
diff --git a/docs/history.md b/docs/history.md index 9e4144f6b..3c775a40e 100644 --- a/docs/history.md +++ b/docs/history.md @@ -12,6 +12,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), ***Added:*** +- Add `dep show requirements` command - Use `tomllib` on Python 3.11+ ###...
{"src/hatch/cli/dep/__init__.py": [{"type": "function", "name": "requirements", "lines": [118, 148], "signature": "def requirements(app, project_only, env_only, features, all_features):", "doc": "Enumerate dependencies as a list of requirements."}]}
null
["tests/cli/dep/show/test_requirements.py::test_project_only", "tests/cli/dep/show/test_requirements.py::test_environment_only", "tests/cli/dep/show/test_requirements.py::test_default_both", "tests/cli/dep/show/test_requirements.py::test_unknown_feature", "tests/cli/dep/show/test_requirements.py::test_features_only", "...
[]
c06c820d722667306f39bda956c58cf4c48d0728
{"first_commit_time": 1651047144.0, "pr_title": "Add `dep show requirements` command", "pr_body": "resolves #199 ", "pr_timeline": [], "issues": {"199": {"issue_title": "Option to display dependencies in requirements.txt format", "issue_body": "I would like an option to display dependencies in a format that pip can rea...
pyvista/pyvista
3,662
https://github.com/pyvista/pyvista/pull/3662
pyvista__pyvista-3662
[]
f5dbce80bc44ff3def8c5eb15db054706fc5f38d
diff --git a/pyvista/plotting/camera.py b/pyvista/plotting/camera.py index 915893c4d2d..d7f237ff98f 100644 --- a/pyvista/plotting/camera.py +++ b/pyvista/plotting/camera.py @@ -1,5 +1,11 @@ """Module containing pyvista implementation of vtkCamera.""" +from __future__ import annotations + +from pathlib import Path +fro...
diff --git a/tests/test_camera.py b/tests/test_camera.py index 5259c0d9a77..6690f47db63 100644 --- a/tests/test_camera.py +++ b/tests/test_camera.py @@ -1,3 +1,5 @@ +import io + import numpy as np import pytest @@ -22,11 +24,81 @@ def camera(): return pyvista.Camera() +@pytest.fixture() +def paraview_pvcc(...
2022-11-30T22:23:05
{}
{"pyvista/plotting/camera.py": "\"\"\"Module containing pyvista implementation of vtkCamera.\"\"\"\nfrom weakref import proxy\n\nimport numpy as np\n\nimport pyvista\nfrom pyvista import _vtk\n\nfrom .helpers import view_vectors\n\n\nclass Camera(_vtk.vtkCamera):\n \"\"\"PyVista wrapper for the VTK Camera class.\n\n...
{"pyvista/plotting/camera.py": [{"type": "function", "name": "Camera.from_paraview_pvcc", "lines": [98, 151], "signature": "def from_paraview_pvcc(cls, filename: Union[str, Path]) -> Camera:", "doc": "Load a Paraview camera file (.pvcc extension).\n\nReturns a pyvista.Camera object for which attributes has been read\nf...
0.38
["tests/test_camera.py::test_camera_fom_paraview_pvcc", "tests/test_camera.py::test_camera_to_paraview_pvcc"]
["tests/test_camera.py::test_invalid_init", "tests/test_camera.py::test_camera_position", "tests/test_camera.py::test_focal_point", "tests/test_camera.py::test_model_transform_matrix", "tests/test_camera.py::test_distance", "tests/test_camera.py::test_thickness", "tests/test_camera.py::test_parallel_scale", "tests/test...
e7f7ada0477439ebd725d56ca080ee85ca50d640
{"first_commit_time": 1669846136.0, "pr_title": "Add classmethod to read pvcc paraview", "pr_body": "### Overview\r\n\r\nThis PR implements a _classmethod_ to **pyvista.Camera** that reads a Paraview camera file (.pvcc). \r\n\r\nIt looks like:\r\n```python\r\ncamera = pyvista.Camera.from_paraview_pvcc(\"file.pvcc\")\r\...
pyvista/pyvista
5,055
https://github.com/pyvista/pyvista/pull/5055
pyvista__pyvista-5055
[]
e574da02bb2c2d7aafb2e8e15f55024505087b56
diff --git a/pyvista/plotting/text.py b/pyvista/plotting/text.py index b5e0292d364..492990d6ed0 100644 --- a/pyvista/plotting/text.py +++ b/pyvista/plotting/text.py @@ -250,6 +250,14 @@ class TextProperty(_vtk.vtkTextProperty): shadow : bool, optional If enable the shadow. + justification_horizontal ...
diff --git a/tests/plotting/test_text.py b/tests/plotting/test_text.py index 2a15cbb4d46..0046eec024c 100644 --- a/tests/plotting/test_text.py +++ b/tests/plotting/test_text.py @@ -129,3 +129,34 @@ def test_property_set_font_file(prop): prop.set_font_file(font_file) with pytest.raises(FileNotFoundError): ...
2023-10-11T23:44:19
{}
{"pyvista/plotting/text.py": "\"\"\"Contains the pyvista.Text class.\"\"\"\nfrom __future__ import annotations\n\nimport os\nimport pathlib\nfrom typing import Sequence\n\nimport pyvista\nfrom pyvista.core.utilities.misc import _check_range, no_new_attr\n\nfrom . import _vtk\nfrom ._typing import ColorLike\nfrom .color...
{"pyvista/plotting/text.py": [{"type": "function", "name": "TextProperty.justification_horizontal", "lines": [520, 529], "signature": "def justification_horizontal(self, justification: str):", "doc": ""}, {"type": "function", "name": "TextProperty.justification_vertical", "lines": [549, 558], "signature": "def justific...
0.43
["tests/plotting/test_text.py::test_property_justification_horizontal[justification0]", "tests/plotting/test_text.py::test_property_justification_horizontal[justification1]", "tests/plotting/test_text.py::test_property_justification_horizontal[justification2]", "tests/plotting/test_text.py::test_property_justification_...
["tests/plotting/test_text.py::test_corner_annotation_text", "tests/plotting/test_text.py::test_corner_annotation_prop", "tests/plotting/test_text.py::test_text_input", "tests/plotting/test_text.py::test_text_prop", "tests/plotting/test_text.py::test_text_position", "tests/plotting/test_text.py::test_property_init", "t...
25921025e45cafe97b2e274de39c3076b3c84681
{"first_commit_time": 1697067767.0, "pr_title": "Add `justification` property to `TextProperty`", "pr_body": "### Overview\r\n\r\n<!-- Please insert a high-level description of this pull request here. -->\r\nAdd `justify` property to `TextProperty`.\r\n\r\n```python\r\n>>> import pyvista as pv\r\n>>> prop = pv.TextProp...
roboflow/supervision
1,237
https://github.com/roboflow/supervision/pull/1237
roboflow__supervision-1237
[]
9bc2907c4907714da5b469fdfee7800f4cf9f09e
diff --git a/supervision/detection/core.py b/supervision/detection/core.py index be6104820..f93aed1c4 100644 --- a/supervision/detection/core.py +++ b/supervision/detection/core.py @@ -23,7 +23,7 @@ xywh_to_xyxy, ) from supervision.geometry.core import Position -from supervision.utils.internal import deprecated ...
diff --git a/test/utils/test_internal.py b/test/utils/test_internal.py new file mode 100644 index 000000000..eee614e6c --- /dev/null +++ b/test/utils/test_internal.py @@ -0,0 +1,193 @@ +from contextlib import ExitStack as DoesNotRaise +from dataclasses import dataclass, field +from typing import Any, Set + +import nump...
2024-05-28T07:42:20
{"README.md": "<p align=\"center\">\n <a href=\"https://gmago-leway.github.io/fea-bench.github.io/\">\n <img src=\"assets/FEA-Bench-full.png\" style=\"height: 10em\" alt=\"fea-bench\" />\n </a>\n</p>\n\n<p align=\"center\">\n <em>A benchmark that aims to evaluate the capability of implementing new features in the...
{"supervision/detection/core.py": "from __future__ import annotations\n\nfrom contextlib import suppress\nfrom dataclasses import dataclass, field\nfrom typing import Any, Dict, Iterator, List, Optional, Tuple, Union\n\nimport numpy as np\n\nfrom supervision.config import CLASS_NAME_DATA_FIELD, ORIENTED_BOX_COORDINATES...
{"supervision/utils/internal.py": [{"type": "function", "name": "get_instance_variables", "lines": [147, 183], "signature": "def get_instance_variables(instance: Any, include_properties=False) -> Set[str]:", "doc": "Get the public variables of a class instance.\n\nArgs:\n instance (Any): The instance of a class\n ...
null
["test/utils/test_internal.py::test_get_instance_variables[MockClass-False-None-exception0]", "test/utils/test_internal.py::test_get_instance_variables[input_instance1-False-expected1-exception1]", "test/utils/test_internal.py::test_get_instance_variables[input_instance2-True-expected2-exception2]", "test/utils/test_in...
[]
3eb5c0b024e3e46877b7fe4fd66e6177d1308ba0
{"first_commit_time": 1716881934.0, "pr_title": "Dynamically select Detections member variables", "pr_body": "# Description\r\n\r\nWhen checking if both fields are `None` or defined in two detection to be merged, we'd hardcode the fields.\r\n\r\nThis change allows getting the programmatically.\r\nNote that it requires ...
roboflow/supervision
1,296
https://github.com/roboflow/supervision/pull/1296
roboflow__supervision-1296
[]
fbce6e45d427fbbc2f610dfe1adf24bdf608d914
diff --git a/supervision/detection/core.py b/supervision/detection/core.py index 37dde1534..4d913e1bc 100644 --- a/supervision/detection/core.py +++ b/supervision/detection/core.py @@ -7,7 +7,12 @@ import numpy as np from supervision.config import CLASS_NAME_DATA_FIELD, ORIENTED_BOX_COORDINATES -from supervision.de...
diff --git a/test/detection/test_lmm_florence_2.py b/test/detection/test_lmm_florence_2.py new file mode 100644 index 000000000..9ffec2a1e --- /dev/null +++ b/test/detection/test_lmm_florence_2.py @@ -0,0 +1,291 @@ +from contextlib import ExitStack as DoesNotRaise +from typing import Optional, Tuple + +import numpy as ...
2024-06-20T12:01:50
{"README.md": "<p align=\"center\">\n <a href=\"https://gmago-leway.github.io/fea-bench.github.io/\">\n <img src=\"assets/FEA-Bench-full.png\" style=\"height: 10em\" alt=\"fea-bench\" />\n </a>\n</p>\n\n<p align=\"center\">\n <em>A benchmark that aims to evaluate the capability of implementing new features in the...
{"supervision/detection/core.py": "from __future__ import annotations\n\nfrom contextlib import suppress\nfrom dataclasses import dataclass, field\nfrom typing import Any, Dict, Iterator, List, Optional, Tuple, Union\n\nimport numpy as np\n\nfrom supervision.config import CLASS_NAME_DATA_FIELD, ORIENTED_BOX_COORDINATES...
{"supervision/detection/lmm.py": [{"type": "function", "name": "validate_lmm_parameters", "lines": [41, 67], "signature": "def validate_lmm_parameters( lmm: Union[LMM, str], result: Any, kwargs: Dict[str, Any] ) -> LMM:", "doc": ""}, {"type": "function", "name": "from_florence_2", "lines": [93, 182], "signature": "def ...
null
["test/detection/test_lmm_florence_2.py::test_florence_2[florence_result0-resolution_wh0-expected_results0-exception0]", "test/detection/test_lmm_florence_2.py::test_florence_2[florence_result1-resolution_wh1-expected_results1-exception1]", "test/detection/test_lmm_florence_2.py::test_florence_2[florence_result2-resolu...
[]
3eb5c0b024e3e46877b7fe4fd66e6177d1308ba0
{"first_commit_time": 1718879670.0, "pr_title": "Add Florence 2 support", "pr_body": "# Description\r\n\r\nThis PR adds [Florence 2](https://huggingface.co/microsoft/Florence-2-large) support for supervision.\r\n\r\nRun it with `transfomers` and parse with `from_lmm(sv.LMM.FLORENCE_2, result)`.\r\n\r\nNo extra document...
roboflow/supervision
1,340
https://github.com/roboflow/supervision/pull/1340
roboflow__supervision-1340
[]
de896189b83a1f9434c0a37dd9192ee00d2a1283
diff --git a/docs/detection/utils.md b/docs/detection/utils.md index ea98c8683..85fcacda5 100644 --- a/docs/detection/utils.md +++ b/docs/detection/utils.md @@ -80,6 +80,18 @@ comments: true <h2><a href="#supervision.detection.utils.contains_holes">contains_holes</a></h2> </div> +:::supervision.detection.utils.xy...
diff --git a/test/detection/test_utils.py b/test/detection/test_utils.py index 20c818e61..9224c6760 100644 --- a/test/detection/test_utils.py +++ b/test/detection/test_utils.py @@ -17,6 +17,8 @@ move_boxes, process_roboflow_result, scale_boxes, + xcycwh_to_xyxy, + xywh_to_xyxy, ) TEST_MASK = np...
2024-07-10T10:14:46
{"README.md": "<p align=\"center\">\n <a href=\"https://gmago-leway.github.io/fea-bench.github.io/\">\n <img src=\"assets/FEA-Bench-full.png\" style=\"height: 10em\" alt=\"fea-bench\" />\n </a>\n</p>\n\n<p align=\"center\">\n <em>A benchmark that aims to evaluate the capability of implementing new features in the...
{"docs/detection/utils.md": "---\ncomments: true\n---\n\n# Detection Utils\n\n<div class=\"md-typeset\">\n <h2><a href=\"#supervision.detection.utils.box_iou_batch\">box_iou_batch</a></h2>\n</div>\n\n:::supervision.detection.utils.box_iou_batch\n\n<div class=\"md-typeset\">\n <h2><a href=\"#supervision.detection.util...
diff --git a/docs/detection/utils.md b/docs/detection/utils.md index ea98c8683..85fcacda5 100644 --- a/docs/detection/utils.md +++ b/docs/detection/utils.md @@ -80,6 +80,18 @@ comments: true <h2><a href="#supervision.detection.utils.contains_holes">contains_holes</a></h2> </div> +:::supervision.detection.utils.xy...
{"supervision/detection/utils.py": [{"type": "function", "name": "xcycwh_to_xyxy", "lines": [267, 303], "signature": "def xcycwh_to_xyxy(xcycwh: np.ndarray) -> np.ndarray:", "doc": "Converts bounding box coordinates from `(center_x, center_y, width, height)`\nformat to `(x_min, y_min, x_max, y_max)` format.\n\nArgs:\n ...
null
["test/detection/test_utils.py::test_clip_boxes[xyxy0-resolution_wh0-expected_result0]", "test/detection/test_utils.py::test_clip_boxes[xyxy1-resolution_wh1-expected_result1]", "test/detection/test_utils.py::test_clip_boxes[xyxy2-resolution_wh2-expected_result2]", "test/detection/test_utils.py::test_clip_boxes[xyxy3-re...
[]
3eb5c0b024e3e46877b7fe4fd66e6177d1308ba0
{"first_commit_time": 1720606387.0, "pr_title": "`xywh_to_xyxy` and `xcycwh_to_xyxy` box utils", "pr_body": "# Description\r\n\r\nUpdated `xywh_to_xyxy` and added `xcycwh_to_xyxy` box utils.\r\n\r\n## Type of change\r\n\r\nPlease delete options that are not relevant.\r\n\r\n- [ ] Bug fix (non-breaking change which fi...
roboflow/supervision
245
https://github.com/roboflow/supervision/pull/245
roboflow__supervision-245
[]
36cdcf1b128e38cb9a086290fbfb0130fa64ac5b
diff --git a/supervision/dataset/core.py b/supervision/dataset/core.py index ce7e0edb5..6e47d747f 100644 --- a/supervision/dataset/core.py +++ b/supervision/dataset/core.py @@ -31,7 +31,6 @@ train_test_split, ) from supervision.detection.core import Detections -from supervision.utils.file import list_files_with_...
diff --git a/test/dataset/formats/test_pascal_voc.py b/test/dataset/formats/test_pascal_voc.py new file mode 100644 index 000000000..fa3f11244 --- /dev/null +++ b/test/dataset/formats/test_pascal_voc.py @@ -0,0 +1,147 @@ +import xml.etree.ElementTree as ET +from contextlib import ExitStack as DoesNotRaise +from test.ut...
2023-07-26T08:25:02
{"README.md": "<p align=\"center\">\n <a href=\"https://gmago-leway.github.io/fea-bench.github.io/\">\n <img src=\"assets/FEA-Bench-full.png\" style=\"height: 10em\" alt=\"fea-bench\" />\n </a>\n</p>\n\n<p align=\"center\">\n <em>A benchmark that aims to evaluate the capability of implementing new features in the...
{"supervision/dataset/core.py": "from __future__ import annotations\n\nimport os\nfrom abc import ABC, abstractmethod\nfrom dataclasses import dataclass\nfrom pathlib import Path\nfrom typing import Dict, Iterator, List, Optional, Tuple\n\nimport cv2\nimport numpy as np\n\nfrom supervision.classification.core import Cl...
{"supervision/dataset/formats/pascal_voc.py": [{"type": "function", "name": "detections_from_xml_obj", "lines": [175, 250], "signature": "def detections_from_xml_obj( root: Element, classes: List[str], resolution_wh, force_masks: bool = False ) -> Tuple[Detections, List[str]]:", "doc": "Converts an XML object in Pascal...
null
["test/dataset/formats/test_pascal_voc.py::test_object_to_pascal_voc[xyxy0-test-None-expected_result0-exception0]", "test/dataset/formats/test_pascal_voc.py::test_object_to_pascal_voc[xyxy1-test-polygon1-expected_result1-exception1]", "test/dataset/formats/test_pascal_voc.py::test_parse_polygon_points[polygon_element0-...
[]
3eb5c0b024e3e46877b7fe4fd66e6177d1308ba0
{"first_commit_time": 1690359647.0, "pr_title": "Add support for loading segmentation datasets in Pascal VOC format", "pr_body": "# Description\r\n\r\nAdd possibility to load PASCAL VOC segmentation masks in addition to object detection ([related issue](https://github.com/roboflow/supervision/issues/244)).\r\nChanges w...
roboflow/supervision
620
https://github.com/roboflow/supervision/pull/620
roboflow__supervision-620
[]
10c44b0143c13b33c1951509f9f11c37c6373752
diff --git a/supervision/draw/color.py b/supervision/draw/color.py index 69bcc9c5e..9d1b4ad98 100644 --- a/supervision/draw/color.py +++ b/supervision/draw/color.py @@ -71,6 +71,21 @@ def from_hex(cls, color_hex: str) -> Color: r, g, b = (int(color_hex[i : i + 2], 16) for i in range(0, 6, 2)) return c...
diff --git a/test/draw/test_color.py b/test/draw/test_color.py index 723f7043e..eb4c36574 100644 --- a/test/draw/test_color.py +++ b/test/draw/test_color.py @@ -30,3 +30,22 @@ def test_color_from_hex( with exception: result = Color.from_hex(color_hex=color_hex) assert result == expected_result + ...
2023-11-26T10:27:34
{"README.md": "<p align=\"center\">\n <a href=\"https://gmago-leway.github.io/fea-bench.github.io/\">\n <img src=\"assets/FEA-Bench-full.png\" style=\"height: 10em\" alt=\"fea-bench\" />\n </a>\n</p>\n\n<p align=\"center\">\n <em>A benchmark that aims to evaluate the capability of implementing new features in the...
{"supervision/draw/color.py": "from __future__ import annotations\n\nfrom dataclasses import dataclass\nfrom typing import List, Tuple\n\nDEFAULT_COLOR_PALETTE = [\n \"#a351fb\",\n \"#e6194b\",\n \"#3cb44b\",\n \"#ffe119\",\n \"#0082c8\",\n \"#f58231\",\n \"#911eb4\",\n \"#46f0f0\",\n \"#f032...
{"supervision/draw/color.py": [{"type": "function", "name": "Color.as_hex", "lines": [74, 87], "signature": "def as_hex(self) -> str:", "doc": "Converts the Color instance to a hex string.\n\nReturns:\n str: The hexadecimal color string.\n\nExample:\n ```\n >>> Color(r=255, g=0, b=255).as_hex()\n '#ff00ff'\...
null
["test/draw/test_color.py::test_color_as_hex[color0-#ffffff-exception0]", "test/draw/test_color.py::test_color_as_hex[color1-#000000-exception1]", "test/draw/test_color.py::test_color_as_hex[color2-#ff0000-exception2]", "test/draw/test_color.py::test_color_as_hex[color3-#00ff00-exception3]", "test/draw/test_color.py::t...
["test/draw/test_color.py::test_color_from_hex[fff-expected_result0-exception0]", "test/draw/test_color.py::test_color_from_hex[#fff-expected_result1-exception1]", "test/draw/test_color.py::test_color_from_hex[ffffff-expected_result2-exception2]", "test/draw/test_color.py::test_color_from_hex[#ffffff-expected_result3-e...
3eb5c0b024e3e46877b7fe4fd66e6177d1308ba0
{"first_commit_time": 1700994359.0, "pr_title": "Add 'as_hex' method and corresponding test to `Color` class.", "pr_body": "\r\n## Type of change\r\n\r\nPlease delete options that are not relevant.\r\n\r\n- [ ] Bug fix (non-breaking change which fixes an issue)\r\n- [x] New feature (non-breaking change which adds f...
roboflow/supervision
847
https://github.com/roboflow/supervision/pull/847
roboflow__supervision-847
[]
d423ff3b6c74f38713255f18e363ea2e1986f5dd
diff --git a/docs/detection/utils.md b/docs/detection/utils.md index 54d1f279f..74adc6e74 100644 --- a/docs/detection/utils.md +++ b/docs/detection/utils.md @@ -11,10 +11,22 @@ comments: true :::supervision.detection.utils.box_iou_batch <div class="md-typeset"> - <h2>non_max_suppression</h2> + <h2>mask_iou_batch<...
diff --git a/test/detection/test_utils.py b/test/detection/test_utils.py index 576b25f8f..d09348ff5 100644 --- a/test/detection/test_utils.py +++ b/test/detection/test_utils.py @@ -6,13 +6,14 @@ from supervision.config import CLASS_NAME_DATA_FIELD from supervision.detection.utils import ( + box_non_max_suppressi...
2024-02-03T03:10:21
{"README.md": "<p align=\"center\">\n <a href=\"https://gmago-leway.github.io/fea-bench.github.io/\">\n <img src=\"assets/FEA-Bench-full.png\" style=\"height: 10em\" alt=\"fea-bench\" />\n </a>\n</p>\n\n<p align=\"center\">\n <em>A benchmark that aims to evaluate the capability of implementing new features in the...
{"docs/detection/utils.md": "---\ncomments: true\n---\n\n# Detection Utils\n\n<div class=\"md-typeset\">\n <h2>box_iou_batch</h2>\n</div>\n\n:::supervision.detection.utils.box_iou_batch\n\n<div class=\"md-typeset\">\n <h2>non_max_suppression</h2>\n</div>\n\n:::supervision.detection.utils.non_max_suppression\n\n<div c...
diff --git a/docs/detection/utils.md b/docs/detection/utils.md index 54d1f279f..74adc6e74 100644 --- a/docs/detection/utils.md +++ b/docs/detection/utils.md @@ -11,10 +11,22 @@ comments: true :::supervision.detection.utils.box_iou_batch <div class="md-typeset"> - <h2>non_max_suppression</h2> + <h2>mask_iou_batch<...
{"supervision/detection/utils.py": [{"type": "function", "name": "mask_iou_batch", "lines": [62, 86], "signature": "def mask_iou_batch(masks_true: np.ndarray, masks_detection: np.ndarray) -> np.ndarray:", "doc": "Compute Intersection over Union (IoU) of two sets of masks -\n `masks_true` and `masks_detection`.\n\nAr...
null
["test/detection/test_utils.py::test_box_non_max_suppression[predictions0-0.5-expected_result0-exception0]", "test/detection/test_utils.py::test_box_non_max_suppression[predictions1-0.5-expected_result1-exception1]", "test/detection/test_utils.py::test_box_non_max_suppression[predictions2-0.5-expected_result2-exception...
[]
3eb5c0b024e3e46877b7fe4fd66e6177d1308ba0
{"first_commit_time": 1706927595.0, "pr_title": "[NMS] - add segmentation models support", "pr_body": "# Description\r\n\r\nThis PR introduces Non-Maximum Suppression (NMS) algorithm focused on segmentation, enhancing our object detection capabilities, particularly in segmentation tasks. We have renamed the traditional...
roboflow/supervision
910
https://github.com/roboflow/supervision/pull/910
roboflow__supervision-910
[]
0c0685987a57ffbcff8eea89bb16aff70846403e
diff --git a/supervision/detection/tools/polygon_zone.py b/supervision/detection/tools/polygon_zone.py index c6f5b80e6..1357b03c2 100644 --- a/supervision/detection/tools/polygon_zone.py +++ b/supervision/detection/tools/polygon_zone.py @@ -1,5 +1,5 @@ from dataclasses import replace -from typing import Optional, Tupl...
diff --git a/test/detection/test_polygonzone.py b/test/detection/test_polygonzone.py new file mode 100644 index 000000000..2aae955f7 --- /dev/null +++ b/test/detection/test_polygonzone.py @@ -0,0 +1,92 @@ +from contextlib import ExitStack as DoesNotRaise +from test.test_utils import mock_detections + +import numpy as n...
2024-02-15T21:29:25
{"README.md": "<p align=\"center\">\n <a href=\"https://gmago-leway.github.io/fea-bench.github.io/\">\n <img src=\"assets/FEA-Bench-full.png\" style=\"height: 10em\" alt=\"fea-bench\" />\n </a>\n</p>\n\n<p align=\"center\">\n <em>A benchmark that aims to evaluate the capability of implementing new features in the...
{"supervision/detection/tools/polygon_zone.py": "from dataclasses import replace\nfrom typing import Optional, Tuple\n\nimport cv2\nimport numpy as np\n\nfrom supervision import Detections\nfrom supervision.detection.utils import clip_boxes, polygon_to_mask\nfrom supervision.draw.color import Color\nfrom supervision.dr...
{"supervision/utils/internal.py": [{"type": "function", "name": "deprecated_parameter", "lines": [6, 75], "signature": "def deprecated_parameter( old_parameter: str, new_parameter: str, map_function: Callable = lambda x: x, warning_message: str = \"Warning: '{old_parameter}' in '{function_name}' \" \"is deprecated: use...
null
["test/detection/test_polygonzone.py::test_polygon_zone_trigger[detections0-polygon_zone0-expected_results0-exception0]", "test/detection/test_polygonzone.py::test_polygon_zone_trigger[detections1-polygon_zone1-expected_results1-exception1]", "test/detection/test_polygonzone.py::test_polygon_zone_trigger[detections2-po...
[]
3eb5c0b024e3e46877b7fe4fd66e6177d1308ba0
{"first_commit_time": 1707965036.0, "pr_title": "Polygonzone add multiple anchors support", "pr_body": "# Description\r\n\r\nThis PR addresses [Issue #844](https://github.com/roboflow/supervision/issues/844).\r\n\r\n- Rename `triggering_position` to `triggering_anchors` to be consistent with the `LineZone` naming conve...
rytilahti/python-miio
1,984
https://github.com/rytilahti/python-miio/pull/1984
rytilahti__python-miio-1984
[]
62427d2f796e603520acca3b57b29ec3e6489bca
diff --git a/miio/miot_models.py b/miio/miot_models.py index 1269946d5..6f4abfe59 100644 --- a/miio/miot_models.py +++ b/miio/miot_models.py @@ -1,4 +1,5 @@ import logging +from abc import abstractmethod from datetime import timedelta from enum import Enum from typing import Any, Optional @@ -150,6 +151,11 @@ def n...
diff --git a/miio/tests/test_miot_models.py b/miio/tests/test_miot_models.py index 32afb76aa..046ad2a08 100644 --- a/miio/tests/test_miot_models.py +++ b/miio/tests/test_miot_models.py @@ -21,6 +21,7 @@ URN, MiotAccess, MiotAction, + MiotBaseModel, MiotEnumValue, MiotEvent, MiotFormat, ...
2024-11-09T21:09:56
{"README.md": "<p align=\"center\">\n <a href=\"https://gmago-leway.github.io/fea-bench.github.io/\">\n <img src=\"assets/FEA-Bench-full.png\" style=\"height: 10em\" alt=\"fea-bench\" />\n </a>\n</p>\n\n<p align=\"center\">\n <em>A benchmark that aims to evaluate the capability of implementing new features in the...
{"miio/miot_models.py": "import logging\nfrom datetime import timedelta\nfrom enum import Enum\nfrom typing import Any, Optional\n\ntry:\n from pydantic.v1 import BaseModel, Field, PrivateAttr, root_validator\nexcept ImportError:\n from pydantic import BaseModel, Field, PrivateAttr, root_validator\n\nfrom .descri...
{"miio/miot_models.py": [{"type": "function", "name": "MiotBaseModel.unique_identifier", "lines": [156, 157], "signature": "def unique_identifier(self) -> str:", "doc": "Return unique identifier."}, {"type": "function", "name": "MiotAction.unique_identifier", "lines": [204, 206], "signature": "def unique_identifier(sel...
null
["miio/tests/test_miot_models.py::test_unique_identifier[actions-aiid]", "miio/tests/test_miot_models.py::test_unique_identifier[properties-piid]", "miio/tests/test_miot_models.py::test_unique_identifier[events-eiid]"]
["miio/tests/test_miot_models.py::test_enum", "miio/tests/test_miot_models.py::test_enum_missing_description", "miio/tests/test_miot_models.py::test_format[bool-bool]", "miio/tests/test_miot_models.py::test_format[string-str]", "miio/tests/test_miot_models.py::test_format[float-float]", "miio/tests/test_miot_models.py:...
62427d2f796e603520acca3b57b29ec3e6489bca
{"first_commit_time": 1731186553.0, "pr_title": "Add unique_identifier property to miot properties, actions, and events", "pr_body": "This allows descriptors to have device-unique identifiers, the format is '<normalized_name>_<siid>_<id>'.\r\n\r\nThis also changes 'id' of the descriptors to use this identifier in-place...
scikit-learn/scikit-learn
11,196
https://github.com/scikit-learn/scikit-learn/pull/11196
scikit-learn__scikit-learn-11196
[]
989f9c764734efc21bbff21b0202b52a1112bfc3
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 ...
2018-06-04T12:31:15
{}
{"sklearn/preprocessing/label.py": "# Authors: Alexandre Gramfort <alexandre.gramfort@inria.fr>\n# Mathieu Blondel <mathieu@mblondel.org>\n# Olivier Grisel <olivier.grisel@ensta.org>\n# Andreas Mueller <amueller@ais.uni-bonn.de>\n# Joel Nothman <joel.nothman@gmail.com>\n# Ha...
{"sklearn/utils/sparsefuncs.py": [{"type": "function", "name": "_minor_reduce", "lines": [338, 341], "signature": "def _minor_reduce(X, ufunc):", "doc": ""}, {"type": "function", "name": "_min_or_max_axis", "lines": [344, 364], "signature": "def _min_or_max_axis(X, axis, min_or_max):", "doc": ""}, {"type": "function", ...
0.20
["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/tests/test_sp...
["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/test_sparse...
51407623e4f491f00e3b465626dd5c4b55860bd0
{"first_commit_time": 1528116137.0, "pr_title": "[MRG] EHN: add function to ignore nan in min/max sparse functions", "pr_body": "<!--\r\nThanks for contributing a pull request! Please ensure you have taken a look at\r\nthe contribution guidelines: https://github.com/scikit-learn/scikit-learn/blob/master/CONTRIBUTING.md...
scikit-learn/scikit-learn
11,281
https://github.com/scikit-learn/scikit-learn/pull/11281
scikit-learn__scikit-learn-11281
["10336"]
4143356c3c51831300789e4fdf795d83716dbab6
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> # ...
2018-06-15T17:15:25
{}
{"doc/whats_new/v0.20.rst": ".. include:: _contributors.rst\n\n.. currentmodule:: sklearn\n\n.. _changes_0_20:\n\nVersion 0.20 (under development)\n================================\n\nAs well as a plethora of new features and enhancements, this release is the\nfirst to be accompanied by a :ref:`glossary` developed by `...
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...
{"sklearn/mixture/base.py": [{"type": "function", "name": "BaseMixture.fit_predict", "lines": [194, 269], "signature": "def fit_predict(self, X, y=None):", "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 ...
0.20
["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_weight_conc...
51407623e4f491f00e3b465626dd5c4b55860bd0
{"first_commit_time": 1529079022.0, "pr_title": "[MRG + 1] #10336 adding fit_predict to mixture models", "pr_body": "#### Reference Issues \r\n\r\nFixes #10336\r\n\r\n#### What does this implement/fix? Explain your changes.\r\n\r\nAdded `fit_predict` method to all Gaussian mixture models and added tests to Bayesian Gau...
scikit-learn/scikit-learn
13,336
https://github.com/scikit-learn/scikit-learn/pull/13336
scikit-learn__scikit-learn-13336
[]
984871b89baa183b1d0e284ac9bb22de06a59e8d
diff --git a/doc/whats_new/v0.21.rst b/doc/whats_new/v0.21.rst index 6f504a721ec75..e3e3ec9f88816 100644 --- a/doc/whats_new/v0.21.rst +++ b/doc/whats_new/v0.21.rst @@ -230,6 +230,10 @@ Support for Python 3.4 and below has been officially dropped. in version 0.21 and will be removed in version 0.23. :issue:`12821...
diff --git a/sklearn/linear_model/tests/test_ridge.py b/sklearn/linear_model/tests/test_ridge.py index eca4a53f4f507..a5ee524e8c557 100644 --- a/sklearn/linear_model/tests/test_ridge.py +++ b/sklearn/linear_model/tests/test_ridge.py @@ -815,21 +815,25 @@ def test_n_iter(): def test_ridge_fit_intercept_sparse(): X...
2019-02-28T15:54:52
{}
{"doc/whats_new/v0.21.rst": ".. include:: _contributors.rst\n\n.. currentmodule:: sklearn\n\n.. _changes_0_21:\n\nVersion 0.21.0\n==============\n\n**In development**\n\nChanged models\n--------------\n\nThe following estimators and functions, when fit with the same data and\nparameters, may produce different models fr...
diff --git a/doc/whats_new/v0.21.rst b/doc/whats_new/v0.21.rst index 6f504a721ec75..e3e3ec9f88816 100644 --- a/doc/whats_new/v0.21.rst +++ b/doc/whats_new/v0.21.rst @@ -230,6 +230,10 @@ Support for Python 3.4 and below has been officially dropped. in version 0.21 and will be removed in version 0.23. :issue:`12821...
{"sklearn/linear_model/ridge.py": [{"type": "function", "name": "_solve_sparse_cg._get_rescaled_operator", "lines": [39, 52], "signature": "def _get_rescaled_operator(X):", "doc": ""}, {"type": "function", "name": "_solve_sparse_cg._get_rescaled_operator.matvec", "lines": [43, 44], "signature": "def matvec(b):", "doc":...
0.21
["sklearn/linear_model/tests/test_ridge.py::test_ridge_fit_intercept_sparse"]
["sklearn/linear_model/tests/test_ridge.py::test_ridge[svd]", "sklearn/linear_model/tests/test_ridge.py::test_ridge[sparse_cg]", "sklearn/linear_model/tests/test_ridge.py::test_ridge[cholesky]", "sklearn/linear_model/tests/test_ridge.py::test_ridge[lsqr]", "sklearn/linear_model/tests/test_ridge.py::test_ridge[sag]", "s...
66cc1c7342f7f0cc0dc57fb6d56053fc46c8e5f0
{"first_commit_time": 1551276261.0, "pr_title": "[MRG] Implement fitting intercept with `sparse_cg` solver in Ridge regression", "pr_body": "<!--\r\nThanks for contributing a pull request! Please ensure you have taken a look at\r\nthe contribution guidelines: https://github.com/scikit-learn/scikit-learn/blob/master/CON...
scikit-learn/scikit-learn
15,304
https://github.com/scikit-learn/scikit-learn/pull/15304
scikit-learn__scikit-learn-15304
[]
bbc23691cb9c5a7f2174d58c934f233b90f51ab2
diff --git a/doc/whats_new/v0.22.rst b/doc/whats_new/v0.22.rst index c19d777eec363..154af3721777d 100644 --- a/doc/whats_new/v0.22.rst +++ b/doc/whats_new/v0.22.rst @@ -118,6 +118,11 @@ Changelog with a target matrix `Y` in which the first column was constant. :issue:`13609` by :user:`Camila Williamson <camilaagw...
diff --git a/sklearn/cross_decomposition/tests/test_pls.py b/sklearn/cross_decomposition/tests/test_pls.py index a5993dea87c14..f4973143bb058 100644 --- a/sklearn/cross_decomposition/tests/test_pls.py +++ b/sklearn/cross_decomposition/tests/test_pls.py @@ -80,6 +80,12 @@ def check_ortho(M, err_msg): assert_array_a...
2019-10-20T14:47:50
{}
{"doc/whats_new/v0.22.rst": ".. include:: _contributors.rst\n\n.. currentmodule:: sklearn\n\n.. _changes_0_22:\n\nVersion 0.22.0\n==============\n\n**In Development**\n\nFor a short description of the main highlights of the release, please\nrefer to\n:ref:`sphx_glr_auto_examples_release_highlights_plot_release_highligh...
diff --git a/doc/whats_new/v0.22.rst b/doc/whats_new/v0.22.rst index c19d777eec363..154af3721777d 100644 --- a/doc/whats_new/v0.22.rst +++ b/doc/whats_new/v0.22.rst @@ -118,6 +118,11 @@ Changelog with a target matrix `Y` in which the first column was constant. :issue:`13609` by :user:`Camila Williamson <camilaagw...
{"sklearn/cross_decomposition/_pls_.py": [{"type": "function", "name": "_PLS.inverse_transform", "lines": [423, 448], "signature": "def inverse_transform(self, X):", "doc": "Transform data back to its original space.\n\nParameters\n----------\nX : array-like of shape (n_samples, n_components)\n New data, where n_sam...
0.22
["sklearn/cross_decomposition/tests/test_pls.py::test_pls"]
["sklearn/cross_decomposition/tests/test_pls.py::test_convergence_fail", "sklearn/cross_decomposition/tests/test_pls.py::test_PLSSVD", "sklearn/cross_decomposition/tests/test_pls.py::test_univariate_pls_regression", "sklearn/cross_decomposition/tests/test_pls.py::test_predict_transform_copy", "sklearn/cross_decompositi...
c96e0958da46ebef482a4084cdda3285d5f5ad23
{"first_commit_time": 1571582670.0, "pr_title": "[MRG] Added inverse_transform for pls base object and test", "pr_body": "<!--\r\nThanks for contributing a pull request! Please ensure you have taken a look at\r\nthe contribution guidelines: https://github.com/scikit-learn/scikit-learn/blob/master/CONTRIBUTING.md#pull-r...
scikit-learn/scikit-learn
17,225
https://github.com/scikit-learn/scikit-learn/pull/17225
scikit-learn__scikit-learn-17225
[]
2f26540ee99cb4519d7471933359913c7be36ac9
diff --git a/doc/whats_new/v0.24.rst b/doc/whats_new/v0.24.rst index db6959fcc164f..76ec91d93e264 100644 --- a/doc/whats_new/v0.24.rst +++ b/doc/whats_new/v0.24.rst @@ -76,7 +76,13 @@ Changelog attribute name/path or a `callable` for extracting feature importance from the estimator. :pr:`15361` by :user:`Venkata...
diff --git a/sklearn/ensemble/tests/test_gradient_boosting_loss_functions.py b/sklearn/ensemble/tests/test_gradient_boosting_loss_functions.py index 6b24f90d0239d..b5bc17eeeb14c 100644 --- a/sklearn/ensemble/tests/test_gradient_boosting_loss_functions.py +++ b/sklearn/ensemble/tests/test_gradient_boosting_loss_function...
2020-05-14T18:04:04
{}
{"doc/whats_new/v0.24.rst": ".. include:: _contributors.rst\n\n.. currentmodule:: sklearn\n\n.. _changes_0_24:\n\nVersion 0.24.0\n==============\n\n**In Development**\n\n\n.. include:: changelog_legend.inc\n\nPut the changes in their relevant module.\n\nChanged models\n--------------\n\nThe following estimators and fun...
diff --git a/doc/whats_new/v0.24.rst b/doc/whats_new/v0.24.rst index db6959fcc164f..76ec91d93e264 100644 --- a/doc/whats_new/v0.24.rst +++ b/doc/whats_new/v0.24.rst @@ -76,7 +76,13 @@ Changelog attribute name/path or a `callable` for extracting feature importance from the estimator. :pr:`15361` by :user:`Venkata...
{"sklearn/utils/fixes.py": [{"type": "function", "name": "_take_along_axis", "lines": [170, 203], "signature": "def _take_along_axis(arr, indices, axis):", "doc": "Implements a simplified version of np.take_along_axis if numpy\nversion < 1.15"}]}
0.24
["sklearn/utils/tests/test_stats.py::test_weighted_percentile_2d"]
["sklearn/ensemble/tests/test_gradient_boosting_loss_functions.py::test_binomial_deviance", "sklearn/ensemble/tests/test_gradient_boosting_loss_functions.py::test_sample_weight_smoke", "sklearn/ensemble/tests/test_gradient_boosting_loss_functions.py::test_sample_weight_init_estimators", "sklearn/ensemble/tests/test_gra...
54ce4222694819ad52d544ce5cba5da274c34ab7
{"first_commit_time": 1589478526.0, "pr_title": "ENH Sample weights for median_absolute_error", "pr_body": "<!--\r\nThanks for contributing a pull request! Please ensure you have taken a look at\r\nthe contribution guidelines: https://github.com/scikit-learn/scikit-learn/blob/master/CONTRIBUTING.md#pull-request-checkli...
scikit-learn/scikit-learn
18,393
https://github.com/scikit-learn/scikit-learn/pull/18393
scikit-learn__scikit-learn-18393
[]
114616d9f6ce9eba7c1aacd3d4a254f868010e25
diff --git a/doc/whats_new/v1.0.rst b/doc/whats_new/v1.0.rst index be894774f5a27..a54abb78730a4 100644 --- a/doc/whats_new/v1.0.rst +++ b/doc/whats_new/v1.0.rst @@ -102,6 +102,13 @@ Changelog - |Enhancement| :func:`datasets.fetch_kddcup99` raises a better message when the cached file is invalid. :pr:`19669` `Thomas...
diff --git a/sklearn/compose/tests/test_column_transformer.py b/sklearn/compose/tests/test_column_transformer.py index ae2e25b68210f..f7c1874d4a1b7 100644 --- a/sklearn/compose/tests/test_column_transformer.py +++ b/sklearn/compose/tests/test_column_transformer.py @@ -225,7 +225,7 @@ def test_column_transformer_datafra...
2020-09-13T16:00:48
{}
{"doc/whats_new/v1.0.rst": ".. include:: _contributors.rst\n\n.. currentmodule:: sklearn\n\n.. _changes_1_0:\n\nVersion 1.0.0\n=============\n\n**In Development**\n\n\n.. include:: changelog_legend.inc\n\nPut the changes in their relevant module.\n\nChanged models\n--------------\n\nThe following estimators and functio...
diff --git a/doc/whats_new/v1.0.rst b/doc/whats_new/v1.0.rst index be894774f5a27..a54abb78730a4 100644 --- a/doc/whats_new/v1.0.rst +++ b/doc/whats_new/v1.0.rst @@ -102,6 +102,13 @@ Changelog - |Enhancement| :func:`datasets.fetch_kddcup99` raises a better message when the cached file is invalid. :pr:`19669` `Thomas...
{"sklearn/compose/_column_transformer.py": [{"type": "function", "name": "ColumnTransformer._record_output_indices", "lines": [417, 437], "signature": "def _record_output_indices(self, Xs):", "doc": "Record which transformer produced which column."}]}
1.0
["sklearn/compose/tests/test_column_transformer.py::test_column_transformer_output_indices", "sklearn/compose/tests/test_column_transformer.py::test_column_transformer_output_indices_df"]
["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[False-list-pandas]", "sklearn/compose/tests/test_column_transforme...
3c732b9f6a77e95dfa6beb154ca2e1e7848b74f9
{"first_commit_time": 1600012453.0, "pr_title": "ENH Record output of transformers in ColumnTransformer", "pr_body": "This PR adds a fitted attribute to the `ColumnTransformer`, tentatively named `transformers_output_`. It records the columns produced by each transformer (if any). This is useful for debugging as well a...
scikit-learn/scikit-learn
28,936
https://github.com/scikit-learn/scikit-learn/pull/28936
scikit-learn__scikit-learn-28936
[]
0f27a26d0f78b07245158f5997066a3b2c1d76ba
diff --git a/doc/api_reference.py b/doc/api_reference.py index 1aa6455fb7e44..583909cdcac65 100644 --- a/doc/api_reference.py +++ b/doc/api_reference.py @@ -121,6 +121,7 @@ def _get_submodule(module_name, submodule_name): "TransformerMixin", "clone", "is_cl...
diff --git a/sklearn/tests/test_base.py b/sklearn/tests/test_base.py index a1cd3b8fc8c7b..917da863ece3b 100644 --- a/sklearn/tests/test_base.py +++ b/sklearn/tests/test_base.py @@ -18,13 +18,16 @@ TransformerMixin, clone, is_classifier, + is_clusterer, + is_regressor, ) +from sklearn.cluster impor...
2024-05-02T20:19:03
{}
{"doc/api_reference.py": "\"\"\"Configuration for the API reference documentation.\"\"\"\n\n\ndef _get_guide(*refs, is_developer=False):\n \"\"\"Get the rst to refer to user/developer guide.\n\n `refs` is several references that can be used in the :ref:`...` directive.\n \"\"\"\n if len(refs) == 1:\n ...
diff --git a/doc/whats_new/v1.6.rst b/doc/whats_new/v1.6.rst index 0e6844155c6fa..53b0eb017fc57 100644 --- a/doc/whats_new/v1.6.rst +++ b/doc/whats_new/v1.6.rst @@ -74,6 +74,13 @@ Changelog :pr:`123456` by :user:`Joe Bloggs <joeongithub>`. where 123455 is the *pull request* number, not the issue number. +:m...
{"sklearn/base.py": [{"type": "function", "name": "is_clusterer", "lines": [1423, 1453], "signature": "def is_clusterer(estimator):", "doc": "Return True if the given estimator is (probably) a clusterer.\n\n.. versionadded:: 1.6\n\nParameters\n----------\nestimator : object\n Estimator object to test.\n\nReturns\n--...
1.6
["sklearn/tests/test_base.py::test_clone", "sklearn/tests/test_base.py::test_clone_2", "sklearn/tests/test_base.py::test_clone_buggy", "sklearn/tests/test_base.py::test_clone_empty_array", "sklearn/tests/test_base.py::test_clone_nan", "sklearn/tests/test_base.py::test_clone_dict", "sklearn/tests/test_base.py::test_clon...
[]
18dc8630a7cbe1b591c12774949058b12157a39a
{"first_commit_time": 1714679936.0, "pr_title": "ENH Add missing `base.is_clusterer()` function", "pr_body": "#### Reference Issues/PRs\r\nFixes https://github.com/scikit-learn/scikit-learn/issues/28960\r\n\r\n#### What does this implement/fix? Explain your changes.\r\nThis PR proposes to add the missing `base.is_clust...
scikit-learn/scikit-learn
29,136
https://github.com/scikit-learn/scikit-learn/pull/29136
scikit-learn__scikit-learn-29136
[]
65c00c72507b48ae2f57ed2328560748db8b01f0
diff --git a/doc/metadata_routing.rst b/doc/metadata_routing.rst index 27000a192ab21..d8a47927512e4 100644 --- a/doc/metadata_routing.rst +++ b/doc/metadata_routing.rst @@ -276,6 +276,7 @@ Meta-estimators and functions supporting metadata routing: - :class:`sklearn.calibration.CalibratedClassifierCV` - :class:`skle...
diff --git a/sklearn/tests/test_metaestimators_metadata_routing.py b/sklearn/tests/test_metaestimators_metadata_routing.py index 8bfb7b0663c18..a1cc807bd2a7e 100644 --- a/sklearn/tests/test_metaestimators_metadata_routing.py +++ b/sklearn/tests/test_metaestimators_metadata_routing.py @@ -382,6 +382,14 @@ def enable_sle...
2024-05-30T10:01:41
{}
{"doc/metadata_routing.rst": ".. currentmodule:: sklearn\n\n.. TODO: update doc/conftest.py once document is updated and examples run.\n\n.. _metadata_routing:\n\nMetadata Routing\n================\n\n.. note::\n The Metadata Routing API is experimental, and is not yet implemented for all\n estimators. Please refer t...
diff --git a/doc/metadata_routing.rst b/doc/metadata_routing.rst index 27000a192ab21..d8a47927512e4 100644 --- a/doc/metadata_routing.rst +++ b/doc/metadata_routing.rst @@ -276,6 +276,7 @@ Meta-estimators and functions supporting metadata routing: - :class:`sklearn.calibration.CalibratedClassifierCV` - :class:`skle...
{"sklearn/compose/_target.py": [{"type": "function", "name": "TransformedTargetRegressor.get_metadata_routing", "lines": [381, 401], "signature": "def get_metadata_routing(self):", "doc": "Get metadata routing of this object.\n\nPlease check :ref:`User Guide <metadata_routing>` on how the routing\nmechanism works.\n\n....
1.6
["sklearn/tests/test_metaestimators_metadata_routing.py::test_default_request[TransformedTargetRegressor]", "sklearn/tests/test_metaestimators_metadata_routing.py::test_error_on_missing_requests_for_sub_estimator[TransformedTargetRegressor]", "sklearn/tests/test_metaestimators_metadata_routing.py::test_setting_request_...
["sklearn/tests/test_metaestimators_metadata_routing.py::test_unsupported_estimators_get_metadata_routing[estimator0]", "sklearn/tests/test_metaestimators_metadata_routing.py::test_unsupported_estimators_get_metadata_routing[estimator1]", "sklearn/tests/test_metaestimators_metadata_routing.py::test_unsupported_estimato...
18dc8630a7cbe1b591c12774949058b12157a39a
{"first_commit_time": 1717063093.0, "pr_title": "FEA Add metadata routing for TransformedTargetRegressor", "pr_body": "<!--\r\nThanks for contributing a pull request! Please ensure you have taken a look at\r\nthe contribution guidelines: https://github.com/scikit-learn/scikit-learn/blob/main/CONTRIBUTING.md\r\n-->\r\n\...
scikit-learn/scikit-learn
29,210
https://github.com/scikit-learn/scikit-learn/pull/29210
scikit-learn__scikit-learn-29210
[]
51c8e0e19d042a2dbbc1f9477557c07c8a34ab96
diff --git a/doc/modules/model_evaluation.rst b/doc/modules/model_evaluation.rst index eff6684458deb..080ed0c63a58c 100644 --- a/doc/modules/model_evaluation.rst +++ b/doc/modules/model_evaluation.rst @@ -605,7 +605,7 @@ The function :func:`cohen_kappa_score` computes `Cohen's kappa This measure is intended to compare...
diff --git a/sklearn/metrics/tests/test_classification.py b/sklearn/metrics/tests/test_classification.py index b87e76ba2fb42..aa612f73ef5c7 100644 --- a/sklearn/metrics/tests/test_classification.py +++ b/sklearn/metrics/tests/test_classification.py @@ -810,6 +810,7 @@ def test_matthews_corrcoef_nan(): partial(...
2024-06-07T10:08:06
{}
{"doc/modules/model_evaluation.rst": ".. currentmodule:: sklearn\n\n.. _model_evaluation:\n\n===========================================================\nMetrics and scoring: quantifying the quality of predictions\n===========================================================\n\nThere are 3 different APIs for evaluating ...
diff --git a/doc/modules/model_evaluation.rst b/doc/modules/model_evaluation.rst index eff6684458deb..080ed0c63a58c 100644 --- a/doc/modules/model_evaluation.rst +++ b/doc/modules/model_evaluation.rst @@ -605,7 +605,7 @@ The function :func:`cohen_kappa_score` computes `Cohen's kappa This measure is intended to compare...
{"sklearn/metrics/_classification.py": [{"type": "function", "name": "_metric_handle_division", "lines": [613, 641], "signature": "def _metric_handle_division(*, numerator, denominator, metric, zero_division):", "doc": "Helper to handle zero-division.\n\nParameters\n----------\nnumerator : numbers.Real\n The numerat...
1.6
["sklearn/metrics/tests/test_classification.py::test_zero_division_nan_no_warning[metric4-y_true0-y_pred0-0]", "sklearn/metrics/tests/test_classification.py::test_zero_division_nan_no_warning[metric4-y_true0-y_pred0-1]", "sklearn/metrics/tests/test_classification.py::test_zero_division_nan_no_warning[metric4-y_true0-y_...
["sklearn/metrics/tests/test_classification.py::test_classification_report_dictionary_output", "sklearn/metrics/tests/test_classification.py::test_classification_report_output_dict_empty_input", "sklearn/metrics/tests/test_classification.py::test_classification_report_zero_division_warning[warn]", "sklearn/metrics/test...
18dc8630a7cbe1b591c12774949058b12157a39a
{"first_commit_time": 1717754515.0, "pr_title": "ENH Add zero_division param to `cohen_kappa_score`", "pr_body": "#### Reference Issues/PRs\r\ntowards #29048\r\n\r\n#### What does this implement/fix? Explain your changes.\r\nExtracts the part for adding a `zero_division` param to the `cohen_kappa_score` from the origin...
scrapy/scrapy
5,821
https://github.com/scrapy/scrapy/pull/5821
scrapy__scrapy-5821
[]
b337c986ca1188f4b26d30c9ae4bb7ff457ed505
diff --git a/scrapy/settings/__init__.py b/scrapy/settings/__init__.py index fde8fdde424..a3b849f7b2f 100644 --- a/scrapy/settings/__init__.py +++ b/scrapy/settings/__init__.py @@ -293,6 +293,13 @@ def set(self, name, value, priority="project"): else: self.attributes[name].set(value, priority) +...
diff --git a/tests/test_settings/__init__.py b/tests/test_settings/__init__.py index 2a3b2d529dc..cb948c84c69 100644 --- a/tests/test_settings/__init__.py +++ b/tests/test_settings/__init__.py @@ -65,6 +65,19 @@ class BaseSettingsTest(unittest.TestCase): def setUp(self): self.settings = BaseSettings() +...
2023-02-01T02:18:00
{}
{"scrapy/settings/__init__.py": "import copy\nimport json\nfrom collections.abc import MutableMapping\nfrom importlib import import_module\nfrom pprint import pformat\n\nfrom scrapy.settings import default_settings\n\nSETTINGS_PRIORITIES = {\n \"default\": 0,\n \"command\": 10,\n \"project\": 20,\n \"spider...
{"scrapy/settings/__init__.py": [{"type": "function", "name": "BaseSettings.setdefault", "lines": [296, 301], "signature": "def setdefault(self, name, default=None, priority=\"project\"):", "doc": ""}]}
null
["tests/test_settings/__init__.py::BaseSettingsTest::test_setdefault_not_existing_value"]
["tests/test_settings/__init__.py::SettingsGlobalFuncsTest::test_get_settings_priority", "tests/test_settings/__init__.py::SettingsAttributeTest::test_overwrite_basesettings", "tests/test_settings/__init__.py::SettingsAttributeTest::test_repr", "tests/test_settings/__init__.py::SettingsAttributeTest::test_set_equal_pri...
57a5460529ff71c42e4d0381265b1b512b1eb09b
{"first_commit_time": 1675216587.0, "pr_title": "Added `setdefault` to `BaseSettings`", "pr_body": "Added the `setdefault` method to the `BaseSettings` class.\r\n\r\nNow `setdefault` works as expected, if the _key_ does not exist in `BaseSettings` then this _key_ will be added and _default value_ will be assigned to it...
scrapy/scrapy
5,979
https://github.com/scrapy/scrapy/pull/5979
scrapy__scrapy-5979
[]
8055a948dc2544c4d8ebe7aa1c6227e19b1583ac
diff --git a/docs/topics/extensions.rst b/docs/topics/extensions.rst index 96e0216b8f0..8d4749ab33d 100644 --- a/docs/topics/extensions.rst +++ b/docs/topics/extensions.rst @@ -258,6 +258,7 @@ The conditions for closing a spider can be configured through the following settings: * :setting:`CLOSESPIDER_TIMEOUT` +* :...
diff --git a/tests/spiders.py b/tests/spiders.py index 6ff48f4710c..f29dea2a12b 100644 --- a/tests/spiders.py +++ b/tests/spiders.py @@ -77,6 +77,22 @@ def errback(self, failure): self.t2_err = time.time() +class SlowSpider(DelaySpider): + name = "slow" + + def start_requests(self): + # 1st re...
2023-07-18T10:33:03
{}
{"docs/topics/extensions.rst": ".. _topics-extensions:\n\n==========\nExtensions\n==========\n\nThe extensions framework provides a mechanism for inserting your own\ncustom functionality into Scrapy.\n\nExtensions are just regular classes.\n\nExtension settings\n==================\n\nExtensions use the :ref:`Scrapy set...
diff --git a/docs/topics/extensions.rst b/docs/topics/extensions.rst index 96e0216b8f0..8d4749ab33d 100644 --- a/docs/topics/extensions.rst +++ b/docs/topics/extensions.rst @@ -258,6 +258,7 @@ The conditions for closing a spider can be configured through the following settings: * :setting:`CLOSESPIDER_TIMEOUT` +* :...
{"scrapy/extensions/closespider.py": [{"type": "function", "name": "CloseSpider.spider_opened_no_item", "lines": [90, 98], "signature": "def spider_opened_no_item(self, spider):", "doc": ""}, {"type": "function", "name": "CloseSpider.item_scraped_no_item", "lines": [101, 102], "signature": "def item_scraped_no_item(sel...
null
["tests/test_closespider.py::TestCloseSpider::test_closespider_timeout_no_item"]
["tests/test_closespider.py::TestCloseSpider::test_closespider_errorcount", "tests/test_closespider.py::TestCloseSpider::test_closespider_itemcount", "tests/test_closespider.py::TestCloseSpider::test_closespider_pagecount", "tests/test_closespider.py::TestCloseSpider::test_closespider_timeout"]
57a5460529ff71c42e4d0381265b1b512b1eb09b
{"first_commit_time": 1689676221.0, "pr_title": "introduce CLOSESPIDER_TIMEOUT_NO_ITEM in CloseSpider", "pr_body": "**Motivation:** Sometimes spiders still keep running without producing any items. This could be due to a variety of reasons like poor dupe URL filtration, bad crawling strategy, etc.\r\n\r\n**Proposal:** ...
softlayer/softlayer-python
1,766
https://github.com/softlayer/softlayer-python/pull/1766
softlayer__softlayer-python-1766
[]
00e6a0677efb00ce3cd0562939fb7e98e00b2f99
diff --git a/SoftLayer/CLI/core.py b/SoftLayer/CLI/core.py index 5425882da..b3a1fead0 100644 --- a/SoftLayer/CLI/core.py +++ b/SoftLayer/CLI/core.py @@ -34,7 +34,7 @@ } PROG_NAME = "slcli (SoftLayer Command-line)" -VALID_FORMATS = ['table', 'raw', 'json', 'jsonraw'] +VALID_FORMATS = ['table', 'raw', 'json', 'jsonra...
diff --git a/tests/CLI/modules/account_tests.py b/tests/CLI/modules/account_tests.py index 7e0792c07..b02b73032 100644 --- a/tests/CLI/modules/account_tests.py +++ b/tests/CLI/modules/account_tests.py @@ -66,6 +66,14 @@ def test_invoice_detail_details(self): self.assert_no_fail(result) self.assert_cal...
2022-10-06T19:34:06
{}
{"SoftLayer/CLI/core.py": "\"\"\"\n SoftLayer.CLI.core\n ~~~~~~~~~~~~~~~~~~\n Core for the SoftLayer CLI\n\n :license: MIT, see LICENSE for more details.\n\"\"\"\nimport logging\nimport os\nimport sys\nimport time\nimport traceback\n\nimport click\nimport requests\nfrom rich.markup import escape\n\nimport S...
{"SoftLayer/CLI/formatting.py": [{"type": "function", "name": "csv_output_format", "lines": [450, 454], "signature": "def csv_output_format(data, delimiter=','):", "doc": "Formating a table to csv format and show it."}, {"type": "function", "name": "clean_table", "lines": [457, 486], "signature": "def clean_table(data,...
null
["tests/CLI/modules/account_tests.py::AccountCLITests::test_invoice_detail_csv_output_format", "tests/CLI/modules/vs/vs_tests.py::VirtTests::test_vs_detail_csv_output_format_with_nested_tables"]
["tests/CLI/modules/account_tests.py::AccountCLITests::test_acccount_bandwidth_pool_detail", "tests/CLI/modules/account_tests.py::AccountCLITests::test_acccount_licenses", "tests/CLI/modules/account_tests.py::AccountCLITests::test_acccount_order", "tests/CLI/modules/account_tests.py::AccountCLITests::test_account_billi...
bd1ecce1ec4313b9ceefd3cfea52d1b9274fef9d
{"first_commit_time": 1665084299.0, "pr_title": "Added csv output format", "pr_body": "Issue: #1320\r\n```\r\nsoftlayer-python/ () $ slcli --format csv vs list\r\nid,hostname,domain,deviceStatus.name,datacenter,primary_ip,backend_ip,createDate,action\r\n1002,adns,vmware.chechu.com,Running,dal10,48.110,122.174,2020-04-0...
softlayer/softlayer-python
2,073
https://github.com/softlayer/softlayer-python/pull/2073
softlayer__softlayer-python-2073
[]
fe65dc3e4978e1497f242e0318ed6d43f6659b0b
diff --git a/SoftLayer/CLI/routes.py b/SoftLayer/CLI/routes.py index 54c1deaad..dbaf1cfe0 100644 --- a/SoftLayer/CLI/routes.py +++ b/SoftLayer/CLI/routes.py @@ -403,6 +403,8 @@ ('user:device-access', 'SoftLayer.CLI.user.device_access:cli'), ('user:vpn-manual', 'SoftLayer.CLI.user.vpn_manual:cli'), ('user...
diff --git a/tests/CLI/modules/user_tests.py b/tests/CLI/modules/user_tests.py index 02956e682..804c9ef1d 100644 --- a/tests/CLI/modules/user_tests.py +++ b/tests/CLI/modules/user_tests.py @@ -8,10 +8,9 @@ import sys import unittest -from unittest import mock as mock - from SoftLayer.fixtures import SoftLayer_User...
2023-08-10T07:29:02
{}
{"SoftLayer/CLI/routes.py": "\"\"\"\n SoftLayer.CLI.routes\n ~~~~~~~~~~~~~~~~~~~~~\n This is how all commands are registered with the CLI.\n\n :license: MIT, see LICENSE for more details.\n\"\"\"\n\nALL_ROUTES = [\n ('shell', 'SoftLayer.shell.core:cli'),\n\n ('call-api', 'SoftLayer.CLI.call_api:cli'),...
diff --git a/docs/cli/users.rst b/docs/cli/users.rst index e3d45bb1d..af86b4a94 100644 --- a/docs/cli/users.rst +++ b/docs/cli/users.rst @@ -64,6 +64,14 @@ Version 5.6.0 introduces the ability to interact with user accounts from the cli :prog: user vpn-password :show-nested: +.. click:: SoftLayer.CLI.user.v...
{"SoftLayer/CLI/user/vpn_enable_or_disable.py": [{"type": "function", "name": "vpn_enable", "lines": [15, 29], "signature": "def vpn_enable(env, user):", "doc": "Enable vpn for a user.\n\nExample::\n slcli user vpn-enable 1234567"}, {"type": "function", "name": "vpn_disable", "lines": [35, 49], "signature": "def vpn...
null
["tests/CLI/modules/user_tests.py::UserCLITests::test_vpn_disable", "tests/CLI/modules/user_tests.py::UserCLITests::test_vpn_enable"]
["tests/CLI/modules/user_tests.py::UserCLITests::test_add_api_authentication_key", "tests/CLI/modules/user_tests.py::UserCLITests::test_api_key_with_all_option", "tests/CLI/modules/user_tests.py::UserCLITests::test_api_key_without_option", "tests/CLI/modules/user_tests.py::UserCLITests::test_create_user", "tests/CLI/mo...
bd1ecce1ec4313b9ceefd3cfea52d1b9274fef9d
{"first_commit_time": 1691592899.0, "pr_title": "Added new slcli user vpn-disable and slcli user vpn-enable command ", "pr_body": "Hi @allmightyspiff,\r\n\r\nFixes: #2069 \r\n\r\n**Title:**\r\nnew slcli user vpn-enable command \r\n\r\n**Description:**\r\nI have added new features `slcli user vpn-disable` and `slcli use...
sphinx-doc/sphinx
7,327
https://github.com/sphinx-doc/sphinx/pull/7327
sphinx-doc__sphinx-7327
[]
385f7ed40ef843db94ec33ad377aa87d63f27a27
diff --git a/sphinx/util/logging.py b/sphinx/util/logging.py index fb2ec29005f..a2dee807d33 100644 --- a/sphinx/util/logging.py +++ b/sphinx/util/logging.py @@ -220,16 +220,15 @@ def pending_warnings() -> Generator[logging.Handler, None, None]: @contextmanager -def pending_logging() -> Generator[MemoryHandler, Non...
diff --git a/tests/test_util_logging.py b/tests/test_util_logging.py index 1581275ee23..85646112dd2 100644 --- a/tests/test_util_logging.py +++ b/tests/test_util_logging.py @@ -233,6 +233,20 @@ def test_warning_location(app, status, warning): assert colorize('red', 'WARNING: message7') in warning.getvalue() +d...
2020-03-17T16:38:18
{}
{"sphinx/util/logging.py": "\"\"\"\n sphinx.util.logging\n ~~~~~~~~~~~~~~~~~~~\n\n Logging utility functions for Sphinx.\n\n :copyright: Copyright 2007-2020 by the Sphinx team, see AUTHORS.\n :license: BSD, see LICENSE for details.\n\"\"\"\n\nimport logging\nimport logging.handlers\nfrom collections impo...
{"sphinx/util/logging.py": [{"type": "function", "name": "suppress_logging", "lines": [223, 248], "signature": "def suppress_logging() -> Generator[MemoryHandler, None, None]:", "doc": "Contextmanager to suppress logging all logs temporary.\n\nFor example::\n\n >>> with suppress_logging():\n >>> logger.warnin...
3.0
["tests/test_util_logging.py::test_suppress_logging"]
["tests/test_util_logging.py::test_info_and_warning", "tests/test_util_logging.py::test_verbosity_filter", "tests/test_util_logging.py::test_nonl_info_log", "tests/test_util_logging.py::test_is_suppressed_warning", "tests/test_util_logging.py::test_suppress_warnings", "tests/test_util_logging.py::test_warningiserror", ...
39cd463740d6ec955a5e216eb07d09a51204ecb4
{"first_commit_time": 1584462800.0, "pr_title": "Add suppress_logging()", "pr_body": "### Feature or Bugfix\r\n- Refactoring\r\n\r\n### Purpose\r\nAs a helper for C/C++ domain, this adds suppress_logging(). It works as a context manager and suppresses all loggings during the context temporarily.\r\n\r\n@jakobandersen ...
sphinx-doc/sphinx
7,597
https://github.com/sphinx-doc/sphinx/pull/7597
sphinx-doc__sphinx-7597
["7596"]
c13ecd243709d1e210a030be5aa09b7714e35730
diff --git a/CHANGES b/CHANGES index 3dcbe2b1f75..d426fa48c87 100644 --- a/CHANGES +++ b/CHANGES @@ -70,6 +70,7 @@ Features added * C++, parse trailing return types. * #7143: py domain: Add ``:final:`` option to :rst:dir:`py:class:`, :rst:dir:`py:exception:` and :rst:dir:`py:method:` directives +* #7596: py domain...
diff --git a/tests/test_domain_py.py b/tests/test_domain_py.py index 5a1d73cfe66..08b3da21e6e 100644 --- a/tests/test_domain_py.py +++ b/tests/test_domain_py.py @@ -420,7 +420,8 @@ def test_pydata_signature(app): doctree = restructuredtext.parse(app, text) assert_node(doctree, (addnodes.index, ...
2020-05-02T13:44:52
{}
{"CHANGES": "Release 3.1.0 (in development)\n==============================\n\nDependencies\n------------\n\nIncompatible changes\n--------------------\n\n* #7477: imgconverter: Invoke \"magick convert\" command by default on Windows\n\nDeprecated\n----------\n\n* The first argument for sphinx.ext.autosummary.generate....
diff --git a/CHANGES b/CHANGES index 3dcbe2b1f75..d426fa48c87 100644 --- a/CHANGES +++ b/CHANGES @@ -70,6 +70,7 @@ Features added * C++, parse trailing return types. * #7143: py domain: Add ``:final:`` option to :rst:dir:`py:class:`, :rst:dir:`py:exception:` and :rst:dir:`py:method:` directives +* #7596: py domain...
{"sphinx/domains/python.py": [{"type": "function", "name": "type_to_xref", "lines": [80, 88], "signature": "def type_to_xref(text: str) -> addnodes.pending_xref:", "doc": "Convert a type string to a cross reference node."}]}
3.1
["tests/test_domain_py.py::test_pydata_signature", "tests/test_domain_py.py::test_pyattribute"]
["tests/test_domain_py.py::test_function_signatures", "tests/test_domain_py.py::test_domain_py_xrefs", "tests/test_domain_py.py::test_domain_py_objects", "tests/test_domain_py.py::test_resolve_xref_for_properties", "tests/test_domain_py.py::test_domain_py_find_obj", "tests/test_domain_py.py::test_get_full_qualified_nam...
3419079fb0d1f0eecd845eff0d12b367d34cd5e9
{"first_commit_time": 1588426889.0, "pr_title": "Close #7596: py domain: Change a type annotation for variables to a hyperlink", "pr_body": "### Feature or Bugfix\r\n- Feature\r\n\r\n### Purpose\r\n- refs: #7596 ", "pr_timeline": [], "issues": {"7596": {"issue_title": "py domain: Change a type annotation for variables ...
sphinx-doc/sphinx
9,131
https://github.com/sphinx-doc/sphinx/pull/9131
sphinx-doc__sphinx-9131
[]
b237e78f9c233170f271c326bf46b7fb3b103858
diff --git a/doc/usage/configuration.rst b/doc/usage/configuration.rst index 7b7a0a1d41d..95a4b6267d6 100644 --- a/doc/usage/configuration.rst +++ b/doc/usage/configuration.rst @@ -419,6 +419,20 @@ General configuration .. versionadded:: 1.1 +.. confval:: nitpick_ignore_regex + + An extended version of :confv...
diff --git a/tests/roots/test-nitpicky-warnings/conf.py b/tests/roots/test-nitpicky-warnings/conf.py new file mode 100644 index 00000000000..2db221cc69f --- /dev/null +++ b/tests/roots/test-nitpicky-warnings/conf.py @@ -0,0 +1,1 @@ +nitpicky = True diff --git a/tests/roots/test-nitpicky-warnings/index.rst b/tests/roots...
2021-04-24T00:33:03
{}
{"doc/usage/configuration.rst": ".. highlight:: python\n\n.. _build-config:\n\n=============\nConfiguration\n=============\n\n.. module:: conf\n :synopsis: Build configuration file.\n\nThe :term:`configuration directory` must contain a file named :file:`conf.py`.\nThis file (containing Python code) is called the \"bu...
diff --git a/doc/usage/configuration.rst b/doc/usage/configuration.rst index 7b7a0a1d41d..95a4b6267d6 100644 --- a/doc/usage/configuration.rst +++ b/doc/usage/configuration.rst @@ -419,6 +419,20 @@ General configuration .. versionadded:: 1.1 +.. confval:: nitpick_ignore_regex + + An extended version of :confv...
{"sphinx/transforms/post_transforms/__init__.py": [{"type": "function", "name": "ReferencesResolver.warn_missing_reference.matches_ignore", "lines": [184, 189], "signature": "def matches_ignore(entry_type: str, entry_target: str) -> bool:", "doc": ""}]}
4.1
["tests/test_config.py::test_nitpick_ignore_regex1", "tests/test_config.py::test_nitpick_ignore_regex2", "tests/test_config.py::test_nitpick_ignore_regex_fullmatch"]
["tests/test_config.py::test_core_config", "tests/test_config.py::test_extension_values", "tests/test_config.py::test_overrides", "tests/test_config.py::test_overrides_boolean", "tests/test_config.py::test_errors_warnings", "tests/test_config.py::test_errors_if_setup_is_not_callable", "tests/test_config.py::test_needs_...
0ee0d8df00956cd07205207c5c1253c161687ba8
{"first_commit_time": 1619219600.0, "pr_title": "Ignore nitpick warnings with regular expressions using `nitpick_ignore_regex`", "pr_body": "Subject: Allow regex patterns in nitpick_ignore.\r\n\r\nEdit: this PR originally proposed adding glob-like pattern matching, but after some discussion, it was changed to use regex...
sphinx-doc/sphinx
9,154
https://github.com/sphinx-doc/sphinx/pull/9154
sphinx-doc__sphinx-9154
["8107"]
d656acaba3258fa6e9beb75e8409412315efb107
diff --git a/CHANGES b/CHANGES index 3a5750418b2..6be49a67bb2 100644 --- a/CHANGES +++ b/CHANGES @@ -13,6 +13,9 @@ Deprecated Features added -------------- +* #8107: autodoc: Add ``class-doc-from`` option to :rst:dir:`autoclass` + directive to control the content of the specific class like + :confval:`autoclass_c...
diff --git a/tests/test_ext_autodoc_autoclass.py b/tests/test_ext_autodoc_autoclass.py index d879f8e1491..096dc939738 100644 --- a/tests/test_ext_autodoc_autoclass.py +++ b/tests/test_ext_autodoc_autoclass.py @@ -264,6 +264,53 @@ def test_show_inheritance_for_subclass_of_generic_type(app): ] +@pytest.mark.sphi...
2021-05-01T09:13:47
{}
{"CHANGES": "Release 4.1.0 (in development)\n==============================\n\nDependencies\n------------\n\nIncompatible changes\n--------------------\n\nDeprecated\n----------\n\nFeatures added\n--------------\n\n* #9129: html search: Show search summaries when html_copy_source = False\n* #9097: Optimize the paralell...
diff --git a/CHANGES b/CHANGES index 3a5750418b2..6be49a67bb2 100644 --- a/CHANGES +++ b/CHANGES @@ -13,6 +13,9 @@ Deprecated Features added -------------- +* #8107: autodoc: Add ``class-doc-from`` option to :rst:dir:`autoclass` + directive to control the content of the specific class like + :confval:`autoclass_c...
{"sphinx/ext/autodoc/__init__.py": [{"type": "function", "name": "class_doc_from_option", "lines": [132, 137], "signature": "def class_doc_from_option(arg: Any) -> Optional[str]:", "doc": "Used to convert the :class-doc-from: option to autoclass directives."}]}
4.1
["tests/test_ext_autodoc_autoclass.py::test_class_doc_from_class", "tests/test_ext_autodoc_autoclass.py::test_class_doc_from_init", "tests/test_ext_autodoc_autoclass.py::test_class_doc_from_both"]
["tests/test_ext_autodoc_autoclass.py::test_classes", "tests/test_ext_autodoc_autoclass.py::test_instance_variable", "tests/test_ext_autodoc_autoclass.py::test_inherited_instance_variable", "tests/test_ext_autodoc_autoclass.py::test_uninitialized_attributes", "tests/test_ext_autodoc_autoclass.py::test_undocumented_unin...
0ee0d8df00956cd07205207c5c1253c161687ba8
{"first_commit_time": 1619848246.0, "pr_title": "Close #8107: autodoc: Add class-doc-from option to autoclass directive", "pr_body": "### Feature or Bugfix\r\n- Feature\r\n\r\n### Purpose\r\n- Add `class-doc-from` option to the `autoclass` directive to control\r\nthe content of the specific class. It takes `class`, `i...
sqlfluff/sqlfluff
2,369
https://github.com/sqlfluff/sqlfluff/pull/2369
sqlfluff__sqlfluff-2369
[]
d974cdaa1c49090fa1460c10d2b9d9ae69cd5fb8
diff --git a/src/sqlfluff/core/rules/functional/segments.py b/src/sqlfluff/core/rules/functional/segments.py index 0a68541bd13..6f19f3ff8ed 100644 --- a/src/sqlfluff/core/rules/functional/segments.py +++ b/src/sqlfluff/core/rules/functional/segments.py @@ -81,6 +81,14 @@ def raw_segments(self) -> "Segments": ...
diff --git a/test/core/rules/functional/test_segments.py b/test/core/rules/functional/test_segments.py index 1644e015fa9..ab7adf4cf20 100644 --- a/test/core/rules/functional/test_segments.py +++ b/test/core/rules/functional/test_segments.py @@ -1,6 +1,7 @@ """Tests for the segments module.""" import pytest +from sq...
2022-01-20T13:28:17
{"README.md": "<p align=\"center\">\n <a href=\"https://gmago-leway.github.io/fea-bench.github.io/\">\n <img src=\"assets/FEA-Bench-full.png\" style=\"height: 10em\" alt=\"fea-bench\" />\n </a>\n</p>\n\n<p align=\"center\">\n <em>A benchmark that aims to evaluate the capability of implementing new features in the...
{"src/sqlfluff/core/rules/functional/segments.py": "\"\"\"Surrogate class for working with Segment collections.\"\"\"\nfrom typing import Any, Callable, List, Optional, overload\n\nfrom sqlfluff.core.parser import BaseSegment\nfrom sqlfluff.core.templaters.base import TemplatedFile\nfrom sqlfluff.core.rules.functional....
{"src/sqlfluff/core/rules/functional/segments.py": [{"type": "function", "name": "Segments.recursive_crawl", "lines": [84, 90], "signature": "def recursive_crawl(self, *seg_type: str, recurse_into: bool = True) -> \"Segments\":", "doc": "Recursively crawl for segments of a given type."}]}
0.8
["test/core/rules/functional/test_segments.py::test_segments_recursive_crawl"]
["test/core/rules/functional/test_segments.py::test_segments_add[lhs0-rhs0-expected0]", "test/core/rules/functional/test_segments.py::test_segments_add[lhs1-rhs1-expected1]", "test/core/rules/functional/test_segments.py::test_segments_add[lhs2-rhs2-expected2]", "test/core/rules/functional/test_segments.py::test_segment...
a5c4eae4e3e419fe95460c9afd9cf39a35a470c4
{"first_commit_time": 1642685211.0, "pr_title": "Functional API: Segments.recursive_crawl", "pr_body": "<!--Firstly, thanks for adding this feature! Secondly, please check the key steps against the checklist below to make your contribution easy to merge.-->\n\n<!--Please give the Pull Request a meaningful title (includ...
sqlfluff/sqlfluff
3,937
https://github.com/sqlfluff/sqlfluff/pull/3937
sqlfluff__sqlfluff-3937
[]
f691f033ac90e760bb70f0f9d02c89a859565d6d
diff --git a/.gitignore b/.gitignore index 95882a5bcdc..9bc74ff9001 100644 --- a/.gitignore +++ b/.gitignore @@ -39,6 +39,9 @@ test-reports # Ignore dbt outputs from testing /target +# Ignore any timing outputs +/*.csv + # Ignore conda environment.yml contributors might be using and direnv config environment.yml ...
diff --git a/test/cli/commands_test.py b/test/cli/commands_test.py index b9630eaa11e..ba0effb615a 100644 --- a/test/cli/commands_test.py +++ b/test/cli/commands_test.py @@ -441,6 +441,8 @@ def test__cli__command_lint_stdin(command): "test/fixtures/cli/extra_config_tsql.sql", ], ),...
2022-10-08T18:54:38
{"README.md": "<p align=\"center\">\n <a href=\"https://gmago-leway.github.io/fea-bench.github.io/\">\n <img src=\"assets/FEA-Bench-full.png\" style=\"height: 10em\" alt=\"fea-bench\" />\n </a>\n</p>\n\n<p align=\"center\">\n <em>A benchmark that aims to evaluate the capability of implementing new features in the...
{".gitignore": "# Ignore IDE files\n.vscode\n.idea\n/.sqlfluff\n**/.DS_Store\n\n# Ignore Python cache and prebuilt things\n.cache\n__pycache__\n*.egg-info\n*.pyc\nbuild\n_build\ndist\n.pytest_cache\n\n# Ignore the Environment\nenv\n.tox\nvenv\n.venv\n.python-version\n\n# Ignore coverage reports\n.coverage\n.coverage.*\...
diff --git a/.gitignore b/.gitignore index 95882a5bcdc..9bc74ff9001 100644 --- a/.gitignore +++ b/.gitignore @@ -39,6 +39,9 @@ test-reports # Ignore dbt outputs from testing /target +# Ignore any timing outputs +/*.csv + # Ignore conda environment.yml contributors might be using and direnv config environment.yml ...
{"src/sqlfluff/core/linter/linting_result.py": [{"type": "function", "name": "LintingResult.persist_timing_records", "lines": [150, 190], "signature": "def persist_timing_records(self, filename):", "doc": "Persist the timing records as a csv to external analysis."}], "src/sqlfluff/core/parser/segments/base.py": [{"type...
1.3
["test/cli/commands_test.py::test__cli__command_lint_parse[command24]", "test/core/parser/segments_base_test.py::test__parser__base_segments_count_segments"]
["test/cli/commands_test.py::test__cli__command_directed", "test/cli/commands_test.py::test__cli__command_dialect", "test/cli/commands_test.py::test__cli__command_no_dialect", "test/cli/commands_test.py::test__cli__command_parse_error_dialect_explicit_warning", "test/cli/commands_test.py::test__cli__command_parse_error...
ada7967cd2fb98de054323dd8aad19e84b427c67
{"first_commit_time": 1665254018.0, "pr_title": "Enable dumping of performance information to csv.", "pr_body": "To enable a bit more introspection on performance information - this enables dumping performance information to an external csv file. I'd like to do some analysis on the results from our large project a litt...
sympy/sympy
12,417
https://github.com/sympy/sympy/pull/12417
sympy__sympy-12417
["12416"]
6dd369352b0bda17c2dfef5a8faf0bfb794982ec
diff --git a/sympy/vector/__init__.py b/sympy/vector/__init__.py index 8e484bf3a739..dfa5168cc802 100644 --- a/sympy/vector/__init__.py +++ b/sympy/vector/__init__.py @@ -8,7 +8,7 @@ from sympy.vector.functions import (express, matrix_to_vector, curl, divergence, gradient, ...
diff --git a/sympy/vector/tests/test_field_functions.py b/sympy/vector/tests/test_field_functions.py index 73946517324a..2d831cbdc489 100644 --- a/sympy/vector/tests/test_field_functions.py +++ b/sympy/vector/tests/test_field_functions.py @@ -7,7 +7,7 @@ from sympy import sin, cos from sympy.vector.functions import (...
2017-03-25T07:42:04
{}
{"sympy/vector/__init__.py": "from sympy.vector.vector import (Vector, VectorAdd, VectorMul,\n BaseVector, VectorZero)\nfrom sympy.vector.dyadic import (Dyadic, DyadicAdd, DyadicMul,\n BaseDyadic, DyadicZero)\nfrom sympy.vector.scalar import BaseScalar\nfr...
{"sympy/vector/functions.py": [{"type": "function", "name": "directional_derivative", "lines": [217, 249], "signature": "def directional_derivative(scalar, vect):", "doc": "Returns the directional derivative of a scalar field computed along a given vector\nin given coordinate system.\n\nParameters\n==========\n\nscalar...
1.0
["test_del_operator", "test_product_rules", "test_conservative", "test_solenoidal", "test_directional_derivative", "test_scalar_potential"]
[]
820363f5b17cbe5809ef0911ea539e135c179c62
{"first_commit_time": 1490427211.0, "pr_title": "Addition of Directional derivatives", "pr_body": "Fixes #12416 ", "pr_timeline": [{"time": 1490462550.0, "comment": "@jksuom , @asmeurer please review this PR . Thanks"}, {"time": 1490650509.0, "comment": "I have some doubts about your solution.\r\n \r\nI think that ve...
sympy/sympy
13,304
https://github.com/sympy/sympy/pull/13304
sympy__sympy-13304
[]
7e2f1b243e36ad0b5277b9b6f15cb79450c1f579
diff --git a/sympy/polys/polyclasses.py b/sympy/polys/polyclasses.py index bbf078f34249..c194d4eb7d19 100644 --- a/sympy/polys/polyclasses.py +++ b/sympy/polys/polyclasses.py @@ -114,6 +114,7 @@ def _perify_factors(per, result, include): from sympy.polys.sqfreetools import ( dup_gff_list, + dmp_norm, dm...
diff --git a/sympy/polys/tests/test_polytools.py b/sympy/polys/tests/test_polytools.py index 0af574396244..0b5a94267893 100644 --- a/sympy/polys/tests/test_polytools.py +++ b/sympy/polys/tests/test_polytools.py @@ -2211,6 +2211,12 @@ def test_gff(): raises(NotImplementedError, lambda: gff(f)) +def test_norm():...
2017-09-13T07:54:49
{}
{"sympy/polys/polyclasses.py": "\"\"\"OO layer for several polynomial representations. \"\"\"\n\nfrom __future__ import print_function, division\n\nfrom sympy.core.sympify import CantSympify\n\nfrom sympy.polys.polyutils import PicklableWithSlots\nfrom sympy.polys.polyerrors import CoercionFailed, NotReversible\n\nfrom...
{"sympy/polys/polyclasses.py": [{"type": "function", "name": "DMP.norm", "lines": [754, 757], "signature": "def norm(f):", "doc": "Computes ``Norm(f)``."}], "sympy/polys/polytools.py": [{"type": "function", "name": "Poly.norm", "lines": [3075, 3108], "signature": "def norm(f):", "doc": "Computes the product, ``Norm(f)`...
1.1
["test_norm"]
["test_Poly_from_dict", "test_Poly_from_list", "test_Poly_from_poly", "test_Poly_from_expr", "test_Poly__new__", "test_Poly__args", "test_Poly__gens", "test_Poly_zero", "test_Poly_one", "test_Poly__unify", "test_Poly_free_symbols", "test_PurePoly_free_symbols", "test_Poly__eq__", "test_PurePoly__eq__", "test_PurePoly_P...
ec9e3c0436fbff934fa84e22bf07f1b3ef5bfac3
{"first_commit_time": 1505035259.0, "pr_title": "polys: Norm of polynomial over a number field", "pr_body": "SymPy implements `sqf_norm`, the norm of a modified polynomial,\r\nfor the construction of primitive elements of number fields.\r\nIt is the same as `norm` if that is square-free but different\r\nin general. Thi...
sympy/sympy
13,345
https://github.com/sympy/sympy/pull/13345
sympy__sympy-13345
[]
19c75f32f62e1d8900520861261d5eccda243194
diff --git a/sympy/printing/repr.py b/sympy/printing/repr.py index 132fff96f4d5..fe69c43ee5a8 100644 --- a/sympy/printing/repr.py +++ b/sympy/printing/repr.py @@ -199,6 +199,23 @@ def _print_FracElement(self, frac): denom = self._print(denom_terms) return "%s(%s, %s, %s)" % (frac.__class__.__name__, s...
diff --git a/sympy/printing/tests/test_repr.py b/sympy/printing/tests/test_repr.py index add77864bf0d..3fbe95003df1 100644 --- a/sympy/printing/tests/test_repr.py +++ b/sympy/printing/tests/test_repr.py @@ -213,6 +213,22 @@ def test_FracElement(): F, x, y = field("x,y", ZZ) assert srepr((3*x**2*y + 1)/(x - y*...
2017-09-25T10:24:00
{}
{"sympy/printing/repr.py": "\"\"\"\nA Printer for generating executable code.\n\nThe most important function here is srepr that returns a string so that the\nrelation eval(srepr(expr))=expr holds in an appropriate environment.\n\"\"\"\n\nfrom __future__ import print_function, division\n\nfrom sympy.core.function import...
{"sympy/printing/repr.py": [{"type": "function", "name": "ReprPrinter._print_FractionField", "lines": [202, 205], "signature": "def _print_FractionField(self, domain):", "doc": ""}, {"type": "function", "name": "ReprPrinter._print_PolynomialRingBase", "lines": [207, 216], "signature": "def _print_PolynomialRingBase(sel...
1.1
["test_FractionField", "test_PolynomialRingBase"]
["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", "test_Dummy", "test_Dummy_assum...
ec9e3c0436fbff934fa84e22bf07f1b3ef5bfac3
{"first_commit_time": 1506236868.0, "pr_title": "srepr of polynomial rings and fraction fields", "pr_body": "The old polynomial ring currently prints in the same way as the\r\nnew one and its string representation only creates the new ring.\r\n```\r\n>>> A = ZZ.old_poly_ring(x)\r\n>>> sstr(A)\r\n'ZZ[x]'\r\n>>> srepr(A)...
sympy/sympy
14,171
https://github.com/sympy/sympy/pull/14171
sympy__sympy-14171
[]
2c0a3a103baa547de12e332382d44ee3733d485f
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...
2018-02-12T06:52:20
{}
{"sympy/physics/mechanics/functions.py": "from __future__ import print_function, division\n\nfrom sympy.utilities import dict_merge\nfrom sympy.utilities.iterables import iterable\nfrom sympy.physics.vector import (Dyadic, Vector, ReferenceFrame,\n Point, dynamicsymbols)\nfrom sympy.phy...
{"sympy/physics/mechanics/functions.py": [{"type": "function", "name": "gravity", "lines": [344, 382], "signature": "def gravity(acceleration, *bodies):", "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.p...
1.1
["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"]
[]
ec9e3c0436fbff934fa84e22bf07f1b3ef5bfac3
{"first_commit_time": 1518455675.0, "pr_title": "Gravity function", "pr_body": "<!-- Your title above should be a short description of what\r\nwas changed. Do not include the issue number in the title. -->\r\n\r\n#### References to other Issues or PRs\r\n<!-- If this pull request fixes an issue, write \"Fixes #NNNN\" i...
sympy/sympy
14,745
https://github.com/sympy/sympy/pull/14745
sympy__sympy-14745
[]
4526f0e02f7288d0e1214add48d21be346f3d28c
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...
2018-05-25T13:22:34
{}
{"sympy/discrete/__init__.py": "\"\"\"A module containing discrete functions.\n\nTransforms - fft, ifft, ntt, intt, fwht, ifwht, fzt, ifzt, fmt, ifmt\nConvolution - conv, conv_xor, conv_and, conv_or, conv_sub, conv_sup\nRecurrence Evaluation - reval_hcc\n\"\"\"\n\n\nfrom .transforms import (fft, ifft, ntt, intt)\n", "s...
{"sympy/discrete/convolution.py": [{"type": "function", "name": "convolution", "lines": [13, 76], "signature": "def convolution(a, b, **hints):", "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\...
1.1
["test_convolution", "test_cyclic_convolution", "test_convolution_fft"]
[]
ec9e3c0436fbff934fa84e22bf07f1b3ef5bfac3
{"first_commit_time": 1527253863.0, "pr_title": "Added convolution module", "pr_body": "#### Brief description of what is fixed or changed\r\nThe following changes will be covered in this PR:\r\n- [x] Add convolution module\r\n- [x] convolution_fft method\r\n- [x] convolution_ntt method\r\n- [x] convolution method (gen...
sympy/sympy
14,826
https://github.com/sympy/sympy/pull/14826
sympy__sympy-14826
[]
ec9e3c0436fbff934fa84e22bf07f1b3ef5bfac3
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(): ...
2018-06-22T15:01:20
{}
{"sympy/physics/continuum_mechanics/beam.py": "\"\"\"\nThis module can be used to solve 2D beam bending problems with\nsingularity functions in mechanics.\n\n\"\"\"\n\nfrom __future__ import print_function, division\n\nfrom sympy.core import S, Symbol, diff\nfrom sympy.solvers import linsolve\nfrom sympy.printing impor...
{"sympy/physics/continuum_mechanics/beam.py": [{"type": "function", "name": "Beam.max_shear_force", "lines": [748, 798], "signature": "def max_shear_force(self):", "doc": "Returns maximum Shear force and its coordinate\nin the Beam object."}, {"type": "function", "name": "Beam.max_bmoment", "lines": [834, 884], "signat...
1.1
["test_statically_indeterminate", "test_max_bmoment"]
["test_Beam", "test_composite_beam", "test_point_cflexure", "test_remove_load", "test_apply_support"]
ec9e3c0436fbff934fa84e22bf07f1b3ef5bfac3
{"first_commit_time": 1525189322.0, "pr_title": "Added support for statically indeterminate beams. Also added `max_shear_force`and `max_bmoment` methods.", "pr_body": "#### Brief description of what is fixed or changed\r\n`solve_for_reaction_loads` was updated to solve for statically indeterminate beams.\r\n`max_shear_...
sympy/sympy
14,853
https://github.com/sympy/sympy/pull/14853
sympy__sympy-14853
[]
267634a6e1de6835e5a5da047cadfdf2c2e97e1e
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...
2018-07-01T10:28:33
{}
{"sympy/discrete/__init__.py": "\"\"\"A module containing discrete functions.\n\nTransforms - fft, ifft, ntt, intt, fwht, ifwht, fzt, ifzt, fmt, ifmt\nConvolution - convolution, convolution_fft, convolution_ntt, convolution_fwht,\n convolution_subset, covering_product, intersecting_product\nRecurrence - linrec\n\"\"...
{"sympy/discrete/transforms.py": [{"type": "function", "name": "_mobius_transform", "lines": [331, 366], "signature": "def _mobius_transform(seq, sgn, subset):", "doc": "Utility function for performing Möbius Transform using\nYate's Dynamic Programming (DP)"}, {"type": "function", "name": "mobius_transform", "lines": [...
1.2
["test_fft_ifft", "test_ntt_intt", "test_fwht_ifwht"]
[]
b69d4c27f298766f1f9c5f6bb17dcf7ae71bb67b
{"first_commit_time": 1530280259.0, "pr_title": "Added M\u00f6bius transform to discrete module", "pr_body": "#### Brief description of what is fixed or changed\r\nM\u00f6bius transform is implemented using Yate's Dynamic Programming (DP) method.\r\nThe method `mobius_transform` takes `subset` as the argument, which sp...
sympy/sympy
14,928
https://github.com/sympy/sympy/pull/14928
sympy__sympy-14928
[]
e53b24ad345e11769dd1989e4873380c0f94b4e2
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...
2018-07-16T10:37:43
{}
{"sympy/discrete/__init__.py": "\"\"\"A module containing discrete functions.\n\nTransforms - fft, ifft, ntt, intt, fwht, ifwht,\n mobius_transform, inverse_mobius_transform\nConvolution - convolution, convolution_fft, convolution_ntt, convolution_fwht,\n convolution_subset\n\"\"\"\n\nfrom .transforms import (fft...
{"sympy/discrete/convolution.py": [{"type": "function", "name": "covering_product", "lines": [356, 417], "signature": "def covering_product(a, b):", "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 coverin...
1.2
["test_convolution", "test_cyclic_convolution", "test_convolution_fft", "test_convolution_ntt", "test_convolution_fwht", "test_convolution_subset"]
[]
b69d4c27f298766f1f9c5f6bb17dcf7ae71bb67b
{"first_commit_time": 1531737059.0, "pr_title": "Implement covering product in convolution module", "pr_body": "#### Brief description of what is fixed or changed\r\nUse M\u00f6bius Transform for calculating `covering_product` (returns list of sum of products of elements grouped by bitwise OR of the corresponding seque...
sympy/sympy
14,954
https://github.com/sympy/sympy/pull/14954
sympy__sympy-14954
[]
31cabef814fee7243cb292629fb8be5934408666
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...
2018-07-22T04:55:45
{}
{"sympy/discrete/__init__.py": "\"\"\"A module containing discrete functions.\n\nTransforms - fft, ifft, ntt, intt, fwht, ifwht,\n mobius_transform, inverse_mobius_transform\nConvolution - convolution, convolution_fft, convolution_ntt, convolution_fwht,\n convolution_subset, covering_product\n\"\"\"\n\nfrom .tran...
{"sympy/discrete/convolution.py": [{"type": "function", "name": "intersecting_product", "lines": [426, 487], "signature": "def intersecting_product(a, b):", "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\...
1.2
["test_convolution", "test_cyclic_convolution", "test_convolution_fft", "test_convolution_ntt", "test_convolution_fwht", "test_convolution_subset", "test_covering_product"]
[]
b69d4c27f298766f1f9c5f6bb17dcf7ae71bb67b
{"first_commit_time": 1532235020.0, "pr_title": "Implement intersecting product using M\u00f6bius transform", "pr_body": "#### Brief description of what is fixed or changed\r\nM\u00f6bius transform is used for calculating intersecting product (returns list of sum of products of elements grouped by bitwise AND of the co...
sympy/sympy
14,968
https://github.com/sympy/sympy/pull/14968
sympy__sympy-14968
[]
b5b4b50ced63173f6d95b874819fc3f969dcfbb3
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...
2018-07-24T17:38:33
{}
{"sympy/combinatorics/coset_table.py": "# -*- coding: utf-8 -*-\nfrom __future__ import print_function, division\n\nfrom sympy.printing.defaults import DefaultPrinting\n\nfrom itertools import chain, product\nfrom bisect import bisect_left\nfrom sympy.combinatorics.free_groups import free_group\n\n\n###################...
{"sympy/combinatorics/coset_table.py": [{"type": "function", "name": "CosetTable.coset_representative", "lines": [819, 846], "signature": "def coset_representative(self, coset):", "doc": "Compute the coset representative of a given coset.\n\nExamples\n========\n>>> from sympy.combinatorics.free_groups import free_group...
1.2
["test_fp_subgroup"]
["test_low_index_subgroups", "test_subgroup_presentations", "test_order"]
b69d4c27f298766f1f9c5f6bb17dcf7ae71bb67b
{"first_commit_time": 1532453780.0, "pr_title": "Compute map from subgroup to parent group", "pr_body": "<!-- Your title above should be a short description of what\r\nwas changed. Do not include the issue number in the title. -->\r\n\r\n#### Brief description of what is fixed or changed\r\n* Compute an injective homom...
sympy/sympy
15,247
https://github.com/sympy/sympy/pull/15247
sympy__sympy-15247
[]
a5f8d07d55219e577f671bbbd7408fa2a1e3cd93
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...
2018-09-15T12:08:11
{}
{"sympy/utilities/misc.py": "\"\"\"Miscellaneous stuff that doesn't really fit anywhere else.\"\"\"\n\nfrom __future__ import print_function, division\n\nimport sys\nimport os\nimport re as _re\nimport struct\nfrom textwrap import fill, dedent\nfrom sympy.core.compatibility import get_function_name, range\n\n\n\nclass ...
{"sympy/utilities/misc.py": [{"type": "function", "name": "ordinal", "lines": [426, 450], "signature": "def ordinal(num):", "doc": "Return ordinal number string of num, e.g. 1 becomes 1st.\n "}]}
1.4
["test_translate", "test_replace"]
[]
e941ad69638189ea42507331e417b88837357dec
{"first_commit_time": 1536789535.0, "pr_title": "ordinal(1)->1st: ordinal added to misc", "pr_body": "<!-- Your title above should be a short description of what\r\nwas changed. Do not include the issue number in the title. -->\r\n\r\n\r\n#### References to other Issues or PRs\r\n<!-- If this pull request fixes an issu...
sympy/sympy
15,333
https://github.com/sympy/sympy/pull/15333
sympy__sympy-15333
[]
e9391157d4d75e9369b323520bb1517be23d38a6
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...
2018-10-03T16:29:30
{}
{"sympy/tensor/array/dense_ndim_array.py": "from __future__ import print_function, division\nimport functools\n\nimport itertools\n\nfrom sympy.core.sympify import _sympify\n\nfrom sympy import Basic, Tuple, S\nfrom sympy.tensor.array.mutable_ndim_array import MutableNDimArray\nfrom sympy.tensor.array.ndim_array import...
{"sympy/tensor/array/ndim_array.py": [{"type": "function", "name": "NDimArray._slice_expand", "lines": [428, 432], "signature": "def _slice_expand(self, s, dim):", "doc": ""}, {"type": "function", "name": "NDimArray._get_slice_data_for_array_access", "lines": [434, 437], "signature": "def _get_slice_data_for_array_acce...
1.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", "test_op_priority", "test_...
e941ad69638189ea42507331e417b88837357dec
{"first_commit_time": 1538584100.0, "pr_title": "Added support for slice assignments to N-dimensional arrays", "pr_body": "<!-- Your title above should be a short description of what\r\nwas changed. Do not include the issue number in the title. -->\r\n\r\n#### References to other Issues or PRs\r\n<!-- If this pull requ...
sympy/sympy
15,661
https://github.com/sympy/sympy/pull/15661
sympy__sympy-15661
["15659"]
e3b2c4e302c05d4a438fdebb49d348010b71c882
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...
2018-12-17T21:49:18
{}
{"sympy/functions/elementary/exponential.py": "from __future__ import print_function, division\n\nfrom sympy.core import sympify\nfrom sympy.core.add import Add\nfrom sympy.core.function import Lambda, Function, ArgumentIndexError\nfrom sympy.core.cache import cacheit\nfrom sympy.core.numbers import Integer\nfrom sympy...
{"sympy/functions/elementary/exponential.py": [{"type": "function", "name": "exp._eval_rewrite_as_Pow", "lines": [470, 474], "signature": "def _eval_rewrite_as_Pow(self, arg, **kwargs):", "doc": ""}]}
1.4
["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_assumptions", "test_exp_AccumBounds", "...
e941ad69638189ea42507331e417b88837357dec
{"first_commit_time": 1545083010.0, "pr_title": "functions: Add a rewrite from exp to Pow", "pr_body": "#### References to other Issues or PRs\r\n\r\nFixes #15659 \r\n\r\n#### Brief description of what is fixed or changed\r\n\r\nThe added functionality `exp.rewrite(Pow)` is the inverse of the existing `Pow.rewrite(exp)...
sympy/sympy
15,693
https://github.com/sympy/sympy/pull/15693
sympy__sympy-15693
[]
cb8a524e930266fe2f4cda39d7d0b1523c4fa38b
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, ...
2018-12-25T15:59:18
{}
{"sympy/stats/__init__.py": "\"\"\"\nSymPy statistics module\n\nIntroduces a random variable type into the SymPy language.\n\nRandom variables may be declared using prebuilt functions such as\nNormal, Exponential, Coin, Die, etc... or built with functions like FiniteRV.\n\nQueries on random expressions can be made usi...
{"sympy/stats/rv_interface.py": [{"type": "function", "name": "entropy", "lines": [81, 121], "signature": "def entropy(expr, condition=None, **kwargs):", "doc": "Calculuates entropy of a probability distribution\n\nParameters\n==========\n\nexpression : the random expression whose entropy is to be calculated\ncondition...
1.4
["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", "test_Density", "test_NamedArgsMixin"...
[]
e941ad69638189ea42507331e417b88837357dec
{"first_commit_time": 1545752500.0, "pr_title": "Added entropy to stats module", "pr_body": "<!-- Your title above should be a short description of what\r\nwas changed. Do not include the issue number in the title. -->\r\n\r\n#### References\r\nThe following papers and links were used and will be used to make the neces...
sympy/sympy
15,825
https://github.com/sympy/sympy/pull/15825
sympy__sympy-15825
[]
de3c43c77670a1430756e66d2d70975ee9c6affa
diff --git a/sympy/crypto/__init__.py b/sympy/crypto/__init__.py index 757b33ab73b2..58ffb98e59e0 100644 --- a/sympy/crypto/__init__.py +++ b/sympy/crypto/__init__.py @@ -11,4 +11,4 @@ encipher_elgamal, dh_private_key, dh_public_key, dh_shared_key, padded_key, encipher_bifid, decipher_bifid, bifid_squ...
diff --git a/sympy/crypto/tests/test_crypto.py b/sympy/crypto/tests/test_crypto.py index 80a0946f3670..24fb8a101d1e 100644 --- a/sympy/crypto/tests/test_crypto.py +++ b/sympy/crypto/tests/test_crypto.py @@ -13,7 +13,8 @@ encipher_elgamal, decipher_elgamal, dh_private_key, dh_public_key, dh_shared_key, dec...
2019-01-22T15:38:51
{}
{"sympy/crypto/__init__.py": "from sympy.crypto.crypto import (cycle_list,\n encipher_shift, encipher_affine, encipher_substitution,\n check_and_join, encipher_vigenere, decipher_vigenere, bifid5_square,\n bifid6_square, encipher_hill, decipher_hill,\n encipher_bifid5, encipher_bifid6, decip...
{"sympy/crypto/crypto.py": [{"type": "function", "name": "bg_private_key", "lines": [2252, 2290], "signature": "def bg_private_key(p, q):", "doc": "Check if p and q can be used as private keys for\nthe Blum–Goldwasser cryptosystem.\n\nThe three necessary checks for p and q to pass\nso that they can be used as private k...
1.4
["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_encipher_bifid6", "test_deci...
[]
e941ad69638189ea42507331e417b88837357dec
{"first_commit_time": 1548171276.0, "pr_title": "Added Blum Goldwasser cryptosystem", "pr_body": "<!-- Your title above should be a short description of what\r\nwas changed. Do not include the issue number in the title. -->\r\n\r\n#### References to other Issues or PRs\r\nhttps://en.wikipedia.org/wiki/Blum%E2%80%93Gold...
sympy/sympy
16,142
https://github.com/sympy/sympy/pull/16142
sympy__sympy-16142
[]
8d8addc912dcef24e759ff8c62ff197cb7052931
diff --git a/sympy/ntheory/__init__.py b/sympy/ntheory/__init__.py index 6d7ca7de9a2a..92c75d343860 100644 --- a/sympy/ntheory/__init__.py +++ b/sympy/ntheory/__init__.py @@ -9,7 +9,7 @@ pollard_pm1, pollard_rho, primefactors, totient, trailing, divisor_count, \ divisor_sigma, factorrat, reduced_totient, prim...
diff --git a/sympy/ntheory/tests/test_factor_.py b/sympy/ntheory/tests/test_factor_.py index 55e6d207cb89..4c48c4d8d5ab 100644 --- a/sympy/ntheory/tests/test_factor_.py +++ b/sympy/ntheory/tests/test_factor_.py @@ -14,7 +14,7 @@ from sympy.ntheory.factor_ import (smoothness, smoothness_p, antidivisors, antidiviso...
2019-03-02T15:38:24
{}
{"sympy/ntheory/__init__.py": "\"\"\"\nNumber theory module (primes, etc)\n\"\"\"\n\nfrom .generate import nextprime, prevprime, prime, primepi, primerange, \\\n randprime, Sieve, sieve, primorial, cycle_length, composite, compositepi\nfrom .primetest import isprime\nfrom .factor_ import divisors, factorint, multipl...
{"sympy/ntheory/factor_.py": [{"type": "function", "name": "is_amicable", "lines": [2206, 2230], "signature": "def is_amicable(m, n):", "doc": "Returns True if the numbers `m` and `n` are \"amicable\", else False.\n\nAmicable numbers are two different numbers so related that the sum\nof the proper divisors of each is e...
1.4
["test_trailing_bitcount", "test_multiplicity", "test_perfect_power", "test_factorint", "test_divisors_and_divisor_count", "test_udivisors_and_udivisor_count", "test_issue_6981", "test_totient", "test_reduced_totient", "test_divisor_sigma", "test_udivisor_sigma", "test_issue_4356", "test_divisors", "test_divisor_count"...
[]
e941ad69638189ea42507331e417b88837357dec
{"first_commit_time": 1551539887.0, "pr_title": "Added Functions for Amicable Number", "pr_body": "Amicable numbers are two different numbers so related that the sum of the proper divisors of each is equal to the other number. A proper divisor of a number is a positive factor of that number other than the number itself...
sympy/sympy
16,248
https://github.com/sympy/sympy/pull/16248
sympy__sympy-16248
[]
35b7b87c03f8cbbd7d185e55af8170702eb861af
diff --git a/sympy/combinatorics/perm_groups.py b/sympy/combinatorics/perm_groups.py index b9aebfb6f47b..38f2a3130ecd 100644 --- a/sympy/combinatorics/perm_groups.py +++ b/sympy/combinatorics/perm_groups.py @@ -1678,6 +1678,31 @@ def is_abelian(self): return False return True + def is...
diff --git a/sympy/combinatorics/tests/test_perm_groups.py b/sympy/combinatorics/tests/test_perm_groups.py index 64dd4d299d11..0c03f4a5741c 100644 --- a/sympy/combinatorics/tests/test_perm_groups.py +++ b/sympy/combinatorics/tests/test_perm_groups.py @@ -888,3 +888,34 @@ def _strong_test(P): c = Permutation(4,5) ...
2019-03-13T16:47:06
{}
{"sympy/combinatorics/perm_groups.py": "from __future__ import print_function, division\n\nfrom random import randrange, choice\nfrom math import log\n\nfrom sympy.combinatorics import Permutation\nfrom sympy.combinatorics.permutations import (_af_commutes_with, _af_invert,\n _af_rmul, _af_rmuln, _af_pow, Cycle)\nfr...
{"sympy/combinatorics/perm_groups.py": [{"type": "function", "name": "PermutationGroup.is_elementary", "lines": [1681, 1704], "signature": "def is_elementary(self, p):", "doc": "Return ``True`` if the group is elementary abelian. An elementary\nabelian group is a finite abelian group, where every nontrivial\nelement ha...
1.4
["test_polycyclic"]
["test_has", "test_generate", "test_order", "test_equality", "test_stabilizer", "test_center", "test_centralizer", "test_coset_rank", "test_coset_factor", "test_orbits", "test_is_normal", "test_eq", "test_derived_subgroup", "test_is_solvable", "test_rubik1", "test_direct_product", "test_orbit_rep", "test_schreier_vecto...
e941ad69638189ea42507331e417b88837357dec
{"first_commit_time": 1552494857.0, "pr_title": "Add Elementary and Polycyclic groups in Permutation groups", "pr_body": "<!-- Your title above should be a short description of what\r\nwas changed. Do not include the issue number in the title. -->\r\n\r\n<!-- If this pull request fixes an issue, write \"Fixes #NNNN\" i...
sympy/sympy
16,253
https://github.com/sympy/sympy/pull/16253
sympy__sympy-16253
[]
93a65b9bb8a615906e73d5885ff03076bcabc555
diff --git a/sympy/utilities/misc.py b/sympy/utilities/misc.py index 89b3ec95adf9..af19d67f3bdf 100644 --- a/sympy/utilities/misc.py +++ b/sympy/utilities/misc.py @@ -7,7 +7,8 @@ import re as _re import struct from textwrap import fill, dedent -from sympy.core.compatibility import get_function_name, range, as_int +f...
diff --git a/sympy/utilities/tests/test_misc.py b/sympy/utilities/tests/test_misc.py index 63d2203820ab..3eae4cdeb0a2 100644 --- a/sympy/utilities/tests/test_misc.py +++ b/sympy/utilities/tests/test_misc.py @@ -1,5 +1,6 @@ +from textwrap import dedent from sympy.core.compatibility import range, unichr -from sympy.util...
2019-03-14T05:24:14
{}
{"sympy/utilities/misc.py": "\"\"\"Miscellaneous stuff that doesn't really fit anywhere else.\"\"\"\n\nfrom __future__ import print_function, division\n\nimport sys\nimport os\nimport re as _re\nimport struct\nfrom textwrap import fill, dedent\nfrom sympy.core.compatibility import get_function_name, range, as_int\n\n\n...
{"sympy/utilities/misc.py": [{"type": "function", "name": "strlines", "lines": [37, 86], "signature": "def strlines(s, c=64, short=False):", "doc": "Return a cut-and-pastable string that, when printed, is\nequivalent to the input. The lines will be surrounded by\nparentheses and no line will be longer than c (default ...
1.4
["test_translate", "test_replace", "test_ordinal", "test_rawlines"]
[]
e941ad69638189ea42507331e417b88837357dec
{"first_commit_time": 1552533830.0, "pr_title": "misc: add strlines", "pr_body": "When wanting to test the output that is a long string and needing to keep lines under 72 characters, it is a bit tedious to split the line and add the quotes. `strlines` can help in the process. It will use rawlines if\r\nnecessary, too.\...
sympy/sympy
16,423
https://github.com/sympy/sympy/pull/16423
sympy__sympy-16423
[]
815be53c35580e119f864466095fb1d7ecd65f4f
diff --git a/sympy/physics/quantum/commutator.py b/sympy/physics/quantum/commutator.py index 487dc923e9f5..94cd53a1f245 100644 --- a/sympy/physics/quantum/commutator.py +++ b/sympy/physics/quantum/commutator.py @@ -2,7 +2,7 @@ from __future__ import print_function, division -from sympy import S, Expr, Mul, Add +fr...
diff --git a/sympy/physics/quantum/tests/test_commutator.py b/sympy/physics/quantum/tests/test_commutator.py index 021698740e04..a8aa1589b753 100644 --- a/sympy/physics/quantum/tests/test_commutator.py +++ b/sympy/physics/quantum/tests/test_commutator.py @@ -6,6 +6,7 @@ a, b, c = symbols('a,b,c') +n = symbols('n',...
2019-03-24T15:14:21
{}
{"sympy/physics/quantum/commutator.py": "\"\"\"The commutator: [A,B] = A*B - B*A.\"\"\"\n\nfrom __future__ import print_function, division\n\nfrom sympy import S, Expr, Mul, Add\nfrom sympy.printing.pretty.stringpict import prettyForm\n\nfrom sympy.physics.quantum.dagger import Dagger\nfrom sympy.physics.quantum.operat...
{"sympy/physics/quantum/commutator.py": [{"type": "function", "name": "Commutator._expand_pow", "lines": [120, 134], "signature": "def _expand_pow(self, A, B, sign):", "doc": ""}]}
1.5
["test_commutator_identities"]
["test_commutator", "test_commutator_dagger"]
c72f122f67553e1af930bac6c35732d2a0bbb776
{"first_commit_time": 1553440006.0, "pr_title": "Handle Pow in Commutator expansion.", "pr_body": "#### Brief description of what is fixed or changed\r\nHandle expansion of commutators like\r\n```\r\n[A**2, C] = [A*A, C] -> A*[A, C] + [A, C]*A\r\n```\r\nbut for arbitrary integer exponent.\r\n\r\n#### Release Notes\r\n\...
sympy/sympy
16,522
https://github.com/sympy/sympy/pull/16522
sympy__sympy-16522
[]
fb98dbb5a50dc13489b365ea6558e1efc5e62377
diff --git a/sympy/combinatorics/fp_groups.py b/sympy/combinatorics/fp_groups.py index 8540e328057c..a3e9de25d22e 100644 --- a/sympy/combinatorics/fp_groups.py +++ b/sympy/combinatorics/fp_groups.py @@ -1,6 +1,7 @@ """Finitely Presented Groups and its algorithms. """ from __future__ import print_function, division ...
diff --git a/sympy/combinatorics/tests/test_fp_groups.py b/sympy/combinatorics/tests/test_fp_groups.py index b588e229b072..36f0428922da 100644 --- a/sympy/combinatorics/tests/test_fp_groups.py +++ b/sympy/combinatorics/tests/test_fp_groups.py @@ -225,8 +225,19 @@ def test_permutation_methods(): S = FpSubgroup(G, G...
2019-03-31T17:55:05
{}
{"sympy/combinatorics/fp_groups.py": "\"\"\"Finitely Presented Groups and its algorithms. \"\"\"\n\nfrom __future__ import print_function, division\nfrom sympy.combinatorics.free_groups import (FreeGroup, FreeGroupElement,\n free_group)\nfrom sympy.combinatorics.rewritings...
{"sympy/combinatorics/fp_groups.py": [{"type": "function", "name": "FpGroup.is_cyclic", "lines": [516, 528], "signature": "def is_cyclic(self):", "doc": "Return ``True`` if group is Cyclic."}], "sympy/combinatorics/perm_groups.py": [{"type": "function", "name": "PermutationGroup.index", "lines": [2657, 2675], "signatur...
1.5
["test_index"]
["test_low_index_subgroups", "test_subgroup_presentations", "test_fp_subgroup", "test_permutation_methods", "test_simplify_presentation", "test_has", "test_generate", "test_order", "test_equality", "test_stabilizer", "test_center", "test_centralizer", "test_coset_rank", "test_coset_factor", "test_orbits", "test_is_norm...
c72f122f67553e1af930bac6c35732d2a0bbb776
{"first_commit_time": 1554054402.0, "pr_title": "Added function to check if a group is Cyclic or not", "pr_body": "<!-- Your title above should be a short description of what\r\nwas changed. Do not include the issue number in the title. -->\r\n\r\n<!-- If this pull request fixes an issue, write \"Fixes #NNNN\" in that ...
sympy/sympy
16,685
https://github.com/sympy/sympy/pull/16685
sympy__sympy-16685
[]
d10b94aa5a5863957c63eef687cee2a9d27bf99a
diff --git a/sympy/matrices/__init__.py b/sympy/matrices/__init__.py index fe3ec2b31615..9eccd3757051 100644 --- a/sympy/matrices/__init__.py +++ b/sympy/matrices/__init__.py @@ -27,4 +27,4 @@ Transpose, ZeroMatrix, OneMatrix, blockcut, block_collapse, matrix_symbols, Adjoint, hadamard_product, HadamardProduc...
diff --git a/sympy/matrices/expressions/tests/test_hadamard.py b/sympy/matrices/expressions/tests/test_hadamard.py index d38e36aaa7ad..9864040fd29b 100644 --- a/sympy/matrices/expressions/tests/test_hadamard.py +++ b/sympy/matrices/expressions/tests/test_hadamard.py @@ -1,4 +1,4 @@ -from sympy import Identity +from sym...
2019-04-19T10:19:37
{}
{"sympy/matrices/__init__.py": "\"\"\"A module that handles matrices.\n\nIncludes functions for fast creating matrices like zero, one/eye, random\nmatrix, etc.\n\"\"\"\nfrom .common import ShapeError, NonSquareMatrixError\nfrom .dense import (\n GramSchmidt, casoratian, diag, eye, hessian, jordan_cell,\n list2num...
{"sympy/matrices/expressions/hadamard.py": [{"type": "function", "name": "canonicalize", "lines": [138, 269], "signature": "def canonicalize(x):", "doc": "Canonicalize the Hadamard product ``x`` with mathematical properties.\n\nExamples\n========\n\n>>> from sympy.matrices.expressions import MatrixSymbol, HadamardProdu...
1.5
["test_canonicalize"]
["test_HadamardProduct", "test_HadamardProduct_isnt_commutative", "test_mixed_indexing", "test_hadamard"]
c72f122f67553e1af930bac6c35732d2a0bbb776
{"first_commit_time": 1555662957.0, "pr_title": "Canonicalization of Hadamard Product", "pr_body": "<!-- Your title above should be a short description of what\r\nwas changed. Do not include the issue number in the title. -->\r\n\r\n#### References to other Issues or PRs\r\n<!-- If this pull request fixes an issue, wri...
sympy/sympy
17,077
https://github.com/sympy/sympy/pull/17077
sympy__sympy-17077
[]
e6a5b6cb700f9aee594d80bea058ca19a95551cc
diff --git a/sympy/stats/__init__.py b/sympy/stats/__init__.py index 5364fce2185d..635094919db9 100644 --- a/sympy/stats/__init__.py +++ b/sympy/stats/__init__.py @@ -42,7 +42,7 @@ from . import rv_interface from .rv_interface import ( cdf, characteristic_function, covariance, density, dependent, E, given, indep...
diff --git a/sympy/stats/tests/test_rv.py b/sympy/stats/tests/test_rv.py index 417fe79b5c6b..2f4a53fe3464 100644 --- a/sympy/stats/tests/test_rv.py +++ b/sympy/stats/tests/test_rv.py @@ -1,11 +1,11 @@ -from sympy import (S, Symbol, Interval, +from sympy import (S, Symbol, symbols, Interval, FallingFactorial, ...
2019-06-23T18:49:41
{}
{"sympy/stats/__init__.py": "\"\"\"\nSymPy statistics module\n\nIntroduces a random variable type into the SymPy language.\n\nRandom variables may be declared using prebuilt functions such as\nNormal, Exponential, Coin, Die, etc... or built with functions like FiniteRV.\n\nQueries on random expressions can be made usi...
{"sympy/stats/rv_interface.py": [{"type": "function", "name": "factorial_moment", "lines": [302, 338], "signature": "def factorial_moment(X, n, condition=None, **kwargs):", "doc": "The factorial moment is a mathematical quantity defined as the expectation\nor average of the falling factorial of a random variable.\n\nfa...
1.5
["test_where", "test_random_symbols", "test_pspace", "test_rs_swap", "test_RandomSymbol", "test_RandomSymbol_diff", "test_random_symbol_no_pspace", "test_overlap", "test_IndependentProductPSpace", "test_E", "test_H", "test_Sample", "test_given", "test_factorial_moment", "test_dependence", "test_dependent_finite", "test...
[]
c72f122f67553e1af930bac6c35732d2a0bbb776
{"first_commit_time": 1561315596.0, "pr_title": "Added Factorial Moment", "pr_body": "<!-- Your title above should be a short description of what\r\nwas changed. Do not include the issue number in the title. -->\r\n\r\n#### References to other Issues or PRs\r\n<!-- If this pull request fixes an issue, write \"Fixes #NN...
sympy/sympy
17,153
https://github.com/sympy/sympy/pull/17153
sympy__sympy-17153
[]
40da07b3a8ca3b315aaf25ec4ac21dfe4364a097
diff --git a/sympy/geometry/ellipse.py b/sympy/geometry/ellipse.py index 699064603461..2d56c2ad53bf 100644 --- a/sympy/geometry/ellipse.py +++ b/sympy/geometry/ellipse.py @@ -1336,6 +1336,7 @@ def vradius(self): """ return self.args[2] + def second_moment_of_area(self, point=None): """...
diff --git a/sympy/geometry/tests/test_ellipse.py b/sympy/geometry/tests/test_ellipse.py index 1c3399136642..93b19ba629ca 100644 --- a/sympy/geometry/tests/test_ellipse.py +++ b/sympy/geometry/tests/test_ellipse.py @@ -1,4 +1,4 @@ -from sympy import Rational, S, Symbol, symbols, pi, sqrt, oo, Point2D, Segment2D, I +fro...
2019-07-05T04:58:35
{}
{"sympy/geometry/ellipse.py": "\"\"\"Elliptical geometrical entities.\n\nContains\n* Ellipse\n* Circle\n\n\"\"\"\n\nfrom __future__ import division, print_function\n\nfrom sympy import Expr, Eq\nfrom sympy.core import S, pi, sympify\nfrom sympy.core.evaluate import global_evaluate\nfrom sympy.core.logic import fuzzy_bo...
{"sympy/geometry/ellipse.py": [{"type": "function", "name": "Ellipse.polar_second_moment_of_area", "lines": [1389, 1419], "signature": "def polar_second_moment_of_area(self):", "doc": "Returns the polar second moment of area of an Ellipse\n\nIt is a constituent of the second moment of area, linked through\nthe perpendi...
1.5
["test_section_modulus_and_polar_second_moment_of_area", "test_second_moment_of_area", "test_first_moment"]
["test_ellipse_equation_using_slope", "test_object_from_equation", "test_construction", "test_ellipse_random_point", "test_repr", "test_transform", "test_bounds", "test_reflect", "test_is_tangent", "test_parameter_value", "test_circumference", "test_issue_15259", "test_issue_15797_equals", "test_auxiliary_circle", "tes...
c72f122f67553e1af930bac6c35732d2a0bbb776
{"first_commit_time": 1562301557.0, "pr_title": "Added functionality to determine polar second moment of area and section modulus of a polygon", "pr_body": "[Polar modulus](https://en.wikipedia.org/wiki/Polar_moment_of_inertia) and [section modulus](https://en.wikipedia.org/wiki/Section_modulus) are properties of a pol...
sympy/sympy
17,472
https://github.com/sympy/sympy/pull/17472
sympy__sympy-17472
[]
261c6c3f33955aaa3e13b8c9607dd80bf4021268
diff --git a/sympy/functions/elementary/complexes.py b/sympy/functions/elementary/complexes.py index abfeffa76d1b..b91aa60d7ea5 100644 --- a/sympy/functions/elementary/complexes.py +++ b/sympy/functions/elementary/complexes.py @@ -628,6 +628,9 @@ def _eval_rewrite_as_Piecewise(self, arg, **kwargs): def _eval_rewri...
diff --git a/sympy/functions/elementary/tests/test_complexes.py b/sympy/functions/elementary/tests/test_complexes.py index 294a01910a66..00876965708f 100644 --- a/sympy/functions/elementary/tests/test_complexes.py +++ b/sympy/functions/elementary/tests/test_complexes.py @@ -478,6 +478,14 @@ def test_Abs_rewrite(): ...
2019-08-21T10:18:36
{}
{"sympy/functions/elementary/complexes.py": "from __future__ import print_function, division\n\nfrom sympy.core import S, Add, Mul, sympify, Symbol, Dummy, Basic\nfrom sympy.core.expr import Expr\nfrom sympy.core.exprtools import factor_terms\nfrom sympy.core.function import (Function, Derivative, ArgumentIndexError,\n...
{"sympy/functions/elementary/complexes.py": [{"type": "function", "name": "Abs._eval_rewrite_as_conjugate", "lines": [631, 632], "signature": "def _eval_rewrite_as_conjugate(self, arg, **kwargs):", "doc": ""}]}
1.5
["test_Abs_rewrite"]
["test_re", "test_im", "test_sign", "test_as_real_imag", "test_Abs", "test_Abs_real", "test_Abs_properties", "test_abs", "test_arg", "test_arg_rewrite", "test_adjoint", "test_conjugate", "test_conjugate_transpose", "test_transpose", "test_polarify", "test_unpolarify", "test_issue_4035", "test_issue_3206", "test_issue_4...
c72f122f67553e1af930bac6c35732d2a0bbb776
{"first_commit_time": 1566381341.0, "pr_title": "Rewrite Abs as conjugate", "pr_body": "<!-- Your title above should be a short description of what\r\nwas changed. Do not include the issue number in the title. -->\r\n\r\n#### References to other Issues or PRs\r\n<!-- If this pull request fixes an issue, write \"Fixes #...
sympy/sympy
17,617
https://github.com/sympy/sympy/pull/17617
sympy__sympy-17617
["15534"]
def1c20c221f0bdf7feaaac7b4cd54a42bf57db7
diff --git a/doc/src/modules/crypto.rst b/doc/src/modules/crypto.rst index 14aabee76638..43a916b64797 100644 --- a/doc/src/modules/crypto.rst +++ b/doc/src/modules/crypto.rst @@ -142,3 +142,7 @@ substitutions at different times in the message. .. autofunction:: encipher_gm .. autofunction:: decipher_gm + +.. autofu...
diff --git a/sympy/crypto/tests/test_crypto.py b/sympy/crypto/tests/test_crypto.py index 0ada73f7e513..0711874c361b 100644 --- a/sympy/crypto/tests/test_crypto.py +++ b/sympy/crypto/tests/test_crypto.py @@ -15,7 +15,8 @@ decipher_bifid, bifid_square, padded_key, uniq, decipher_gm, encipher_gm, gm_public_k...
2019-09-16T17:49:23
{}
{"doc/src/modules/crypto.rst": "============\nCryptography\n============\n\n.. warning::\n\n This module is intended for educational purposes only. Do not use the\n functions in this module for real cryptographic applications. If you wish\n to encrypt real data, we recommend using something like the `cryptography...
diff --git a/doc/src/modules/crypto.rst b/doc/src/modules/crypto.rst index 14aabee76638..43a916b64797 100644 --- a/doc/src/modules/crypto.rst +++ b/doc/src/modules/crypto.rst @@ -142,3 +142,7 @@ substitutions at different times in the message. .. autofunction:: encipher_gm .. autofunction:: decipher_gm + +.. autofu...
{"sympy/crypto/crypto.py": [{"type": "function", "name": "encipher_railfence", "lines": [3078, 3108], "signature": "def encipher_railfence(message,rails):", "doc": "Performs Railfence Encryption on plaintext and returns ciphertext\n\nExamples\n========\n\n>>> from sympy.crypto.crypto import encipher_railfence\n>>> mess...
1.5
["test_encipher_railfence", "test_decipher_railfence", "test_cycle_list", "test_encipher_shift", "test_encipher_rot13", "test_encipher_affine", "test_encipher_atbash", "test_encipher_substitution", "test_check_and_join", "test_encipher_vigenere", "test_decipher_vigenere", "test_encipher_hill", "test_decipher_hill", "te...
[]
c72f122f67553e1af930bac6c35732d2a0bbb776
{"first_commit_time": 1542547676.0, "pr_title": "Added Rail Fence Cipher", "pr_body": "<!-- Your title above should be a short description of what\r\nwas changed. Do not include the issue number in the title. -->\r\n\r\n#### References to other Issues or PRs\r\n<!-- If this pull request fixes an issue, write \"Fixes #N...
sympy/sympy
17,806
https://github.com/sympy/sympy/pull/17806
sympy__sympy-17806
["12136"]
d85c30ef80cb6a4b9c53250bf4f549c8759b1141
diff --git a/sympy/functions/special/elliptic_integrals.py b/sympy/functions/special/elliptic_integrals.py index adee570a6cf3..d713a2feb841 100644 --- a/sympy/functions/special/elliptic_integrals.py +++ b/sympy/functions/special/elliptic_integrals.py @@ -94,6 +94,12 @@ def _eval_is_zero(self): if m.is_infinite...
diff --git a/sympy/functions/special/tests/test_elliptic_integrals.py b/sympy/functions/special/tests/test_elliptic_integrals.py index 98626d47ccd0..d9bb8261100d 100644 --- a/sympy/functions/special/tests/test_elliptic_integrals.py +++ b/sympy/functions/special/tests/test_elliptic_integrals.py @@ -1,5 +1,5 @@ from sym...
2019-10-27T05:32:54
{}
{"sympy/functions/special/elliptic_integrals.py": "\"\"\" Elliptic integrals. \"\"\"\n\nfrom __future__ import print_function, division\n\nfrom sympy.core import S, pi, I, Rational\nfrom sympy.core.function import Function, ArgumentIndexError\nfrom sympy.functions.elementary.complexes import sign\nfrom sympy.functions....
{"sympy/functions/special/elliptic_integrals.py": [{"type": "function", "name": "elliptic_k._eval_rewrite_as_Integral", "lines": [97, 101], "signature": "def _eval_rewrite_as_Integral(self, *args):", "doc": ""}, {"type": "function", "name": "elliptic_f._eval_rewrite_as_Integral", "lines": [176, 180], "signature": "def ...
1.5
["test_K", "test_F", "test_E"]
[]
c72f122f67553e1af930bac6c35732d2a0bbb776
{"first_commit_time": 1486491569.0, "pr_title": "Added `rewrite(Integral)` to elliptic_integrals", "pr_body": "<!-- Your title above should be a short description of what\r\nwas changed. Do not include the issue number in the title. -->\r\n\r\n#### References to other Issues or PRs\r\n<!-- If this pull request fixes an...
sympy/sympy
17,974
https://github.com/sympy/sympy/pull/17974
sympy__sympy-17974
[]
029936987c7b35fcc6b347b580d4c154792344e7
diff --git a/sympy/polys/multivariate_resultants.py b/sympy/polys/multivariate_resultants.py index 92eac7292736..05c5e562c5b3 100644 --- a/sympy/polys/multivariate_resultants.py +++ b/sympy/polys/multivariate_resultants.py @@ -10,7 +10,7 @@ """ from sympy import IndexedBase, Matrix, Mul, Poly -from sympy import rem...
diff --git a/sympy/polys/tests/test_multivariate_resultants.py b/sympy/polys/tests/test_multivariate_resultants.py index b6b838b10128..2b7a15edd254 100644 --- a/sympy/polys/tests/test_multivariate_resultants.py +++ b/sympy/polys/tests/test_multivariate_resultants.py @@ -54,6 +54,20 @@ def test_get_max_degrees(): ...
2019-11-27T16:05:29
{}
{"sympy/polys/multivariate_resultants.py": "\"\"\"\nThis module contains functions for two multivariate resultants. These\nare:\n\n- Dixon's resultant.\n- Macaulay's resultant.\n\nMultivariate resultants are used to identify whether a multivariate\nsystem has common roots. That is when the resultant is equal to zero.\n...
{"sympy/polys/multivariate_resultants.py": [{"type": "function", "name": "DixonResultant.KSY_precondition", "lines": [188, 213], "signature": "def KSY_precondition(self, matrix):", "doc": "Test for the validity of the Kapur-Saxena-Yang precondition.\n\nThe precondition requires that the column corresponding to the\nmon...
1.6
["test_KSY_precondition", "test_delete_zero_rows_and_columns", "test_product_leading_entries", "test_get_KSY_Dixon_resultant_example_one", "test_get_KSY_Dixon_resultant_example_two"]
["test_dixon_resultant_init", "test_get_dixon_polynomial_numerical", "test_get_max_degrees", "test_get_dixon_matrix", "test_get_dixon_matrix_example_two", "test_macaulay_resultant_init", "test_get_degree_m", "test_get_size", "test_macaulay_example_one"]
6daf556517f9fa61a7805fe93d8a366688781617
{"first_commit_time": 1574868308.0, "pr_title": "polys: Iplemented the Kapur-Saxena-Yang approach to Dixon's resultant", "pr_body": "Iplemented the Kapur-Saxena-Yang approach to Dixon's resultant\r\n\r\n<!-- Your title above should be a short description of what\r\nwas changed. Do not include the issue number in the ti...
sympy/sympy
18,085
https://github.com/sympy/sympy/pull/18085
sympy__sympy-18085
["15927"]
9da013ad0ddc3cd96fe505f2e47c63e372040916
diff --git a/doc/src/modules/ntheory.rst b/doc/src/modules/ntheory.rst index 68994cdbb647..51654726a16e 100644 --- a/doc/src/modules/ntheory.rst +++ b/doc/src/modules/ntheory.rst @@ -56,8 +56,12 @@ Ntheory Functions Reference .. autofunction:: divisors +.. autofunction:: proper_divisors + .. autofunction:: diviso...
diff --git a/sympy/ntheory/tests/test_factor_.py b/sympy/ntheory/tests/test_factor_.py index 59d81096ff45..eb58251209bb 100644 --- a/sympy/ntheory/tests/test_factor_.py +++ b/sympy/ntheory/tests/test_factor_.py @@ -8,10 +8,16 @@ primerange, pollard_rho, perfect_power, multiplicity, trailing, divisor_count, pr...
2019-12-20T06:24:57
{}
{"doc/src/modules/ntheory.rst": "=============\nNumber Theory\n=============\n\n.. module:: sympy.ntheory.generate\n\nNtheory Class Reference\n-----------------------\n.. autoclass:: Sieve\n :members:\n\nNtheory Functions Reference\n---------------------------\n\n.. autofunction:: prime\n\n.. autofunction:: primepi\n...
diff --git a/doc/src/modules/ntheory.rst b/doc/src/modules/ntheory.rst index 68994cdbb647..51654726a16e 100644 --- a/doc/src/modules/ntheory.rst +++ b/doc/src/modules/ntheory.rst @@ -56,8 +56,12 @@ Ntheory Functions Reference .. autofunction:: divisors +.. autofunction:: proper_divisors + .. autofunction:: diviso...
{"sympy/ntheory/factor_.py": [{"type": "function", "name": "proper_divisors", "lines": [1493, 1515], "signature": "def proper_divisors(n, generator=False):", "doc": "Return all divisors of n except n, sorted by default.\nIf generator is ``True`` an unordered generator is returned.\n\nExamples\n========\n\n>>> from symp...
1.6
["test_trailing_bitcount", "test_multiplicity", "test_perfect_power", "test_factorint", "test_divisors_and_divisor_count", "test_proper_divisors_and_proper_divisor_count", "test_udivisors_and_udivisor_count", "test_issue_6981", "test_totient", "test_reduced_totient", "test_divisor_sigma", "test_udivisor_sigma", "test_i...
[]
6daf556517f9fa61a7805fe93d8a366688781617
{"first_commit_time": 1549317980.0, "pr_title": "Added proper_divisor and proper_divisor_count functions", "pr_body": "<!-- Your title above should be a short description of what\r\nwas changed. Do not include the issue number in the title. -->\r\n\r\n#### References to other Issues or PRs\r\n<!-- If this pull request ...
sympy/sympy
18,335
https://github.com/sympy/sympy/pull/18335
sympy__sympy-18335
[]
6cd0b9fade27be198ee24987be0eac709413d297
diff --git a/sympy/geometry/polygon.py b/sympy/geometry/polygon.py index dd6a0b74b1d8..1f55d0b608e2 100644 --- a/sympy/geometry/polygon.py +++ b/sympy/geometry/polygon.py @@ -1370,6 +1370,40 @@ def __contains__(self, o): return False + def bisectors(p, prec=None): + """Returns angle bisectors of ...
diff --git a/sympy/geometry/tests/test_polygon.py b/sympy/geometry/tests/test_polygon.py index 44fe30c5562e..42ca46b7d715 100644 --- a/sympy/geometry/tests/test_polygon.py +++ b/sympy/geometry/tests/test_polygon.py @@ -1,8 +1,9 @@ -from sympy import Abs, Rational, Float, S, Symbol, symbols, cos, pi, sqrt, oo +from symp...
2020-01-14T17:32:57
{}
{"sympy/geometry/polygon.py": "from __future__ import division, print_function\n\nfrom sympy.core import Expr, S, Symbol, oo, pi, sympify\nfrom sympy.core.compatibility import as_int, ordered\nfrom sympy.core.symbol import _symbol, Dummy, symbols\nfrom sympy.functions.elementary.complexes import sign\nfrom sympy.functi...
{"sympy/geometry/polygon.py": [{"type": "function", "name": "Polygon.bisectors", "lines": [1373, 1405], "signature": "def bisectors(p, prec=None):", "doc": "Returns angle bisectors of a polygon. If prec is given\nthen approximate the point defining the ray to that precision.\n\nThe distance between the points defining ...
1.6
["test_bisectors"]
["test_convex_hull", "test_encloses", "test_triangle_kwargs", "test_transform", "test_reflect", "test_incenter", "test_inradius", "test_incircle", "test_exradii", "test_medians", "test_medial", "test_nine_point_circle", "test_eulerline", "test_intersection", "test_parameter_value", "test_issue_12966", "test_second_mome...
6daf556517f9fa61a7805fe93d8a366688781617
{"first_commit_time": 1579022932.0, "pr_title": "[feature] Add bisectors method for Polygon class", "pr_body": "<!-- Your title above should be a short description of what\r\nwas changed. Do not include the issue number in the title. -->\r\n\r\n#### References to other Issues or PRs\r\n<!-- If this pull request fixes a...
sympy/sympy
19,896
https://github.com/sympy/sympy/pull/19896
sympy__sympy-19896
[]
d20fcb2086345d9bef7c7651f6b36d7e49b4a804
diff --git a/sympy/physics/control/lti.py b/sympy/physics/control/lti.py index 46fd2ea928f6..72589784c223 100644 --- a/sympy/physics/control/lti.py +++ b/sympy/physics/control/lti.py @@ -1,11 +1,23 @@ -from sympy import Basic, Mul, degree, Symbol, expand, cancel, Expr, exp +from sympy import Basic, Mul, Pow, degree, Sy...
diff --git a/sympy/physics/control/tests/test_lti.py b/sympy/physics/control/tests/test_lti.py index 310231955f1a..209c79ddbe53 100644 --- a/sympy/physics/control/tests/test_lti.py +++ b/sympy/physics/control/tests/test_lti.py @@ -1,8 +1,9 @@ -from sympy import symbols, Matrix, factor, Function, simplify, exp, pi +from...
2020-08-06T01:42:12
{"README.md": "<p align=\"center\">\n <a href=\"https://gmago-leway.github.io/fea-bench.github.io/\">\n <img src=\"assets/FEA-Bench-full.png\" style=\"height: 10em\" alt=\"fea-bench\" />\n </a>\n</p>\n\n<p align=\"center\">\n <em>A benchmark that aims to evaluate the capability of implementing new features in the...
{"sympy/physics/control/lti.py": "from sympy import Basic, Mul, degree, Symbol, expand, cancel, Expr, exp\nfrom sympy.core.evalf import EvalfMixin\nfrom sympy.core.numbers import Integer\nfrom sympy.core.sympify import sympify, _sympify\n\n__all__ = ['TransferFunction', 'Series', 'Parallel', 'Feedback']\n\n\nclass Tran...
{"sympy/physics/control/lti.py": [{"type": "function", "name": "_roots", "lines": [12, 18], "signature": "def _roots(poly, var):", "doc": "like roots, but works on higher-order polynomials. "}, {"type": "function", "name": "TransferFunction.dc_gain", "lines": [264, 290], "signature": "def dc_gain(self):", "doc": "Compu...
1.7
["test_TransferFunction_functions"]
["test_TransferFunction_construction", "test_TransferFunction_addition_and_subtraction", "test_TransferFunction_multiplication_and_division", "test_TransferFunction_is_proper", "test_TransferFunction_is_strictly_proper", "test_TransferFunction_is_biproper", "test_Series_construction", "test_Series_functions", "test_Par...
1b4529a95ef641c2fc15889091b281644069d20e
{"first_commit_time": 1598549333.0, "pr_title": "[GSoC] Add other useful methods in TransferFunction class", "pr_body": "<!-- Your title above should be a short description of what\r\nwas changed. Do not include the issue number in the title. -->\r\n\r\n#### References to other Issues or PRs\r\n<!-- If this pull reques...
sympy/sympy
20,238
https://github.com/sympy/sympy/pull/20238
sympy__sympy-20238
[]
c094f1bb9b9047eaa4cf98790c1df997f4f489f8
diff --git a/sympy/stats/stochastic_process_types.py b/sympy/stats/stochastic_process_types.py index e0afad26dc1b..446d417c1887 100644 --- a/sympy/stats/stochastic_process_types.py +++ b/sympy/stats/stochastic_process_types.py @@ -10,7 +10,7 @@ Union, Expr, Function, exp, cacheit, sqrt, pi, gamma, ...
diff --git a/sympy/stats/tests/test_stochastic_process.py b/sympy/stats/tests/test_stochastic_process.py index bfdde46fe9d6..67acba4a0741 100644 --- a/sympy/stats/tests/test_stochastic_process.py +++ b/sympy/stats/tests/test_stochastic_process.py @@ -30,6 +30,9 @@ def test_DiscreteMarkovChain(): assert E(X[0]) == ...
2020-10-10T07:57:39
{"README.md": "<p align=\"center\">\n <a href=\"https://gmago-leway.github.io/fea-bench.github.io/\">\n <img src=\"assets/FEA-Bench-full.png\" style=\"height: 10em\" alt=\"fea-bench\" />\n </a>\n</p>\n\n<p align=\"center\">\n <em>A benchmark that aims to evaluate the capability of implementing new features in the...
{"sympy/stats/stochastic_process_types.py": "import random\n\nimport itertools\nfrom typing import Sequence as tSequence, Union as tUnion, List as tList, Tuple as tTuple\n\nfrom sympy import (Matrix, MatrixSymbol, S, Indexed, Basic, Tuple, Range,\n Set, And, Eq, FiniteSet, ImmutableMatrix, Integer, ig...
{"sympy/stats/stochastic_process_types.py": [{"type": "function", "name": "DiscreteMarkovChain.decompose", "lines": [1168, 1268], "signature": "def decompose(self) -> tTuple[tList[Basic], ImmutableMatrix, ImmutableMatrix, ImmutableMatrix]:", "doc": "Decomposes the transition matrix into submatrices with\nspecial proper...
1.8
["test_DiscreteMarkovChain"]
["test_ContinuousMarkovChain", "test_BernoulliProcess", "test_PoissonProcess", "test_WienerProcess", "test_GammaProcess_symbolic"]
284db64e44124856accce4abff75d2d8990c301d
{"first_commit_time": 1602269761.0, "pr_title": "Added canonical form functions for Discrete Markov Chains", "pr_body": "<!-- Your title above should be a short description of what\r\nwas changed. Do not include the issue number in the title. -->\r\n\r\n#### References to other Issues or PRs\r\n<!-- If this pull reques...
sympy/sympy
20,886
https://github.com/sympy/sympy/pull/20886
sympy__sympy-20886
[]
2b4107584048dd62c95483ee45f4ee9acaf220a4
diff --git a/sympy/functions/special/bessel.py b/sympy/functions/special/bessel.py index 37d99648d2c1..c57b2dadb7c3 100644 --- a/sympy/functions/special/bessel.py +++ b/sympy/functions/special/bessel.py @@ -1,26 +1,26 @@ from functools import wraps -from sympy import S, pi, I, Rational, Wild, cacheit, sympify -from ...
diff --git a/sympy/functions/special/tests/test_bessel.py b/sympy/functions/special/tests/test_bessel.py index 5d96cd4a53a1..267d8f12c132 100644 --- a/sympy/functions/special/tests/test_bessel.py +++ b/sympy/functions/special/tests/test_bessel.py @@ -4,7 +4,7 @@ bessely, besseli, besselk, hankel1, h...
2021-02-01T04:18:19
{"README.md": "<p align=\"center\">\n <a href=\"https://gmago-leway.github.io/fea-bench.github.io/\">\n <img src=\"assets/FEA-Bench-full.png\" style=\"height: 10em\" alt=\"fea-bench\" />\n </a>\n</p>\n\n<p align=\"center\">\n <em>A benchmark that aims to evaluate the capability of implementing new features in the...
{"sympy/functions/special/bessel.py": "from functools import wraps\n\nfrom sympy import S, pi, I, Rational, Wild, cacheit, sympify\nfrom sympy.core.function import Function, ArgumentIndexError\nfrom sympy.core.logic import fuzzy_or, fuzzy_not\nfrom sympy.core.power import Pow\nfrom sympy.functions.combinatorial.factori...
{"sympy/functions/special/bessel.py": [{"type": "function", "name": "besselj._eval_as_leading_term", "lines": [219, 225], "signature": "def _eval_as_leading_term(self, x, cdir=0):", "doc": ""}, {"type": "function", "name": "besselj._eval_nseries", "lines": [232, 259], "signature": "def _eval_nseries(self, x, n, logx, c...
1.8
["test_besselj_series", "test_bessely_series"]
["test_bessel_rand", "test_bessel_twoinputs", "test_diff", "test_rewrite", "test_expand", "test_fn", "test_jn", "test_yn", "test_sympify_yn", "test_jn_zeros", "test_bessel_eval", "test_bessel_nan", "test_meromorphic", "test_conjugate", "test_branching", "test_airy_base", "test_airyai", "test_airybi", "test_airyaiprime"...
284db64e44124856accce4abff75d2d8990c301d
{"first_commit_time": 1612152475.0, "pr_title": "Added nseries for bessel functions", "pr_body": "<!-- Your title above should be a short description of what\r\nwas changed. Do not include the issue number in the title. -->\r\n\r\n#### References to other Issues or PRs\r\n<!-- If this pull request fixes an issue, write...
sympy/sympy
21,052
https://github.com/sympy/sympy/pull/21052
sympy__sympy-21052
[]
fb85247299b3bc96213680903cf9cde31625d05e
diff --git a/sympy/matrices/determinant.py b/sympy/matrices/determinant.py index 08c0160151f6..e558a1db9b8f 100644 --- a/sympy/matrices/determinant.py +++ b/sympy/matrices/determinant.py @@ -8,6 +8,7 @@ dotprodsimp as _dotprodsimp) from sympy import sympify from sympy.functions.combinatorial.numbers import nC +f...
diff --git a/sympy/matrices/tests/test_determinant.py b/sympy/matrices/tests/test_determinant.py index 58be7e86c198..607f22e678e3 100644 --- a/sympy/matrices/tests/test_determinant.py +++ b/sympy/matrices/tests/test_determinant.py @@ -24,6 +24,7 @@ def test_determinant(): M = Matrix(( (-3, 2), (...
2021-03-07T07:45:40
{"README.md": "<p align=\"center\">\n <a href=\"https://gmago-leway.github.io/fea-bench.github.io/\">\n <img src=\"assets/FEA-Bench-full.png\" style=\"height: 10em\" alt=\"fea-bench\" />\n </a>\n</p>\n\n<p align=\"center\">\n <em>A benchmark that aims to evaluate the capability of implementing new features in the...
{"sympy/matrices/determinant.py": "from types import FunctionType\n\nfrom sympy.core.numbers import Float, Integer\nfrom sympy.core.singleton import S\nfrom sympy.core.symbol import uniquely_named_symbol\nfrom sympy.polys import PurePoly, cancel\nfrom sympy.simplify.simplify import (simplify as _simplify,\n dotprods...
{"sympy/matrices/determinant.py": [{"type": "function", "name": "_det_DOM", "lines": [542, 545], "signature": "def _det_DOM(M):", "doc": ""}]}
1.8
["test_determinant", "test_det"]
["test_issue_14517", "test_legacy_det", "test_permanent", "test_adjugate", "test_util", "test_cofactor_and_minors"]
284db64e44124856accce4abff75d2d8990c301d
{"first_commit_time": 1615633984.0, "pr_title": "adds DomainMatrix to Matrix.det", "pr_body": "This PR implements `DomainMatrix` to slow Matrix Method `det`\r\n\r\nReference to Task 6 in #20987\r\n\r\n#### Brief description of what is fixed or changed\r\nThis PR implements `DomainMatrix` for `det` which speeds up the m...
sympy/sympy
21,118
https://github.com/sympy/sympy/pull/21118
sympy__sympy-21118
[]
9c5bf814491f8feef12c0b3aaf96efbfb0df2d69
diff --git a/sympy/polys/matrices/ddm.py b/sympy/polys/matrices/ddm.py index fbfd70086269..dba9516ff088 100644 --- a/sympy/polys/matrices/ddm.py +++ b/sympy/polys/matrices/ddm.py @@ -95,6 +95,15 @@ def __init__(self, rowslist, shape, domain): if not (len(self) == m and all(len(row) == n for row in self)): ...
diff --git a/sympy/polys/matrices/tests/test_ddm.py b/sympy/polys/matrices/tests/test_ddm.py index b1b3a632b729..dd600f3e7b10 100644 --- a/sympy/polys/matrices/tests/test_ddm.py +++ b/sympy/polys/matrices/tests/test_ddm.py @@ -370,3 +370,34 @@ def test_DDM_charpoly(): A = DDM([[ZZ(1), ZZ(2)]], (1, 2), ZZ) r...
2021-03-18T06:49:10
{"README.md": "<p align=\"center\">\n <a href=\"https://gmago-leway.github.io/fea-bench.github.io/\">\n <img src=\"assets/FEA-Bench-full.png\" style=\"height: 10em\" alt=\"fea-bench\" />\n </a>\n</p>\n\n<p align=\"center\">\n <em>A benchmark that aims to evaluate the capability of implementing new features in the...
{"sympy/polys/matrices/ddm.py": "\"\"\"\n\nModule for the DDM class.\n\nThe DDM class is an internal representation used by DomainMatrix. The letters\nDDM stand for Dense Domain Matrix. A DDM instance represents a matrix using\nelements from a polynomial Domain (e.g. ZZ, QQ, ...) in a dense-matrix\nrepresentation.\n\nB...
{"sympy/polys/matrices/ddm.py": [{"type": "function", "name": "DDM.getitem", "lines": [98, 99], "signature": "def getitem(self, i, j):", "doc": ""}, {"type": "function", "name": "DDM.extract_slice", "lines": [101, 105], "signature": "def extract_slice(self, slice1, slice2):", "doc": ""}], "sympy/polys/matrices/domainma...
1.9
["test_DDM_getitem"]
["test_DDM_init", "test_DDM_getsetitem", "test_DDM_str", "test_DDM_eq", "test_DDM_convert_to", "test_DDM_zeros", "test_DDM_ones", "test_DDM_eye", "test_DDM_copy", "test_DDM_add", "test_DDM_sub", "test_DDM_neg", "test_DDM_mul", "test_DDM_matmul", "test_DDM_hstack", "test_DDM_rref", "test_DDM_nullspace", "test_DDM_det", ...
c880b2ca25e0c51efcc47cbe1b676b370214aec4
{"first_commit_time": 1619416619.0, "pr_title": "feat(polys): add indexing and slicing to DomainMatrix", "pr_body": "This PR implements `__getitem__` for indexing and slicing to `DomainMatrix`.\r\n\r\nReference to Task 7 in #20987\r\n\r\n#### Brief description of what is fixed or changed\r\nThis PR adds `__getitem__` ...
sympy/sympy
21,510
https://github.com/sympy/sympy/pull/21510
sympy__sympy-21510
[]
1808affb21ee0dd5226134ad7b3bb9f1785d2e56
diff --git a/.mailmap b/.mailmap index d11f98085f3d..2684bc38b47f 100644 --- a/.mailmap +++ b/.mailmap @@ -547,3 +547,4 @@ Prince Gupta <codemastercpp@gmail.com> LAPTOP-AS1M2R8B\codem <codemastercpp@gmai Muhammed Abdul Quadir Owais <quadirowais200@gmail.com> MaqOwais <quadirowais200@gmail.com> Vaibhav Bhat <vaibhav.b...
diff --git a/bin/test_external_imports.py b/bin/test_external_imports.py index 9d77de4ed119..62e8df6bcf22 100755 --- a/bin/test_external_imports.py +++ b/bin/test_external_imports.py @@ -25,7 +25,7 @@ # These libraries are optional, but are always imported at SymPy import time # when they are installed. External libr...
2021-05-23T20:05:27
{"README.md": "<p align=\"center\">\n <a href=\"https://gmago-leway.github.io/fea-bench.github.io/\">\n <img src=\"assets/FEA-Bench-full.png\" style=\"height: 10em\" alt=\"fea-bench\" />\n </a>\n</p>\n\n<p align=\"center\">\n <em>A benchmark that aims to evaluate the capability of implementing new features in the...
{".mailmap": "# Before editing this file, run bin/mailmap_update.py. It will\n# inform you about the types of entries needed here. See HELP\n# below for guidance if needed.\n#\n# After making entries to .mailmap,\n#\n# 1) re-run bin/mailmap_update.py; if no further edits are needed,\n# 2) run bin/authors_update.p...
diff --git a/.mailmap b/.mailmap index d11f98085f3d..2684bc38b47f 100644 --- a/.mailmap +++ b/.mailmap @@ -547,3 +547,4 @@ Prince Gupta <codemastercpp@gmail.com> LAPTOP-AS1M2R8B\codem <codemastercpp@gmai Muhammed Abdul Quadir Owais <quadirowais200@gmail.com> MaqOwais <quadirowais200@gmail.com> Vaibhav Bhat <vaibhav.b...
{"sympy/logic/algorithms/minisat22_wrapper.py": [{"type": "function", "name": "minisat22_satisfiable", "lines": [3, 46], "signature": "def minisat22_satisfiable(expr, all_models=False, minimal=False):", "doc": ""}, {"type": "function", "name": "minisat22_satisfiable._gen", "lines": [31, 43], "signature": "def _gen(resu...
1.9
["test_minisat22_satisfiable", "test_minisat22_minimal_satisfiable"]
["test_literal", "test_find_pure_symbol", "test_find_pure_symbol_int_repr", "test_unit_clause", "test_unit_clause_int_repr", "test_unit_propagate", "test_unit_propagate_int_repr", "test_dpll", "test_dpll_satisfiable", "test_dpll2_satisfiable", "test_satisfiable", "test_valid", "test_pl_true", "test_pl_true_wrong_input"...
c880b2ca25e0c51efcc47cbe1b676b370214aec4
{"first_commit_time": 1623169799.0, "pr_title": "Add Minisat22 solver to Sympy's satisfiable algorithms", "pr_body": "# Add Minisat22 solver to Sympy's satisfiable algorithms\r\n\r\n#### References to other Issues or PRs\r\n\r\n\r\n#### Brief description of what is fixed or changed\r\n\r\nSympy's satisfiable has 3 supp...
sympy/sympy
21,600
https://github.com/sympy/sympy/pull/21600
sympy__sympy-21600
[]
110997fe18b9f7d5ba7d22f624d156a29bf40759
diff --git a/sympy/physics/vector/vector.py b/sympy/physics/vector/vector.py index 0a1f66aaa21d..f4a4c9dcebfe 100644 --- a/sympy/physics/vector/vector.py +++ b/sympy/physics/vector/vector.py @@ -1,4 +1,4 @@ -from sympy.core.backend import (S, sympify, expand, sqrt, Add, zeros, +from sympy.core.backend import (S, sympif...
diff --git a/sympy/physics/vector/tests/test_vector.py b/sympy/physics/vector/tests/test_vector.py index 79ee8cca7784..8e5e851eb449 100644 --- a/sympy/physics/vector/tests/test_vector.py +++ b/sympy/physics/vector/tests/test_vector.py @@ -180,6 +180,18 @@ def test_vector_evalf(): assert v.evalf(5, subs={a: 1.234, ...
2021-06-11T06:33:38
{"README.md": "<p align=\"center\">\n <a href=\"https://gmago-leway.github.io/fea-bench.github.io/\">\n <img src=\"assets/FEA-Bench-full.png\" style=\"height: 10em\" alt=\"fea-bench\" />\n </a>\n</p>\n\n<p align=\"center\">\n <em>A benchmark that aims to evaluate the capability of implementing new features in the...
{"sympy/physics/vector/vector.py": "from sympy.core.backend import (S, sympify, expand, sqrt, Add, zeros,\n ImmutableMatrix as Matrix)\nfrom sympy import trigsimp\nfrom sympy.printing.defaults import Printable\nfrom sympy.utilities.misc import filldedent\nfrom sympy.core.evalf import EvalfMixin, prec_to_dps\n\n__all...
{"sympy/physics/vector/vector.py": [{"type": "function", "name": "Vector.angle_between", "lines": [698, 727], "signature": "def angle_between(self, vec):", "doc": "Returns the smallest angle between Vector 'vec' and self.\n\nParameter\n=========\n\nvec : Vector\n The Vector between which angle is needed.\n\nExamples...
1.9
["test_vector_angle"]
["test_Vector", "test_Vector_diffs", "test_vector_var_in_dcm", "test_vector_simplify", "test_vector_evalf"]
c880b2ca25e0c51efcc47cbe1b676b370214aec4
{"first_commit_time": 1623391554.0, "pr_title": "Adds `angle_between` to physics.Vector", "pr_body": "<!-- Your title above should be a short description of what\r\nwas changed. Do not include the issue number in the title. -->\r\n\r\n#### References to other Issues or PRs\r\n<!-- If this pull request fixes an issue, w...
sympy/sympy
21,634
https://github.com/sympy/sympy/pull/21634
sympy__sympy-21634
[]
a8299e5d3a4309946439dd440421c2a8d7b91ae9
diff --git a/sympy/physics/control/lti.py b/sympy/physics/control/lti.py index ce5be82061fa..c28371e2424c 100644 --- a/sympy/physics/control/lti.py +++ b/sympy/physics/control/lti.py @@ -1,7 +1,7 @@ -from sympy import Basic, Mul, Pow, degree, Symbol, expand, cancel, Expr, exp, roots +from sympy import Basic, Mul, Pow, ...
diff --git a/sympy/physics/control/tests/test_lti.py b/sympy/physics/control/tests/test_lti.py index 209c79ddbe53..a084f235d503 100644 --- a/sympy/physics/control/tests/test_lti.py +++ b/sympy/physics/control/tests/test_lti.py @@ -1,9 +1,9 @@ -from sympy import symbols, Matrix, factor, Function, simplify, exp, pi, oo, ...
2021-06-18T13:29:11
{"README.md": "<p align=\"center\">\n <a href=\"https://gmago-leway.github.io/fea-bench.github.io/\">\n <img src=\"assets/FEA-Bench-full.png\" style=\"height: 10em\" alt=\"fea-bench\" />\n </a>\n</p>\n\n<p align=\"center\">\n <em>A benchmark that aims to evaluate the capability of implementing new features in the...
{"sympy/physics/control/lti.py": "from sympy import Basic, Mul, Pow, degree, Symbol, expand, cancel, Expr, exp, roots\nfrom sympy.core.evalf import EvalfMixin\nfrom sympy.core.logic import fuzzy_and\nfrom sympy.core.numbers import Integer\nfrom sympy.core.sympify import sympify, _sympify\nfrom sympy.polys import Poly, ...
{"sympy/physics/control/lti.py": [{"type": "function", "name": "TransferFunction.from_rational_expression", "lines": [228, 303], "signature": "def from_rational_expression(cls, expr, var=None):", "doc": "Creates a new ``TransferFunction`` efficiently from a rational expression.\n\nParameters\n==========\n\nexpr : Expr,...
1.9
["test_TransferFunction_functions"]
["test_TransferFunction_construction", "test_TransferFunction_addition_and_subtraction", "test_TransferFunction_multiplication_and_division", "test_TransferFunction_is_proper", "test_TransferFunction_is_strictly_proper", "test_TransferFunction_is_biproper", "test_Series_construction", "test_Series_functions", "test_Par...
c880b2ca25e0c51efcc47cbe1b676b370214aec4
{"first_commit_time": 1624019623.0, "pr_title": "Improve `TransferFunction` docs and add `to_expr`", "pr_body": "<!-- Your title above should be a short description of what\r\nwas changed. Do not include the issue number in the title. -->\r\n\r\n#### References to other Issues or PRs\r\n<!-- If this pull request fixes ...
sympy/sympy
21,689
https://github.com/sympy/sympy/pull/21689
sympy__sympy-21689
[]
b32388b8577dd292b7ac471b1106a59c8f1e3b0b
diff --git a/sympy/physics/mechanics/body.py b/sympy/physics/mechanics/body.py index 3ba02d59e57a..838f7fc178be 100644 --- a/sympy/physics/mechanics/body.py +++ b/sympy/physics/mechanics/body.py @@ -214,3 +214,103 @@ def apply_torque(self, vec): if not isinstance(vec, Vector): raise TypeError("A V...
diff --git a/sympy/physics/mechanics/tests/test_body.py b/sympy/physics/mechanics/tests/test_body.py index 44dfea8ca1e6..985813498979 100644 --- a/sympy/physics/mechanics/tests/test_body.py +++ b/sympy/physics/mechanics/tests/test_body.py @@ -1,4 +1,4 @@ -from sympy.core.backend import Symbol, symbols +from sympy.core....
2021-06-30T06:14:06
{"README.md": "<p align=\"center\">\n <a href=\"https://gmago-leway.github.io/fea-bench.github.io/\">\n <img src=\"assets/FEA-Bench-full.png\" style=\"height: 10em\" alt=\"fea-bench\" />\n </a>\n</p>\n\n<p align=\"center\">\n <em>A benchmark that aims to evaluate the capability of implementing new features in the...
{"sympy/physics/mechanics/body.py": "from sympy.core.backend import Symbol\nfrom sympy.physics.vector import Point, Vector, ReferenceFrame\nfrom sympy.physics.mechanics import RigidBody, Particle, inertia\n\n__all__ = ['Body']\n\n\n# XXX: We use type:ignore because the classes RigidBody and Particle have\n# inconsisten...
{"sympy/physics/mechanics/body.py": [{"type": "function", "name": "Body.masscenter_vel", "lines": [218, 247], "signature": "def masscenter_vel(self, body):", "doc": "Returns the velocity of the mass center with respect to the provided\nrigid body or reference frame.\n\nParameters\n==========\n\nbody: Body or ReferenceF...
1.9
["test_body_masscenter_vel", "test_body_ang_vel"]
["test_default", "test_custom_rigid_body", "test_particle_body", "test_particle_body_add_force", "test_body_add_force", "test_body_add_torque"]
c880b2ca25e0c51efcc47cbe1b676b370214aec4
{"first_commit_time": 1625033322.0, "pr_title": "Add new features to class `Body`", "pr_body": "<!-- Your title above should be a short description of what\r\nwas changed. Do not include the issue number in the title. -->\r\n\r\n#### References to other Issues or PRs\r\n<!-- If this pull request fixes an issue, write \...
sympy/sympy
21,712
https://github.com/sympy/sympy/pull/21712
sympy__sympy-21712
[]
f3aa7dc269d81d4ca85ad1981cef910cec1a4015
diff --git a/sympy/physics/mechanics/body.py b/sympy/physics/mechanics/body.py index 2dae514ffba5..a50586cdfdda 100644 --- a/sympy/physics/mechanics/body.py +++ b/sympy/physics/mechanics/body.py @@ -100,7 +100,7 @@ def __init__(self, name, masscenter=None, mass=None, frame=None, central_inertia=None):...
diff --git a/sympy/physics/mechanics/tests/test_body.py b/sympy/physics/mechanics/tests/test_body.py index c5c4e959f452..e55db3ca6887 100644 --- a/sympy/physics/mechanics/tests/test_body.py +++ b/sympy/physics/mechanics/tests/test_body.py @@ -1,5 +1,5 @@ from sympy.core.backend import Symbol, symbols, sin, cos, Matrix...
2021-07-06T09:53:11
{"README.md": "<p align=\"center\">\n <a href=\"https://gmago-leway.github.io/fea-bench.github.io/\">\n <img src=\"assets/FEA-Bench-full.png\" style=\"height: 10em\" alt=\"fea-bench\" />\n </a>\n</p>\n\n<p align=\"center\">\n <em>A benchmark that aims to evaluate the capability of implementing new features in the...
{"sympy/physics/mechanics/body.py": "from sympy.core.backend import Symbol\nfrom sympy.physics.vector import Point, Vector, ReferenceFrame\nfrom sympy.physics.mechanics import RigidBody, Particle, inertia\n\n__all__ = ['Body']\n\n\n# XXX: We use type:ignore because the classes RigidBody and Particle have\n# inconsisten...
{"sympy/physics/mechanics/body.py": [{"type": "function", "name": "Body.loads", "lines": [140, 141], "signature": "def loads(self):", "doc": ""}, {"type": "function", "name": "Body.clear_loads", "lines": [349, 368], "signature": "def clear_loads(self):", "doc": "Clears the Body's loads list.\n\nExample\n=======\n\n>>> ...
1.9
["test_apply_force_multiple_one_point", "test_apply_force", "test_apply_torque", "test_clear_load", "test_remove_load"]
["test_default", "test_custom_rigid_body", "test_particle_body", "test_particle_body_add_force", "test_body_add_force", "test_body_add_torque", "test_body_masscenter_vel", "test_body_ang_vel", "test_body_dcm", "test_body_axis"]
c880b2ca25e0c51efcc47cbe1b676b370214aec4
{"first_commit_time": 1625564939.0, "pr_title": "Implement Forces and Torques", "pr_body": "<!-- Your title above should be a short description of what\r\nwas changed. Do not include the issue number in the title. -->\r\n\r\n#### References to other Issues or PRs\r\n<!-- If this pull request fixes an issue, write \"Fix...
sympy/sympy
21,973
https://github.com/sympy/sympy/pull/21973
sympy__sympy-21973
["18982"]
9fcdf264f3310e82a7f1d159d69812cf2422dbd0
diff --git a/doc/src/modules/logic.rst b/doc/src/modules/logic.rst index a688775e60c2..26f41836705a 100644 --- a/doc/src/modules/logic.rst +++ b/doc/src/modules/logic.rst @@ -112,6 +112,8 @@ Disjunctive, and Negated Normal forms: .. autofunction:: sympy.logic.boolalg::is_nnf +.. autofunction:: sympy.logic.boolalg:...
diff --git a/sympy/logic/tests/test_boolalg.py b/sympy/logic/tests/test_boolalg.py index ce1d1a15fb45..982a22e1c39c 100644 --- a/sympy/logic/tests/test_boolalg.py +++ b/sympy/logic/tests/test_boolalg.py @@ -17,7 +17,8 @@ BooleanAtom, is_literal, term_to_integer, truth_table, as_Boolean, to_anf, is_anf, distri...
2021-08-29T15:43:57
{"README.md": "<p align=\"center\">\n <a href=\"https://gmago-leway.github.io/fea-bench.github.io/\">\n <img src=\"assets/FEA-Bench-full.png\" style=\"height: 10em\" alt=\"fea-bench\" />\n </a>\n</p>\n\n<p align=\"center\">\n <em>A benchmark that aims to evaluate the capability of implementing new features in the...
{"doc/src/modules/logic.rst": "=====\nLogic\n=====\n\n.. module:: sympy.logic\n\nIntroduction\n------------\n\nThe logic module for SymPy allows to form and manipulate logic expressions\nusing symbolic and Boolean values.\n\nForming logical expressions\n---------------------------\n\nYou can build Boolean expressions w...
diff --git a/doc/src/modules/logic.rst b/doc/src/modules/logic.rst index a688775e60c2..26f41836705a 100644 --- a/doc/src/modules/logic.rst +++ b/doc/src/modules/logic.rst @@ -112,6 +112,8 @@ Disjunctive, and Negated Normal forms: .. autofunction:: sympy.logic.boolalg::is_nnf +.. autofunction:: sympy.logic.boolalg:...
{"sympy/logic/boolalg.py": [{"type": "function", "name": "gateinputcount", "lines": [3435, 3488], "signature": "def gateinputcount(expr):", "doc": "Return the total number of inputs for the logic gates realizing the\nBoolean expression.\n\nReturns\n=======\n\nint\n Number of gate inputs\n\nNote\n====\n\nNot all Bool...
1.10
["test_overloading", "test_And", "test_Or", "test_Xor", "test_rewrite_as_And", "test_rewrite_as_Or", "test_rewrite_as_Nand", "test_rewrite_as_Nor", "test_Not", "test_Nand", "test_Nor", "test_Xnor", "test_Implies", "test_Equivalent", "test_Exclusive", "test_equals", "test_simplification_boolalg", "test_bool_map", "test_...
[]
3e8695add7a25c8d70aeba7d6137496df02863fd
{"first_commit_time": 1630251556.0, "pr_title": "Added gateinputcount method for Boolean functions", "pr_body": "<!-- Your title above should be a short description of what\r\nwas changed. Do not include the issue number in the title. -->\r\n\r\n#### References to other Issues or PRs\r\n<!-- If this pull request fixes ...
sympy/sympy
22,476
https://github.com/sympy/sympy/pull/22476
sympy__sympy-22476
[]
eb0368b128ffd1a418f977b57ed1ba7b9c0d696c
diff --git a/sympy/matrices/expressions/matexpr.py b/sympy/matrices/expressions/matexpr.py index 43d7164b5b09..78db834466e6 100644 --- a/sympy/matrices/expressions/matexpr.py +++ b/sympy/matrices/expressions/matexpr.py @@ -12,7 +12,7 @@ from sympy.functions import conjugate, adjoint from sympy.functions.special.tenso...
diff --git a/sympy/matrices/expressions/tests/test_derivatives.py b/sympy/matrices/expressions/tests/test_derivatives.py index 4a8a64776540..e60fddebe582 100644 --- a/sympy/matrices/expressions/tests/test_derivatives.py +++ b/sympy/matrices/expressions/tests/test_derivatives.py @@ -3,6 +3,7 @@ http://www.math.uwater...
2021-11-12T17:48:33
{"README.md": "<p align=\"center\">\n <a href=\"https://gmago-leway.github.io/fea-bench.github.io/\">\n <img src=\"assets/FEA-Bench-full.png\" style=\"height: 10em\" alt=\"fea-bench\" />\n </a>\n</p>\n\n<p align=\"center\">\n <em>A benchmark that aims to evaluate the capability of implementing new features in the...
{"sympy/matrices/expressions/matexpr.py": "from typing import Tuple as tTuple\nfrom functools import wraps\n\nfrom sympy.core import S, Integer, Basic, Mul, Add\nfrom sympy.core.assumptions import check_assumptions\nfrom sympy.core.decorators import call_highest_priority\nfrom sympy.core.expr import Expr, ExprBuilder\n...
{"sympy/matrices/expressions/matexpr.py": [{"type": "function", "name": "_matrix_derivative_old_algorithm", "lines": [534, 578], "signature": "def _matrix_derivative_old_algorithm(expr, x):", "doc": ""}, {"type": "function", "name": "_matrix_derivative_old_algorithm._get_shape", "lines": [544, 547], "signature": "def _...
1.10
["test_matrix_derivative_non_matrix_result", "test_matrix_derivatives_of_traces", "test_derivatives_of_complicated_matrix_expr", "test_mixed_deriv_mixed_expressions", "test_derivatives_matrix_norms", "test_derivatives_elementwise_applyfunc"]
["test_matrix_derivative_by_scalar", "test_matrix_derivative_trivial_cases", "test_matrix_derivative_with_inverse", "test_matrix_derivative_vectors_and_scalars"]
3e8695add7a25c8d70aeba7d6137496df02863fd
{"first_commit_time": 1636739262.0, "pr_title": "Matrix expression derivatives are now computed with the array expressions module", "pr_body": "<!-- BEGIN RELEASE NOTES -->\r\n- matrices\r\n - Derivatives of matrix expressions are now computed in the array expressions module. The result is therefore able to represent ...
sympy/sympy
23,111
https://github.com/sympy/sympy/pull/23111
sympy__sympy-23111
[]
b9856408a5b9bf5757fc8b4a682565337f402a8f
diff --git a/sympy/physics/vector/vector.py b/sympy/physics/vector/vector.py index 60e7db06ae7a..fefb2e7d169e 100644 --- a/sympy/physics/vector/vector.py +++ b/sympy/physics/vector/vector.py @@ -1,5 +1,5 @@ from sympy.core.backend import (S, sympify, expand, sqrt, Add, zeros, acos, - ImmutableMatrix as Matrix, _sim...
diff --git a/sympy/physics/vector/tests/test_vector.py b/sympy/physics/vector/tests/test_vector.py index 713884345af9..7f5eec69aa5a 100644 --- a/sympy/physics/vector/tests/test_vector.py +++ b/sympy/physics/vector/tests/test_vector.py @@ -1,5 +1,6 @@ from sympy.core.numbers import (Float, pi) from sympy.core.symbol i...
2022-02-19T09:31:08
{"README.md": "<p align=\"center\">\n <a href=\"https://gmago-leway.github.io/fea-bench.github.io/\">\n <img src=\"assets/FEA-Bench-full.png\" style=\"height: 10em\" alt=\"fea-bench\" />\n </a>\n</p>\n\n<p align=\"center\">\n <em>A benchmark that aims to evaluate the capability of implementing new features in the...
{"sympy/physics/vector/vector.py": "from sympy.core.backend import (S, sympify, expand, sqrt, Add, zeros, acos,\n ImmutableMatrix as Matrix, _simplify_matrix)\nfrom sympy.simplify.trigsimp import trigsimp\nfrom sympy.printing.defaults import Printable\nfrom sympy.utilities.misc import filldedent\nfrom sympy.core.eva...
{"sympy/physics/vector/vector.py": [{"type": "function", "name": "Vector.free_dynamicsymbols", "lines": [773, 794], "signature": "def free_dynamicsymbols(self, reference_frame):", "doc": "Returns the free dynamic symbols (functions of time ``t``) in the\nmeasure numbers of the vector expressed in the given reference fr...
1.11
["test_free_dynamicsymbols"]
["test_Vector", "test_Vector_diffs", "test_vector_var_in_dcm", "test_vector_simplify", "test_vector_evalf", "test_vector_angle"]
edf24253833ca153cb6d29ae54092ecebe29614c
{"first_commit_time": 1645262956.0, "pr_title": "Add .free_dynamicsymbols to physics vectors.", "pr_body": "<!-- Your title above should be a short description of what\r\nwas changed. Do not include the issue number in the title. -->\r\n\r\n#### References to other Issues or PRs\r\n<!-- If this pull request fixes an is...
sympy/sympy
23,329
https://github.com/sympy/sympy/pull/23329
sympy__sympy-23329
[]
19ed9ef7c0eb8a6e135ef66289c0cb896d800dee
diff --git a/.mailmap b/.mailmap index 1b2177727607..c684fe441b9a 100644 --- a/.mailmap +++ b/.mailmap @@ -831,7 +831,7 @@ Ondřej Čertík <ondrej@certik.cz> <ondrej.certik@gmail.com> Ondřej Čertík <ondrej@certik.cz> <ondrej@certik.us> Ondřej Čertík <ondrej@certik.cz> ondrej.certik <devnull@localhost> Or Dvory <gidesa...
diff --git a/sympy/combinatorics/tests/test_group_numbers.py b/sympy/combinatorics/tests/test_group_numbers.py new file mode 100644 index 000000000000..62de63cbcaad --- /dev/null +++ b/sympy/combinatorics/tests/test_group_numbers.py @@ -0,0 +1,27 @@ +from sympy.combinatorics.group_numbers import (is_nilpotent_number, +...
2022-04-07T18:04:34
{"README.md": "<p align=\"center\">\n <a href=\"https://gmago-leway.github.io/fea-bench.github.io/\">\n <img src=\"assets/FEA-Bench-full.png\" style=\"height: 10em\" alt=\"fea-bench\" />\n </a>\n</p>\n\n<p align=\"center\">\n <em>A benchmark that aims to evaluate the capability of implementing new features in the...
{".mailmap": "# Before editing this file, run bin/mailmap_update.py. It will\n# inform you about the types of entries needed here. See HELP\n# below for guidance if needed.\n#\n# After making entries to .mailmap,\n#\n# 1) re-run bin/mailmap_update.py; if no further edits are needed,\n# 2) run bin/authors_update.p...
diff --git a/.mailmap b/.mailmap index 1b2177727607..c684fe441b9a 100644 --- a/.mailmap +++ b/.mailmap @@ -831,7 +831,7 @@ Ondřej Čertík <ondrej@certik.cz> <ondrej.certik@gmail.com> Ondřej Čertík <ondrej@certik.cz> <ondrej@certik.us> Ondřej Čertík <ondrej@certik.cz> ondrej.certik <devnull@localhost> Or Dvory <gidesa...
{"sympy/combinatorics/group_numbers.py": [{"type": "function", "name": "is_nilpotent_number", "lines": [5, 43], "signature": "def is_nilpotent_number(n):", "doc": "Check whether `n` is a nilpotent number. A number `n` is said to be\nnilpotent if and only if every finite group of order `n` is nilpotent.\nFor more inform...
1.11
["test_is_nilpotent_number", "test_is_abelian_number"]
[]
edf24253833ca153cb6d29ae54092ecebe29614c
{"first_commit_time": 1649352662.0, "pr_title": "Added methods for nilpotent, abelian and cyclic numbers.", "pr_body": "<!-- Your title above should be a short description of what\r\nwas changed. Do not include the issue number in the title. -->\r\n\r\n#### References to other Issues or PRs\r\n<!-- If this pull request...
sympy/sympy
24,070
https://github.com/sympy/sympy/pull/24070
sympy__sympy-24070
[]
007d962672034698a5d152de9086e63c3becfa74
diff --git a/.mailmap b/.mailmap index 6f0e24a24cb0..6b04fe9fdadb 100644 --- a/.mailmap +++ b/.mailmap @@ -1017,6 +1017,7 @@ Peter Enenkel <peter.enenkel+git@gmail.com> <peter.enenkel+github@gmail.com> Peter Schmidt <peter@peterjs.com> Peter Stangl <peter.stangl@ph.tum.de> Petr Kungurtsev <corwinat@gmail.com> Corwin...
diff --git a/sympy/physics/tests/test_clebsch_gordan.py b/sympy/physics/tests/test_clebsch_gordan.py index 2e77bf2f7afd..d6a41f1b6b4f 100644 --- a/sympy/physics/tests/test_clebsch_gordan.py +++ b/sympy/physics/tests/test_clebsch_gordan.py @@ -1,4 +1,4 @@ -from sympy.core.numbers import (I, pi) +from sympy.core.numbers ...
2022-09-19T22:37:41
{"README.md": "<p align=\"center\">\n <a href=\"https://gmago-leway.github.io/fea-bench.github.io/\">\n <img src=\"assets/FEA-Bench-full.png\" style=\"height: 10em\" alt=\"fea-bench\" />\n </a>\n</p>\n\n<p align=\"center\">\n <em>A benchmark that aims to evaluate the capability of implementing new features in the...
{".mailmap": "# The .mailmap file\n# =================\n#\n# This file records the name and email address of each contributor to SymPy as\n# it should appear in the AUTHORS file. Contributors should not update the\n# AUTHORS file directly as it will be updated at the time of the next release\n# of SymPy. Instead any ne...
diff --git a/.mailmap b/.mailmap index 6f0e24a24cb0..6b04fe9fdadb 100644 --- a/.mailmap +++ b/.mailmap @@ -1017,6 +1017,7 @@ Peter Enenkel <peter.enenkel+git@gmail.com> <peter.enenkel+github@gmail.com> Peter Schmidt <peter@peterjs.com> Peter Stangl <peter.stangl@ph.tum.de> Petr Kungurtsev <corwinat@gmail.com> Corwin...
{"sympy/physics/wigner.py": [{"type": "function", "name": "real_gaunt", "lines": [756, 908], "signature": "def real_gaunt(l_1, l_2, l_3, m_1, m_2, m_3, prec=None):", "doc": "Calculate the real Gaunt coefficient.\n\nExplanation\n===========\n\nThe real Gaunt coefficient is defined as the integral over three\nreal spheri...
1.12
["test_clebsch_gordan_docs", "test_clebsch_gordan", "test_wigner", "test_gaunt", "test_realgaunt", "test_racah", "test_dot_rota_grad_SH"]
[]
22520ed5f4a9b2b6c4b6b314b4748878f1b4b662
{"first_commit_time": 1663625861.0, "pr_title": "Add algorithm to compute real Gaunt coefficient", "pr_body": "<!-- Your title above should be a short description of what\r\nwas changed. Do not include the issue number in the title. -->\r\n\r\nI have coded a symbolic algorithm to compute the integral of three real sphe...
sympy/sympy
24,437
https://github.com/sympy/sympy/pull/24437
sympy__sympy-24437
[]
9b9786518d3475751e66e11d3e3592091e3160b3
diff --git a/sympy/utilities/iterables.py b/sympy/utilities/iterables.py index 144713d4fe47..a0eb4cece751 100644 --- a/sympy/utilities/iterables.py +++ b/sympy/utilities/iterables.py @@ -3,7 +3,6 @@ chain, combinations, combinations_with_replacement, cycle, islice, permutations, product ) - # For backwards ...
diff --git a/sympy/utilities/tests/test_iterables.py b/sympy/utilities/tests/test_iterables.py index 77c6e7b1ee80..8e527a447e75 100644 --- a/sympy/utilities/tests/test_iterables.py +++ b/sympy/utilities/tests/test_iterables.py @@ -19,7 +19,8 @@ prefixes, reshape, rotate_left, rotate_right, runs, sift, strongl...
2022-12-29T22:56:10
{"README.md": "<p align=\"center\">\n <a href=\"https://gmago-leway.github.io/fea-bench.github.io/\">\n <img src=\"assets/FEA-Bench-full.png\" style=\"height: 10em\" alt=\"fea-bench\" />\n </a>\n</p>\n\n<p align=\"center\">\n <em>A benchmark that aims to evaluate the capability of implementing new features in the...
{"sympy/utilities/iterables.py": "from collections import defaultdict, OrderedDict\nfrom itertools import (\n chain, combinations, combinations_with_replacement, cycle, islice,\n permutations, product\n)\n\n# For backwards compatibility\nfrom itertools import product as cartes # noqa: F401\nfrom operator import g...
{"sympy/utilities/iterables.py": [{"type": "function", "name": "sequence_partitions", "lines": [2708, 2766], "signature": "def sequence_partitions(l, n, /):", "doc": "Returns the partition of sequence $l$ into $n$ bins\n\nExplanation\n===========\n\nGiven the sequence $l_1 \\cdots l_m \\in V^+$ where\n$V^+$ is the Klee...
1.12
["test_deprecated_iterables", "test_is_palindromic", "test_flatten", "test_iproduct", "test_group", "test_subsets", "test_variations", "test_cartes", "test_filter_symbols", "test_numbered_symbols", "test_sift", "test_take", "test_dict_merge", "test_prefixes", "test_postfixes", "test_topological_sort", "test_strongly_co...
[]
22520ed5f4a9b2b6c4b6b314b4748878f1b4b662
{"first_commit_time": 1672353702.0, "pr_title": "Decompose partition utility from `kbins`", "pr_body": "<!-- Your title above should be a short description of what\r\nwas changed. Do not include the issue number in the title. -->\r\n\r\n#### References to other Issues or PRs\r\n<!-- If this pull request fixes an issue,...
sympy/sympy
24,698
https://github.com/sympy/sympy/pull/24698
sympy__sympy-24698
[]
a767a207cbacc969ea0a65276ecca7855bd79aa5
diff --git a/doc/src/modules/physics/control/lti.rst b/doc/src/modules/physics/control/lti.rst index 5c28064dce51..fcd94ef218c8 100644 --- a/doc/src/modules/physics/control/lti.rst +++ b/doc/src/modules/physics/control/lti.rst @@ -32,3 +32,5 @@ lti :members: .. autofunction:: bilinear + +.. autofunction:: backwa...
diff --git a/sympy/physics/control/tests/test_lti.py b/sympy/physics/control/tests/test_lti.py index eeea0d4638c4..5d0f4b67e28c 100644 --- a/sympy/physics/control/tests/test_lti.py +++ b/sympy/physics/control/tests/test_lti.py @@ -14,7 +14,8 @@ from sympy.core.containers import Tuple from sympy.matrices import Immuta...
2023-02-10T11:07:28
{"README.md": "<p align=\"center\">\n <a href=\"https://gmago-leway.github.io/fea-bench.github.io/\">\n <img src=\"assets/FEA-Bench-full.png\" style=\"height: 10em\" alt=\"fea-bench\" />\n </a>\n</p>\n\n<p align=\"center\">\n <em>A benchmark that aims to evaluate the capability of implementing new features in the...
{"doc/src/modules/physics/control/lti.rst": "===========\nControl API\n===========\n\nlti\n===\n\n.. module:: sympy.physics.control.lti\n\n.. autoclass:: TransferFunction\n :members:\n\n.. autoclass:: Series\n :members:\n\n.. autoclass:: Parallel\n :members:\n\n.. autoclass:: Feedback\n :members:\n\n.. autoclas...
diff --git a/doc/src/modules/physics/control/lti.rst b/doc/src/modules/physics/control/lti.rst index 5c28064dce51..fcd94ef218c8 100644 --- a/doc/src/modules/physics/control/lti.rst +++ b/doc/src/modules/physics/control/lti.rst @@ -32,3 +32,5 @@ lti :members: .. autofunction:: bilinear + +.. autofunction:: backwa...
{"sympy/physics/control/lti.py": [{"type": "function", "name": "backward_diff", "lines": [79, 119], "signature": "def backward_diff(tf, sample_per):", "doc": "Returns falling coefficients of H(z) from numerator and denominator.\nWhere H(z) is the corresponding discretized transfer function,\ndiscretized with the backwa...
1.12
["test_TransferFunction_construction", "test_TransferFunction_functions", "test_TransferFunction_addition_and_subtraction", "test_TransferFunction_multiplication_and_division", "test_TransferFunction_is_proper", "test_TransferFunction_is_strictly_proper", "test_TransferFunction_is_biproper", "test_Series_construction",...
[]
22520ed5f4a9b2b6c4b6b314b4748878f1b4b662
{"first_commit_time": 1676026504.0, "pr_title": "backward_diff discretization of cont. transfer function", "pr_body": "# Added backward difference discretization method to physics.control.lti\r\n\r\n#### References to other Issues or PRs\r\n\r\nIt is a 1 to 1 extension of [PR 24558](https://github.com/sympy/sympy/pull/...
tfranzel/drf-spectacular
953
https://github.com/tfranzel/drf-spectacular/pull/953
tfranzel__drf-spectacular-953
[]
43a4474f3c51de32dc553f75abe4c44ea674340d
diff --git a/drf_spectacular/utils.py b/drf_spectacular/utils.py index 03b52b4b..c795b0f1 100644 --- a/drf_spectacular/utils.py +++ b/drf_spectacular/utils.py @@ -64,11 +64,19 @@ def create(self, request, *args, **kwargs): *drf-spectacular* processes the serializer. In those cases you can explicitly state the...
diff --git a/tests/test_polymorphic.py b/tests/test_polymorphic.py index 22e63298..2f5665cf 100644 --- a/tests/test_polymorphic.py +++ b/tests/test_polymorphic.py @@ -93,8 +93,27 @@ def create(self, request, *args, **kwargs): def partial_update(self, request, *args, **kwargs): return Response({}) ...
2023-03-03T14:30:35
{}
{"drf_spectacular/utils.py": "import inspect\nimport sys\nfrom typing import Any, Callable, Dict, Optional, Sequence, Tuple, Type, TypeVar, Union\n\n# direct import due to https://github.com/microsoft/pyright/issues/3025\nif sys.version_info >= (3, 8):\n from typing import Final, Literal\nelse:\n from typing_exte...
{"drf_spectacular/utils.py": [{"type": "function", "name": "PolymorphicProxySerializer.serializers", "lines": [106, 107], "signature": "def serializers(self, value):", "doc": ""}]}
null
["tests/test_polymorphic.py::test_polymorphic[LambdaPersonViewSet]"]
["tests/test_polymorphic.py::test_polymorphic[ImplicitPersonViewSet]", "tests/test_polymorphic.py::test_polymorphic[ExplicitPersonViewSet]", "tests/test_polymorphic.py::test_polymorphic_serializer_as_field_via_extend_schema_field", "tests/test_polymorphic.py::test_polymorphic_serializer_as_method_field_via_extend_schem...
22b78d6cd3f292ce2952382bcc2b7aefe228a1dd
{"first_commit_time": 1677853497.0, "pr_title": "Add option to provide a callable for PolymorphicProxySerializer.serializers", "pr_body": "Adding a minor feature that we found useful in our own use of `PolymorphicProxySerializer` - the ability to initialize it with a callable (such as a lambda) that returns a list/dict...
tobymao/sqlglot
1,252
https://github.com/tobymao/sqlglot/pull/1252
tobymao__sqlglot-1252
[]
c371ac055a7546d8215d3a2acc0d1a64f43a07f1
diff --git a/sqlglot/expressions.py b/sqlglot/expressions.py index c8223c2466..7fdab534ae 100644 --- a/sqlglot/expressions.py +++ b/sqlglot/expressions.py @@ -2407,6 +2407,18 @@ def window(self, *expressions, append=True, dialect=None, copy=True, **opts) -> **opts, ) + def qualify(self, *expr...
diff --git a/tests/test_build.py b/tests/test_build.py index fbfbb62f7e..718e471508 100644 --- a/tests/test_build.py +++ b/tests/test_build.py @@ -504,6 +504,12 @@ def test_build(self): .window("d AS (PARTITION BY g ORDER BY h)"), "SELECT AVG(a) OVER b, MIN(c) OVER d FROM table WINDOW ...
2023-03-05T07:24:58
{"README.md": "<p align=\"center\">\n <a href=\"https://gmago-leway.github.io/fea-bench.github.io/\">\n <img src=\"assets/FEA-Bench-full.png\" style=\"height: 10em\" alt=\"fea-bench\" />\n </a>\n</p>\n\n<p align=\"center\">\n <em>A benchmark that aims to evaluate the capability of implementing new features in the...
{"sqlglot/expressions.py": "\"\"\"\n## Expressions\n\nEvery AST node in SQLGlot is represented by a subclass of `Expression`.\n\nThis module contains the implementation of all supported `Expression` types. Additionally,\nit exposes a number of helper functions, which are mainly used to programmatically build\nSQL expre...
{"sqlglot/expressions.py": [{"type": "function", "name": "Select.qualify", "lines": [2410, 2419], "signature": "def qualify(self, *expressions, append=True, dialect=None, copy=True, **opts) -> Select:", "doc": ""}]}
null
["tests/test_build.py::TestBuild::test_build"]
[]
ceb42fabad60312699e4b15936aeebac00e22e4d
{"first_commit_time": 1678057007.0, "pr_title": "Implement qualify builder.", "pr_body": "Added a qualify builder.\r\n\r\nNote -- `make check` made a bunch of unrelated formatting changes.", "pr_timeline": [{"time": 1678002363.0, "comment": "did you have the latest dev environment installed? can you try again with a fr...
tobymao/sqlglot
3,145
https://github.com/tobymao/sqlglot/pull/3145
tobymao__sqlglot-3145
["3144"]
d6bac3e54c6445c52daa04015b1b2e4a6933e682
diff --git a/sqlglot/dialects/tsql.py b/sqlglot/dialects/tsql.py index 45855772cb..755360cc16 100644 --- a/sqlglot/dialects/tsql.py +++ b/sqlglot/dialects/tsql.py @@ -810,6 +810,22 @@ class Generator(generator.Generator): exp.VolatileProperty: exp.Properties.Location.UNSUPPORTED, } + def ...
diff --git a/tests/dialects/test_tsql.py b/tests/dialects/test_tsql.py index ed474fd1af..1d2f03b631 100644 --- a/tests/dialects/test_tsql.py +++ b/tests/dialects/test_tsql.py @@ -272,6 +272,28 @@ def test_tsql(self): "SELECT [x].[y] FROM foo", ) + self.validate_all( + "SELECT *...
2024-03-14T14:27:31
{"README.md": "<p align=\"center\">\n <a href=\"https://gmago-leway.github.io/fea-bench.github.io/\">\n <img src=\"assets/FEA-Bench-full.png\" style=\"height: 10em\" alt=\"fea-bench\" />\n </a>\n</p>\n\n<p align=\"center\">\n <em>A benchmark that aims to evaluate the capability of implementing new features in the...
{"sqlglot/dialects/tsql.py": "from __future__ import annotations\n\nimport datetime\nimport re\nimport typing as t\n\nfrom sqlglot import exp, generator, parser, tokens, transforms\nfrom sqlglot.dialects.dialect import (\n Dialect,\n NormalizationStrategy,\n any_value_to_max_sql,\n date_delta_sql,\n gene...
{"sqlglot/dialects/tsql.py": [{"type": "function", "name": "TSQL.Generator.select_sql", "lines": [813, 827], "signature": "def select_sql(self, expression: exp.Select) -> str:", "doc": ""}]}
null
["tests/dialects/test_tsql.py::TestTSQL::test_tsql"]
["tests/dialects/test_tsql.py::TestTSQL::test__types_ints", "tests/dialects/test_tsql.py::TestTSQL::test_add_date", "tests/dialects/test_tsql.py::TestTSQL::test_charindex", "tests/dialects/test_tsql.py::TestTSQL::test_commit", "tests/dialects/test_tsql.py::TestTSQL::test_convert", "tests/dialects/test_tsql.py::TestTSQL...
ceb42fabad60312699e4b15936aeebac00e22e4d
{"first_commit_time": 1710426405.0, "pr_title": "Feat(tsql): transpile LIMIT with OFFSET properly", "pr_body": "Fixes #3144\r\n\r\nReference:\r\n- https://www.microsoftpressstore.com/articles/article.aspx?p=2314819\r\n- https://learn.microsoft.com/en-us/sql/t-sql/queries/select-order-by-clause-transact-sql?view=sql-ser...
tobymao/sqlglot
3,560
https://github.com/tobymao/sqlglot/pull/3560
tobymao__sqlglot-3560
[]
eae3c5165c16b61c7b524a55776bdb1127005c7d
diff --git a/sqlglot/schema.py b/sqlglot/schema.py index cb3fd00b24..50646c868e 100644 --- a/sqlglot/schema.py +++ b/sqlglot/schema.py @@ -155,13 +155,16 @@ def table_parts(self, table: exp.Table) -> t.List[str]: return [table.this.name] return [table.text(part) for part in exp.TABLE_PARTS if tabl...
diff --git a/tests/test_schema.py b/tests/test_schema.py index 5b5086738d..21b59fd3e5 100644 --- a/tests/test_schema.py +++ b/tests/test_schema.py @@ -303,3 +303,10 @@ def test_has_column(self): schema = MappingSchema({"x": {"c": "int"}}) self.assertTrue(schema.has_column("x", exp.column("c"))) ...
2024-05-28T17:15:28
{"README.md": "<p align=\"center\">\n <a href=\"https://gmago-leway.github.io/fea-bench.github.io/\">\n <img src=\"assets/FEA-Bench-full.png\" style=\"height: 10em\" alt=\"fea-bench\" />\n </a>\n</p>\n\n<p align=\"center\">\n <em>A benchmark that aims to evaluate the capability of implementing new features in the...
{"sqlglot/schema.py": "from __future__ import annotations\n\nimport abc\nimport typing as t\n\nfrom sqlglot import expressions as exp\nfrom sqlglot.dialects.dialect import Dialect\nfrom sqlglot.errors import SchemaError\nfrom sqlglot.helper import dict_depth, first\nfrom sqlglot.trie import TrieResult, in_trie, new_tri...
{"sqlglot/schema.py": [{"type": "function", "name": "MappingSchema.find", "lines": [245, 257], "signature": "def find( self, table: exp.Table, raise_on_missing: bool = True, ensure_data_types: bool = False ) -> t.Optional[t.Any]:", "doc": ""}]}
null
["tests/test_schema.py::TestSchema::test_find"]
["tests/test_schema.py::TestSchema::test_has_column", "tests/test_schema.py::TestSchema::test_same_number_of_qualifiers", "tests/test_schema.py::TestSchema::test_schema", "tests/test_schema.py::TestSchema::test_schema_add_table_with_and_without_mapping", "tests/test_schema.py::TestSchema::test_schema_catalog", "tests/t...
ceb42fabad60312699e4b15936aeebac00e22e4d
{"first_commit_time": 1716916340.0, "pr_title": "Feat: add option in schema's find method to ensure types are DataTypes", "pr_body": "The motivation behind this is that in SQLMesh we have a mapping schema where types are stored as strings, but [we need them](https://github.com/TobikoData/sqlmesh/blob/main/sqlmesh/core/...
tobymao/sqlglot
3,602
https://github.com/tobymao/sqlglot/pull/3602
tobymao__sqlglot-3602
["3601"]
f920014709c2d3ccb7ec18fb622ecd6b6ee0afcd
diff --git a/sqlglot/dialects/postgres.py b/sqlglot/dialects/postgres.py index 25a02b0dcb..7ad1f90e02 100644 --- a/sqlglot/dialects/postgres.py +++ b/sqlglot/dialects/postgres.py @@ -8,6 +8,7 @@ Dialect, JSON_EXTRACT_TYPE, any_value_to_max_sql, + binary_from_function, bool_xor_sql, datestrto...
diff --git a/tests/dialects/test_postgres.py b/tests/dialects/test_postgres.py index 74753beb61..50ba605351 100644 --- a/tests/dialects/test_postgres.py +++ b/tests/dialects/test_postgres.py @@ -724,6 +724,28 @@ def test_postgres(self): self.validate_identity("cast(a as FLOAT8)", "CAST(a AS DOUBLE PRECISION)")...
2024-06-05T13:00:58
{"README.md": "<p align=\"center\">\n <a href=\"https://gmago-leway.github.io/fea-bench.github.io/\">\n <img src=\"assets/FEA-Bench-full.png\" style=\"height: 10em\" alt=\"fea-bench\" />\n </a>\n</p>\n\n<p align=\"center\">\n <em>A benchmark that aims to evaluate the capability of implementing new features in the...
{"sqlglot/dialects/postgres.py": "from __future__ import annotations\n\nimport typing as t\n\nfrom sqlglot import exp, generator, parser, tokens, transforms\nfrom sqlglot.dialects.dialect import (\n DATE_ADD_OR_SUB,\n Dialect,\n JSON_EXTRACT_TYPE,\n any_value_to_max_sql,\n bool_xor_sql,\n datestrtodat...
{"sqlglot/dialects/postgres.py": [{"type": "function", "name": "Postgres.Generator.cast_sql", "lines": [631, 638], "signature": "def cast_sql(self, expression: exp.Cast, safe_prefix: t.Optional[str] = None) -> str:", "doc": ""}]}
null
["tests/dialects/test_postgres.py::TestPostgres::test_postgres"]
["tests/dialects/test_postgres.py::TestPostgres::test_array_offset", "tests/dialects/test_postgres.py::TestPostgres::test_bool_or", "tests/dialects/test_postgres.py::TestPostgres::test_ddl", "tests/dialects/test_postgres.py::TestPostgres::test_operator", "tests/dialects/test_postgres.py::TestPostgres::test_regexp_binar...
ceb42fabad60312699e4b15936aeebac00e22e4d
{"first_commit_time": 1717591927.0, "pr_title": "feat(postgres): Support DIV() func for integer division", "pr_body": "Fixes #3601 \r\n\r\nThis PR introduces support for Postgres's `DIV()` function which performs integer division. It mirrors the BigQuery implementation which stores the args in `exp.IntDiv` and generate...
tobymao/sqlglot
3,991
https://github.com/tobymao/sqlglot/pull/3991
tobymao__sqlglot-3991
["3988"]
f5bfd67341518d0ecb1c3693e0b41ed5c1cf0596
diff --git a/sqlglot/dialects/hive.py b/sqlglot/dialects/hive.py index 990991357e..d428db71ba 100644 --- a/sqlglot/dialects/hive.py +++ b/sqlglot/dialects/hive.py @@ -436,6 +436,14 @@ def _parse_parameter(self) -> exp.Parameter: self._match(TokenType.R_BRACE) return self.expression(exp.Paramet...
diff --git a/tests/dialects/test_presto.py b/tests/dialects/test_presto.py index 950c89f82d..173d16eb80 100644 --- a/tests/dialects/test_presto.py +++ b/tests/dialects/test_presto.py @@ -715,9 +715,6 @@ def test_presto(self): ) self.validate_all( "SELECT ROW(1, 2)", - read={ - ...
2024-08-28T13:44:49
{"README.md": "<p align=\"center\">\n <a href=\"https://gmago-leway.github.io/fea-bench.github.io/\">\n <img src=\"assets/FEA-Bench-full.png\" style=\"height: 10em\" alt=\"fea-bench\" />\n </a>\n</p>\n\n<p align=\"center\">\n <em>A benchmark that aims to evaluate the capability of implementing new features in the...
{"sqlglot/dialects/hive.py": "from __future__ import annotations\n\nimport typing as t\n\nfrom sqlglot import exp, generator, parser, tokens, transforms\nfrom sqlglot.dialects.dialect import (\n DATE_ADD_OR_SUB,\n Dialect,\n NormalizationStrategy,\n approx_count_distinct_sql,\n arg_max_or_min_no_count,\n...
{"sqlglot/dialects/hive.py": [{"type": "function", "name": "Hive.Parser._to_prop_eq", "lines": [439, 445], "signature": "def _to_prop_eq(self, expression: exp.Expression, index: int) -> exp.Expression:", "doc": ""}], "sqlglot/parser.py": [{"type": "function", "name": "Parser._to_prop_eq", "lines": [5115, 5116], "signat...
null
["tests/dialects/test_spark.py::TestSpark::test_spark"]
["tests/dialects/test_presto.py::TestPresto::test_cast", "tests/dialects/test_presto.py::TestPresto::test_ddl", "tests/dialects/test_presto.py::TestPresto::test_encode_decode", "tests/dialects/test_presto.py::TestPresto::test_hex_unhex", "tests/dialects/test_presto.py::TestPresto::test_interval_plural_to_singular", "te...
ceb42fabad60312699e4b15936aeebac00e22e4d
{"first_commit_time": 1724844075.0, "pr_title": "feat(spark): Default naming of STRUCT fields", "pr_body": "Fixes #3988\r\n\r\nIn Spark, STRUCT values/fields that are not explicitly named by the user are default initialized to:\r\n- The column name itself, if the expression is a column\r\n- The name `col_i` for other l...
tobymao/sqlglot
4,084
https://github.com/tobymao/sqlglot/pull/4084
tobymao__sqlglot-4084
[]
dbb1ddef53e76ee51a1cf6a24a1de854a69c6093
diff --git a/sqlglot/__init__.py b/sqlglot/__init__.py index e272b9f1c5..f3e97f01b1 100644 --- a/sqlglot/__init__.py +++ b/sqlglot/__init__.py @@ -32,6 +32,7 @@ func as func, intersect as intersect, maybe_parse as maybe_parse, + merge as merge, not_ as not_, or_ as or_, select as select...
diff --git a/tests/test_build.py b/tests/test_build.py index e074fea119..d169530461 100644 --- a/tests/test_build.py +++ b/tests/test_build.py @@ -731,6 +731,36 @@ def test_build(self): lambda: exp.rename_column("table1", "c1", "c2"), "ALTER TABLE table1 RENAME COLUMN c1 TO c2", ...
2024-09-07T18:28:31
{"README.md": "<p align=\"center\">\n <a href=\"https://gmago-leway.github.io/fea-bench.github.io/\">\n <img src=\"assets/FEA-Bench-full.png\" style=\"height: 10em\" alt=\"fea-bench\" />\n </a>\n</p>\n\n<p align=\"center\">\n <em>A benchmark that aims to evaluate the capability of implementing new features in the...
{"sqlglot/__init__.py": "# ruff: noqa: F401\n\"\"\"\n.. include:: ../README.md\n\n----\n\"\"\"\n\nfrom __future__ import annotations\n\nimport logging\nimport typing as t\n\nfrom sqlglot import expressions as exp\nfrom sqlglot.dialects.dialect import Dialect as Dialect, Dialects as Dialects\nfrom sqlglot.diff import di...
{"sqlglot/expressions.py": [{"type": "function", "name": "merge", "lines": [6888, 6926], "signature": "def merge( *when_exprs: ExpOrStr, into: ExpOrStr, using: ExpOrStr, on: ExpOrStr, dialect: DialectType = None, copy: bool = True, **opts, ) -> Merge:", "doc": "Builds a MERGE statement.\n\nExample:\n >>> merge(\"WHE...
null
["tests/test_build.py::TestBuild::test_build"]
[]
ceb42fabad60312699e4b15936aeebac00e22e4d
{"first_commit_time": 1725734353.0, "pr_title": "Feat: add merge expression builder", "pr_body": "I have a use-case around building merge statements similar to variety of other types of expressions that sqlglot can programmatically build. This PR adds a simple `merge` function allowing for dynamic construction of merge...
tobymao/sqlglot
415
https://github.com/tobymao/sqlglot/pull/415
tobymao__sqlglot-415
[]
7f40ddd9b41f3dabdcbc3105cf5f06faacd82d75
diff --git a/sqlglot/expressions.py b/sqlglot/expressions.py index dc0c0ca20d..f6ca8f5403 100644 --- a/sqlglot/expressions.py +++ b/sqlglot/expressions.py @@ -1155,6 +1155,72 @@ def order_by(self, *expressions, append=True, dialect=None, copy=True, **opts): **opts, ) + def sort_by(self, *expr...
diff --git a/tests/test_build.py b/tests/test_build.py index 10c485728a..a4cffde9ea 100644 --- a/tests/test_build.py +++ b/tests/test_build.py @@ -169,10 +169,26 @@ def test_build(self): lambda: select("x").from_("tbl").order_by("y"), "SELECT x FROM tbl ORDER BY y", ), + ...
2022-09-09T21:28:47
{"README.md": "<p align=\"center\">\n <a href=\"https://gmago-leway.github.io/fea-bench.github.io/\">\n <img src=\"assets/FEA-Bench-full.png\" style=\"height: 10em\" alt=\"fea-bench\" />\n </a>\n</p>\n\n<p align=\"center\">\n <em>A benchmark that aims to evaluate the capability of implementing new features in the...
{"sqlglot/expressions.py": "import inspect\nimport re\nimport sys\nfrom collections import deque\nfrom copy import deepcopy\nfrom enum import auto\n\nfrom sqlglot.errors import ParseError\nfrom sqlglot.helper import AutoName, camel_to_snake_case, ensure_list\n\n\nclass _Expression(type):\n def __new__(cls, clsname, ...
{"sqlglot/expressions.py": [{"type": "function", "name": "Select.sort_by", "lines": [1158, 1188], "signature": "def sort_by(self, *expressions, append=True, dialect=None, copy=True, **opts):", "doc": "Set the SORT BY expression.\n\nExample:\n >>> Select().from_(\"tbl\").select(\"x\").sort_by(\"x DESC\").sql()\n '...
null
["tests/test_build.py::TestBuild::test_build"]
[]
ceb42fabad60312699e4b15936aeebac00e22e4d
{"first_commit_time": 1662701992.0, "pr_title": "feat: Add sort_by and cluster_by to expression builder", "pr_body": "We already have SORT & CLUSTER expression and SORT_BY & CLUSTER_BY tokens, they are currently used in DDLs but they can also be used in expression builder. This PR adds that support.", "pr_timeline": [{...
tobymao/sqlglot
4,217
https://github.com/tobymao/sqlglot/pull/4217
tobymao__sqlglot-4217
[]
22a16848d80a2fa6d310f99d21f7d81f90eb9440
diff --git a/sqlglot/expressions.py b/sqlglot/expressions.py index c5e40bed04..064805d5ca 100644 --- a/sqlglot/expressions.py +++ b/sqlglot/expressions.py @@ -3284,6 +3284,200 @@ class Update(Expression): "limit": False, } + def table( + self, expression: ExpOrStr, dialect: DialectType = None,...
diff --git a/tests/test_build.py b/tests/test_build.py index 7518b72a2a..5d383ad00b 100644 --- a/tests/test_build.py +++ b/tests/test_build.py @@ -577,6 +577,36 @@ def test_build(self): lambda: exp.update("tbl", {"x": 1}, from_="tbl2 cross join tbl3"), "UPDATE tbl SET x = 1 FROM tbl2 C...
2024-10-07T08:22:14
{"README.md": "<p align=\"center\">\n <a href=\"https://gmago-leway.github.io/fea-bench.github.io/\">\n <img src=\"assets/FEA-Bench-full.png\" style=\"height: 10em\" alt=\"fea-bench\" />\n </a>\n</p>\n\n<p align=\"center\">\n <em>A benchmark that aims to evaluate the capability of implementing new features in the...
{"sqlglot/expressions.py": "\"\"\"\n## Expressions\n\nEvery AST node in SQLGlot is represented by a subclass of `Expression`.\n\nThis module contains the implementation of all supported `Expression` types. Additionally,\nit exposes a number of helper functions, which are mainly used to programmatically build\nSQL expre...
{"sqlglot/expressions.py": [{"type": "function", "name": "Update.table", "lines": [3293, 3322], "signature": "def table( self, expression: ExpOrStr, dialect: DialectType = None, copy: bool = True, **opts ) -> Update:", "doc": "Set the table to update.\n\nExample:\n >>> Update().table(\"my_table\").set_(\"x = 1\").sq...
null
["tests/test_build.py::TestBuild::test_build"]
[]
ceb42fabad60312699e4b15936aeebac00e22e4d
{"first_commit_time": 1728288676.0, "pr_title": "Feat: add builder methods to exp.Update and add with_ arg to exp.update", "pr_body": "Improve ergonomics of UPDATEs:\r\n\r\n- Add builder methods to Update class so it can be constructed incrementally in the same way a Select\r\n- `exp.update` changes:\r\n - Add a `with...
tobymao/sqlglot
4,249
https://github.com/tobymao/sqlglot/pull/4249
tobymao__sqlglot-4249
[]
fcc05c9daa31c7a51474ec9c72ceafd682359f90
diff --git a/sqlglot/dialects/oracle.py b/sqlglot/dialects/oracle.py index 81c2a4a5c3..0845258f36 100644 --- a/sqlglot/dialects/oracle.py +++ b/sqlglot/dialects/oracle.py @@ -15,6 +15,7 @@ from sqlglot.helper import seq_get from sqlglot.parser import OPTIONS_TYPE, build_coalesce from sqlglot.tokens import TokenType ...
diff --git a/tests/dialects/test_oracle.py b/tests/dialects/test_oracle.py index d2bbedcde5..36ce5d02e6 100644 --- a/tests/dialects/test_oracle.py +++ b/tests/dialects/test_oracle.py @@ -329,6 +329,57 @@ def test_hints(self): ) self.validate_identity("INSERT /*+ APPEND */ INTO IAP_TBL (id, col1) VALUE...
2024-10-15T19:16:53
{"README.md": "<p align=\"center\">\n <a href=\"https://gmago-leway.github.io/fea-bench.github.io/\">\n <img src=\"assets/FEA-Bench-full.png\" style=\"height: 10em\" alt=\"fea-bench\" />\n </a>\n</p>\n\n<p align=\"center\">\n <em>A benchmark that aims to evaluate the capability of implementing new features in the...
{"sqlglot/dialects/oracle.py": "from __future__ import annotations\n\nimport typing as t\n\nfrom sqlglot import exp, generator, parser, tokens, transforms\nfrom sqlglot.dialects.dialect import (\n Dialect,\n NormalizationStrategy,\n build_formatted_time,\n no_ilike_sql,\n rename_func,\n to_number_with...
{"sqlglot/dialects/oracle.py": [{"type": "function", "name": "Oracle.Parser._parse_hint_function_call", "lines": [237, 247], "signature": "def _parse_hint_function_call(self) -> t.Optional[exp.Expression]:", "doc": ""}, {"type": "function", "name": "Oracle.Parser._parse_hint_args", "lines": [249, 257], "signature": "de...
null
["tests/dialects/test_oracle.py::TestOracle::test_hints"]
["tests/dialects/test_oracle.py::TestOracle::test_connect_by", "tests/dialects/test_oracle.py::TestOracle::test_grant", "tests/dialects/test_oracle.py::TestOracle::test_join_marker", "tests/dialects/test_oracle.py::TestOracle::test_json_functions", "tests/dialects/test_oracle.py::TestOracle::test_json_table", "tests/di...
ceb42fabad60312699e4b15936aeebac00e22e4d
{"first_commit_time": 1729019229.0, "pr_title": "Feature/oracle hints", "pr_body": "Hi @georgesittas \r\n\r\nPlease review this PR we discussed over on [Slack](https://tobiko-data.slack.com/archives/C0448SFS3PF/p1728489927717069), which adds better support for Oracle Hints.\r\n\r\n----\r\n\r\nThe current sqlglot implem...
tobymao/sqlglot
4,433
https://github.com/tobymao/sqlglot/pull/4433
tobymao__sqlglot-4433
[]
38e2e19ac3e20224dc07128994a47340aa56e635
diff --git a/sqlglot/dialects/snowflake.py b/sqlglot/dialects/snowflake.py index 1d2b246e5d..35ac0509cf 100644 --- a/sqlglot/dialects/snowflake.py +++ b/sqlglot/dialects/snowflake.py @@ -198,43 +198,58 @@ def _flatten_structured_type(expression: exp.DataType) -> exp.DataType: return expression -def _unnest_gen...
diff --git a/tests/dialects/test_dialect.py b/tests/dialects/test_dialect.py index f0711fc585..c1aa054a0e 100644 --- a/tests/dialects/test_dialect.py +++ b/tests/dialects/test_dialect.py @@ -2854,6 +2854,13 @@ def test_generate_date_array(self): }, ) + self.validate_all( + "SEL...
2024-11-20T16:28:28
{"README.md": "<p align=\"center\">\n <a href=\"https://gmago-leway.github.io/fea-bench.github.io/\">\n <img src=\"assets/FEA-Bench-full.png\" style=\"height: 10em\" alt=\"fea-bench\" />\n </a>\n</p>\n\n<p align=\"center\">\n <em>A benchmark that aims to evaluate the capability of implementing new features in the...
{"sqlglot/dialects/snowflake.py": "from __future__ import annotations\n\nimport typing as t\n\nfrom sqlglot import exp, generator, parser, tokens, transforms\nfrom sqlglot.dialects.dialect import (\n Dialect,\n NormalizationStrategy,\n binary_from_function,\n build_default_decimal_type,\n build_timestamp...
{"sqlglot/dialects/snowflake.py": [{"type": "function", "name": "_transform_generate_date_array", "lines": [233, 254], "signature": "def _transform_generate_date_array(expression: exp.Expression) -> exp.Expression:", "doc": ""}]}
null
["tests/dialects/test_dialect.py::TestDialect::test_generate_date_array"]
["tests/dialects/test_dialect.py::TestDialect::test_alias", "tests/dialects/test_dialect.py::TestDialect::test_array", "tests/dialects/test_dialect.py::TestDialect::test_array_any", "tests/dialects/test_dialect.py::TestDialect::test_cast", "tests/dialects/test_dialect.py::TestDialect::test_cast_to_user_defined_type", "...
ceb42fabad60312699e4b15936aeebac00e22e4d
{"first_commit_time": 1732118186.0, "pr_title": "feat(snowflake): Transpile non-UNNEST exp.GenerateDateArray refs", "pr_body": "Currently, transpilation of BQ's `GENERATE_DATE_ARRAY` to Snowflake is supported only if it's `UNNEST`ed (introduced by https://github.com/tobymao/sqlglot/pull/3899), e.g:\r\n\r\n\r\n1. Suppor...
tobymao/sqlglot
4,486
https://github.com/tobymao/sqlglot/pull/4486
tobymao__sqlglot-4486
[]
2655d7c11d677cf47f33ac62fbfb86f4117ffd75
diff --git a/sqlglot/dialects/snowflake.py b/sqlglot/dialects/snowflake.py index e0d392b0cd..93731f3049 100644 --- a/sqlglot/dialects/snowflake.py +++ b/sqlglot/dialects/snowflake.py @@ -107,6 +107,13 @@ def _builder(args: t.List) -> E: return _builder +def _build_bitor(args: t.List) -> exp.BitwiseOr | exp.Ano...
diff --git a/tests/dialects/test_snowflake.py b/tests/dialects/test_snowflake.py index 4eb97235da..f70023b9ea 100644 --- a/tests/dialects/test_snowflake.py +++ b/tests/dialects/test_snowflake.py @@ -976,6 +976,12 @@ def test_snowflake(self): "snowflake": "EDITDISTANCE(col1, col2, 3)", }, ...
2024-12-09T09:14:24
{"README.md": "<p align=\"center\">\n <a href=\"https://gmago-leway.github.io/fea-bench.github.io/\">\n <img src=\"assets/FEA-Bench-full.png\" style=\"height: 10em\" alt=\"fea-bench\" />\n </a>\n</p>\n\n<p align=\"center\">\n <em>A benchmark that aims to evaluate the capability of implementing new features in the...
{"sqlglot/dialects/snowflake.py": "from __future__ import annotations\n\nimport typing as t\n\nfrom sqlglot import exp, generator, parser, tokens, transforms\nfrom sqlglot.dialects.dialect import (\n Dialect,\n NormalizationStrategy,\n binary_from_function,\n build_default_decimal_type,\n build_timestamp...
{"sqlglot/dialects/snowflake.py": [{"type": "function", "name": "_build_bitor", "lines": [110, 114], "signature": "def _build_bitor(args: t.List) -> exp.BitwiseOr | exp.Anonymous:", "doc": ""}]}
null
["tests/dialects/test_snowflake.py::TestSnowflake::test_snowflake"]
["tests/dialects/test_snowflake.py::TestSnowflake::test_alter_set_unset", "tests/dialects/test_snowflake.py::TestSnowflake::test_copy", "tests/dialects/test_snowflake.py::TestSnowflake::test_ddl", "tests/dialects/test_snowflake.py::TestSnowflake::test_describe_table", "tests/dialects/test_snowflake.py::TestSnowflake::t...
ceb42fabad60312699e4b15936aeebac00e22e4d
{"first_commit_time": 1733734911.0, "pr_title": "feat(snowflake): Transpile support for bitor/bit_or snowflake function", "pr_body": "scenarios involving binary data manipulation, such as managing permission sets or feature flags.\r\n\r\nBITOR Function:\r\n\r\nThe BITOR function computes the bitwise OR between two nume...
tobymao/sqlglot
4,537
https://github.com/tobymao/sqlglot/pull/4537
tobymao__sqlglot-4537
[]
6992c1855f343a5d0120a3b4c993d8c406dd29ba
diff --git a/sqlglot/dialects/tsql.py b/sqlglot/dialects/tsql.py index 1acc5ca8a7..7aa7a0e22b 100644 --- a/sqlglot/dialects/tsql.py +++ b/sqlglot/dialects/tsql.py @@ -370,6 +370,16 @@ def _timestrtotime_sql(self: TSQL.Generator, expression: exp.TimeStrToTime): return sql +def _build_datetrunc(args: t.List) -> ...
diff --git a/tests/dialects/test_tsql.py b/tests/dialects/test_tsql.py index e8cd69648b..4c61780d76 100644 --- a/tests/dialects/test_tsql.py +++ b/tests/dialects/test_tsql.py @@ -2090,3 +2090,27 @@ def test_next_value_for(self): "oracle": "SELECT NEXT VALUE FOR db.schema.sequence_name", },...
2024-12-19T12:43:38
{"README.md": "<p align=\"center\">\n <a href=\"https://gmago-leway.github.io/fea-bench.github.io/\">\n <img src=\"assets/FEA-Bench-full.png\" style=\"height: 10em\" alt=\"fea-bench\" />\n </a>\n</p>\n\n<p align=\"center\">\n <em>A benchmark that aims to evaluate the capability of implementing new features in the...
{"sqlglot/dialects/tsql.py": "from __future__ import annotations\n\nimport datetime\nimport re\nimport typing as t\nfrom functools import partial, reduce\n\nfrom sqlglot import exp, generator, parser, tokens, transforms\nfrom sqlglot.dialects.dialect import (\n Dialect,\n NormalizationStrategy,\n any_value_to_...
{"sqlglot/dialects/tsql.py": [{"type": "function", "name": "_build_datetrunc", "lines": [373, 380], "signature": "def _build_datetrunc(args: t.List) -> exp.TimestampTrunc:", "doc": ""}]}
null
["tests/dialects/test_tsql.py::TestTSQL::test_datetrunc"]
["tests/dialects/test_tsql.py::TestTSQL::test_add_date", "tests/dialects/test_tsql.py::TestTSQL::test_charindex", "tests/dialects/test_tsql.py::TestTSQL::test_commit", "tests/dialects/test_tsql.py::TestTSQL::test_convert", "tests/dialects/test_tsql.py::TestTSQL::test_count", "tests/dialects/test_tsql.py::TestTSQL::test...
ceb42fabad60312699e4b15936aeebac00e22e4d
{"first_commit_time": 1734611228.0, "pr_title": "feat(tsql): add support for DATETRUNC #4531", "pr_body": "Fixes [https://github.com/tobymao/sqlglot/issues/4531](https://github.com/tobymao/sqlglot/issues/4531)\r\n\r\nThis PR adds support for the `DATETRUNC` function of `T-SQL`.\r\n\r\nIn cases, where the `date` paramet...