28e3d00f5e8625dc6d2743749a2d25acc040e875,studio/s3_storage_handler.py,S3StorageHandler,__init__,#S3StorageHandler#,20
Before Change
aws_key: str =\
self.credentials.get_key() if self.credentials else None
aws_secret_key =\
self.credentials.get_secret_key() if self.credentials else None
session = Session(aws_access_key_id=aws_key,
aws_secret_access_key=aws_secret_key,
region_name=config.get("region"))
After Change
.format(self.endpoint)
self._report_fatal(msg)
if self.credentials.get_type() != AWS_TYPE:
msg: str = "EXPECTED aws credentials for {0}: {1}"\
.format(self.endpoint, repr(self.credentials.to_dict()))
self._report_fatal(msg)
aws_key: str = self.credentials.get_key()
aws_secret_key = self.credentials.get_secret_key()
session = Session(aws_access_key_id=aws_key,
aws_secret_access_key=aws_secret_key,
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: studioml/studio
Commit Name: 28e3d00f5e8625dc6d2743749a2d25acc040e875
Time: 2021-02-11
Author: andrei.denissov@cognizant.com
File Name: studio/s3_storage_handler.py
Class Name: S3StorageHandler
Method Name: __init__
Project Name: fgnt/pb_bss
Commit Name: 63d63a5d40d72586310c24f0950389a46b004183
Time: 2019-12-16
Author: cbj@mail.uni-paderborn.de
File Name: pb_bss/distribution/utils.py
Class Name: _ProbabilisticModel
Method Name: to_dict
Project Name: nilmtk/nilmtk
Commit Name: ad8b2134134404d909324f35381e51908a1d3c10
Time: 2014-11-20
Author: jack-list@xlk.org.uk
File Name: nilmtk/elecmeter.py
Class Name: ElecMeter
Method Name: total_energy