9ff097f08b073a5c7b98299276da2a82b5ae6a1d,studio/s3_provider.py,S3Provider,_get,#S3Provider#Any#Any#,20

Before Change


                        key, response)

            keys = []
            keys += [c["Key"] for c in response.get("Contents", [])]
            keys += [c["Prefix"][:-1]
                     for c in response.get("CommonPrefixes", [])]
            suffixes = [re.sub("^" + key, "", k) for k in keys]

            return suffixes

After Change


            return None

        for key_item in response["Contents"]:
            if "Key" in key_item.keys() and key_item["Key"] == key:
                response = self.meta_store.client.get_object(
                    Bucket=self.bucket,
                    Key=key)
                return json.loads(response["Body"].read().decode("utf-8"))

        return None

    def _delete(self, key):
        self.logger.info("S3 deleting object: {0}/{1}".format(self.bucket, key))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: studioml/studio
Commit Name: 9ff097f08b073a5c7b98299276da2a82b5ae6a1d
Time: 2020-12-15
Author: andrei.denissov@cognizant.com
File Name: studio/s3_provider.py
Class Name: S3Provider
Method Name: _get


Project Name: vatlab/SoS
Commit Name: bd1e1471f064ffc5a40e729d82bfcb9fce73e9e1
Time: 2016-09-28
Author: ben.bog@gmail.com
File Name: pysos/sos_step.py
Class Name: Base_Step_Executor
Method Name: get_step_signature


Project Name: pgmpy/pgmpy
Commit Name: ce229c76dfffda7563071fc461ee1f7e31080172
Time: 2015-11-10
Author: utkarsh.gupta550@gmail.com
File Name: pgmpy/readwrite/BIF.py
Class Name: BifReader
Method Name: __init__