05bd0a48c7886e81ecd8a0b6183a01cd65e6be72,core/eolearn/core/eodata.py,EOPatch,load_aws_new,#,838
Before Change
filesystem.download(path, mem_file)
mem_file.seek(0)
if path.endswith(".gz"):
with gzip.open(mem_file, "rb") as gzip_fp:
data = _decode(gzip_fp, path)
else:
data = _decode(mem_file, path)
eopatch[(ftype, fname)] = data
return eopatch
After Change
for ftype, fname, path in EOPatch.walk_filtered(filesystem, patch_location, features):
loader = _Loader(filesystem, ftype, fname, path)
eopatch[(ftype, fname)] = loader if lazy_loading else loader.load()
return eopatch
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: sentinel-hub/eo-learn
Commit Name: 05bd0a48c7886e81ecd8a0b6183a01cd65e6be72
Time: 2019-12-18
Author: jovan.visnjic@sinergise.com
File Name: core/eolearn/core/eodata.py
Class Name: EOPatch
Method Name: load_aws_new
Project Name: lingpy/lingpy
Commit Name: b46114a5b8076c38e765811bd6d55ed2930d9975
Time: 2013-11-14
Author: mattis.list@posteo.de
File Name: lingpy/convert/html.py
Class Name:
Method Name: msa2tex
Project Name: ilastik/ilastik
Commit Name: e4c330615d355c6bbcef72a4358411e5718f25d3
Time: 2019-01-07
Author: emilmelnikov@gmail.com
File Name: ilastik.py
Class Name:
Method Name: main