<commit_before>- if display_content?
  .page_content

    %h1 Application Health

    - # ATTENTION: newrelic expects to see "Status: OK" on this page, otherwise it sends out alerts. 
    - # So if you change this here, make sure you also update newrelic. Especially if you change it late at night :)
    - # Also, the status color applies to both label and value because newrelic doesn't seem to like spans in its substring check.
    %h3{:class => @overall_working ? "ok" : "failing" } Status: #{@overall_working ? "OK" : "FAILING"}

    %table.table.table-condensed.bordered-table.table-striped
      %thead
        %th
          Function
        %th
          Threshold (minutes)
        %th
          Last
        %th
          Status
      %tr
        %td
          Sending emails
        %td
          #{@email_threshold}
        %td
          #{@last_email_timestamp}
        %td{:class => @email_working ? "ok" : "failing" }
          #{@email_working ? "Active" : "INACTIVE" }
      %tr
        %td
          Collecting signatures
        %td
          #{@signature_threshold}
        %td
          #{@last_signature_timestamp}
        %td{:class => @signature_working ? "ok" : @signature_failing_style }
          #{@signature_working ? "Active" : "INACTIVE"}
    %h3{:class => @resque_working ? "ok" : "failing" } Resque Status: #{@resque_working ? "OK" : "FAILING"}

    %table.table.table-condensed.bordered-table.table-striped
      %thead
        %th
          Workers
        %th
          Pending
        %th
          Processed
        %th
          Working
        %th
          Failed
      %tr
        %td
          #{@resque_stats[:workers]}
        %td
          #{@resque_stats[:pending]}
        %td
          #{@resque_stats[:processed]}
        %td
          #{@resque_stats[:working]}
        %td
          #{@resque_stats[:failed]}

    %h3 Email Statistics   
    %table.table.table-condensed.bordered-table.table-striped
      %tr
        %td
          Emails sent in the past week
        %td
          #{@emails_sent_past_week}
      %tr
        %td
          Number of emailable members
        %td
          #{@emailable_members}<commit_msg>changed heartbeat page not to say 'Resque Status: OK' so that newrelic doesn't see ...Status: OK when Resque is fine but something else is down<commit_after>- if display_content?
  .page_content

    %h1 Application Health

    - # ATTENTION: newrelic expects to see "Status: OK" on this page, otherwise it sends out alerts. 
    - # So if you change this here, make sure you also update newrelic. Especially if you change it late at night :)
    - # Also, the status color applies to both label and value because newrelic doesn't seem to like spans in its substring check.
    %h3{:class => @overall_working ? "ok" : "failing" } Status: #{@overall_working ? "OK" : "FAILING"}

    %table.table.table-condensed.bordered-table.table-striped
      %thead
        %th
          Function
        %th
          Threshold (minutes)
        %th
          Last
        %th
          Status
      %tr
        %td
          Sending emails
        %td
          #{@email_threshold}
        %td
          #{@last_email_timestamp}
        %td{:class => @email_working ? "ok" : "failing" }
          #{@email_working ? "Active" : "INACTIVE" }
      %tr
        %td
          Collecting signatures
        %td
          #{@signature_threshold}
        %td
          #{@last_signature_timestamp}
        %td{:class => @signature_working ? "ok" : @signature_failing_style }
          #{@signature_working ? "Active" : "INACTIVE"}
    
    %table.table.table-condensed.bordered-table.table-striped
      %thead
        %th
          Component
        %th
          Workers
        %th
          Pending
        %th
          Processed
        %th
          Working
        %th
          Failed
        %th
          Status
      %tr
        %td
          Resque
        %td
          #{@resque_stats[:workers]}
        %td
          #{@resque_stats[:pending]}
        %td
          #{@resque_stats[:processed]}
        %td
          #{@resque_stats[:working]}
        %td
          #{@resque_stats[:failed]}
        %td{:class => @resque_working ? "ok" : "failing" }
          #{@resque_working ? "OK" : "FAILING"}

    %table.table.table-condensed.bordered-table.table-striped
      %thead
        %th
          Email Statistics   
      %tr
        %td
          Emails sent in the past week
        %td
          #{@emails_sent_past_week}
      %tr
        %td
          Number of emailable members
        %td
          #{@emailable_members}
{'fraction_non_alphanumeric': 0.10490877497827976, 'fraction_numerical': 0.0013032145960034753, 'mean_word_length': 1.7104178928781637, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '4320068', 'n_tokens_mistral': 1393, 'n_tokens_neox': 1382, 'n_words': 360}