0bc1db58d82c2482bfac1e32a3a43cfd5a533da2,utils/google_utils.py,,gdrive_download,#Any#Any#,50

Before Change


        os.system("unzip -q %s" % name)  // unzip
        os.remove(name)  // remove zip to free space

    print("Done (%.1fs)" % (time.time() - t))
    return r


def get_token(cookie="./cookie"):

After Change


    // Downloads a file from Google Drive. from yolov3.utils.google_utils import *; gdrive_download()
    t = time.time()
    file = Path(file)
    cookie = Path("cookie")  // gdrive cookie
    print(f"Downloading https://drive.google.com/uc?export=download&id={id} as {file}... ", end="")
    file.unlink(missing_ok=True)  // remove existing file
    cookie.unlink(missing_ok=True)  // remove existing cookie

    // Attempt file download
    out = "NUL" if platform.system() == "Windows" else "/dev/null"
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: ultralytics/yolov3
Commit Name: 0bc1db58d82c2482bfac1e32a3a43cfd5a533da2
Time: 2021-01-10
Author: glenn.jocher@ultralytics.com
File Name: utils/google_utils.py
Class Name:
Method Name: gdrive_download


Project Name: commonsense/conceptnet5
Commit Name: 7d7d97e23fe8c91c3537c67181f1af7196f580c4
Time: 2016-05-05
Author: rob@luminoso.com
File Name: conceptnet5/readers/wiktionary.py
Class Name:
Method Name: prepare_db


Project Name: deeptools/HiCExplorer
Commit Name: 34994efe3bf06de70b1a0c638e6c1956ac6371f8
Time: 2017-11-16
Author: wolffj@informatik.uni-freiburg.de
File Name: hicexplorer/test/test_hicExport.py
Class Name:
Method Name: run_compare