4c20403410a9d3ff760275ea540d37bc9e341f7b,perfkitbenchmarker/providers/openstack/utils.py,,ParseServerGroupTable,#Any#,31

Before Change


    dict with key/value of the server-group. Keys are "id" and "name".
  
  stdout_lines = output.split("\n")
  groups = (PROP_VAL_PATTERN.match(line) for line in stdout_lines)
  tuples = (g.groups() for g in groups if g)
  filtered_tuples = [(key, val) for (key, val) in tuples
                     if key and key not in ("", "Id",)]
  assert len(filtered_tuples) == 1, "Server group is not unique."
  server_group_id, server_group_name = filtered_tuples[0]
  d = {"id": server_group_id, "name": server_group_name}
  return d

After Change


  Returns:
    dict with key/value of the server-group.
  
  keys = ("id", "name", "policies", "members", "metadata",)
  server_group_list = ParseNovaTable(output, FIVE_COLUMNS_PATTERN, keys)
  assert len(server_group_list) == 1, "Server group is not unique."
  return server_group_list[0]

Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 10

Instances


Project Name: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: 4c20403410a9d3ff760275ea540d37bc9e341f7b
Time: 2016-06-29
Author: carlos.torres@rackspace.com
File Name: perfkitbenchmarker/providers/openstack/utils.py
Class Name:
Method Name: ParseServerGroupTable


Project Name: has2k1/plotnine
Commit Name: 44682f54140e61f260878ad2d2703eecba91e1e9
Time: 2015-04-20
Author: has2k1@gmail.com
File Name: ggplot/facets/locate.py
Class Name:
Method Name: locate_grid


Project Name: has2k1/plotnine
Commit Name: 44682f54140e61f260878ad2d2703eecba91e1e9
Time: 2015-04-20
Author: has2k1@gmail.com
File Name: ggplot/facets/locate.py
Class Name:
Method Name: locate_wrap