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: 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


Project Name: tyarkoni/pliers
Commit Name: 005968dcfbd2a8f70d8ea3957c8abba60a12492d
Time: 2018-05-15
Author: quinten.mcnamara@gmail.com
File Name: pliers/filters/video.py
Class Name: FrameSamplingFilter
Method Name: _filter