084d3cb097d1eacea365bf0612ce11928ad22414,core/eolearn/core/eodata.py,EOPatch,save_aws,#EOPatch#,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)

After Change


        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
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

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: google/language-resources
Commit Name: 95caeaa51b8a4ffa6418ba8ec73337b7e5ed8427
Time: 2015-09-24
Author: mjansche@google.com
File Name: bn/graphemes.py
Class Name:
Method Name:


Project Name: fgnt/pb_bss
Commit Name: 2cfa9aa576ae7544f76e66854edd304690a5822b
Time: 2019-08-08
Author: mail@lukas-drude.de
File Name: paderbox/speech_enhancement/beamformer_wrapper.py
Class Name:
Method Name: get_multi_source_bf_vector_from_masks