a636431f9374bb9ae6e3a8107549bf20f91cdb1b,theanolm/matrixfunctions.py,,test_value,#Any#Any#,50

Before Change



    if type(max_value) is int:
        return numpy.random.randint(0, max_value, size=size).astype("int64")
    elif type(max_value) is float:
        return max_value * numpy.random.rand(*size).astype(theano.config.floatX)
    elif type(max_value) is bool:
        return numpy.random.randint(0, int(max_value), size=size).astype("int8")
    else:

After Change


    

    if isinstance(high, bool):
        return numpy.random.randint(0, int(high), size=size).astype("int8")
    elif isinstance(high, (int, numpy.int32, numpy.int64)):
        return numpy.random.randint(0, high, size=size).astype("int64")
    elif isinstance(high, (float, numpy.float32, numpy.float64)):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: senarvi/theanolm
Commit Name: a636431f9374bb9ae6e3a8107549bf20f91cdb1b
Time: 2016-11-20
Author: seppo.git@marjaniemi.com
File Name: theanolm/matrixfunctions.py
Class Name:
Method Name: test_value


Project Name: NifTK/NiftyNet
Commit Name: 5f3d7eb543310174c83c8cb3d42a7a28a4260f8e
Time: 2017-09-04
Author: wenqi.li@ucl.ac.uk
File Name: niftynet/layer/layer_util.py
Class Name:
Method Name: expand_spatial_params


Project Name: MTG/freesound
Commit Name: f79be70049e77a28404a02f03678a9a7468d80ed
Time: 2018-04-16
Author: frederic.font@gmail.com
File Name: utils/sound_upload.py
Class Name:
Method Name: create_sound