<commit_before><div class="page-header">
  <h1 id="api_key" data-api_key="<%= ENV['API_KEY'] %>">Status <small id="update_date"><%= date_from_iso8601(@status.update_date) + ' UTC' %></small></h1>
</div>

<div class="content">
  <div class="row">
  <div class="col-md-4">
    <div class="panel <%= @status.articles_count > 0 ? 'panel-default' : 'panel-warning' %>">
      <div class="panel-heading">Articles</div>
      <div class="panel-body text-center">
        <h2 id="articles_count"><%= link_to_if @status.articles_count > 0, number_with_delimiter(@status.articles_count), articles_path %></h2>
      </div>
    </div>
  </div>
  <div class="col-md-4">
    <div class="panel <%= @status.articles_last30_count > 0 ? 'panel-default' : 'panel-warning' %>">
      <div class="panel-heading">Articles <small class="pull-right">last 30 days</small></div>
      <div class="panel-body text-center">
        <h2 id="articles_last30_count"><%= link_to_if @status.articles_last30_count > 0, number_with_delimiter(@status.articles_last30_count), articles_path %></h2>
      </div>
    </div>
  </div>
  <div class="col-md-4">
    <div class="panel <%= @status.events_count > 0 ? 'panel-default' : 'panel-warning' %>">
      <div class="panel-heading">Events</div>
      <div class="panel-body text-center">
        <h2 id="events_count"><%= link_to_if @status.events_count > 0, number_with_delimiter(@status.events_count), sources_path %></h2>
      </div>
    </div>
  </div>
</div>

<div class="row">
  <div class="col-md-4">
    <div class="panel <%= @status.responses_count > 0 ? 'panel-default' : 'panel-warning' %>">
      <div class="panel-heading">API responses <small class="pull-right">last 24 hours</small></div>
      <div class="panel-body text-center">
        <h2 id="responses_count"><%= link_to_if @status.responses_count > 0, number_with_delimiter(@status.responses_count), sources_path %></h2>
      </div>
    </div>
  </div>
  <div class="col-md-4">
    <div class="panel <%= @status.requests_count > 0 ? 'panel-default' : 'panel-warning' %>">
      <div class="panel-heading">API requests <small class="pull-right">last 24 hours</small></div>
      <div class="panel-body text-center">
        <h2 id="requests_count"><%= link_to_if @status.requests_count > 0 && can?(:read, Alert), number_with_delimiter(@status.requests_count), api_requests_path %></h2><commit_msg>only show link to API responses when proper permissions<commit_after><div class="page-header">
  <h1 id="api_key" data-api_key="<%= ENV['API_KEY'] %>">Status <small id="update_date"><%= date_from_iso8601(@status.update_date) + ' UTC' %></small></h1>
</div>

<div class="content">
  <div class="row">
  <div class="col-md-4">
    <div class="panel <%= @status.articles_count > 0 ? 'panel-default' : 'panel-warning' %>">
      <div class="panel-heading">Articles</div>
      <div class="panel-body text-center">
        <h2 id="articles_count"><%= link_to_if @status.articles_count > 0, number_with_delimiter(@status.articles_count), articles_path %></h2>
      </div>
    </div>
  </div>
  <div class="col-md-4">
    <div class="panel <%= @status.articles_last30_count > 0 ? 'panel-default' : 'panel-warning' %>">
      <div class="panel-heading">Articles <small class="pull-right">last 30 days</small></div>
      <div class="panel-body text-center">
        <h2 id="articles_last30_count"><%= link_to_if @status.articles_last30_count > 0, number_with_delimiter(@status.articles_last30_count), articles_path %></h2>
      </div>
    </div>
  </div>
  <div class="col-md-4">
    <div class="panel <%= @status.events_count > 0 ? 'panel-default' : 'panel-warning' %>">
      <div class="panel-heading">Events</div>
      <div class="panel-body text-center">
        <h2 id="events_count"><%= link_to_if @status.events_count > 0, number_with_delimiter(@status.events_count), sources_path %></h2>
      </div>
    </div>
  </div>
</div>

<div class="row">
  <div class="col-md-4">
    <div class="panel <%= @status.responses_count > 0 ? 'panel-default' : 'panel-warning' %>">
      <div class="panel-heading">API responses <small class="pull-right">last 24 hours</small></div>
      <div class="panel-body text-center">
        <h2 id="responses_count"><%= link_to_if @status.responses_count > 0 && can?(:read, Alert), number_with_delimiter(@status.responses_count), sources_path %></h2>
      </div>
    </div>
  </div>
  <div class="col-md-4">
    <div class="panel <%= @status.requests_count > 0 ? 'panel-default' : 'panel-warning' %>">
      <div class="panel-heading">API requests <small class="pull-right">last 24 hours</small></div>
      <div class="panel-body text-center">
        <h2 id="requests_count"><%= link_to_if @status.requests_count > 0 && can?(:read, Alert), number_with_delimiter(@status.requests_count), api_requests_path %></h2>
{'fraction_non_alphanumeric': 0.19648033126293996, 'fraction_numerical': 0.018633540372670808, 'mean_word_length': 4.251086956521739, 'pattern_counts': {'":': 0, '<': 153, '<?xml version=': 0, '>': 173, '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': '6695322', 'n_tokens_mistral': 1760, 'n_tokens_neox': 1650, 'n_words': 315}