13986978d4545aa429a7fc233d8e39718d52e255,studio/s3_provider.py,S3Provider,_set,#S3Provider#Any#Any#,66

Before Change


            Body=json.dumps(value))

        if response["ResponseMetadata"]["HTTPStatusCode"] != 200:
            raise ValueError(
                ("attempt to read write key {}  with value {} " +
                 "returned response {}")
                .format(key, value, response["ResponseMetadata"]))

After Change


        reason = response["ResponseMetadata"] if response else "None"
        if response is None or \
                response["ResponseMetadata"]["HTTPStatusCode"] != 200:
            msg: str = "attempt to write key {0} in bucket {1}" +\
                       " returned response {2}"\
                           .format(key, self.bucket, reason)
            self._report_fatal(msg)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


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


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


Project Name: studioml/studio
Commit Name: 82daa515fd28c1548a0d57bad1e9b392393464d2
Time: 2020-08-11
Author: andrei.denissov@cognizant.com
File Name: studio/local_artifact_store.py
Class Name: LocalArtifactStore
Method Name: __init__


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