15ab42d1805968cdf5e9b8051eeacb192a4efa98,perfkitbenchmarker/providers/gcp/gcp_bigtable.py,GcpBigtableCluster,_Exists,#GcpBigtableCluster#,62

Before Change


    result = json.loads(stdout)
    if "clusters" not in result:
      return False
    clusters = {cluster["name"]: cluster for cluster in result["clusters"]}
    expected_cluster_name = "projects/{0}/zones/{1}/clusters/{2}".format(
        self.project, self.zone, self.name)
    return expected_cluster_name in clusters

After Change


                    "STDOUT: %s\nSTDERR: %s", retcode, stdout, stderr)
      return False
    result = json.loads(stdout)
    clusters = {cluster["clusterId"] for cluster in result}
    return self.name in clusters
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: 15ab42d1805968cdf5e9b8051eeacb192a4efa98
Time: 2016-05-25
Author: ehankland@google.com
File Name: perfkitbenchmarker/providers/gcp/gcp_bigtable.py
Class Name: GcpBigtableCluster
Method Name: _Exists


Project Name: cmu-db/ottertune
Commit Name: 944a0ccc8dc9110516192b0b41a12e8f9612f7ef
Time: 2020-02-20
Author: dvanaken@cs.cmu.edu
File Name: server/website/website/db/base/parser.py
Class Name: BaseParser
Method Name: extract_valid_variables


Project Name: biolab/orange3
Commit Name: 0a2c179089eddc6744210cfde4c33c5c85f57d2b
Time: 2018-07-06
Author: ales.erjavec@fri.uni-lj.si
File Name: Orange/canvas/document/schemeedit.py
Class Name: SchemeEditWidget
Method Name: __activateWindowGroup