1bd41127c7c83f3151b6f47b5fe3f5b317dd5430,numerox/run.py,,run,#,22

Before Change


    if isinstance(model, nx.Model):
        models = [model]
    elif isinstance(model, list) or isinstance(model, tuple):
        models = list(model)
    else:
        raise ValueError("`model` must be a model, list, or tuple of models")

    // make list of tournaments

After Change


        tournaments = nx.tournament_all()
    elif nx.isint(tournament) or nx.isstring(tournament):
        tournaments = [tournament]
    elif isinstance(tournament, list) or isinstance(tournament, tuple):
        tournaments = tournament
    else:
        msg = "`tournament` must be an integer, string, list, tuple, or None."
        raise ValueError(msg)
    tournaments = [nx.tournament_str(t) for t in tournaments]
    if len(tournaments) != len(set(tournaments)):
        raise ValueError("`tournament` cannot contain duplicates")
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: kwgoodman/numerox
Commit Name: 1bd41127c7c83f3151b6f47b5fe3f5b317dd5430
Time: 2018-09-14
Author: kwgoodman@gmail.com
File Name: numerox/run.py
Class Name:
Method Name: run


Project Name: pgmpy/pgmpy
Commit Name: ca25da7c55ba436ab557410d5f2e2e9b557d2840
Time: 2015-03-02
Author: abinash.panda.ece10@itbhu.ac.in
File Name: pgmpy/models/MarkovModel.py
Class Name: MarkovModel
Method Name: to_junction_tree


Project Name: PyMVPA/PyMVPA
Commit Name: 6a8d2f59086e71dc529fb5261eb291cd7f2615a9
Time: 2016-10-05
Author: swaroopgj@gmail.com
File Name: mvpa2/measures/rsa.py
Class Name: CDist
Method Name: _call