<commit_before><!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <title>[Waker] <%= event.incident.subject %></title>
  </head>
  <body>
    <%
      ack_url = Rails.application.routes.url_helpers.acknowledge_incident_url(event.incident, hash: event.incident.confirmation_hash)
      ack_url_json = Rails.application.routes.url_helpers.acknowledge_incident_url(event.incident, hash: event.incident.confirmation_hash, format: :json)
      resolve_url = Rails.application.routes.url_helpers.resolve_incident_url(event.incident, hash: event.incident.confirmation_hash)

      email_markup = {
        "@context" => "http://schema.org",
        "@type" => "EmailMessage",
        "potentialAction" => {
          "@type" => "ConfirmAction",
          "name" => "Acknowledge incident",
          "handler" => {
            "@type" => "HttpActionHandler",
            "url" => ack_url_json,
          },
        },
        "description" => "Acknowledge incident: #{event.incident.subject}",
      }

    %>

    <script type="application/ld+json"><%= email_markup.to_json.html_safe %></script>

    <h1><%= event.incident.subject %></h1>

    <div>
      <%
        btn_style = 'border-radius: 4px;' \
          'text-decoration: none;' \
          'display: inline-block;' \
          'font-size: 1.3em;' \
          'padding: 5px 8px;' \
          'margin-right: 12px;' \
      %>
      <a href="<%= ack_url %>"><div style="<%= btn_style %>; border: 1px solid #ccc; color: black;">Acknowledge</div></a> <a href="<%= resolve_url %>"><div style="<%= btn_style %>; background-color: #5cb85c; color: white;">Resolve</div></a>
    </div>

    <div style="margin-top: 12px;">
      <%= event.incident.description %>
    </div>
  </body>
</body><commit_msg>Wrap with <pre> for multiple lines...<commit_after><!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <title>[Waker] <%= event.incident.subject %></title>
  </head>
  <body>
    <%
      ack_url = Rails.application.routes.url_helpers.acknowledge_incident_url(event.incident, hash: event.incident.confirmation_hash)
      ack_url_json = Rails.application.routes.url_helpers.acknowledge_incident_url(event.incident, hash: event.incident.confirmation_hash, format: :json)
      resolve_url = Rails.application.routes.url_helpers.resolve_incident_url(event.incident, hash: event.incident.confirmation_hash)

      email_markup = {
        "@context" => "http://schema.org",
        "@type" => "EmailMessage",
        "potentialAction" => {
          "@type" => "ConfirmAction",
          "name" => "Acknowledge incident",
          "handler" => {
            "@type" => "HttpActionHandler",
            "url" => ack_url_json,
          },
        },
        "description" => "Acknowledge incident: #{event.incident.subject}",
      }

    %>

    <script type="application/ld+json"><%= email_markup.to_json.html_safe %></script>

    <h1><%= event.incident.subject %></h1>

    <div>
      <%
        btn_style = 'border-radius: 4px;' \
          'text-decoration: none;' \
          'display: inline-block;' \
          'font-size: 1.3em;' \
          'padding: 5px 8px;' \
          'margin-right: 12px;' \
      %>
      <a href="<%= ack_url %>"><div style="<%= btn_style %>; border: 1px solid #ccc; color: black;">Acknowledge</div></a> <a href="<%= resolve_url %>"><div style="<%= btn_style %>; background-color: #5cb85c; color: white;">Resolve</div></a>
    </div>

    <div style="margin-top: 12px;">
      <pre style="font-size: 1.1em; white-space: pre; word-wrap: break-word;"><code>
<%= event.incident.description %>
      </code></pre>
    </div>
  </body>
</body>
{'fraction_non_alphanumeric': 0.18330308529945555, 'fraction_numerical': 0.009852216748768473, 'mean_word_length': 2.9207317073170733, 'pattern_counts': {'":': 0, '<': 82, '<?xml version=': 0, '>': 100, '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': '822210', 'n_tokens_mistral': 1373, 'n_tokens_neox': 1300, 'n_words': 218}