aa1a4d85f30db26a7ef9d3c7dc7692bb00f7a5e5,examples/download.py,,download_all,#,52
Before Change
download_data(href, name, path)
// Extract the occupancy zip data
z = zipfile.ZipFile(os.path.join(path, "occupancy.zip") )
z.extractall(os.path.join(path, "occupancy"))
After Change
download signature with the hardcoded signature. If extract is True then
extract the contents of the zipfile to the given path.
for name, meta in DATASETS.items():
url = meta["url"]
signature = meta["signature"] if verify else None
download_data(url, path=path, signature=signature, extract=extract)
if __name__ == "__main__":
path="data"
download_all(path)
print("Downloaded datasets to {}".format(os.path.abspath(path)))
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances Project Name: DistrictDataLabs/yellowbrick
Commit Name: aa1a4d85f30db26a7ef9d3c7dc7692bb00f7a5e5
Time: 2016-10-13
Author: benjamin@bengfort.com
File Name: examples/download.py
Class Name:
Method Name: download_all
Project Name: ncullen93/torchsample
Commit Name: 15ac1c2bb2627bb8fbb89b0b64709e9a50be02fd
Time: 2017-05-13
Author: ncullen.th@dartmouth.edu
File Name: torchsample/transforms/tensor_transforms.py
Class Name: ToFile
Method Name: __call__
Project Name: danforthcenter/plantcv
Commit Name: ee7dc09812df5dded34adcde4267d9c754e3b655
Time: 2019-09-11
Author: haleyschuhl@gmail.com
File Name: plantcv/plantcv/hyperspectral/read_data.py
Class Name:
Method Name: read_data