ec37ae1150e707e48ffb3cb45c4a1f3d3a166914,dit/distconst.py,,uniform_joint_distribution,#Any#Any#,130

Before Change



    try:
        nSymbols = len(alphabet_size)
        alphabet = tuple(alphabet_size)
    except TypeError:
        nSymbols = alphabet_size
        alphabet = range(nSymbols)

After Change


        alphabet = alphabet_size

        // Autoextend if only one alphabet is provided.
        if len(alphabet) == 1:
            alphabet = [alphabet[0]] * word_length
        elif len(alphabet) != word_length:
            raise TypeError("word_length does not match number of rvs.")
    else:
        // Build the standard alphabet.
        alphabet = [range(alphabet_size)] * word_length
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


Project Name: dit/dit
Commit Name: ec37ae1150e707e48ffb3cb45c4a1f3d3a166914
Time: 2013-02-25
Author: chebee7i@gmail.com
File Name: dit/distconst.py
Class Name:
Method Name: uniform_joint_distribution


Project Name: pgmpy/pgmpy
Commit Name: 73dcacffa7dee910a9478cd7d783d91ef84dc987
Time: 2013-09-21
Author: snigam3112@gmail.com
File Name: BayesianModel.py
Class Name: BayesianModel
Method Name: add_nodes


Project Name: pantsbuild/pants
Commit Name: c96d44b85e41fdb14c6495021ef06b4dd26256a1
Time: 2016-09-15
Author: nhoward@twopensource.com
File Name: src/python/pants/engine/rules.py
Class Name: NodeBuilder
Method Name: create


Project Name: eth-cscs/reframe
Commit Name: 1ac9003c0bbf7297e49fc62e6cb6326192727d84
Time: 2018-10-04
Author: karakasis@cscs.ch
File Name: reframe/core/fields.py
Class Name: TypedField
Method Name: __init__