d2222a0ff225363b6a31f43c271aa6c924c9b35c,scipy/stats/_discrete_distns.py,hypergeom_gen,_logsf,#hypergeom_gen#Any#Any#Any#Any#,546

Before Change



    def _logsf(self, k, M, n, N):
        res = []
        for quant, tot, good, draw in zip(k, M, n, N):
            if (quant + 0.5) * (tot + 0.5) < (good - 0.5) * (draw - 0.5):
                // Less terms to sum if we calculate log(1-cdf)
                res.append(log1p(-exp(self.logcdf(quant, tot, good, draw))))

After Change



    def _logsf(self, k, M, n, N):
        res = []
        for quant, tot, good, draw in zip(*np.broadcast_arrays(k, M, n, N)):
            if (quant + 0.5) * (tot + 0.5) < (good - 0.5) * (draw - 0.5):
                // Less terms to sum if we calculate log(1-cdf)
                res.append(log1p(-exp(self.logcdf(quant, tot, good, draw))))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 6

Non-data size: 3

Instances


Project Name: scipy/scipy
Commit Name: d2222a0ff225363b6a31f43c271aa6c924c9b35c
Time: 2021-02-28
Author: ian@beware.dropbear.id.au
File Name: scipy/stats/_discrete_distns.py
Class Name: hypergeom_gen
Method Name: _logsf


Project Name: scipy/scipy
Commit Name: 2233802510a9857d33d444b29f42dcbd21f40ec9
Time: 2021-02-28
Author: ian@beware.dropbear.id.au
File Name: scipy/stats/_discrete_distns.py
Class Name: hypergeom_gen
Method Name: _logsf


Project Name: scipy/scipy
Commit Name: d2222a0ff225363b6a31f43c271aa6c924c9b35c
Time: 2021-02-28
Author: ian@beware.dropbear.id.au
File Name: scipy/stats/_discrete_distns.py
Class Name: hypergeom_gen
Method Name: _logcdf


Project Name: scipy/scipy
Commit Name: 2233802510a9857d33d444b29f42dcbd21f40ec9
Time: 2021-02-28
Author: ian@beware.dropbear.id.au
File Name: scipy/stats/_discrete_distns.py
Class Name: hypergeom_gen
Method Name: _logcdf


Project Name: scipy/scipy
Commit Name: d2222a0ff225363b6a31f43c271aa6c924c9b35c
Time: 2021-02-28
Author: ian@beware.dropbear.id.au
File Name: scipy/stats/_discrete_distns.py
Class Name: hypergeom_gen
Method Name: _sf


Project Name: scipy/scipy
Commit Name: 2233802510a9857d33d444b29f42dcbd21f40ec9
Time: 2021-02-28
Author: ian@beware.dropbear.id.au
File Name: scipy/stats/_discrete_distns.py
Class Name: hypergeom_gen
Method Name: _sf