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))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

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: p2irc/deepplantphenomics
Commit Name: 127a1b9ae8c69989a49a0f900d0f10072e62a828
Time: 2019-11-13
Author: dbl599@mail.usask.ca
File Name: deepplantphenomics/tests/test_dpp.py
Class Name:
Method Name: test_set_random_seed


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


Project Name: reinforceio/tensorforce
Commit Name: c0a4a1f18cfb53b0deeb2c003b8e98ebab19fad8
Time: 2017-05-29
Author: fricke@elbsilber.de
File Name: examples/simple_q_agent.py
Class Name: SimpleQModel
Method Name: get_action