01342cee01410f5f0278f85c3b95f158614dc3a4,io/eolearn/io/processing_api.py,SentinelHubProcessingInput,execute,#SentinelHubProcessingInput#Any#,117

Before Change



        client = SentinelhubClient(cache_dir=self.cache_dir)

        requests = (request_from_date(request, date) for date in dates)
        images = (client.get(req, headers=headers) for req in requests)
        images = [tar_to_numpy(img) for img in images]

        eopatch = EOPatch() if eopatch is None else eopatch

After Change



        requests = [request_from_date(request, date) for date in dates]

        with concurrent.futures.ThreadPoolExecutor(max_workers=5) as executor:
            responses = [executor.submit(client.get, request, headers=headers) for request in requests]

        images = [response.result() for response in responses]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: sentinel-hub/eo-learn
Commit Name: 01342cee01410f5f0278f85c3b95f158614dc3a4
Time: 2019-10-15
Author: jovan.visnjic@sinergise.com
File Name: io/eolearn/io/processing_api.py
Class Name: SentinelHubProcessingInput
Method Name: execute


Project Name: analysiscenter/batchflow
Commit Name: f655fd8ff333159ffa88e1dfbcf2e32f706c9d97
Time: 2017-04-19
Author: rhudor@gmail.com
File Name: dataset/pipeline.py
Class Name: Pipeline
Method Name: run


Project Name: studioml/studio
Commit Name: 13986978d4545aa429a7fc233d8e39718d52e255
Time: 2020-08-11
Author: andrei.denissov@cognizant.com
File Name: studio/keyvalue_provider.py
Class Name: KeyValueProvider
Method Name: checkpoint_experiment