<commit_before><div class="grid-items-lines right-column">
  <h1 class="column-header">Pager Duty<br><span>Goat and Open Incidents</span></h1>
  <hr>
  <section class='grid-item'>
    <div class="stats">
      <% unless @goat == @no_data_message %>
        <% @goat.each do |goat| %>
          <% unless goat["level"] > 2 %>
            <%= content_tag :li, "#{goat["user"]}<span>Level #{goat["level"]}</span>".html_safe %>
          <% end %>
        <% end %>
      <% end %>
    </div>
  </section>
  <section class='grid-item'>
      <div class='comment alert'>
        <div class='comment-content'>
          <%= content_tag :h1, "Incident 1" %>
          <%= content_tag :p, "Test App Incident Trigger Summary" %>
          <%= content_tag :p, "2012-09-11T22:49:21Z", class: 'comment-detail' %>
        </div>
      </div>
    <% unless !@incidents.present? || @incidents == @no_data_message %>
      <% @incidents.each do |inci| %>
        <div class='comment-content'>
          <%= content_tag :h1, "Incident #{inci["incident_number"]}" %>
          <%= content_tag :p, inci["description"] %>
          <%= content_tag :p, inci["created_at"], class: 'comment-detail' %>
        </div>
      <% end %>
    <% else %>
      <h1>Incidents</h1>
      <p id='no-incidents'>There are no incidents at this time.</p>
    <% end %>
  </section>
</div>

<div class="grid-items-lines middle-column">
  <h1 class="column-header">New Relic Statistics<br><span>Centralized or Critical</span></h1>
  <hr>
  <% unless @new_relic_data == @no_data_message %>
  <% @new_relic_data.each do |app| %>
    <% if app %>
      <% status = new_relic_app_status(app["health_status"]) %>
      <%= link_to "https://rpm.newrelic.com/accounts/5591/applications/#{app["id"]}", target: 'blank', class: "grid-item #{status}" do %>
        <%= content_tag :h1, app["name"] %>
        <div class="stats">
          <%= content_tag :li, "#{app["response_time"]} ms<span>Response Time</span>".html_safe %>
          <%= content_tag :li, "#{app["apdex_score"]}<span>Apdex</span>".html_safe %>
          <%= content_tag :li, "#{app["error_rate"]}%<span>Error Rate</span>".html_safe %>
        </div>
      <% end %>
    <% end %>
  <% end %>
</div>

<div class="grid-items-lines left-column">
  <h1 class="column-header">Top Five<br></h1>
    <% orgs = Organization.all %>
    <% app_cost_array = top_five_most_costly_apps(orgs) %>
    <table class="table-minimal">
      <thead>
        <tr>
          <th>Organization</th>
          <th>Cost</th>
        </tr><commit_msg>pesky syntax error<commit_after><div class="grid-items-lines right-column">
  <h1 class="column-header">Pager Duty<br><span>Goat and Open Incidents</span></h1>
  <hr>
  <section class='grid-item'>
    <div class="stats">
      <% unless @goat == @no_data_message %>
        <% @goat.each do |goat| %>
          <% unless goat["level"] > 2 %>
            <%= content_tag :li, "#{goat["user"]}<span>Level #{goat["level"]}</span>".html_safe %>
          <% end %>
        <% end %>
      <% end %>
    </div>
  </section>
  <section class='grid-item'>
      <div class='comment alert'>
        <div class='comment-content'>
          <%= content_tag :h1, "Incident 1" %>
          <%= content_tag :p, "Test App Incident Trigger Summary" %>
          <%= content_tag :p, "2012-09-11T22:49:21Z", class: 'comment-detail' %>
        </div>
      </div>
    <% unless !@incidents.present? || @incidents == @no_data_message %>
      <% @incidents.each do |inci| %>
        <div class='comment-content'>
          <%= content_tag :h1, "Incident #{inci["incident_number"]}" %>
          <%= content_tag :p, inci["description"] %>
          <%= content_tag :p, inci["created_at"], class: 'comment-detail' %>
        </div>
      <% end %>
    <% else %>
      <h1>Incidents</h1>
      <p id='no-incidents'>There are no incidents at this time.</p>
    <% end %>
  </section>
</div>

<div class="grid-items-lines middle-column">
  <h1 class="column-header">New Relic Statistics<br><span>Centralized or Critical</span></h1>
  <hr>
  <% unless @new_relic_data == @no_data_message %>
    <% @new_relic_data.each do |app| %>
      <% if app %>
        <% status = new_relic_app_status(app["health_status"]) %>
        <%= link_to "https://rpm.newrelic.com/accounts/5591/applications/#{app["id"]}", target: 'blank', class: "grid-item #{status}" do %>
          <%= content_tag :h1, app["name"] %>
          <div class="stats">
            <%= content_tag :li, "#{app["response_time"]} ms<span>Response Time</span>".html_safe %>
            <%= content_tag :li, "#{app["apdex_score"]}<span>Apdex</span>".html_safe %>
            <%= content_tag :li, "#{app["error_rate"]}%<span>Error Rate</span>".html_safe %>
          </div>
        <% end %>
      <% end %>
    <% end %>
  <% end %>
</div>

<div class="grid-items-lines left-column">
  <h1 class="column-header">Top Five<br></h1>
    <% orgs = Organization.all %>
    <% app_cost_array = top_five_most_costly_apps(orgs) %>
    <table class="table-minimal">
      <thead>
        <tr>
          <th>Organization</th>
          <th>Cost</th>
        </tr>
{'fraction_non_alphanumeric': 0.2058078347300721, 'fraction_numerical': 0.012083414539076203, 'mean_word_length': 2.773529411764706, 'pattern_counts': {'":': 0, '<': 176, '<?xml version=': 0, '>': 178, 'https://': 2, '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': '1076387', 'n_tokens_mistral': 1932, 'n_tokens_neox': 1759, 'n_words': 322}