1e94a451d3ce0d205dff8940facab2805a60dfb0,kur/utils/network.py,,do_download,#Any#Any#,47

Before Change


	with open(target, "wb") as fh:
		for chunk in tqdm.tqdm(
			response.iter_content(),
			total=int(response.headers["content-length"]),
			unit="bytes",
			unit_scale=True,
			desc="Downloading"

After Change


def do_download(url, target):
	 Downloads a URL.
	
	response = urllib.request.urlopen(url)
	with open(target, "wb") as fh:
		with tqdm.tqdm(
			total=int(response.info().get("Content-Length")),
			unit="bytes",
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 2

Instances


Project Name: deepgram/kur
Commit Name: 1e94a451d3ce0d205dff8940facab2805a60dfb0
Time: 2017-01-09
Author: ajsyp@syptech.net
File Name: kur/utils/network.py
Class Name:
Method Name: do_download


Project Name: scikit-image/scikit-image
Commit Name: 2eb9e2686dabb686c8114760abec9d5546c24fc6
Time: 2017-12-20
Author: contact@kne42.me
File Name: doc/release/contribs.py
Class Name:
Method Name:


Project Name: theislab/scanpy
Commit Name: ab9247bdf8b7a3decc34a15b26fec813ea8fba0d
Time: 2020-07-31
Author: ivirshup@gmail.com
File Name: scanpy/readwrite.py
Class Name:
Method Name: _download