37ef2c69f22a6e2d1232782dd3e192a003731a75,scanpy/readwrite.py,,_download,#,915
Before Change
// The "\"s are ugly, but parenthesis are not allowed here
// fmt: off
with \
tqdm(unit="B", unit_scale=True, miniters=1, desc=path.name) as t, \
path.open("wb") as f, \
urlopen(Request(url, headers={"User-agent": "scanpy-user"})) as resp:
After Change
) as resp:
resp.raise_for_status()
total = resp.headers.get("content-length", None)
with tqdm(
unit="B",
unit_scale=True,
miniters=1,
unit_divisor=1024,
total=total if total is None else int(total),
) as t, path.open("wb") as f:
for chunk in resp.iter_content(chunk_size=8 * 1024):
t.update(len(chunk))
f.write(chunk)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 2
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: automl/ParameterImportance
Commit Name: 9ac04813b4de060faa8bc86884df7043108aaac8
Time: 2018-01-26
Author: biedenka@informatik.uni-freiburg.de
File Name: pimp/evaluator/local_parameter_importance.py
Class Name: LPI
Method Name: plot_result
Project Name: PyThaiNLP/pythainlp
Commit Name: dff9fec2881dfb43222ad1c84aa95fd8c42715c8
Time: 2019-07-25
Author: wannaphong@yahoo.com
File Name: pythainlp/corpus/__init__.py
Class Name:
Method Name: _download