parameters: (rec)
docstring: Print summary record information on stdout
docstring_summary: Print summary record information on stdout
docstring_tokens: Print summary record information on stdout
function: def print_summary(rec):
      "Print summary record information on stdout"
      if  'summary' not in rec:
          msg = 'Summary information is not found in record:\n', rec
          raise Exception(msg)
      for row in rec['summary']:
          keys = [k for k in row.keys()]
          maxlen = max([len(k) for k in keys])
          for key, val in row.items():
              pkey = '%s%s' % (key, ' '*(maxlen-len(key)))
              print('%s: %s' % (pkey, val))
          print()
function_tokens: def print_summary ( rec ) : if 'summary' not in rec : msg = 'Summary information is not found in record:\n' , rec raise Exception ( msg ) for row in rec [ 'summary' ] : keys = [ k for k in row . keys ( ) ] maxlen = max ( [ len ( k ) for k in keys ] ) for key , val in row . items ( ) : pkey = '%s%s' % ( key , ' ' * ( maxlen - len ( key ) ) ) print ( '%s: %s' % ( pkey , val ) ) print ( )