7a9a75349728705f9fd0b2f858cb6896051510a2,dirty_cat/datasets/fetching.py,,_fetch_file,#,137
Before Change
expected_size=(int(total_length) /
1024) + 1):
if chunk:
local_file.write(chunk)
local_file.flush()
else:
warnings.warn("content size cannot be found, "
"downloading file from {} as a whole".format(
url))
After Change
if not _check_if_exists(full_name, remove=False):
download = True
if download:
_download_and_write(url, temp_full_name, show_progress=show_progress)
// chunk writing is not implemented, see if necessary
if _check_if_exists(temp_full_name, remove=False):
if md5sum is not None:
if _md5_sum_file(temp_full_name) != md5sum:
raise ValueError("File %s checksum verification has failed."
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances Project Name: dirty-cat/dirty_cat
Commit Name: 7a9a75349728705f9fd0b2f858cb6896051510a2
Time: 2018-05-25
Author: pierreglaser@msn.com
File Name: dirty_cat/datasets/fetching.py
Class Name:
Method Name: _fetch_file
Project Name: comic/grand-challenge.org
Commit Name: 4d9d2a1fc4e0d9289000a235340235802d51a97a
Time: 2021-02-12
Author: 57257130+MikeOverkamp-diag@users.noreply.github.com
File Name: app/grandchallenge/cases/image_builders/dicom.py
Class Name:
Method Name: _create_itk_from_dcm
Project Name: brian-team/brian2
Commit Name: fdb8ed82b7323e0e6b8492f84c2aff78bc72c2e5
Time: 2019-11-04
Author: marcel.stimberg@inserm.fr
File Name: brian2/tests/__init__.py
Class Name:
Method Name: run