57a0a8becd8a27c6a6f320e91f6d9d0f3ead7129,thinc/neural/_classes/batchnorm.py,,_init_to_one,#Any#Any#,5

Before Change




def _init_to_one(W, ops):
    W[:] = 1.

def _run_child_hooks(model, X, y=None):
    for hook in model.child.on_data_hooks:
        hook(model.child, X, y)

After Change




def _init_to_one(W, ops):
    W.fill(1.)

def _run_child_hooks(model, X, y=None):
    for hook in model.child.on_data_hooks:
        hook(model.child, X, y)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: explosion/thinc
Commit Name: 57a0a8becd8a27c6a6f320e91f6d9d0f3ead7129
Time: 2017-05-13
Author: honnibal+gh@gmail.com
File Name: thinc/neural/_classes/batchnorm.py
Class Name:
Method Name: _init_to_one


Project Name: luispedro/mahotas
Commit Name: 5649adce6e8c52fb69e213644dceb6267cee0c80
Time: 2010-05-11
Author: lpc@cmu.edu
File Name: mahotas/texture.py
Class Name:
Method Name: cooccurence


Project Name: ixaxaar/pytorch-dnc
Commit Name: c4ec88a58eaa0f74f18ffc25c921e212a15b3737
Time: 2017-11-26
Author: root@ixaxaar.in
File Name: dnc/sparse_memory.py
Class Name: SparseMemory
Method Name: reset