bcc794800f6b2b327f9ada291d1edf42cf794529,hypertools/tools/load.py,,_download,#Any#Any#,157

Before Change


def _download(dataset, data):
    fullpath = os.path.join(homedir, "hypertools_data", dataset)
    with open(fullpath, "wb") as f:
        pickle.dump(data, f, protocol=2)

def _load_from_disk(dataset):
    fullpath = os.path.join(homedir, "hypertools_data", dataset)
    with open(fullpath, "rb") as f:

After Change


def _download(dataset, data):
    fullpath = os.path.join(homedir, "hypertools_data", dataset)
    with open(fullpath, "wb") as f:
        f.write(data.content)

def _load_from_disk(dataset):
    fullpath = os.path.join(homedir, "hypertools_data", dataset)
    if dataset in ("wiki_model",):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: ContextLab/hypertools
Commit Name: bcc794800f6b2b327f9ada291d1edf42cf794529
Time: 2018-02-23
Author: andrew.heusser@gmail.com
File Name: hypertools/tools/load.py
Class Name:
Method Name: _download


Project Name: IDSIA/sacred
Commit Name: 4ad925c1b93552f5c8807f809ff1361a8daa00a1
Time: 2016-10-11
Author: qwlouse@gmail.com
File Name: sacred/observers/file_storage.py
Class Name: FileStorageObserver
Method Name: save_json


Project Name: ottogroup/palladium
Commit Name: d79a67548e074552fc1addc959ce0772b68a963e
Time: 2019-08-02
Author: daniel.nouri@gmail.com
File Name: palladium/persistence.py
Class Name: FileLike
Method Name: _update_md


Project Name: deepfakes/faceswap
Commit Name: f8bf47ad431706553ad853402f009763400c50b6
Time: 2018-05-16
Author: velykoivanenko.lev@gmail.com
File Name: tools/sort.py
Class Name: SortProcessor
Method Name: write_to_log