63eefcc59a3d9ed5347695869833e48a91404108,core/eolearn/core/eodata.py,EOPatch,load_aws,#Any#Any#Any#Any#,747

Before Change


                    else:
                        data = np.load(gzip_fp)
            else:
                if is_pickle:
                    data = pickle.load(BytesIO(stream))
                else:
                    data = np.load(BytesIO(stream))

            eopatch[feature] = data
        return eopatch

    @staticmethod

After Change


            stream = s3client.get_object(Bucket=bucket_name, Key=path)["Body"].read()
            if is_compressed:
                with gzip.open(BytesIO(stream), "rb") as gzip_fp:
                    data = _load_data(gzip_fp, is_pickle)
            else:
                data = _load_data(BytesIO(stream), is_pickle)

            eopatch[feature] = data
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: sentinel-hub/eo-learn
Commit Name: 63eefcc59a3d9ed5347695869833e48a91404108
Time: 2019-12-02
Author: matic.lubej@sinergise.com
File Name: core/eolearn/core/eodata.py
Class Name: EOPatch
Method Name: load_aws


Project Name: timvieira/arsenal
Commit Name: 1664abf08a28bd064e7ab0a020ad9e4db6b9df6e
Time: 2010-08-30
Author: none@none
File Name: pdfminer/cmapdb.py
Class Name: CMapDB
Method Name: get_unicode_map


Project Name: timvieira/arsenal
Commit Name: 1664abf08a28bd064e7ab0a020ad9e4db6b9df6e
Time: 2010-08-30
Author: none@none
File Name: pdfminer/cmapdb.py
Class Name: CMapDB
Method Name: get_cmap