9d55d109b0b6fdae01e54341dd2e2239e77662be,scipy/stats/_continuous_distns.py,dweibull_gen,_rvs,#dweibull_gen#Any#,883

Before Change


    
    def _rvs(self, c):
        u = mtrand.random_sample(size=self._size)
        return weibull_min.rvs(c, size=self._size) * (where(u >= 0.5, 1, -1))

    def _pdf(self, x, c):
        ax = abs(x)

After Change



    
    def _rvs(self, c):
        sz, rndm = self._size, self._random_state
        u = rndm.random_sample(size=sz)
        w = weibull_min.rvs(c, size=sz, random_state=rndm)
        return w * (where(u >= 0.5, 1, -1))

    def _pdf(self, x, c):
        ax = abs(x)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: scipy/scipy
Commit Name: 9d55d109b0b6fdae01e54341dd2e2239e77662be
Time: 2014-12-07
Author: evgeni@burovski.me
File Name: scipy/stats/_continuous_distns.py
Class Name: dweibull_gen
Method Name: _rvs


Project Name: scipy/scipy
Commit Name: 9d55d109b0b6fdae01e54341dd2e2239e77662be
Time: 2014-12-07
Author: evgeni@burovski.me
File Name: scipy/stats/_continuous_distns.py
Class Name: dweibull_gen
Method Name: _rvs


Project Name: scipy/scipy
Commit Name: 9d55d109b0b6fdae01e54341dd2e2239e77662be
Time: 2014-12-07
Author: evgeni@burovski.me
File Name: scipy/stats/_continuous_distns.py
Class Name: nct_gen
Method Name: _rvs


Project Name: scipy/scipy
Commit Name: 9d55d109b0b6fdae01e54341dd2e2239e77662be
Time: 2014-12-07
Author: evgeni@burovski.me
File Name: scipy/stats/_continuous_distns.py
Class Name: dgamma_gen
Method Name: _rvs