<commit_before>!!! XML
<!DOCTYPE html>
%html{ html_attrs }
  %head
    %title 500 Internal Server Error
    %style
      :plain                  
        * {
          font-size: 100%;
          margin: 0;
          padding: 0;
        }

        body {
          font-family: lucida grande, verdana, sans-serif;
          margin: 1em;
        }

        a {
          color: #880000;
        }

        a:visited {
          color: #888888;
        }

        h1 {
          font-size: 2em;
          margin: 0 0 0.8em 0;
        }

        h2 {
          font-size: 1em;
          margin: 0.8em 0;
        }

        p {
          margin: 0.8em 0;
        }

        ul {
          font-size: 0.9em;
          margin: 0 0 0 1.5em;
        }
        
        pre {
          padding: 1em;
          border: 2px solid #AAAAAA;
          background-color: #888888;
          overflow: auto;
        }

        #content {
          padding: 0 0.8em;
          background-color: #AA5852;
          border: 2px solid #C2645D;
        }

        @media print {
          a {
            text-decoration: none;
            color: #000000;
          }
        }
  %body
    - error = objects.first
    #header
      %h1 500 Internal Server Error
      %h2= error.class.name
    #content
      %p An error has occurred while processing the request:
      %p=h error.message
      - if error.respond_to?(:backtrace) && error.backtrace != nil
        %p
          = preformat(h(error.backtrace.join("\n")))
      - else
        %p Backtrace is unavailable.<commit_msg>500 error page now produces slightly nicer XHTML.<commit_after>!!! XML
<!DOCTYPE html>
%html{ html_attrs }
  %head
    %title 500 Internal Server Error
    %style
      :plain                  
        * {
          font-size: 100%;
          margin: 0;
          padding: 0;
        }

        body {
          font-family: lucida grande, verdana, sans-serif;
          margin: 1em;
        }

        a {
          color: #880000;
        }

        a:visited {
          color: #888888;
        }

        h1 {
          font-size: 2em;
          margin: 0 0 0.8em 0;
        }

        h2 {
          font-size: 1em;
          margin: 0.8em 0;
        }

        p {
          margin: 0.8em 0;
        }

        ul {
          font-size: 0.9em;
          margin: 0 0 0 1.5em;
        }
        
        pre {
          padding: 1em;
          border: 2px solid #AAAAAA;
          background-color: #888888;
          overflow: auto;
        }

        #content {
          padding: 0 0.8em;
          background-color: #AA5852;
          border: 2px solid #C2645D;
        }

        @media print {
          a {
            text-decoration: none;
            color: #000000;
          }
        }
  %body
    - error = objects.first
    #header
      %h1 500 Internal Server Error
      %h2= error.class.name
    #content
      %p An error has occurred while processing the request:
      %p= (h error.message).gsub("\n", "<br />\n")
      - if error.respond_to?(:backtrace) && error.backtrace != nil
        %p
          = preformat(h(error.backtrace.join("\n")))
      - else
        %p Backtrace is unavailable.
{'fraction_non_alphanumeric': 0.10446821900566394, 'fraction_numerical': 0.04751415984896161, 'mean_word_length': 1.125, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6115922', 'n_tokens_mistral': 1106, 'n_tokens_neox': 968, 'n_words': 253}