66b0061685aa10d124ef89c9a2f5ddeb7ce1ea1b,moabb/datasets/download.py,,data_path,#Any#Any#Any#Any#Any#,19

Before Change


    if it isn"t there already.

      // noqa: E501
    key = "MNE_DATASETS_BNCI_PATH"
    name = "BNCI"
    path = _get_path(path, key, name)
    destination = _url_to_local_path(url, op.join(path,
                                     "MNE-bnci-data"))
    destinations = [destination]

    // Fetch the file
    if not op.isfile(destination) or force_update:
        if op.isfile(destination):
            os.remove(destination)
        if not op.isdir(op.dirname(destination)):
            os.makedirs(op.dirname(destination))
        _fetch_file(url, destination, print_destination=False)

    // Offer to update the path
    _do_path_update(path, update_path, key, name)
    return destinations


@verbose
def load_data(subject, dataset="001-2014", path=None, force_update=False,

After Change


    sign = sign.upper()
    key = "MNE_DATASETS_{:s}_PATH".format(sign)
    path = _get_path(path, key, sign)
    destination = _url_to_local_path(url, op.join(path,
                                                  "MNE-{:s}-data".format(sign.lower())))
    // Fetch the file
    if not op.isfile(destination) or force_update:
        if op.isfile(destination):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 34

Instances


Project Name: NeuroTechX/moabb
Commit Name: 66b0061685aa10d124ef89c9a2f5ddeb7ce1ea1b
Time: 2018-01-24
Author: vjayaram@danube.is.localnet
File Name: moabb/datasets/download.py
Class Name:
Method Name: data_path


Project Name: NeuroTechX/moabb
Commit Name: 66b0061685aa10d124ef89c9a2f5ddeb7ce1ea1b
Time: 2018-01-24
Author: vjayaram@danube.is.localnet
File Name: moabb/datasets/download.py
Class Name:
Method Name: data_path


Project Name: NeuroTechX/moabb
Commit Name: 66b0061685aa10d124ef89c9a2f5ddeb7ce1ea1b
Time: 2018-01-24
Author: vjayaram@danube.is.localnet
File Name: moabb/datasets/alex_mi.py
Class Name:
Method Name: data_path


Project Name: NeuroTechX/moabb
Commit Name: 66b0061685aa10d124ef89c9a2f5ddeb7ce1ea1b
Time: 2018-01-24
Author: vjayaram@danube.is.localnet
File Name: moabb/datasets/openvibe_mi.py
Class Name:
Method Name: data_path