tools/checkteamtags/extract_components.py
def display_missing_info_OWNERS_files(stats, num_output_depth):
  """Display OWNERS files that have missing team and component by depth.

  OWNERS files that have no team and no component information will be shown
  for each depth level (up to the level given by num_output_depth).

  Args:
    stats (dict): The statistics in dictionary form as produced by the
      owners_file_tags module.
    num_output_depth (int): number of levels to be displayed.
  """
  print("OWNERS files that have missing team and component by depth:")
  max_output_depth = len(stats['OWNERS-count-by-depth'])
  if (num_output_depth < 0
      or num_output_depth > max_output_depth):
    num_output_depth = max_output_depth

  for depth in range(0, num_output_depth):
    print('at depth %(depth)d' % {'depth': depth})
    print(stats['OWNERS-missing-info-by-depth'][depth])
Display OWNERS files that have missing team and component by depth.

  OWNERS files that have no team and no component information will be shown
  for each depth level (up to the level given by num_output_depth).

  Args:
    stats (dict): The statistics in dictionary form as produced by the
      owners_file_tags module.
    num_output_depth (int): number of levels to be displayed.
  
Display OWNERS files that have missing team and component by depth.
OWNERS files that have no team and no component information will be shown
for each depth level (up to the level given by num_output_depth).
Display OWNERS files that have missing team and component by depth . OWNERS files that have no team and no component information will be shown for each depth level ( up to the level given by num_output_depth ) .
def display_missing_info_OWNERS_files(stats, num_output_depth):
  print("OWNERS files that have missing team and component by depth:")
  max_output_depth = len(stats['OWNERS-count-by-depth'])
  if (num_output_depth < 0
      or num_output_depth > max_output_depth):
    num_output_depth = max_output_depth
  for depth in range(0, num_output_depth):
    print('at depth %(depth)d' % {'depth': depth})
    print(stats['OWNERS-missing-info-by-depth'][depth])
def display_missing_info_OWNERS_files ( stats , num_output_depth ) : print ( "OWNERS files that have missing team and component by depth:" ) max_output_depth = len ( stats [ 'OWNERS-count-by-depth' ] ) if ( num_output_depth < 0 or num_output_depth > max_output_depth ) : num_output_depth = max_output_depth for depth in range ( 0 , num_output_depth ) : print ( 'at depth %(depth)d' % { 'depth' : depth } ) print ( stats [ 'OWNERS-missing-info-by-depth' ] [ depth ] )
Display OWNERS files that have missing team and component by depth.
Display OWNERS files that have missing team and component by depth .
"""Display OWNERS files that have missing team and component by depth.

  OWNERS files that have no team and no component information will be shown
  for each depth level (up to the level given by num_output_depth).

  Args:
    stats (dict): The statistics in dictionary form as produced by the
      owners_file_tags module.
    num_output_depth (int): number of levels to be displayed.
  """
stats
The statistics in dictionary form as produced by the
owners_file_tags module.
The statistics in dictionary form as produced by the owners_file_tags module .
num_output_depth
number of levels to be displayed.
number of levels to be displayed .