2508ff2b9a7d0f0406c6f97603ed770f1e934569,scipy/stats/_continuous_distns.py,genextreme_gen,_sf,#genextreme_gen#Any#Any#,1834

Before Change


        return exp(-exp(loglogcdf))

    def _sf(self, x, c):
        loglogcdf = _lazywhere((c == 0)*(x == x), (x, c),
                               f=lambda x, c: -x,
                               f2=lambda x, c: special.log1p(-c*x)/c)
        p = -special.expm1(-exp(loglogcdf))
        return p

    def _ppf(self, q, c):
        x = -log(-log(q))

After Change


        return exp(self._logcdf(x, c))

    def _sf(self, x, c):
        return -special.expm1(self._logcdf(x, c))

    def _ppf(self, q, c):
        x = -log(-log(q))
        return _lazywhere((x == x) & (c != 0), (x, c),
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: scipy/scipy
Commit Name: 2508ff2b9a7d0f0406c6f97603ed770f1e934569
Time: 2016-06-28
Author: pab@MP815.ffi.no
File Name: scipy/stats/_continuous_distns.py
Class Name: genextreme_gen
Method Name: _sf


Project Name: theislab/scanpy
Commit Name: 00aa2e002faef95debd58e1779b9bb77a51813b6
Time: 2019-11-26
Author: gokcen.eraslan@gmail.com
File Name: scanpy/preprocessing/_highly_variable_genes.py
Class Name:
Method Name: _highly_variable_genes_single_batch


Project Name: pymc-devs/pymc3
Commit Name: 823906a3efcf66897eac8a4c89052d9153bca49e
Time: 2021-01-22
Author: 28983449+ricardoV94@users.noreply.github.com
File Name: pymc3/math.py
Class Name:
Method Name: log1mexp_numpy