d98cca01e2d3a6f3ee4af50b0528777320e0f455,dit/utils/testing.py,,markov_chains,#Any#Any#,128

Before Change


    except TypeError:
        alphabets = ((2, 2),)*alphabets

    alphabets = tuple(tuple(map(int, alpha)) for alpha in alphabets)

    alphabets = [draw(integers(*alpha)) for alpha in alphabets]

After Change


    except TypeError:
        alphabets = ((2, 2),)*alphabets

    alphabets = [int(draw(integers(*alpha))) for alpha in alphabets]

    px = draw(arrays(np.float, shape=alphabets[0], elements=floats(0, 1)))
    cds = [draw(arrays(np.float, shape=(a, b), elements=floats(0, 1))) for a, b in pairwise(alphabets)]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 5

Instances


Project Name: dit/dit
Commit Name: d98cca01e2d3a6f3ee4af50b0528777320e0f455
Time: 2018-12-21
Author: ryangregoryjames@gmail.com
File Name: dit/utils/testing.py
Class Name:
Method Name: markov_chains


Project Name: NifTK/NiftyNet
Commit Name: 898a9387984d8434245618eda47a6e3f052bbba0
Time: 2018-03-20
Author: wenqi.li@ucl.ac.uk
File Name: niftynet/utilities/user_parameters_regex.py
Class Name:
Method Name: match_array


Project Name: dit/dit
Commit Name: d98cca01e2d3a6f3ee4af50b0528777320e0f455
Time: 2018-12-21
Author: ryangregoryjames@gmail.com
File Name: dit/utils/testing.py
Class Name:
Method Name: distributions


Project Name: NifTK/NiftyNet
Commit Name: 14f7fd88d24cf31a466726fc89060a4b7778e2e6
Time: 2017-09-04
Author: wenqi.li@ucl.ac.uk
File Name: niftynet/engine/image_window.py
Class Name:
Method Name: _read_window_sizes