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

Before Change


    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)

After Change


    -------
    path : list of str
        Local path to the given data file. This path is contained inside a list
        of length one, for compatibility.

      // noqa: E501
    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
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

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: pantsbuild/pants
Commit Name: 0349078b01ed693223d0c4a65c8a9b8aafe115bc
Time: 2017-05-26
Author: stuhood@twitter.com
File Name: src/python/pants/backend/jvm/tasks/bundle_create.py
Class Name: BundleCreate
Method Name: bundle


Project Name: nilearn/nilearn
Commit Name: c682a4a369787a1132b4fbe5f19473b1f6d66bbc
Time: 2020-09-29
Author: jerome@dockes.org
File Name: nilearn/datasets/struct.py
Class Name:
Method Name: _fetch_surf_fsaverage