79a29529fb362cda993fe12515ad966295bdf2e6,scipy/special/tests/test_cdflib.py,,_binomial_cdf,#Any#Any#Any#,106

Before Change


    res = 0
    k = int(k)
    for j in range(k + 1):
        res += mpmath.binomial(n, j)*p**j*(1 - p)**(n - j)
    return res


def _f_cdf(dfn, dfd, x):

After Change




def _binomial_cdf(k, n, p):
    k, n, p = mpmath.mpf(k), mpmath.mpf(n), mpmath.mpf(p)
    if k <= 0:
        return mpmath.mpf(0)
    elif k >= n:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: scipy/scipy
Commit Name: 79a29529fb362cda993fe12515ad966295bdf2e6
Time: 2016-06-17
Author: person142@users.noreply.github.com
File Name: scipy/special/tests/test_cdflib.py
Class Name:
Method Name: _binomial_cdf


Project Name: BindsNET/bindsnet
Commit Name: 79eeaa6c61fdd6a5733d54e0318117637154cf80
Time: 2018-04-05
Author: hqkhan@umass.edu
File Name: bindsnet/analysis/vsualization.py
Class Name:
Method Name: main


Project Name: Kamnitsask/deepmedic
Commit Name: 70cf20f6cf5e21c3b6165067483b925db61c161c
Time: 2018-06-17
Author: konstantinos.kamnitsas12@imperial.ac.uk
File Name: deepmedic/neuralnet/ops.py
Class Name:
Method Name: applyDropout