ef697f1d284e872151dc5e3c4c985cce37697976,deeppavlov/download.py,,download_resource,#Any#Any#,111
Before Change
if check_md5(url, dest_paths):
log.info(f"Skipped {url} download because of matching hashes")
elif url.endswith((".tar.gz", ".gz", ".zip")):
download_path = dest_paths[0].parent
download_decompress(url, download_path, dest_paths)
else:
After Change
if check_md5(url, dest_paths):
log.info(f"Skipped {url} download because of matching hashes")
elif any(ext in url for ext in (".tar.gz", ".gz", ".zip")):
download_path = dest_paths[0].parent
download_decompress(url, download_path, dest_paths)
else:
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: deepmipt/DeepPavlov
Commit Name: ef697f1d284e872151dc5e3c4c985cce37697976
Time: 2019-03-20
Author: vaskonov@users.noreply.github.com
File Name: deeppavlov/download.py
Class Name:
Method Name: download_resource
Project Name: facebookresearch/pytext
Commit Name: 82ec90e3e78b11daf3687c3a8b378475bbe39fbd
Time: 2020-08-24
Author: stevenliu@fb.com
File Name: pytext/config/test/pytext_all_config_test.py
Class Name: LoadAllConfigTest
Method Name: test_load_all_configs
Project Name: tensorflow/datasets
Commit Name: b03e96801a1dba60849332738f5952556dea8ce2
Time: 2020-04-05
Author: epot@google.com
File Name: tensorflow_datasets/scripts/replace_fake_images.py
Class Name:
Method Name: rewrite_dir