d45ec479827f26b231f424f58823a0d78474a055,Download_Glove.py,,download_and_extract,#,26

Before Change


        filepath, _ = urllib.urlretrieve(DATA_URL, filepath, reporthook=_progress)
        print("Downloaded", filename)

        tarfile.open(filepath, "r").extractall(dest_directory)

After Change


        filepath, _ = urllib.urlretrieve(DATA_URL, filepath, reporthook=_progress)


        zip_ref = zipfile.ZipFile(filepath, "r")
        zip_ref.extractall(DATA_DIR)
        zip_ref.close()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: kk7nc/HDLTex
Commit Name: d45ec479827f26b231f424f58823a0d78474a055
Time: 2018-03-19
Author: kk7nc@virginia.edu
File Name: Download_Glove.py
Class Name:
Method Name: download_and_extract


Project Name: GoogleCloudPlatform/python-docs-samples
Commit Name: a156be457c3f7d68bc98e4505871d14cd1c45c53
Time: 2017-04-05
Author: jonwayne@google.com
File Name: vision/cloud-client/face_detection/faces_test.py
Class Name:
Method Name: test_main


Project Name: SeanNaren/deepspeech.pytorch
Commit Name: b939fb220086f1e3c70727902a69a25d3011948a
Time: 2017-04-24
Author: seannaren@hotmail.com
File Name: data/an4.py
Class Name:
Method Name: main