98cf1b376867300159d412dcaf3464708a894080,studio/gcloud_artifact_store.py,GCloudArtifactStore,_get_file_timestamp,#GCloudArtifactStore#Any#,56
Before Change
method=method)
def _get_file_timestamp(self, key):
time_updated = self.bucket.get_blob(key).updated
if time_updated:
timestamp = calendar.timegm(time_updated.timetuple())
return timestamp
After Change
method=method)
def _get_file_timestamp(self, key):
blob = self.bucket.get_blob(key)
if blob is None:
return None
time_updated = blob.updated
if time_updated:
timestamp = calendar.timegm(time_updated.timetuple())
return timestamp
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: studioml/studio
Commit Name: 98cf1b376867300159d412dcaf3464708a894080
Time: 2017-09-06
Author: peter.zhokhov@sentient.ai
File Name: studio/gcloud_artifact_store.py
Class Name: GCloudArtifactStore
Method Name: _get_file_timestamp
Project Name: studioml/studio
Commit Name: d521decf7aa9f03022044d332e7c92a47cdf2087
Time: 2017-08-24
Author: peter.zhokhov@sentient.ai
File Name: studio/gcloud_artifact_store.py
Class Name: GCloudArtifactStore
Method Name: grant_write
Project Name: studioml/studio
Commit Name: 98cf1b376867300159d412dcaf3464708a894080
Time: 2017-09-06
Author: peter.zhokhov@sentient.ai
File Name: studio/gcloud_artifact_store.py
Class Name: GCloudArtifactStore
Method Name: _delete_file