e8484040bc8cd6f5383595d7a6882d0e319f724a,perfkitbenchmarker/providers/gcp/gcp_cloud_tpu.py,GcpCloudTpu,_Exists,#GcpCloudTpu#,85
Before Change
cmd.flags["zone"] = self.spec.tpu_zone
cmd.flags["project"] = self.project
_, _, retcode = cmd.Issue()
if retcode != 0:
logging.info("Could not found GCP cloud TPU %s.",
self.spec.tpu_name)
return False
return True
def GetCloudTpuIp(self):
Gets the cloud TPU IP.
After Change
def _Exists(self):
Returns true if the cloud TPU exists.
_, retcode = self._GetCloudTpuDescription()
return retcode == 0
def GetCloudTpuIp(self):
Gets the cloud TPU IP.
result, _ = self._GetCloudTpuDescription()
In pattern: SUPERPATTERN
Frequency: 5
Non-data size: 5
Instances
Project Name: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: e8484040bc8cd6f5383595d7a6882d0e319f724a
Time: 2018-01-04
Author: tohaowu@google.com
File Name: perfkitbenchmarker/providers/gcp/gcp_cloud_tpu.py
Class Name: GcpCloudTpu
Method Name: _Exists
Project Name: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: 6a51f1bf12daf8175842612920de0e412eba93d5
Time: 2018-02-13
Author: deitz@google.com
File Name: perfkitbenchmarker/providers/gcp/gcp_cloud_redis.py
Class Name: CloudRedis
Method Name: _Exists
Project Name: deepdrive/deepdrive
Commit Name: fa1e54d2fa679e026a4232f5220e934867f4d528
Time: 2018-12-23
Author: cquiter@gmail.com
File Name: main.py
Class Name:
Method Name: get_latest_model
Project Name: dask/distributed
Commit Name: db758d0f8609dd0fa041b212ecc89a088b57291e
Time: 2018-06-23
Author: mrocklin@gmail.com
File Name: distributed/deploy/adaptive.py
Class Name: Adaptive
Method Name: _adapt
Project Name: chartbeat-labs/textacy
Commit Name: 2b479cf658f843e9179fb591eb7e149be02a8039
Time: 2019-08-21
Author: burtdewilde@gmail.com
File Name: textacy/datasets/utils.py
Class Name:
Method Name: download_file