a439f0ce0178b675273790e3ff6beb25cc01b4af,pynets/utils.py,,nilearn_atlas_helper,#Any#,14

Before Change


    from nilearn import datasets
    try:
        parlistfile = getattr(datasets, "fetch_%s" % atlas_select)().maps
        try:
            label_names = getattr(datasets, "fetch_%s" % atlas_select)().labels
        except:
            label_names = None
        try:
            networks_list = getattr(datasets, "fetch_%s" % atlas_select)().networks
        except:
            networks_list = None

After Change


        else:
            parlistfile = None
        if "labels" in list(getattr(datasets, "fetch_%s" % atlas_select)().keys()):
            label_names = [i.decode("utf-8") for i in getattr(datasets, "fetch_%s" % atlas_select)().labels]
        else:
            label_names = None
        if "networks" in list(getattr(datasets, "fetch_%s" % atlas_select)().keys()):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: dPys/PyNets
Commit Name: a439f0ce0178b675273790e3ff6beb25cc01b4af
Time: 2018-06-19
Author: dpisner@utexas.edu
File Name: pynets/utils.py
Class Name:
Method Name: nilearn_atlas_helper


Project Name: EpistasisLab/penn-ml-benchmarks
Commit Name: 8eec4f9d1578c7ff1cbfa3efd8338a301adebe52
Time: 2020-09-10
Author: weixuanf@upenn.edu
File Name: pmlb/dataset_lists.py
Class Name:
Method Name:


Project Name: tensorflow/cleverhans
Commit Name: 701e2f54f611b767b6b279d1fa8609c26a6d9afb
Time: 2018-09-27
Author: goodfellow@google.com
File Name: cleverhans/devtools/tests/test_format.py
Class Name:
Method Name: test_format_pep8


Project Name: biocore/scikit-bio
Commit Name: d97cba41e4584273175953dda1d5c79d921de104
Time: 2014-06-19
Author: jai.rideout@gmail.com
File Name: skbio/parse/sequences/fastq.py
Class Name:
Method Name: _drop_id_marker