author int64 658 755k | date stringlengths 19 19 | timezone int64 -46,800 43.2k | hash stringlengths 40 40 | message stringlengths 5 490 | mods list | language stringclasses 20
values | license stringclasses 3
values | repo stringlengths 5 68 | original_message stringlengths 12 491 |
|---|---|---|---|---|---|---|---|---|---|
641,874 | 23.10.2022 19:03:34 | 14,400 | 5a58a90d61695dd7e5bb6603ebe2940e97a9be77 | MAINT: fix develop installs | [
{
"change_type": "MODIFY",
"old_path": "docs/source/dev/test_notes.rst",
"new_path": "docs/source/dev/test_notes.rst",
"diff": "@@ -7,11 +7,11 @@ Setting up development environment locally\n------------------------------------------\nFollow our :ref:`installation instructions <install>` and set up a... | Python | BSD 3-Clause New or Revised License | statsmodels/statsmodels | MAINT: fix develop installs |
641,896 | 26.10.2022 18:38:31 | -3,600 | 6c2260b474908cfe2cc70f04a072bd3c78bdbd2b | MAINT: Replave setup with setup_method in tests | [
{
"change_type": "MODIFY",
"old_path": "statsmodels/base/tests/test_generic_methods.py",
"new_path": "statsmodels/base/tests/test_generic_methods.py",
"diff": "@@ -294,7 +294,7 @@ class CheckGenericMixin:\nclass TestGenericOLS(CheckGenericMixin):\n- def setup(self):\n+ def setup_method(self):\n#fit ... | Python | BSD 3-Clause New or Revised License | statsmodels/statsmodels | MAINT: Replave setup with setup_method in tests |
641,896 | 26.10.2022 19:34:35 | -3,600 | 5e5064c54b84c929181034ef8113fba9f9f9c832 | TST: Correct super call | [
{
"change_type": "MODIFY",
"old_path": "statsmodels/graphics/tests/test_gofplots.py",
"new_path": "statsmodels/graphics/tests/test_gofplots.py",
"diff": "@@ -184,7 +184,7 @@ class TestProbPlotLongelyNoFit(BaseProbplotMixin):\nself.mod_fit.resid, dist=stats.t, distargs=(4,), fit=False\n)\nself.line =... | Python | BSD 3-Clause New or Revised License | statsmodels/statsmodels | TST: Correct super call |
641,896 | 26.10.2022 23:08:45 | -3,600 | fa5da2613b55058f86e83d0ea7dc8d5a70fa0b01 | Fix remainign setup -> setup_method | [
{
"change_type": "MODIFY",
"old_path": "statsmodels/graphics/tests/test_gofplots.py",
"new_path": "statsmodels/graphics/tests/test_gofplots.py",
"diff": "@@ -206,7 +206,7 @@ class TestProbPlotRandomNormalMinimal(BaseProbplotMixin):\nself.data = np.random.normal(loc=8.25, scale=3.25, size=37)\nself.p... | Python | BSD 3-Clause New or Revised License | statsmodels/statsmodels | Fix remainign setup -> setup_method |
641,971 | 28.10.2022 15:20:30 | 14,400 | 46bd59a90d96ad64c9c8f6ccc60b8f33162630b8 | BUG: GenericLikelihood Results hasattr for df_resid is always true, see | [
{
"change_type": "MODIFY",
"old_path": "statsmodels/base/model.py",
"new_path": "statsmodels/base/model.py",
"diff": "@@ -859,6 +859,10 @@ class GenericLikelihoodModel(LikelihoodModel):\nelse:\nself.data.xnames = extra_params_names\n+ self.k_extra = len(extra_params_names)\n+ if hasattr(self, \"df_r... | Python | BSD 3-Clause New or Revised License | statsmodels/statsmodels | BUG: GenericLikelihood Results hasattr for df_resid is always true, see #8475 |
641,971 | 31.10.2022 11:09:28 | 14,400 | e4da3e0ee246cd70fd1edf6edb578978e406b343 | REF/TST: adjust df_resid, df_model. Note, change in definition of df_model | [
{
"change_type": "MODIFY",
"old_path": "statsmodels/miscmodels/count.py",
"new_path": "statsmodels/miscmodels/count.py",
"diff": "@@ -162,9 +162,9 @@ class PoissonZiGMLE(GenericLikelihoodModel):\ndef __init__(self, endog, exog=None, offset=None, missing='none', **kwds):\n# let them be none in case u... | Python | BSD 3-Clause New or Revised License | statsmodels/statsmodels | REF/TST: adjust df_resid, df_model. Note, change in definition of df_model |
641,971 | 31.10.2022 13:01:37 | 14,400 | 7beaa12cb9be234e016357d15ce5352eef4dbf88 | REF: define df_model as excess over k_null in BetaModel, DiscretizedModel | [
{
"change_type": "MODIFY",
"old_path": "statsmodels/distributions/discrete.py",
"new_path": "statsmodels/distributions/discrete.py",
"diff": "@@ -405,7 +405,8 @@ class DiscretizedModel(GenericLikelihoodModel):\nsuper().__init__(endog, exog, distr=distr)\nself._init_keys.append('distr')\nself.df_resi... | Python | BSD 3-Clause New or Revised License | statsmodels/statsmodels | REF: define df_model as excess over k_null in BetaModel, DiscretizedModel |
641,971 | 01.11.2022 12:22:31 | 14,400 | 3064f2aba1a2dcc04b4dc90e15db3d1aff5f44c1 | DOC: fix docstrings in stats | [
{
"change_type": "MODIFY",
"old_path": "statsmodels/stats/proportion.py",
"new_path": "statsmodels/stats/proportion.py",
"diff": "@@ -1275,6 +1275,11 @@ def confint_proportions_2indep(count1, nobs1, count2, nobs2, method=None,\n-------\nlow, upp\n+ See Also\n+ --------\n+ test_proportions_2indep\n+ ... | Python | BSD 3-Clause New or Revised License | statsmodels/statsmodels | DOC: fix docstrings in stats |
641,971 | 01.11.2022 13:44:13 | 14,400 | 80daf668966f484eb49fbb43ba9daaca74322357 | DOC: try links to notebook examples | [
{
"change_type": "MODIFY",
"old_path": "docs/source/stats.rst",
"new_path": "docs/source/stats.rst",
"diff": "@@ -464,6 +464,8 @@ Rates\nStatistical functions for rates. This currently includes hypothesis tests for\ntwo independent samples.\n+See also example notebook for an overview\n+`Poisson Rate... | Python | BSD 3-Clause New or Revised License | statsmodels/statsmodels | DOC: try links to notebook examples |
641,971 | 02.11.2022 10:12:39 | 14,400 | 0eb05ada3f25140843cc0b3aa71269bb6db4f72d | DOC: docstring TreatmentEffectResults | [
{
"change_type": "MODIFY",
"old_path": "statsmodels/treatment/treatment_effects.py",
"new_path": "statsmodels/treatment/treatment_effects.py",
"diff": "@@ -528,6 +528,21 @@ class _IPWRAGMM(_TEGMMGeneric1):\nclass TreatmentEffectResults(ContrastResults):\n\"\"\"Results class for treatment effect esti... | Python | BSD 3-Clause New or Revised License | statsmodels/statsmodels | DOC: docstring TreatmentEffectResults |
641,971 | 02.11.2022 10:16:14 | 14,400 | 744581c16403bf554e25f5756eb7493ba30ede85 | REF: move Poisson dispersion tests to discrete | [
{
"change_type": "MODIFY",
"old_path": "statsmodels/discrete/_diagnostics_count.py",
"new_path": "statsmodels/discrete/_diagnostics_count.py",
"diff": "@@ -227,6 +227,159 @@ def test_chisquare_prob(results, probs, bin_edges=None, method=None):\nreturn res\n+def dispersion_poisson(results):\n+ \"\"\"... | Python | BSD 3-Clause New or Revised License | statsmodels/statsmodels | REF: move Poisson dispersion tests to discrete |
641,971 | 02.11.2022 13:06:01 | 14,400 | cbff0968355b5b2af526186289187ac5d11adfdc | REF: refactor poisson dispersion api, returns | [
{
"change_type": "MODIFY",
"old_path": "examples/notebooks/postestimation_poisson.ipynb",
"new_path": "examples/notebooks/postestimation_poisson.ipynb",
"diff": "{\n\"cell_type\": \"code\",\n\"execution_count\": null,\n- \"id\": \"c54a480e\",\n+ \"id\": \"3f9f42c9\",\n\"metadata\": {},\n\"outputs\":... | Python | BSD 3-Clause New or Revised License | statsmodels/statsmodels | REF: refactor poisson dispersion api, returns |
641,966 | 04.11.2022 14:08:36 | -3,600 | 2677dda98265eb94d3a8dbfb6df8d57e98f303b1 | add parameter allow_singular for gaussian copula | [
{
"change_type": "MODIFY",
"old_path": "statsmodels/distributions/copula/elliptical.py",
"new_path": "statsmodels/distributions/copula/elliptical.py",
"diff": "@@ -124,6 +124,8 @@ class GaussianCopula(EllipticalCopula):\nmatrix is the identity matrix.\nk_dim : int\nDimension, number of components in... | Python | BSD 3-Clause New or Revised License | statsmodels/statsmodels | add parameter allow_singular for gaussian copula |
641,971 | 07.11.2022 11:59:08 | 18,000 | f1f71cb12bd457c14137ba9eba7d30e4931a36d9 | REF/ENH: GLM predict which and get_prediction | [
{
"change_type": "MODIFY",
"old_path": "statsmodels/base/_prediction_inference.py",
"new_path": "statsmodels/base/_prediction_inference.py",
"diff": "@@ -775,6 +775,13 @@ def get_prediction(self, exog=None, transform=True, which=\"mean\",\n# TODO: add link or ilink to all link based models (except z... | Python | BSD 3-Clause New or Revised License | statsmodels/statsmodels | REF/ENH: GLM predict which and get_prediction |
641,971 | 09.11.2022 12:55:27 | 18,000 | cf28e1582bc074790559ab3df3a41d33a10fd6fc | TST: add get_prediction test for gaussian, handle DeprecationWarnings in test | [
{
"change_type": "MODIFY",
"old_path": "statsmodels/genmod/tests/test_glm.py",
"new_path": "statsmodels/genmod/tests/test_glm.py",
"diff": "@@ -297,6 +297,8 @@ class CheckComparisonMixin:\nassert_equal(df, 1)\ndef test_get_prediction(self):\n+ with pytest.warns(DeprecationWarning):\n+ # deprecation ... | Python | BSD 3-Clause New or Revised License | statsmodels/statsmodels | TST: add get_prediction test for gaussian, handle DeprecationWarnings in test |
641,971 | 10.11.2022 13:03:19 | 18,000 | c50a35f98d4240f96e9b074d8d5187b9f05f9fc3 | ENH/DOC: GLM add predict for var_unscaled, get_prediction docstring | [
{
"change_type": "MODIFY",
"old_path": "statsmodels/genmod/generalized_linear_model.py",
"new_path": "statsmodels/genmod/generalized_linear_model.py",
"diff": "@@ -868,7 +868,8 @@ class GLM(base.LikelihoodModel):\n- 'mean' returns the conditional expectation of endog E(y | x),\ni.e. inverse of the m... | Python | BSD 3-Clause New or Revised License | statsmodels/statsmodels | ENH/DOC: GLM add predict for var_unscaled, get_prediction docstring |
641,930 | 12.11.2022 10:51:12 | 0 | f929cb1004e47ceaa056de637c8ca6f90dd81c00 | fix typo in fit_regularized | [
{
"change_type": "MODIFY",
"old_path": "statsmodels/discrete/conditional_models.py",
"new_path": "statsmodels/discrete/conditional_models.py",
"diff": "@@ -170,7 +170,7 @@ class _ConditionalModel(base.LikelihoodModel):\nfrom statsmodels.base.elastic_net import fit_elasticnet\nif method != \"elastic_... | Python | BSD 3-Clause New or Revised License | statsmodels/statsmodels | fix typo in fit_regularized |
641,971 | 27.11.2022 08:37:30 | 18,000 | ce89cae028f08aa0cb44544aa083bc65bcee93ce | MAINT: pandas get_dummies add dtype=float | [
{
"change_type": "MODIFY",
"old_path": "statsmodels/genmod/tests/results/results_glm.py",
"new_path": "statsmodels/genmod/tests/results/results_glm.py",
"diff": "@@ -708,7 +708,8 @@ class Lbw:\n\"stata_lbw_glm.csv\")\ndata = pd.read_csv(filename)\n- dummies = pd.get_dummies(data.race, prefix=\"race\... | Python | BSD 3-Clause New or Revised License | statsmodels/statsmodels | MAINT: pandas get_dummies add dtype=float |
641,971 | 27.11.2022 11:30:05 | 18,000 | 7e865ceb551c70abd691f8ff643bcf40bd5b9dfb | TST/Maint: fix grouputils tests, nonnumeric column | [
{
"change_type": "MODIFY",
"old_path": "statsmodels/tools/tests/test_grouputils.py",
"new_path": "statsmodels/tools/tests/test_grouputils.py",
"diff": "@@ -111,21 +111,20 @@ class CheckGrouping:\nnames = self.data.index.names\ntransformed_slices = self.grouping.transform_slices(\nself.data.values,\n... | Python | BSD 3-Clause New or Revised License | statsmodels/statsmodels | TST/Maint: fix grouputils tests, nonnumeric column |
641,971 | 27.11.2022 13:04:12 | 18,000 | d85cc4ab1f852b8c93b4214d9c8d9b1dd39a2f0e | TST: check data, model results is unchanged, mediation fit not replicable | [
{
"change_type": "MODIFY",
"old_path": "statsmodels/stats/tests/test_mediation.py",
"new_path": "statsmodels/stats/tests/test_mediation.py",
"diff": "@@ -169,6 +169,15 @@ def test_framing_example_moderator_formula():\ndef test_mixedlm():\n+ # check backwards compat of np.random\n+ np.random.seed(342... | Python | BSD 3-Clause New or Revised License | statsmodels/statsmodels | TST: check data, model results is unchanged, mediation fit not replicable |
641,971 | 31.08.2016 15:25:20 | 14,400 | ec7b933142baf64765faa893cced4e6b6a7ecfa8 | ENH: robust add MQuantileNorm | [
{
"change_type": "MODIFY",
"old_path": "statsmodels/robust/norms.py",
"new_path": "statsmodels/robust/norms.py",
"diff": "@@ -824,6 +824,106 @@ class TukeyBiweight(RobustNorm):\n- (4*z**2/self.c**2) * (1-(z/self.c)**2))\n+class MQuantileNorm(RobustNorm):\n+ \"\"\"M-quantiles objective function based... | Python | BSD 3-Clause New or Revised License | statsmodels/statsmodels | ENH: robust add MQuantileNorm |
641,971 | 29.11.2022 12:12:23 | 18,000 | 398ad2d810baf429c384589401244a193d9e87cc | TST: add unit test for RLM with MquantileNorm, versus quantreg, ols | [
{
"change_type": "ADD",
"old_path": null,
"new_path": "statsmodels/robust/tests/test_mquantiles.py",
"diff": "+'''\n+Created on Nov. 29, 2022\n+\n+Author: Josef Perktold\n+License: BSD-3\n+'''\n+\n+import numpy as np\n+from numpy.testing import assert_allclose\n+import pandas as pd\n+\n+from statsmo... | Python | BSD 3-Clause New or Revised License | statsmodels/statsmodels | TST: add unit test for RLM with MquantileNorm, versus quantreg, ols |
641,971 | 29.11.2022 13:17:45 | 18,000 | 6e0cb8f85531bb1832a76c2b6a8198210ccc6b67 | DOC/STY: docstrings, STY: remove unused variables | [
{
"change_type": "MODIFY",
"old_path": "statsmodels/robust/norms.py",
"new_path": "statsmodels/robust/norms.py",
"diff": "@@ -711,7 +711,7 @@ class Hampel(RobustNorm):\nreturn v\ndef psi_deriv(self, z):\n- t1, t2, t3 = self._subset(z)\n+ t1, _, t3 = self._subset(z)\na, b, c = self.a, self.b, self.c\... | Python | BSD 3-Clause New or Revised License | statsmodels/statsmodels | DOC/STY: docstrings, STY: remove unused variables |
641,833 | 30.11.2022 10:07:27 | 18,000 | 266431b6ec6c88b35c7c9537d47a8c43c22ca383 | BUG: normal_sample_size_one_tail, fix std_alt default, minimum nobs | [
{
"change_type": "MODIFY",
"old_path": "statsmodels/stats/power.py",
"new_path": "statsmodels/stats/power.py",
"diff": "@@ -182,29 +182,39 @@ def normal_sample_size_one_tail(diff, power, alpha, std_null=1.,\ndiff : float\ndifference in the estimated means or statistics under the alternative.\npower ... | Python | BSD 3-Clause New or Revised License | statsmodels/statsmodels | BUG: normal_sample_size_one_tail, fix std_alt default, minimum nobs |
641,855 | 19.06.2022 18:10:30 | 25,200 | 5d46e45f90fba19acf6c1871f9b7266a442f5ec7 | ENH: Nelder-Mead and Powell has bounds in scipy | [
{
"change_type": "MODIFY",
"old_path": "statsmodels/base/optimizer.py",
"new_path": "statsmodels/base/optimizer.py",
"diff": "@@ -7,6 +7,7 @@ from __future__ import annotations\nfrom typing import Any, Sequence\nimport numpy as np\nfrom scipy import optimize\n+from statsmodels.compat.scipy import SP... | Python | BSD 3-Clause New or Revised License | statsmodels/statsmodels | ENH: Nelder-Mead and Powell has bounds in scipy |
641,971 | 30.11.2022 15:12:53 | 18,000 | 5911d273f05259e65e34d0b59aa9ce5c18992bec | STY: lint, pep-8 of empirical distribution, remove `__main__` | [
{
"change_type": "MODIFY",
"old_path": "lint.sh",
"new_path": "lint.sh",
"diff": "@@ -75,6 +75,7 @@ if [ \"$LINT\" == true ]; then\nstatsmodels/discrete/truncated_model.py \\\nstatsmodels/distributions/__init__.py \\\nstatsmodels/distributions/bernstein.py \\\n+ statsmodels/distributions/empirical_d... | Python | BSD 3-Clause New or Revised License | statsmodels/statsmodels | STY: lint, pep-8 of empirical distribution, remove `__main__` |
641,971 | 22.01.2022 14:12:52 | 18,000 | 97546deb97143d62b33877d7928d9984896b63f6 | DOC: docstring | [
{
"change_type": "MODIFY",
"old_path": "statsmodels/discrete/truncated_model.py",
"new_path": "statsmodels/discrete/truncated_model.py",
"diff": "@@ -274,14 +274,56 @@ class TruncatedLFGeneric(CountModel):\ndef predict(self, params, exog=None, exposure=None, offset=None,\nwhich='mean', y_values=None... | Python | BSD 3-Clause New or Revised License | statsmodels/statsmodels | DOC: docstring |
641,971 | 01.12.2022 09:58:12 | 18,000 | a82a1b402d5be4d7b75e0486d3337ffc5a14df08 | DOC/TST: missing rename in unit test, fix docstrings | [
{
"change_type": "MODIFY",
"old_path": "statsmodels/discrete/discrete_model.py",
"new_path": "statsmodels/discrete/discrete_model.py",
"diff": "@@ -4549,15 +4549,15 @@ class DiscreteResults(base.LikelihoodModelResults):\nOne of 'aic', 'bic', 'tic' or 'gbic'.\ndk_params : int or float\nCorrection to ... | Python | BSD 3-Clause New or Revised License | statsmodels/statsmodels | DOC/TST: missing rename in unit test, fix docstrings |
641,912 | 03.12.2022 14:21:01 | -3,600 | c4ba343db29c20dd57bf3d421699d95fec002ecc | Orthographic fix
numer fixed to number in line 405 | [
{
"change_type": "MODIFY",
"old_path": "statsmodels/gam/smooth_basis.py",
"new_path": "statsmodels/gam/smooth_basis.py",
"diff": "@@ -402,7 +402,7 @@ class UnivariateBSplines(UnivariateGamSmoother):\nx : ndarray, 1-D\nunderlying explanatory variable for smooth terms.\ndf : int\n- numer of basis func... | Python | BSD 3-Clause New or Revised License | statsmodels/statsmodels | Orthographic fix
numer fixed to number in line 405 |
641,954 | 04.12.2022 12:36:14 | -19,080 | c6b06c7e7766571ecf12dfd9a690ba1724bcb1c5 | Changes made sentence in documentation on endogeneity | [
{
"change_type": "MODIFY",
"old_path": "docs/source/endog_exog.rst",
"new_path": "docs/source/endog_exog.rst",
"diff": "@@ -79,7 +79,7 @@ It is up to the user to know (or to consult a text book to find out) what the\nunderlying statistical assumptions for the models are. As an example, ``exog``\nin ... | Python | BSD 3-Clause New or Revised License | statsmodels/statsmodels | Changes made sentence in documentation on endogeneity |
641,967 | 15.11.2022 08:13:07 | 28,800 | 0ec9e310ed6338420f319f00ba615fb1b5ba79a3 | BUG: Dickey Fuller constant values (issue ) | [
{
"change_type": "MODIFY",
"old_path": "statsmodels/tsa/stattools.py",
"new_path": "statsmodels/tsa/stattools.py",
"diff": "@@ -268,6 +268,9 @@ def adfuller(\nstore = bool_like(store, \"store\")\nregresults = bool_like(regresults, \"regresults\")\n+ if x.max() == x.min():\n+ raise ValueError(\"Inval... | Python | BSD 3-Clause New or Revised License | statsmodels/statsmodels | BUG: Dickey Fuller constant values (issue #8471 ) |
641,971 | 02.12.2022 12:16:04 | 18,000 | 57eefd779e262a2d921ab725f116c73705be5748 | REF: PerfectSeparation, warn by default instead of raise, GLM, discrete | [
{
"change_type": "MODIFY",
"old_path": "statsmodels/discrete/discrete_model.py",
"new_path": "statsmodels/discrete/discrete_model.py",
"diff": "@@ -42,6 +42,7 @@ from statsmodels.tools.decorators import cache_readonly\nfrom statsmodels.tools.numdiff import approx_fprime_cs\nfrom statsmodels.tools.sm... | Python | BSD 3-Clause New or Revised License | statsmodels/statsmodels | REF: PerfectSeparation, warn by default instead of raise, GLM, discrete |
641,971 | 05.12.2022 12:11:43 | 18,000 | 108b49c3cec5d7c59c4933a45c4d9c7e493a20cc | BUG/TST: tweedie loglikeobs shape mismatch, add glm tweedie tests | [
{
"change_type": "MODIFY",
"old_path": "statsmodels/genmod/families/family.py",
"new_path": "statsmodels/genmod/families/family.py",
"diff": "@@ -1631,6 +1631,7 @@ class Tweedie(Family):\nBiometrika 74:2, pp 221-232. https://www.jstor.org/stable/2336136\n\"\"\"\np = self.var_power\n+ endog = np.atle... | Python | BSD 3-Clause New or Revised License | statsmodels/statsmodels | BUG/TST: tweedie loglikeobs shape mismatch, add glm tweedie tests |
641,971 | 05.12.2022 14:16:02 | 18,000 | bf7ab5cbdb2c59ed8acf24efcac092dc16a9b00f | MAINT/COMPAT: condition on scipy version LT 1.7 | [
{
"change_type": "MODIFY",
"old_path": "statsmodels/genmod/families/family.py",
"new_path": "statsmodels/genmod/families/family.py",
"diff": "@@ -13,6 +13,7 @@ import warnings\nimport numpy as np\nfrom scipy import special, stats\n+from statsmodels.compat.scipy import SP_LT_17\nfrom . import links a... | Python | BSD 3-Clause New or Revised License | statsmodels/statsmodels | MAINT/COMPAT: condition on scipy version LT 1.7 |
641,971 | 05.12.2022 10:23:56 | 18,000 | 06ed86d71a2cd40a154ed64d21c7ff0fa933bbb3 | DOC: add to rst docs, fix docstrings | [
{
"change_type": "MODIFY",
"old_path": "docs/source/distributions.rst",
"new_path": "docs/source/distributions.rst",
"diff": "@@ -24,6 +24,7 @@ Empirical Distributions\n:toctree: generated/\nECDF\n+ ECDFDiscrete\nStepFunction\nmonotone_fn_inverter\n"
},
{
"change_type": "MODIFY",
"old_pa... | Python | BSD 3-Clause New or Revised License | statsmodels/statsmodels | DOC: add to rst docs, fix docstrings |
641,971 | 06.12.2022 10:56:18 | 18,000 | 2b75a7f43e4409dfa6b596c8254bc5cc740fefed | Maint: 2 CodeQL fixes | [
{
"change_type": "MODIFY",
"old_path": "statsmodels/genmod/families/family.py",
"new_path": "statsmodels/genmod/families/family.py",
"diff": "@@ -1312,7 +1312,7 @@ class NegativeBinomial(Family):\ndef __init__(self, link=None, alpha=1.):\nself.alpha = 1. * alpha # make it at least float\n- if alpha ... | Python | BSD 3-Clause New or Revised License | statsmodels/statsmodels | Maint: 2 CodeQL fixes |
641,971 | 06.12.2022 12:52:01 | 18,000 | ca20551483ec8e6963bd31849058fe1c3388d21c | REF: silence "linear" deprecationwarning in Influence classes | [
{
"change_type": "MODIFY",
"old_path": "statsmodels/base/_prediction_inference.py",
"new_path": "statsmodels/base/_prediction_inference.py",
"diff": "@@ -456,7 +456,8 @@ def get_prediction_glm(self, exog=None, transform=True,\nif pred_kwds is None:\npred_kwds = {}\n- pred_kwds['linear'] = False\n+ p... | Python | BSD 3-Clause New or Revised License | statsmodels/statsmodels | REF: silence "linear" deprecationwarning in Influence classes |
641,971 | 06.12.2022 14:07:20 | 18,000 | 5ec58e4950cf58117d2ae99d825e751aa2adb111 | TST: catch some expected warnings | [
{
"change_type": "MODIFY",
"old_path": "statsmodels/genmod/families/tests/test_family.py",
"new_path": "statsmodels/genmod/families/tests/test_family.py",
"diff": "\"\"\"\nTest functions for genmod.families.family\n\"\"\"\n+import warnings\n+\n+import pytest\n+\nimport numpy as np\nfrom numpy.testin... | Python | BSD 3-Clause New or Revised License | statsmodels/statsmodels | TST: catch some expected warnings |
641,872 | 16.05.2022 13:44:01 | -7,200 | cf31a7abfeb6e025382fd7a8587852cb1d1e91d4 | ENH: x13.py option for location oftemporary files | [
{
"change_type": "MODIFY",
"old_path": "statsmodels/tsa/x13.py",
"new_path": "statsmodels/tsa/x13.py",
"diff": "@@ -323,7 +323,8 @@ def x13_arima_analysis(endog, maxorder=(2, 1), maxdiff=(2, 1), diff=None,\nexog=None, log=None, outlier=True, trading=False,\nforecast_periods=None, retspec=False,\nspe... | Python | BSD 3-Clause New or Revised License | statsmodels/statsmodels | ENH: x13.py option for location oftemporary files |
641,896 | 08.12.2022 19:01:49 | 0 | a12b0d20921b4249ad10864df0fe67817e3d4c36 | DOC: Wrap text | [
{
"change_type": "MODIFY",
"old_path": "docs/source/endog_exog.rst",
"new_path": "docs/source/endog_exog.rst",
"diff": "@@ -79,8 +79,9 @@ It is up to the user to know (or to consult a text book to find out) what the\nunderlying statistical assumptions for the models are. As an example, ``exog``\nin ... | Python | BSD 3-Clause New or Revised License | statsmodels/statsmodels | DOC: Wrap text |
641,971 | 08.12.2022 13:00:13 | 18,000 | 4ec3a2ebe7a3ccf6a11ac66a0644fada3da742cf | REF: use allclose instead of equal in powerdiscrepancy | [
{
"change_type": "MODIFY",
"old_path": "statsmodels/stats/gof.py",
"new_path": "statsmodels/stats/gof.py",
"diff": "@@ -144,9 +144,9 @@ def powerdiscrepancy(observed, expected, lambd=0.0, axis=0, ddof=0):\nif axis == 0:\ne = e.T\n- if np.all(np.sum(e, axis=axis) == n):\n+ if np.allclose(np.sum(e, ax... | Python | BSD 3-Clause New or Revised License | statsmodels/statsmodels | REF: use allclose instead of equal in powerdiscrepancy |
641,971 | 08.12.2022 13:23:19 | 18,000 | ac96b476a5e050a072526731278a13f6e63d8f97 | ENH/REF: yule_walker use pinv if singular, closes | [
{
"change_type": "MODIFY",
"old_path": "statsmodels/regression/linear_model.py",
"new_path": "statsmodels/regression/linear_model.py",
"diff": "@@ -49,7 +49,10 @@ from statsmodels.emplike.elregress import _ELRegOpts\n# need import in module instead of lazily to copy `__doc__`\nfrom statsmodels.regre... | Python | BSD 3-Clause New or Revised License | statsmodels/statsmodels | ENH/REF: yule_walker use pinv if singular, closes #8363 |
641,971 | 08.12.2022 17:11:17 | 18,000 | 7caad61928d3324370e7cd917739d3a9a7e169a1 | REF/TST: genmod, avoid deprecated link names | [
{
"change_type": "MODIFY",
"old_path": "statsmodels/genmod/families/family.py",
"new_path": "statsmodels/genmod/families/family.py",
"diff": "@@ -712,7 +712,7 @@ class Gamma(Family):\ndef __init__(self, link=None):\nif link is None:\n- link = L.inverse_power()\n+ link = L.InversePower()\nsuper(Gamma... | Python | BSD 3-Clause New or Revised License | statsmodels/statsmodels | REF/TST: genmod, avoid deprecated link names |
641,971 | 09.12.2022 09:40:58 | 18,000 | 37b8acd579fca8417985d794655cd578c172adc0 | REF/ENH: make link check in genmod families optional | [
{
"change_type": "MODIFY",
"old_path": "statsmodels/genmod/families/family.py",
"new_path": "statsmodels/genmod/families/family.py",
"diff": "@@ -59,13 +59,14 @@ class Family:\n# <statsmodels.family.links.Power object at 0x9a4236c>]\n# for Poisson...\nself._link = link\n+ if self._check_link:\nif no... | Python | BSD 3-Clause New or Revised License | statsmodels/statsmodels | REF/ENH: make link check in genmod families optional |
641,971 | 09.12.2022 11:22:38 | 18,000 | b55884b20669134ec9dba6606fff2e0e5cb35ae7 | REF: use ValueWarning instead of UserWarning for negbin alpha check | [
{
"change_type": "MODIFY",
"old_path": "statsmodels/genmod/families/family.py",
"new_path": "statsmodels/genmod/families/family.py",
"diff": "@@ -14,6 +14,9 @@ import numpy as np\nfrom scipy import special, stats\nfrom statsmodels.compat.scipy import SP_LT_17\n+from statsmodels.tools.sm_exceptions i... | Python | BSD 3-Clause New or Revised License | statsmodels/statsmodels | REF: use ValueWarning instead of UserWarning for negbin alpha check |
641,971 | 09.12.2022 11:23:11 | 18,000 | 21c9afc60208417281d4810b55061468088203f4 | MAINT/TST: remove some warnings from discrete test run | [
{
"change_type": "MODIFY",
"old_path": "statsmodels/discrete/discrete_model.py",
"new_path": "statsmodels/discrete/discrete_model.py",
"diff": "@@ -2594,7 +2594,7 @@ class Probit(BinaryModel):\n@cache_readonly\ndef link(self):\nfrom statsmodels.genmod.families import links\n- link = links.probit()\n... | Python | BSD 3-Clause New or Revised License | statsmodels/statsmodels | MAINT/TST: remove some warnings from discrete test run |
641,863 | 19.12.2022 19:54:31 | -3,600 | 267a4ba0d013fe007af547153982b8d8d00a7ec9 | DOC: added notebook links to TSA documentation and doc strings | [
{
"change_type": "MODIFY",
"old_path": "docs/source/tsa.rst",
"new_path": "docs/source/tsa.rst",
"diff": "@@ -115,6 +115,9 @@ and supports exogenous regressors (an AR-X model) and seasonal effects.\nAR-X and related models can also be fitted with the `arima.ARIMA` class and the\n`SARIMAX` class (usi... | Python | BSD 3-Clause New or Revised License | statsmodels/statsmodels | DOC: added notebook links to TSA documentation and doc strings |
641,898 | 23.12.2022 18:28:57 | -39,600 | 0d65d1110bf75c59cde94f49dd8a2fb9b6851a74 | DOC: fix docstring typo in rank_compare_2indep
Type is "poolean" but probably should be "boolean" | [
{
"change_type": "MODIFY",
"old_path": "statsmodels/stats/nonparametric.py",
"new_path": "statsmodels/stats/nonparametric.py",
"diff": "@@ -374,7 +374,7 @@ def rank_compare_2indep(x1, x2, use_t=True):\n----------\nx1, x2 : array_like\nArray of samples, should be one-dimensional.\n- use_t : poolean\n... | Python | BSD 3-Clause New or Revised License | statsmodels/statsmodels | DOC: fix docstring typo in rank_compare_2indep
Type is "poolean" but probably should be "boolean" |
641,971 | 27.12.2022 14:49:01 | 18,000 | f042e5e4eeafac072d8325f29def5a0937820ac3 | TST: disable failing random test, imputation, mediation | [
{
"change_type": "MODIFY",
"old_path": "statsmodels/imputation/tests/test_mice.py",
"new_path": "statsmodels/imputation/tests/test_mice.py",
"diff": "@@ -349,7 +349,7 @@ class TestMICE:\nassert isinstance(x.family, sm.families.Binomial)\n@pytest.mark.slow\n- def test_combine(self):\n+ def t_est_comb... | Python | BSD 3-Clause New or Revised License | statsmodels/statsmodels | TST: disable failing random test, imputation, mediation |
641,971 | 27.12.2022 16:16:54 | 18,000 | 3c7c007bd005bd7c278895e719ccb618d2518645 | MAINT/REF: remove extradoc from distribution, scipy deprecation | [
{
"change_type": "MODIFY",
"old_path": "statsmodels/sandbox/distributions/extras.py",
"new_path": "statsmodels/sandbox/distributions/extras.py",
"diff": "@@ -82,7 +82,8 @@ class SkewNorm_gen(distributions.rv_continuous):\n#super(SkewNorm_gen,self).__init__(\ndistributions.rv_continuous.__init__(self... | Python | BSD 3-Clause New or Revised License | statsmodels/statsmodels | MAINT/REF: remove extradoc from distribution, scipy deprecation |
641,896 | 08.01.2023 13:58:39 | 0 | e286453ff1b108b37f15a6932d0c44d0019dd10e | MAINT/TST: Relax test tol for OSX fail | [
{
"change_type": "MODIFY",
"old_path": "statsmodels/miscmodels/tests/test_ordinal_model.py",
"new_path": "statsmodels/miscmodels/tests/test_ordinal_model.py",
"diff": "@@ -256,8 +256,9 @@ class TestProbitModel(CheckOrdinalModelMixin):\nscore1 = mod.score(res1.params * fact)\nscore_obs_numdiff = mod.... | Python | BSD 3-Clause New or Revised License | statsmodels/statsmodels | MAINT/TST: Relax test tol for OSX fail |
641,896 | 09.01.2023 00:14:20 | 0 | 007a18eec2bcf36aa50220b64dfbac9dd6f93814 | DOC: Fix indent | [
{
"change_type": "MODIFY",
"old_path": "statsmodels/tsa/statespace/mlemodel.py",
"new_path": "statsmodels/tsa/statespace/mlemodel.py",
"diff": "@@ -1932,14 +1932,14 @@ class MLEModel(tsbase.TimeSeriesModel):\nassumed to contain draws from the standard Normal distribution that\nmust be transformed us... | Python | BSD 3-Clause New or Revised License | statsmodels/statsmodels | DOC: Fix indent |
641,896 | 09.01.2023 22:50:13 | 0 | 8d2a1031a1664e69151b1d416a01a6405dedd00e | MAINT: Correct ContrastResults
Ensure pvalue is defined | [
{
"change_type": "MODIFY",
"old_path": "statsmodels/stats/contrast.py",
"new_path": "statsmodels/stats/contrast.py",
"diff": "@@ -57,6 +57,8 @@ class ContrastResults:\nself.pvalue = np.full_like(value, np.nan)\nnot_nan = ~np.isnan(value)\nself.pvalue[not_nan] = self.dist.sf(np.abs(value[not_nan])) *... | Python | BSD 3-Clause New or Revised License | statsmodels/statsmodels | MAINT: Correct ContrastResults
Ensure pvalue is defined |
641,896 | 09.01.2023 22:55:16 | 0 | ab1a87f6adcdf3d19f07a1fe375d7920b4d68ac6 | MAINT: Relax tolerance on test | [
{
"change_type": "MODIFY",
"old_path": "statsmodels/tsa/statespace/tests/test_weights.py",
"new_path": "statsmodels/tsa/statespace/tests/test_weights.py",
"diff": "@@ -515,7 +515,7 @@ def test_compute_t_compute_j(compute_j, compute_t, reset_randomstate):\nif j not in compute_j:\ndesired[:, j] = np.n... | Python | BSD 3-Clause New or Revised License | statsmodels/statsmodels | MAINT: Relax tolerance on test |
641,896 | 09.01.2023 23:22:30 | 0 | bcc77db032d9137c2a00cee18e9ca5faf6ff4b6a | DOC: Fix dumplicate section | [
{
"change_type": "MODIFY",
"old_path": "statsmodels/tsa/ardl/model.py",
"new_path": "statsmodels/tsa/ardl/model.py",
"diff": "@@ -267,6 +267,10 @@ class ARDL(AutoReg):\nthen the 0-th lag of the exogenous variables is not included and the\nsum starts at ``m=1``.\n+ See the notebook `Autoregressive Di... | Python | BSD 3-Clause New or Revised License | statsmodels/statsmodels | DOC: Fix dumplicate section |
641,896 | 17.01.2023 23:12:06 | 0 | 6eabaddee852da890746dcea0e1be0f617c974f3 | DOC: Fix extlinks | [
{
"change_type": "MODIFY",
"old_path": "docs/source/conf.py",
"new_path": "docs/source/conf.py",
"diff": "@@ -420,9 +420,9 @@ import pandas as pd\n\"\"\"\nextlinks = {'pr': ('https://github.com/statsmodels/statsmodels/pull/%s',\n- 'PR #'),\n+ 'PR #%s'),\n'issue': ('https://github.com/statsmodels/sta... | Python | BSD 3-Clause New or Revised License | statsmodels/statsmodels | DOC: Fix extlinks |
641,971 | 19.01.2023 12:53:33 | 18,000 | f80fa52ed92ac293b0ed7f9a2168b702b91aeaad | BUG: fix fdrcorrection_twostage, order, pvals>1. closes | [
{
"change_type": "MODIFY",
"old_path": "statsmodels/stats/multitest.py",
"new_path": "statsmodels/stats/multitest.py",
"diff": "@@ -385,7 +385,7 @@ def fdrcorrection_twostage(pvals, alpha=0.05, method='bky', iter=False,\npvalue-corrected : ndarray\npvalues adjusted for multiple hypotheses testing to... | Python | BSD 3-Clause New or Revised License | statsmodels/statsmodels | BUG: fix fdrcorrection_twostage, order, pvals>1. closes #8619 |
641,971 | 20.01.2023 12:55:22 | 18,000 | 2604f41694fd175b9f1fa0d16807359389787b85 | ENH: use maxiter in twostage fdr | [
{
"change_type": "MODIFY",
"old_path": "statsmodels/stats/multitest.py",
"new_path": "statsmodels/stats/multitest.py",
"diff": "@@ -60,7 +60,9 @@ for m in _alias_list:\nfor a in m[1:]:\nmultitest_alias[a] = m[0]\n-def multipletests(pvals, alpha=0.05, method='hs', is_sorted=False,\n+def multipletests... | Python | BSD 3-Clause New or Revised License | statsmodels/statsmodels | ENH: use maxiter in twostage fdr |
641,971 | 25.01.2023 09:51:50 | 18,000 | ea937076f5cd21ae29b04175419c0ede991be6a2 | MAINT: add FutureWarning for deprecation of iter in fdrcorrection_twostage | [
{
"change_type": "MODIFY",
"old_path": "statsmodels/stats/multitest.py",
"new_path": "statsmodels/stats/multitest.py",
"diff": "@@ -401,6 +401,7 @@ def fdrcorrection_twostage(pvals, alpha=0.05, method='bky',\nmaxiter=True is full iteration (maxiter=-1 or maxiter=len(pvals))\niter : bool\n+ ``iter`` ... | Python | BSD 3-Clause New or Revised License | statsmodels/statsmodels | MAINT: add FutureWarning for deprecation of iter in fdrcorrection_twostage |
641,971 | 25.01.2023 15:48:26 | 18,000 | 4655d9e6efb1e319f8d6eec3928521028117a90a | BUG/ENH: archimedean k_dim > 2, deriv inverse in generator transform | [
{
"change_type": "MODIFY",
"old_path": "statsmodels/distributions/copula/archimedean.py",
"new_path": "statsmodels/distributions/copula/archimedean.py",
"diff": "@@ -80,41 +80,57 @@ class ArchimedeanCopula(Copula):\nargs = self._handle_args(args)\naxis = -1\nu = np.asarray(u)\n- if u.shape[-1] > 2:\... | Python | BSD 3-Clause New or Revised License | statsmodels/statsmodels | BUG/ENH: archimedean k_dim > 2, deriv inverse in generator transform |
641,971 | 25.01.2023 17:54:16 | 18,000 | 49e930ec1d4e87ac04c4cb5480c94734c01cbc37 | BUG/ENH: archimedean classes pdf k_dim > 2 | [
{
"change_type": "MODIFY",
"old_path": "statsmodels/distributions/copula/archimedean.py",
"new_path": "statsmodels/distributions/copula/archimedean.py",
"diff": "@@ -178,10 +178,13 @@ class ClaytonCopula(ArchimedeanCopula):\ndef pdf(self, u, args=()):\nu = np.atleast_2d(u)\nth, = self._handle_args(a... | Python | BSD 3-Clause New or Revised License | statsmodels/statsmodels | BUG/ENH: archimedean classes pdf k_dim > 2 |
641,971 | 26.01.2023 14:39:33 | 18,000 | 82dce173eafc5c3abcf57b8b2c0e5ddd6773f346 | REF/ENH/TST: unit test for k_dim=4, use generator Archimedean logpdf | [
{
"change_type": "MODIFY",
"old_path": "statsmodels/distributions/copula/archimedean.py",
"new_path": "statsmodels/distributions/copula/archimedean.py",
"diff": "@@ -188,7 +188,7 @@ class ClaytonCopula(ArchimedeanCopula):\ndef logpdf(self, u, args=()):\n# we skip Archimedean logpdf, that uses numdif... | Python | BSD 3-Clause New or Revised License | statsmodels/statsmodels | REF/ENH/TST: unit test for k_dim=4, use generator Archimedean logpdf |
641,971 | 27.01.2023 12:25:57 | 18,000 | 73baa26dec0000d0b7194d3ca825ad5033ad943b | REF: shape/axis of return, check exception fo k_dim | [
{
"change_type": "MODIFY",
"old_path": "statsmodels/distributions/copula/archimedean.py",
"new_path": "statsmodels/distributions/copula/archimedean.py",
"diff": "@@ -63,9 +63,20 @@ class ArchimedeanCopula(Copula):\nreturn args\n+ def _handle_u(self, u):\n+ u = np.asarray(u)\n+ if u.shape[-1] != self... | Python | BSD 3-Clause New or Revised License | statsmodels/statsmodels | REF: shape/axis of return, check exception fo k_dim |
641,971 | 27.01.2023 16:19:13 | 18,000 | 3e6d5eca3f46e0e58a3a469039c860ccae9f96c8 | ENH: add special functions for archimedean pdf and generator derivatives | [
{
"change_type": "ADD",
"old_path": null,
"new_path": "statsmodels/distributions/copula/_special.py",
"diff": "+\"\"\"\n+\n+Special functions for copulas not available in scipy\n+\n+Created on Jan. 27, 2023\n+\"\"\"\n+\n+import numpy as np\n+from scipy.special import factorial\n+\n+\n+class Sterling... | Python | BSD 3-Clause New or Revised License | statsmodels/statsmodels | ENH: add special functions for archimedean pdf and generator derivatives |
641,971 | 01.02.2023 10:13:45 | 18,000 | 0b6fbddddfe127c19a27859d3fdce2d1078c8a34 | ENH/TST: archimedean rvs for k_dim>2, test/gof tools | [
{
"change_type": "MODIFY",
"old_path": "statsmodels/distributions/copula/archimedean.py",
"new_path": "statsmodels/distributions/copula/archimedean.py",
"diff": "@@ -176,14 +176,18 @@ class ClaytonCopula(ArchimedeanCopula):\nself.theta = theta\ndef rvs(self, nobs=1, args=(), random_state=None):\n- i... | Python | BSD 3-Clause New or Revised License | statsmodels/statsmodels | ENH/TST: archimedean rvs for k_dim>2, test/gof tools |
641,971 | 01.02.2023 14:30:58 | 18,000 | ec5d92126c42ebf50aecbf5e104ec66a03083eb9 | ENH/TST: archimedean rvs for k_dim>2, fix tools for k_dim>2, cdfgrid | [
{
"change_type": "MODIFY",
"old_path": "statsmodels/distributions/copula/archimedean.py",
"new_path": "statsmodels/distributions/copula/archimedean.py",
"diff": "@@ -176,9 +176,6 @@ class ClaytonCopula(ArchimedeanCopula):\nself.theta = theta\ndef rvs(self, nobs=1, args=(), random_state=None):\n- # i... | Python | BSD 3-Clause New or Revised License | statsmodels/statsmodels | ENH/TST: archimedean rvs for k_dim>2, fix tools for k_dim>2, cdfgrid |
641,971 | 01.02.2023 15:53:24 | 18,000 | 6e445f75482e19d6ef21deca6dda3aa18123e683 | ENH/REF/DOC: fit_corr_param, nearest_matrix_margins | [
{
"change_type": "MODIFY",
"old_path": "statsmodels/distributions/copula/copulas.py",
"new_path": "statsmodels/distributions/copula/copulas.py",
"diff": "@@ -487,13 +487,17 @@ class Copula(ABC):\ncorr_param : float\nCorrelation parameter of the copula, ``theta`` in Archimedean and\npearson correlati... | Python | BSD 3-Clause New or Revised License | statsmodels/statsmodels | ENH/REF/DOC: fit_corr_param, nearest_matrix_margins |
641,971 | 02.02.2023 11:41:22 | 18,000 | e95fd32b39f1f9956c88130738403c009bffe898 | TST/REF: fix check_cop_rvs by transposing approx_copula_pdf | [
{
"change_type": "MODIFY",
"old_path": "statsmodels/distributions/copula/elliptical.py",
"new_path": "statsmodels/distributions/copula/elliptical.py",
"diff": "@@ -184,6 +184,7 @@ class GaussianCopula(EllipticalCopula):\ncorr = np.array([[1., corr], [corr, 1.]])\nself.corr = np.asarray(corr)\n+ self... | Python | BSD 3-Clause New or Revised License | statsmodels/statsmodels | TST/REF: fix check_cop_rvs by transposing approx_copula_pdf |
641,971 | 02.02.2023 12:18:19 | 18,000 | 70ddfb5adc8d506ce26deac4efd593bb210afc14 | BUG: fix reshape order in approx_copula_pdf | [
{
"change_type": "MODIFY",
"old_path": "statsmodels/distributions/copula/tests/test_copula.py",
"new_path": "statsmodels/distributions/copula/tests/test_copula.py",
"diff": "@@ -158,7 +158,7 @@ def check_cop_rvs(cop, rvs=None, nobs=2000, k=10, use_pdf=True):\nnobs = rvs.shape[0]\nfreq = frequencies_... | Python | BSD 3-Clause New or Revised License | statsmodels/statsmodels | BUG: fix reshape order in approx_copula_pdf |
641,971 | 03.02.2023 13:14:07 | 18,000 | aff7d0ec924f73fef4bc0de4443b523ad12971d4 | DOC: various doc fixes and improvements | [
{
"change_type": "MODIFY",
"old_path": "docs/source/glm.rst",
"new_path": "docs/source/glm.rst",
"diff": "@@ -162,6 +162,9 @@ The distribution families currently implemented are\nLink Functions\n^^^^^^^^^^^^^^\n+Note: The lower case link classes have been deprecated and will be removed in\n+future. ... | Python | BSD 3-Clause New or Revised License | statsmodels/statsmodels | DOC: various doc fixes and improvements |
641,971 | 03.02.2023 13:38:59 | 18,000 | b219d4cac5d5e574797cee10e6399ec17902fb61 | MAINT: comments in R closes remove html iframe CodeQL security warning | [
{
"change_type": "MODIFY",
"old_path": "statsmodels/datasets/scotland/src/scotland_devolution.html",
"new_path": "statsmodels/datasets/scotland/src/scotland_devolution.html",
"diff": "@@ -222,11 +222,6 @@ the result of the referendum in spite of being inaccurate.<P>\nIf anyone can shed any light on ... | Python | BSD 3-Clause New or Revised License | statsmodels/statsmodels | MAINT: comments in R closes #8641, remove html iframe CodeQL security warning |
641,971 | 06.02.2023 13:19:15 | 18,000 | 675b5e1c2e66b7d48dd0a594622ecaac825061c5 | REF/DOC: ftest_power rename df args, improve docstring in FTestPower | [
{
"change_type": "MODIFY",
"old_path": "statsmodels/stats/power.py",
"new_path": "statsmodels/stats/power.py",
"diff": "@@ -30,6 +30,8 @@ refactoring\n\"\"\"\n+import warnings\n+\nimport numpy as np\nfrom scipy import stats, optimize\nfrom statsmodels.tools.rootfinding import brentq_expanding\n@@ -2... | Python | BSD 3-Clause New or Revised License | statsmodels/statsmodels | REF/DOC: ftest_power rename df args, improve docstring in FTestPower |
641,971 | 07.02.2023 15:10:16 | 18,000 | 54584b6095c40cc12d1098421466c186f1f760aa | ENH/BUG: add FTestPowerF2 as corrected version of FTestPower | [
{
"change_type": "MODIFY",
"old_path": "statsmodels/stats/power.py",
"new_path": "statsmodels/stats/power.py",
"diff": "@@ -227,11 +227,11 @@ def ftest_anova_power(effect_size, nobs, alpha, k_groups=2, df=None):\nshould be general nobs observations, k_groups restrictions ???\n'''\n- df_num = nobs - ... | Python | BSD 3-Clause New or Revised License | statsmodels/statsmodels | ENH/BUG: add FTestPowerF2 as corrected version of FTestPower |
641,971 | 08.02.2023 10:55:41 | 18,000 | cee896a2e0781bac90c85a8bc09ac0aa0c149bbd | REF: ncf.sf, nct.cdf, nct.sf with scipy.special instead of scipy.stats | [
{
"change_type": "MODIFY",
"old_path": "statsmodels/stats/power.py",
"new_path": "statsmodels/stats/power.py",
"diff": "@@ -33,9 +33,22 @@ refactoring\nimport warnings\nimport numpy as np\n-from scipy import stats, optimize\n+from scipy import stats, optimize, special\nfrom statsmodels.tools.rootfin... | Python | BSD 3-Clause New or Revised License | statsmodels/statsmodels | REF: ncf.sf, nct.cdf, nct.sf with scipy.special instead of scipy.stats |
641,971 | 08.02.2023 13:11:31 | 18,000 | e1ad057cd9349aec9d76bcc4c059708c6cf1acbd | REF: use scipy.special for ncf in `oneway` | [
{
"change_type": "MODIFY",
"old_path": "statsmodels/stats/oneway.py",
"new_path": "statsmodels/stats/oneway.py",
"diff": "@@ -11,6 +11,9 @@ import numpy as np\nfrom scipy import stats\nfrom scipy.special import ncfdtrinc\n+# functions that use scipy.special instead of boost based function in stats\n... | Python | BSD 3-Clause New or Revised License | statsmodels/statsmodels | REF: use scipy.special for ncf in `oneway` |
641,971 | 09.02.2023 14:02:27 | 18,000 | 37ce3641169f66511947cd8193b29ddfb21c9cf6 | BUG/ENH: correct tau for small theta in FrankCopula closes | [
{
"change_type": "MODIFY",
"old_path": "statsmodels/distributions/copula/archimedean.py",
"new_path": "statsmodels/distributions/copula/archimedean.py",
"diff": "@@ -17,7 +17,8 @@ from statsmodels.tools.rng_qrng import check_random_state\ndef _debye(alpha):\n- EPSILON = np.finfo(np.float32).eps\n+ #... | Python | BSD 3-Clause New or Revised License | statsmodels/statsmodels | BUG/ENH: correct tau for small theta in FrankCopula closes #8657 |
581,208 | 01.02.2017 17:03:55 | 28,800 | 5dacb0f67708e24d49cefa224ac39ed8fa4686cd | Correct 'a' vs 'an' grammar mistakes. | [
{
"change_type": "MODIFY",
"old_path": "spec/rspec/mocks/should_syntax_spec.rb",
"new_path": "spec/rspec/mocks/should_syntax_spec.rb",
"diff": "@@ -228,7 +228,7 @@ RSpec.describe \"Using the legacy should syntax\" do\nend\nend\n- it \"adds an class to the current space\" do\n+ it \"adds a class to t... | Ruby | MIT License | rspec/rspec-mocks | Correct 'a' vs 'an' grammar mistakes. |
581,208 | 01.02.2017 17:16:18 | 28,800 | 90e1ed2e87027a8426bbdf055ce509e8b63f6c31 | Correct "its" vs "it's" grammar mistakes. | [
{
"change_type": "MODIFY",
"old_path": ".rubocop_rspec_base.yml",
"new_path": ".rubocop_rspec_base.yml",
"diff": "@@ -89,7 +89,7 @@ PercentLiteralDelimiters:\n'%x': () # a shell command as a string\n# We have too many special cases where we allow generator methods or prefer a\n-# prefixed predicate ... | Ruby | MIT License | rspec/rspec-mocks | Correct "its" vs "it's" grammar mistakes. |
581,243 | 03.02.2017 00:03:00 | 28,800 | c01b6561964ee8dd572fab78fc6c73a5c43ecb78 | Avoid warning about uninitialized instance variable. | [
{
"change_type": "MODIFY",
"old_path": "Changelog.md",
"new_path": "Changelog.md",
"diff": "+### Development\n+[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.6.0.beta2...master)\n+\n+Bug Fixes:\n+\n+* Fix \"instance variable @color not initialized\" warning when using\n+ rspec-mocks... | Ruby | MIT License | rspec/rspec-mocks | Avoid warning about uninitialized instance variable. |
581,214 | 12.04.2017 21:53:57 | -36,000 | bdf5405f16299c449e2a67fac3e1af53776e5d69 | fix issue where expect_any_instance_of could not constrain arguments | [
{
"change_type": "MODIFY",
"old_path": "lib/rspec/mocks/any_instance/expect_chain_chain.rb",
"new_path": "lib/rspec/mocks/any_instance/expect_chain_chain.rb",
"diff": "@@ -24,6 +24,7 @@ module RSpec\ndef invocation_order\n@invocation_order ||= {\n+ :with => [nil],\n:and_return => [nil],\n:and_raise ... | Ruby | MIT License | rspec/rspec-mocks | fix issue where expect_any_instance_of could not constrain arguments |
581,214 | 13.04.2017 21:07:42 | -36,000 | 52ac45cce77e841b0e4394558d7761a6ad31f3ca | refactor invocation order to not error on unknown methods | [
{
"change_type": "MODIFY",
"old_path": "lib/rspec/mocks/any_instance/expect_chain_chain.rb",
"new_path": "lib/rspec/mocks/any_instance/expect_chain_chain.rb",
"diff": "@@ -23,12 +23,7 @@ module RSpec\nend\ndef invocation_order\n- @invocation_order ||= {\n- :with => [nil],\n- :and_return => [nil],\n-... | Ruby | MIT License | rspec/rspec-mocks | refactor invocation order to not error on unknown methods |
581,214 | 14.04.2017 12:57:12 | -36,000 | 89cbdae11d0eb37a338937b87eba0219f6f77961 | extract invocation orders to frozen constants | [
{
"change_type": "MODIFY",
"old_path": "lib/rspec/mocks/any_instance/expect_chain_chain.rb",
"new_path": "lib/rspec/mocks/any_instance/expect_chain_chain.rb",
"diff": "@@ -23,7 +23,7 @@ module RSpec\nend\ndef invocation_order\n- @invocation_order ||= {}\n+ EmptyInvocationOrder\nend\nend\nend\n"
},... | Ruby | MIT License | rspec/rspec-mocks | extract invocation orders to frozen constants |
581,228 | 08.07.2017 05:07:31 | -3,600 | 47f53d38c8a2e3ef1b2b16b51936476004db4c0f | Allow hash matchers to work with Hash descendants
Instead of checking if the object passed to ArgumentMatchers#anythingize_lonely_key _is_ strictly a Hash, check if it inherits from Hash using Case Equality inherited from `Module.===`
[fixes | [
{
"change_type": "MODIFY",
"old_path": "lib/rspec/mocks/argument_matchers.rb",
"new_path": "lib/rspec/mocks/argument_matchers.rb",
"diff": "@@ -116,7 +116,7 @@ module RSpec\n# @private\ndef self.anythingize_lonely_keys(*args)\n- hash = args.last.class == Hash ? args.delete_at(-1) : {}\n+ hash = Hash... | Ruby | MIT License | rspec/rspec-mocks | Allow hash matchers to work with Hash descendants (#1167)
Instead of checking if the object passed to ArgumentMatchers#anythingize_lonely_key _is_ strictly a Hash, check if it inherits from Hash using Case Equality inherited from `Module.===`
[fixes #1166] |
581,214 | 15.11.2017 08:26:44 | -39,600 | 27f3649a093a07cbfca107f899d9f436b3403782 | Pending warning check on JRuby | [
{
"change_type": "MODIFY",
"old_path": "spec/rspec/mocks_spec.rb",
"new_path": "spec/rspec/mocks_spec.rb",
"diff": "@@ -24,6 +24,13 @@ RSpec.describe RSpec::Mocks do\n/rbconfig/ # loaded by rspec-support\n] do\n+ if RSpec::Support::Ruby.jruby? && JRUBY_VERSION =~ /9\\.1\\.7\\.0/\n+ before(:example, ... | Ruby | MIT License | rspec/rspec-mocks | Pending warning check on JRuby |
581,242 | 30.11.2017 21:24:50 | -39,600 | b2a84992c36e65f12c720239f5ac1e83aaa914f2 | Fix specs for diffs showing keys in alphabetic order for PR | [
{
"change_type": "MODIFY",
"old_path": "spec/rspec/mocks/diffing_spec.rb",
"new_path": "spec/rspec/mocks/diffing_spec.rb",
"diff": "@@ -59,7 +59,7 @@ RSpec.describe \"Diffs printed when arguments don't match\" do\nend\nend\n- let(:expected_hash) { {:foo => :bar, :baz => :quz} }\n+ let(:expected_hash... | Ruby | MIT License | rspec/rspec-mocks | Fix specs for diffs showing keys in alphabetic order for PR https://github.com/rspec/rspec-support/pull/334 |
581,231 | 31.12.2017 17:41:46 | -39,600 | 45270292c7f9785697b31d63e2ce1b995388954a | Upgrade yard to 0.9.12, motivated by CVE. | [
{
"change_type": "MODIFY",
"old_path": "Gemfile",
"new_path": "Gemfile",
"diff": "@@ -12,7 +12,7 @@ branch = File.read(File.expand_path(\"../maintenance-branch\", __FILE__)).chomp\nend\nend\n-gem 'yard', '~> 0.8.7', :require => false\n+gem 'yard', '~> 0.9.12', :require => false\nif RUBY_VERSION >= '... | Ruby | MIT License | rspec/rspec-mocks | Upgrade yard to 0.9.12, motivated by CVE. |
581,243 | 30.12.2017 17:45:43 | 28,800 | 871eb31e3bfe50705ca57e754771aa1e0164f12d | Skip spec that does not apply to Ruby 2.5.
Ruby 2.5 has removed the ability to access top-level constants
via a confusing nested form (e.g. `MyClass::Hash`), so we no
longer need this spec there.
For | [
{
"change_type": "MODIFY",
"old_path": "spec/rspec/mocks/mutate_const_spec.rb",
"new_path": "spec/rspec/mocks/mutate_const_spec.rb",
"diff": "@@ -170,7 +170,7 @@ module RSpec\nexpect(::Hash).to equal(top_level_hash)\nend\n- it 'does not affect the ability to access the top-level constant from nested... | Ruby | MIT License | rspec/rspec-mocks | Skip spec that does not apply to Ruby 2.5.
Ruby 2.5 has removed the ability to access top-level constants
via a confusing nested form (e.g. `MyClass::Hash`), so we no
longer need this spec there.
For #1192. |
581,231 | 01.01.2018 09:37:52 | -39,600 | 1a5213850fd826b68709be177ed5b6a1f9f7b2f9 | Upgrade rubocop, motivated by CVE.
Default to disabling all new cops, though did leave some obvious
linter/performance ones on.
Only run rubocop on recent versions, and enable gems when we do so
(needed for newest rubocop to work). | [
{
"change_type": "MODIFY",
"old_path": ".rubocop.yml",
"new_path": ".rubocop.yml",
"diff": "-inherit_from: .rubocop_rspec_base.yml\n+inherit_from:\n+ - .rubocop_rspec_base.yml\n-# This should go down over time.\n-Style/ClassLength:\n+# All these metrics should go down over time.\n+\n+Metrics/ClassLe... | Ruby | MIT License | rspec/rspec-mocks | Upgrade rubocop, motivated by CVE.
Default to disabling all new cops, though did leave some obvious
linter/performance ones on.
Only run rubocop on recent versions, and enable gems when we do so
(needed for newest rubocop to work). |
581,231 | 01.01.2018 09:43:06 | -39,600 | 79dce732f79361ceaacf549c7a8c5cc4fbb0c080 | Performance change suggested by rubocop. | [
{
"change_type": "MODIFY",
"old_path": "lib/rspec/mocks/message_expectation.rb",
"new_path": "lib/rspec/mocks/message_expectation.rb",
"diff": "@@ -650,7 +650,7 @@ module RSpec\n@error_generator.raise_wrong_arity_error(args, block_signature)\nend\n- value = @eval_context ? @eval_context.instance_exe... | Ruby | MIT License | rspec/rspec-mocks | Performance change suggested by rubocop. |
581,231 | 01.01.2018 09:45:52 | -39,600 | fb2b42f81ff988371122bb61ab1f316445ffe696 | Move un-private class methods out of private block.
Rubocop was pointing out that private didn't have any effect here, which
was true. Making them actually private breaks the entire test suite. | [
{
"change_type": "MODIFY",
"old_path": ".rubocop_rspec_base.yml",
"new_path": ".rubocop_rspec_base.yml",
"diff": "@@ -227,3 +227,8 @@ Layout/SpaceAroundOperators:\nLayout/SpaceBeforeComma:\nEnabled: false\n+\n+# This could likely be enabled, but it had a false positive on rspec-mocks\n+# (suggested ... | Ruby | MIT License | rspec/rspec-mocks | Move un-private class methods out of private block.
Rubocop was pointing out that private didn't have any effect here, which
was true. Making them actually private breaks the entire test suite. |
581,229 | 05.03.2018 23:27:52 | -25,200 | 828e5413b8847f085c87d04ce32ef4e8bdae3fc4 | Fixed mistype in declaration and usage of RSpec::Mocks::AnyInstance::StubChain::InvocationOrder constant | [
{
"change_type": "MODIFY",
"old_path": "lib/rspec/mocks/any_instance/stub_chain.rb",
"new_path": "lib/rspec/mocks/any_instance/stub_chain.rb",
"diff": "@@ -25,7 +25,7 @@ module RSpec\nstub\nend\n- InovcationOrder =\n+ InvocationOrder =\n{\n:and_return => [:with, nil],\n:and_raise => [:with, nil],\n@... | Ruby | MIT License | rspec/rspec-mocks | Fixed mistype in declaration and usage of RSpec::Mocks::AnyInstance::StubChain::InvocationOrder constant |
581,212 | 19.03.2018 22:48:02 | -7,200 | b5bdc56b474e24b426fe409f62851c2912d9ccf4 | ignore counts for negative expectations | [
{
"change_type": "MODIFY",
"old_path": ".rubocop.yml",
"new_path": ".rubocop.yml",
"diff": "@@ -22,7 +22,7 @@ Metrics/BlockLength:\nMax: 45\nMetrics/ModuleLength:\n- Max: 209\n+ Max: 210\nMetrics/PerceivedComplexity:\nMax: 19\n"
},
{
"change_type": "MODIFY",
"old_path": "lib/rspec/mocks/... | Ruby | MIT License | rspec/rspec-mocks | ignore counts for negative expectations |
581,214 | 19.06.2018 16:12:15 | -36,000 | 449972fd3d7db091888caff34f0a0304712cbee3 | Support temporarily supressing any isntance expectations | [
{
"change_type": "MODIFY",
"old_path": "lib/rspec/mocks/any_instance/recorder.rb",
"new_path": "lib/rspec/mocks/any_instance/recorder.rb",
"diff": "@@ -242,7 +242,7 @@ module RSpec\ndef observe!(method_name)\nallow_no_prepended_module_definition_of(method_name)\n- if RSpec::Mocks.configuration.verif... | Ruby | MIT License | rspec/rspec-mocks | Support temporarily supressing any isntance expectations (#1228) |
581,214 | 27.06.2018 08:05:56 | -3,600 | 844a69a26327846384ba19afbf97d5c0eb25c8eb | Fix spec to do what title says | [
{
"change_type": "MODIFY",
"old_path": "spec/rspec/mocks/matchers/have_received_spec.rb",
"new_path": "spec/rspec/mocks/matchers/have_received_spec.rb",
"diff": "@@ -638,7 +638,7 @@ module RSpec\ndescribe \"expect_any_instance_of(...).not_to have_received\" do\nit \"fails because we dont want to sup... | Ruby | MIT License | rspec/rspec-mocks | Fix spec to do what title says |
581,214 | 16.10.2018 21:12:13 | -3,600 | 24442456174015b6ab7a786e78abbf894d0bbc19 | Improve threadsafety of message expectations
Synchronise writes to `MessageExpectation::ImplementationDetail`'s
`@actual_received_count` in order to prevent overlapping writes from being
ignored.
Synchronise all access to `Proxy`'s `@messages_received` array, since mutation
while iterating over the array in Java can ca... | [
{
"change_type": "MODIFY",
"old_path": "lib/rspec/mocks/message_expectation.rb",
"new_path": "lib/rspec/mocks/message_expectation.rb",
"diff": "+RSpec::Support.require_rspec_support 'mutex'\n+\nmodule RSpec\nmodule Mocks\n# A message expectation that only allows concrete return values to be set\n@@ ... | Ruby | MIT License | rspec/rspec-mocks | Improve threadsafety of message expectations
Synchronise writes to `MessageExpectation::ImplementationDetail`'s
`@actual_received_count` in order to prevent overlapping writes from being
ignored.
Synchronise all access to `Proxy`'s `@messages_received` array, since mutation
while iterating over the array in Java... |
581,214 | 16.10.2018 21:15:57 | -3,600 | 7819046bbd9459d80bcdc626f087f5ad6be745cf | Change log for and | [
{
"change_type": "MODIFY",
"old_path": "Changelog.md",
"new_path": "Changelog.md",
"diff": "+### Development\n+[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v3.8.0...master)\n+\n+Enhancements:\n+\n+* Improve thread safety of message expectations by using Mutex to prevent\n+ deadlockin... | Ruby | MIT License | rspec/rspec-mocks | Change log for #1236 and #1244 |
581,214 | 27.01.2019 13:59:35 | 0 | 38551c848403a8380fc5142c3c6c4b4bb1b1b00f | Pin jruby-openssl on older JRuby | [
{
"change_type": "MODIFY",
"old_path": "Gemfile",
"new_path": "Gemfile",
"diff": "@@ -40,7 +40,12 @@ if RUBY_VERSION < '2.0.0' || RUBY_ENGINE == 'java'\nend\nplatforms :jruby do\n+ if RUBY_VERSION < '1.9.0'\n+ # Pin jruby-openssl on older Rubies\n+ gem \"jruby-openssl\", \"< 0.10.0\"\n+ else\ngem \"... | Ruby | MIT License | rspec/rspec-mocks | Pin jruby-openssl on older JRuby (#1260) |
581,214 | 02.02.2019 10:12:48 | 0 | fdc22806e2f3c6e61ffb09d4a69321037706cb28 | Pin child-process on older J Ruby | [
{
"change_type": "MODIFY",
"old_path": "Gemfile",
"new_path": "Gemfile",
"diff": "@@ -19,12 +19,19 @@ if RUBY_VERSION >= '2.4' && RUBY_ENGINE == 'ruby'\ngem 'rubocop', \"~> 0.52.1\"\nend\n-if RUBY_VERSION < '2.0.0' && !!(RbConfig::CONFIG['host_os'] =~ /cygwin|mswin|mingw|bccwin|wince|emx/)\n- gem 'f... | Ruby | MIT License | rspec/rspec-mocks | Pin child-process on older J Ruby (#1261) |
581,220 | 03.04.2019 08:44:42 | -7,200 | a7409d366c0edd6dc9e2f66d792938a1e9460397 | Add the ability to use "time" as "times" alias | [
{
"change_type": "MODIFY",
"old_path": "README.md",
"new_path": "README.md",
"diff": "@@ -285,12 +285,15 @@ expect(double).to receive(:msg).with(hash_excluding(:a => 5)) # first arg is a h\n```ruby\nexpect(double).to receive(:msg).once\nexpect(double).to receive(:msg).twice\n+expect(double).to recei... | Ruby | MIT License | rspec/rspec-mocks | Add the ability to use "time" as "times" alias |
581,236 | 29.05.2019 05:56:05 | 18,000 | b3f18682003fe9a8aaf3447151ab689aecdfe888 | Do not change method visibility when stubbing private class methods. | [
{
"change_type": "MODIFY",
"old_path": "Changelog.md",
"new_path": "Changelog.md",
"diff": "@@ -9,6 +9,10 @@ Enhancements:\n`expect(Class).to receive(:method).exactly(1).time`.\n(Pistos, Benoit Tigeot, #1271)\n+Bug Fixes:\n+\n+* Do not change the visibility of stubbed private class methods. (Kevin B... | Ruby | MIT License | rspec/rspec-mocks | Do not change method visibility when stubbing private class methods. (#1277) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.