8d0fed2666c5a94f10f31923a059f57efcb3a0cf,thinc/neural/util.py,,flatten_sequences,#Any#Any#,44

Before Change




def flatten_sequences(sequences, drop=0.): // pragma: no cover
    ops = NumpyOps()
    return ops.flatten(sequences), None


def partition(examples, split_size): // pragma: no cover

After Change




def flatten_sequences(sequences, drop=0.): // pragma: no cover
    xp = get_array_module(sequences[0])
    return xp.concatenate(sequences), None

Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 2

Instances


Project Name: explosion/thinc
Commit Name: 8d0fed2666c5a94f10f31923a059f57efcb3a0cf
Time: 2017-01-31
Author: honnibal+gh@gmail.com
File Name: thinc/neural/util.py
Class Name:
Method Name: flatten_sequences


Project Name: explosion/thinc
Commit Name: 616ec9c92a6ac16a2baf9816133600424c90361b
Time: 2016-12-27
Author: honnibal+gh@gmail.com
File Name: thinc/tests/integration/test_affine_learns.py
Class Name:
Method Name: test_predict_weights


Project Name: explosion/thinc
Commit Name: 616ec9c92a6ac16a2baf9816133600424c90361b
Time: 2016-12-27
Author: honnibal+gh@gmail.com
File Name: thinc/tests/integration/test_affine_learns.py
Class Name:
Method Name: test_update