2764143865678c41e69ad3b993556fe90c1e6391,torchtext/data/datasets_utils.py,,download_extract_validate,#Any#Any#Any#Any#Any#Any#Any#,155
Before Change
def download_extract_validate(root, url, url_md5, downloaded_file, extracted_file, extracted_file_md5,
hash_type="sha256"):
path = os.path.join(root, extracted_file)
if os.path.exists(path):
with open(os.path.join(root, extracted_file), "rb") as f:
if validate_file(f, extracted_file_md5, hash_type):
return path
After Change
def download_extract_validate(root, url, url_md5, downloaded_file, extracted_file, extracted_file_md5,
hash_type="sha256"):
root = os.path.abspath(root)
downloaded_file = os.path.abspath(downloaded_file)
extracted_file = os.path.abspath(extracted_file)
if os.path.exists(extracted_file):
with open(os.path.join(root, extracted_file), "rb") as f:
if validate_file(f, extracted_file_md5, hash_type):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: pytorch/text
Commit Name: 2764143865678c41e69ad3b993556fe90c1e6391
Time: 2021-02-22
Author: cpuhrsch@fb.com
File Name: torchtext/data/datasets_utils.py
Class Name:
Method Name: download_extract_validate
Project Name: jakeret/tf_unet
Commit Name: 4a45e9bff35aa6d579259145fe925c8c8617bc3c
Time: 2016-08-22
Author: jakeret@phys.ethz.ch
File Name: tf_unet/unet.py
Class Name: Trainer
Method Name: _initialize
Project Name: ellisdg/3DUnetCNN
Commit Name: 3135765a0c9f7d81a7b4fe83177e645f559a814f
Time: 2017-02-13
Author: david.ellis@unmc.edu
File Name: UnetTraining.py
Class Name:
Method Name: main