class_docstr: Class to help running the lint and records summary
class_docstr_tok: ["Class","to","help","running","the","lint","and","records","summary"]
docstr: Print summary of certain result map.
docstr_tok: ["Print","summary","of","certain","result","map","."]
code: def _print_summary_map(strm, result_map, ftype):
      """Print summary of certain result map."""
      if len(result_map) == 0:
          return 0
      npass = len([x for k, x in result_map.items() if len(x) == 0])
      strm.write(
          "=====%d/%d %s files passed check=====\n"
          % (npass, len(result_map), ftype)
      )
      for fname, emap in result_map.items():
          if len(emap) == 0:
              continue
          strm.write(
              "%s: %d Errors of %d Categories map=%s\n"
              % (fname, sum(emap.values()), len(emap), str(emap))
          )
      return len(result_map) - npass
  
imports: from __future__ import print_function
  import argparse
  import codecs
  import sys
  import re
  import os
  import cpplint
  from cpplint import _cpplint_state
  from pylint import epylint
label_desc: Use image node_id 1 for calling the LintHelper obj's underlying member method code with example usage: obj._print_summary_map(strm, result_map, ftype) and returns: unknown, int