a731dbfb00e17f59b55d0b36a14f69c65e9a849a,dipy/reconst/shm.py,,normalize_data,#Any#Any#Any#Any#,388

Before Change


    maximum(dwi, min_signal, dwi)
    maximum(b0, min_signal, b0)
    dwi /= b0
    minimum(dwi, 1, dwi)
    return dwi

def gfa(samples):
    gfa of some function from a set of samples os that function

After Change


            raise ValueError("out must be floating point")
        out[:] = data                         

    out.clip(min_signal, out=out)
    b0 = out[..., where_b0].mean(-1)
    b0 = b0.reshape(b0.shape + (1,))
    out /= b0 
    return out
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 2

Instances


Project Name: nipy/dipy
Commit Name: a731dbfb00e17f59b55d0b36a14f69c65e9a849a
Time: 2012-04-05
Author: Bago.Amirbekian@ucsf.edu
File Name: dipy/reconst/shm.py
Class Name:
Method Name: normalize_data


Project Name: ray-project/ray
Commit Name: ce96b03b07a4a4bdd851aa84493c616cd291aff2
Time: 2020-10-06
Author: sven@anyscale.io
File Name: rllib/examples/env/mbmpo_env.py
Class Name: HopperWrapper
Method Name: reward


Project Name: keras-team/keras
Commit Name: 08a6dd04f9143a04ee77af1128eaedb3218c6147
Time: 2018-11-03
Author: gabrieldemarmiesse@gmail.com
File Name: keras/backend/numpy_backend.py
Class Name:
Method Name: hard_sigmoid