37ef2c69f22a6e2d1232782dd3e192a003731a75,scanpy/readwrite.py,,_download,#,915
Before Change
f.write(block)
blocknum += 1
t.update(blocknum * blocksize - t.n)
block = resp.read(blocksize)
// fmt: on
except Exception:
// Make sure file doesn’t exist half-downloaded
if path.is_file():
After Change
url, headers={"User-agent": "scanpy-user"}, stream=True
) as resp:
resp.raise_for_status()
total = resp.headers.get("content-length", None)
with tqdm(
unit="B",
unit_scale=True,
miniters=1,
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 3
Instances
Project Name: theislab/scanpy
Commit Name: 37ef2c69f22a6e2d1232782dd3e192a003731a75
Time: 2020-11-25
Author: michal.klein@protonmail.com
File Name: scanpy/readwrite.py
Class Name:
Method Name: _download
Project Name: IDSIA/sacred
Commit Name: ef55182623cf9492d208ad656d84a50c51c862cf
Time: 2017-11-04
Author: qwlouse@gmail.com
File Name: tests/test_stdout_capturing.py
Class Name:
Method Name: test_fd_tee_output
Project Name: matthewwithanm/django-imagekit
Commit Name: 6412e40c695c4239c0f77fee45e97434330d9b56
Time: 2011-09-26
Author: Chrismc@hzdg.com
File Name: imagekit/tests.py
Class Name: IKTest
Method Name: test_save_image
Project Name: IDSIA/sacred
Commit Name: ef55182623cf9492d208ad656d84a50c51c862cf
Time: 2017-11-04
Author: qwlouse@gmail.com
File Name: tests/test_stdout_capturing.py
Class Name:
Method Name: test_python_tee_output