parameters: (output_dir, prefix)
return_statement: return name
docstring: Creates a fragment from the compiler crashes.
docstring_summary: Creates a fragment from the compiler crashes.
docstring_tokens: Creates a fragment from the compiler crashes .
function: def crash_report(output_dir, prefix):
      """ Creates a fragment from the compiler crashes. """
  
      pretty = prettify_crash(prefix, output_dir)
      crashes = (pretty(crash) for crash in read_crashes(output_dir))
  
      name = os.path.join(output_dir, 'crashes.html.fragment')
      with open(name, 'w') as handle:
          indent = 4
          handle.write(reindent("""
          |<h2>Analyzer Failures</h2>
          |<p>The analyzer had problems processing the following files:</p>
          |<table>
          |  <thead>
          |    <tr>
          |      <td>Problem</td>
          |      <td>Source File</td>
          |      <td>Preprocessed File</td>
          |      <td>STDERR Output</td>
          |    </tr>
          |  </thead>
          |  <tbody>""", indent))
          for current in crashes:
              handle.write(reindent("""
          |    <tr>
          |      <td>{problem}</td>
          |      <td>{source}</td>
          |      <td><a href="{file}">preprocessor output</a></td>
          |      <td><a href="{stderr}">analyzer std err</a></td>
          |    </tr>""", indent).format(**current))
              handle.write(comment('REPORTPROBLEM', current))
          handle.write(reindent("""
          |  </tbody>
          |</table>""", indent))
          handle.write(comment('REPORTCRASHES'))
      return name
function_tokens: def crash_report ( output_dir , prefix ) : pretty = prettify_crash ( prefix , output_dir ) crashes = ( pretty ( crash ) for crash in read_crashes ( output_dir ) ) name = os . path . join ( output_dir , 'crashes.html.fragment' ) with open ( name , 'w' ) as handle : indent = 4 handle . write ( reindent ( """
          |<h2>Analyzer Failures</h2>
          |<p>The analyzer had problems processing the following files:</p>
          |<table>
          |  <thead>
          |    <tr>
          |      <td>Problem</td>
          |      <td>Source File</td>
          |      <td>Preprocessed File</td>
          |      <td>STDERR Output</td>
          |    </tr>
          |  </thead>
          |  <tbody>""" , indent ) ) for current in crashes : handle . write ( reindent ( """
          |    <tr>
          |      <td>{problem}</td>
          |      <td>{source}</td>
          |      <td><a href="{file}">preprocessor output</a></td>
          |      <td><a href="{stderr}">analyzer std err</a></td>
          |    </tr>""" , indent ) . format ( * * current ) ) handle . write ( comment ( 'REPORTPROBLEM' , current ) ) handle . write ( reindent ( """
          |  </tbody>
          |</table>""" , indent ) ) handle . write ( comment ( 'REPORTCRASHES' ) ) return name