da3894b5ae20d2f2851504e0fed6a946247f733f,lib/streamlit/S3Connection.py,S3,upload_report,#S3#Any#Any#,131
Before Change
// Save all the data
for path, data in save_data:
mime_type = mimetypes.guess_type(path)[0]
if not mime_type:
mime_type = "application/octet-stream"
self._client.put_object(
Bucket=self._bucketname,
Body=data,
Key=self._s3_key(path),
After Change
Save report to s3.
yield self.s3_init()
yield self._upload_static_dir()
yield self._s3_upload_report(report_id, report)
// Return the url for the saved report.
raise gen.Return("%s?id=%s" % (self._s3_url, report_id))
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances Project Name: streamlit/streamlit
Commit Name: da3894b5ae20d2f2851504e0fed6a946247f733f
Time: 2018-06-18
Author: armando@playground.global
File Name: lib/streamlit/S3Connection.py
Class Name: S3
Method Name: upload_report
Project Name: google/deepvariant
Commit Name: 13a85e08e713f374933bc4fc082f67e1fa8dcd02
Time: 2018-02-20
Author: cym@google.com
File Name: deepvariant/util/io_utils.py
Class Name:
Method Name: read_shard_sorted_tfrecords
Project Name: ray-project/ray
Commit Name: edbb2937d393f9cd95a5016bc2df5250bbd59152
Time: 2021-01-23
Author: rkooo567@gmail.com
File Name: python/ray/tests/test_object_spilling.py
Class Name:
Method Name: object_spilling_config