616cbbc874b47b767be101647b982554d92b076a,mahotas/tests/test_labeled.py,,test_size_labeled,#,71

Before Change


    np.random.seed(334)
    for i in range(16):
        labeled = np.zeros((64,125), dtype=np.intc)
        labeled += 8 * np.random.random_sample(labeled.shape)
        fast = mahotas.labeled.labeled_size(labeled)
        slow = slow_labeled_size(labeled)
        assert np.all(fast == slow)

After Change


    np.random.seed(334)
    for i in range(16):
        labeled = np.zeros((64,125), dtype=np.intc)
        labeled += 8 * np.random.random_sample(labeled.shape).astype(np.intc)
        fast = mahotas.labeled.labeled_size(labeled)
        slow = slow_labeled_size(labeled)
        assert np.all(fast == slow)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: luispedro/mahotas
Commit Name: 616cbbc874b47b767be101647b982554d92b076a
Time: 2012-09-02
Author: stefan@sun.ac.za
File Name: mahotas/tests/test_labeled.py
Class Name:
Method Name: test_size_labeled


Project Name: luispedro/mahotas
Commit Name: 616cbbc874b47b767be101647b982554d92b076a
Time: 2012-09-02
Author: stefan@sun.ac.za
File Name: mahotas/tests/test_labeled.py
Class Name:
Method Name: test_sum_labeled


Project Name: tensorflow/datasets
Commit Name: 2b6db41eeeab29fcb479f12406fb70fd627bef99
Time: 2020-04-11
Author: lukas.geiger94@gmail.com
File Name: tensorflow_datasets/testing/mocking.py
Class Name: RandomFakeGenerator
Method Name: _generate_random_array