tools/metrics/histograms/split_xml.py
def GetDirForNode(node):
  """Returns the correct directory that the given |node| should be placed in."""
  camel_name = _GetCamelCaseName(node)
  # Check if the directory of its prefix exists. Return the |camel_name| if the
  # folder exists. Otherwise, this |node| should be placed in 'others' folder.
  if camel_name in histogram_paths.HISTOGRAMS_PREFIX_LIST:
    return camel_name
  return 'others'
Returns the correct directory that the given |node| should be placed in.
Returns the correct directory that the given |node| should be placed in.
Returns the correct directory that the given |node| should be placed in .
def GetDirForNode(node):
  camel_name = _GetCamelCaseName(node)
  if camel_name in histogram_paths.HISTOGRAMS_PREFIX_LIST:
    return camel_name
  return 'others'
def GetDirForNode ( node ) : camel_name = _GetCamelCaseName ( node ) if camel_name in histogram_paths . HISTOGRAMS_PREFIX_LIST : return camel_name return 'others'
Returns the correct directory that the given |node| should be placed in.
Returns the correct directory that the given |node| should be placed in .
"""Returns the correct directory that the given |node| should be placed in.""" # Check if the directory of its prefix exists. Return the |camel_name| if the # folder exists. Otherwise, this |node| should be placed in 'others' folder.
node