da3894b5ae20d2f2851504e0fed6a946247f733f,lib/streamlit/S3Connection.py,S3,upload_report,#S3#Any#Any#,131
Before Change
LOGGER.debug("Uploaded %s", path)
// Return the url for the saved report.
full_path = os.path.join(self._bucketname, self._s3_key("index.html"))
return "https://%s/%s?id=%s" % (self._domain, full_path, report_id)
"""
After Change
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))
@run_on_executor
def _s3_upload_report(self, report_id, report):
// Figure out what we need to save
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 3
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: NVIDIA/OpenSeq2Seq
Commit Name: d385044dbc4cfd0b70197d513000baa53e539b09
Time: 2018-05-07
Author: igor.a.gitman@gmail.com
File Name: run.py
Class Name:
Method Name: main
Project Name: google/deepvariant
Commit Name: e1aca5875121ef15bdb07243af56eb704d79c794
Time: 2019-12-05
Author: pichuan@google.com
File Name: deepvariant/model_train.py
Class Name:
Method Name: run
Project Name: Picovoice/porcupine
Commit Name: 4d11c45f9d87cc5588a32ac8e42ea06cd438fc40
Time: 2018-04-21
Author: alireza@picovoice.ai
File Name: demo/python/porcupine_demo.py
Class Name:
Method Name: _default_library_path