96416b889c76f3b6d15af0e3dfd0d4cb2b8b2d23,examples/paillier_logistic_regression.py,,download_data,#,40

Before Change



        // Second folder -> test set
        print("Downloading 2/2:", url2)
        with urlopen(url2) as remotedata:
            with open(foldertar, "wb") as tar:
                tar.write(remotedata.read())

After Change


    for d in range(1, n_datasets):
        if not os.path.isdir("examples/enron%d" % d):

            print("Downloading %d/%d:" % (d, n_datasets), url1)
            foldertar = "examples/emails.tar.gz"

            with urlopen(url1) as remotedata:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: data61/python-paillier
Commit Name: 96416b889c76f3b6d15af0e3dfd0d4cb2b8b2d23
Time: 2017-06-15
Author: giorgio.patrini@anu.edu.au
File Name: examples/paillier_logistic_regression.py
Class Name:
Method Name: download_data


Project Name: geek-ai/MAgent
Commit Name: 7e82e78da1ac7d6f4e381ba3819418cd546604eb
Time: 2017-12-01
Author: kipsora@gmail.com
File Name: python/magent/utility.py
Class Name:
Method Name: download_file


Project Name: estnltk/estnltk
Commit Name: f1106d2c7e4580a1c2947fa8dd181aec1babf517
Time: 2015-09-05
Author: Annett.Saarik@hotmail.com
File Name: estnltk/database/database.py
Class Name: Database
Method Name: keyword_documents