4aaa81b9394773817b3925e3f068531432e90019,niftynet/utilities/download.py,,download,#,25

Before Change


    example_ids = [example_ids] if not isinstance(example_ids, (tuple, list)) else example_ids

    for example_id in example_ids:
        if not config_store.exists(example_id):
            print(example_id + ": FAIL. No NiftyNet example was found for " + example_id + "."")
            return

After Change



    any_error = False
    for example_id in example_ids:
        if config_store.exists(example_id):
            update_ok = config_store.update_if_required(example_id, download_if_already_existing)
            any_error = (not update_ok) or any_error
        else:
            any_error = True
            if server_ok:
                print(example_id + ": FAIL. No NiftyNet example was found for " + example_id + ".")

    // If errors occurred and the server is down report a message
    if any_error and not server_ok:
        print("The NiftyNetExamples server is not running")

    return any_error
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: NifTK/NiftyNet
Commit Name: 4aaa81b9394773817b3925e3f068531432e90019
Time: 2017-08-21
Author: t.doel@ucl.ac.uk
File Name: niftynet/utilities/download.py
Class Name:
Method Name: download


Project Name: AlexEMG/DeepLabCut
Commit Name: 2b0745e74e436448c69e251d7c77845a82c0da72
Time: 2019-03-12
Author: amathis@fas.harvard.edu
File Name: deeplabcut/generate_training_dataset/frame_extraction.py
Class Name:
Method Name: extract_frames


Project Name: dmlc/gluon-cv
Commit Name: 2716ec90b5be79d67cb39c46f1182b9827fa60bc
Time: 2020-05-03
Author: 42975160+HieronymusLex@users.noreply.github.com
File Name: scripts/datasets/market1501.py
Class Name:
Method Name: main