eb6566de307bab286c5632b9335ca74c73b68971,python/magent/utility.py,,download_file,#Any#Any#,216

Before Change



        raw = urllib2.urlopen(url)
        with open(filename, "wb") as fout:
            fout.write(raw.read())
    else:
        print("download done!")

After Change


    if ret != 0:
        print("ERROR: wget fails!")
        print("If you are an OSX user, you can install wget by "brew install wget" and retry.")
        exit(-1)
    else:
        print("download done!")

Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: geek-ai/MAgent
Commit Name: eb6566de307bab286c5632b9335ca74c73b68971
Time: 2017-12-06
Author: zhenglianmin96@163.com
File Name: python/magent/utility.py
Class Name:
Method Name: download_file


Project Name: bashtage/linearmodels
Commit Name: 9b29c3bae8fff2e31edeb911c69840b53974e45b
Time: 2017-03-16
Author: kevin.k.sheppard@gmail.com
File Name: setup.py
Class Name:
Method Name:


Project Name: rusty1s/pytorch_geometric
Commit Name: b05d8e997cabc06149900dfdb4e7c9242f3de0ec
Time: 2017-11-25
Author: matthias.fey@tu-dortmund.de
File Name: torch_geometric/datasets/utils/download.py
Class Name:
Method Name: download_url


Project Name: theislab/scanpy
Commit Name: ec60a13a0028b14afd71f037fecb8d8fab029232
Time: 2019-01-07
Author: flying-sheep@web.de
File Name: setup.py
Class Name:
Method Name: