310ecaab05e07f01e135365326d3023e576857e6,demo.py,,download_model,#Any#,17

Before Change


def download_model(fn):
    if not os.path.isfile(fn):
        // Download the file if doewn"t exist
        call("curl ftp://cs.stanford.edu/cs/cvgl/ResidualGRUNet.npy --create-dirs -o %s" % fn)


def load_demo_images():
    ims = []

After Change


def download_model(fn):
    if not os.path.isfile(fn):
        // Download the file if doewn"t exist
        print("Downloading a pretrained model")
        call(["curl",  "ftp://cs.stanford.edu/cs/cvgl/ResidualGRUNet.npy",
              "--create-dirs", "-o", fn])

Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: chrischoy/3D-R2N2
Commit Name: 310ecaab05e07f01e135365326d3023e576857e6
Time: 2016-08-21
Author: chrischoy208@gmail.com
File Name: demo.py
Class Name:
Method Name: download_model


Project Name: chrischoy/3D-R2N2
Commit Name: 1829fcb631f11748c90df6985a7897050f2e6259
Time: 2016-08-21
Author: chrischoy208@gmail.com
File Name: demo.py
Class Name:
Method Name: download_model


Project Name: cesium-ml/cesium
Commit Name: dd4ebd98a0026f626242f30cf9688d61b4798af1
Time: 2015-02-27
Author: a.crellinquick@gmail.com
File Name: mltsp/custom_feature_tools.py
Class Name:
Method Name: extract_feats_in_docker_container