084d3cb097d1eacea365bf0612ce11928ad22414,core/eolearn/core/eodata.py,EOPatch,save_aws,#EOPatch#Any#Any#Any#Any#,562

Before Change


        features += meta
        paths += meta_paths

        streams = (pickle.dumps(self[feat], protocol=pickle.HIGHEST_PROTOCOL) for feat in features)

        s3client = boto3.client("s3") if s3client is None else s3client
        for stream, path in zip(streams, paths):
            s3client.put_object(Bucket=bucket_name, Key=path, Body=stream)

    def _get_save_file_list(self, path, tmp_path, features, file_format, compress_level):
         Creates a list of _FileSaver classes for each feature which will have to be saved
        
        save_file_list = []

After Change


        paths += meta_paths

        s3client = boto3.client("s3") if s3client is None else s3client
        for (ftype, fname), path in zip(ftrs, paths):
            data = self[(ftype, fname)]
            if ftype is FeatureType.BBOX:
                data = tuple(data) + (int(data.crs.value),)

            stream = pickle.dumps(data, protocol=pickle.HIGHEST_PROTOCOL)
            s3client.put_object(Bucket=bucket_name, Key=path, Body=stream)

    def _get_save_file_list(self, path, tmp_path, features, file_format, compress_level):
         Creates a list of _FileSaver classes for each feature which will have to be saved
        
        save_file_list = []
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 11

Instances


Project Name: sentinel-hub/eo-learn
Commit Name: 084d3cb097d1eacea365bf0612ce11928ad22414
Time: 2019-11-29
Author: matic.lubej@sinergise.com
File Name: core/eolearn/core/eodata.py
Class Name: EOPatch
Method Name: save_aws


Project Name: okfn-brasil/serenata-de-amor
Commit Name: e1d39a4c9158c9a9db1218cb5be9946152e2ca1b
Time: 2017-04-14
Author: marcus.rehm@gmail.com
File Name: src/fetch_cnpj_info.py
Class Name:
Method Name:


Project Name: sahana/eden
Commit Name: ab2598239fa584ff858d51ea86177159ed7c4c50
Time: 2019-07-29
Author: dominic@nursix.org
File Name: modules/s3/codecs/xls.py
Class Name: S3XLS
Method Name: expand_hierarchy