def format_counter_name(s):
  def splitCamels(s):
    """ Convert "fooBar" to "foo bar" """
    return re.sub(r'[a-z][A-Z]',
                  lambda x: x.group(0)[0] + " " + x.group(0)[1].lower(),
                  s)

  return string.capwords(re.sub('_', ' ', splitCamels(s)).lower())
Get the bounce method specified in the service's marathon configuration.
dataset/ETHPy150Open cloudera/hue/apps/jobbrowser/src/jobbrowser/views.py/format_counter_name--crossover with--dataset/ETHPy150Open Yelp/paasta/paasta_tools/marathon_tools.py/MarathonServiceConfig.get_bounce_method