<commit_before><div class="content">
  <div class="row">
    <div class="col-md-4">
      <div class="panel <%= @current_status.users_count > 0 ? 'panel-default' : 'panel-warning' %>">
        <div class="panel-heading">Users</div>
        <div class="panel-body panel-chart">
          <h2 class="graphs">
            <% if can?(:read, Status) %>
              <%= link_to_if @current_status.users_count > 0, number_with_delimiter(@current_status.users_count), users_path %>
            <% else %>
              <%= number_with_delimiter(@current_status.users_count) %>
            <% end %>
          </h2>
          <div class="graphs" id="chart_users"></div>
          <div class="text-muted" id="chart_users-loading">Loading … <%= image_tag "spinner.gif" %></div>
        </div>
      </div>
    </div>
    <div class="col-md-4">
      <div class="panel <%= @current_status.members_count.reduce(0) { |sum, region| sum + region.last } > 0 ? 'panel-default' : 'panel-warning' %>">
        <div class="panel-heading">Members</div>
        <div class="panel-body panel-chart" id="chart_members">
          <div class="text-muted" id="chart_members-loading">Loading … <%= image_tag "spinner.gif" %></div>
        </div>
      </div>
    </div>
  </div>

  <div class="row">
    <div class="col-md-4">
      <div class="panel <%= @current_status.claims_search_count > 0 ? 'panel-default' : 'panel-warning' %>">
        <div class="panel-heading">Claims <span class="small pull-right">Search and Link</span></div>
        <div class="panel-body panel-chart">
          <h2 class="graphs">
            <%= number_with_delimiter(@current_status.claims_search_count) %>
          </h2>
          <div class="graphs" id="chart_search_claims"></div>
          <div class="text-muted" id="chart_search_claims-loading">Loading … <%= image_tag "spinner.gif" %></div>
        </div>
      </div>
    </div>
    <div class="col-md-4">
      <div class="panel <%= @current_status.claims_auto_count > 0 ? 'panel-default' : 'panel-warning' %>">
        <div class="panel-heading">Claims <span class="small pull-right">Auto-Update</span></div>
        <div class="panel-body panel-chart">
          <h2 class="graphs">
            <%= number_with_delimiter(@current_status.claims_auto_count) %>
          </h2>
          <div class="graphs" id="chart_auto_claims"></div>
          <div class="text-muted" id="chart_auto_claims-loading">Loading … <%= image_tag "spinner.gif" %></div>
        </div>
      </div>
    </div>
  </div>

  <% if can?(:read, Status) %>
    <div class="row">
      <div class="col-md-4">
        <div class="panel <%= @current_status.db_size.to_i > 0 ? 'panel-default' : 'panel-warning' %>">
          <div class="panel-heading">Database size</div>
          <div class="panel-body panel-chart text-center">
            <h2 class="graphs" id="db_size"><%= number_to_human_size(@current_status.db_size) %></h2>
            <div class="graphs" id="chart_db_size"></div>
            <div class="text-muted" id="chart_db_size-loading">Loading … <%= image_tag "spinner.gif" %></div>
          </div>
        </div>
      </div>
      <div class="col-md-4">
        <div class="panel <%= @current_status.outdated_version? ? 'panel-warning' : 'panel-default' %>">
          <div class="panel-heading">Volpino version</div>
          <div class="panel-body panel-chart text-center">
            <h2 class="graphs" id="version"><%= @current_status.version %></h2>
          </div>
        </div>
      </div>
    </div>
  <% end %>

  <% if can?(:read, Status) %><commit_msg>use spinner from cdn<commit_after><div class="content">
  <div class="row">
    <div class="col-md-4">
      <div class="panel <%= @current_status.users_count > 0 ? 'panel-default' : 'panel-warning' %>">
        <div class="panel-heading">Users</div>
        <div class="panel-body panel-chart">
          <h2 class="graphs">
            <% if can?(:read, Status) %>
              <%= link_to_if @current_status.users_count > 0, number_with_delimiter(@current_status.users_count), users_path %>
            <% else %>
              <%= number_with_delimiter(@current_status.users_count) %>
            <% end %>
          </h2>
          <div class="graphs" id="chart_users"></div>
          <div class="text-muted" id="chart_users-loading">Loading … <img src="<%= asset_path('spinner.gif', host: ENV['CDN_HOST']) %>"></div>
        </div>
      </div>
    </div>
    <div class="col-md-4">
      <div class="panel <%= @current_status.members_count.reduce(0) { |sum, region| sum + region.last } > 0 ? 'panel-default' : 'panel-warning' %>">
        <div class="panel-heading">Members</div>
        <div class="panel-body panel-chart" id="chart_members">
          <div class="text-muted" id="chart_members-loading">Loading … <img src="<%= asset_path('spinner.gif', host: ENV['CDN_HOST']) %>"></div>
        </div>
      </div>
    </div>
  </div>

  <div class="row">
    <div class="col-md-4">
      <div class="panel <%= @current_status.claims_search_count > 0 ? 'panel-default' : 'panel-warning' %>">
        <div class="panel-heading">Claims <span class="small pull-right">Search and Link</span></div>
        <div class="panel-body panel-chart">
          <h2 class="graphs">
            <%= number_with_delimiter(@current_status.claims_search_count) %>
          </h2>
          <div class="graphs" id="chart_search_claims"></div>
          <div class="text-muted" id="chart_search_claims-loading">Loading … <img src="<%= asset_path('spinner.gif', host: ENV['CDN_HOST']) %>"></div>
        </div>
      </div>
    </div>
    <div class="col-md-4">
      <div class="panel <%= @current_status.claims_auto_count > 0 ? 'panel-default' : 'panel-warning' %>">
        <div class="panel-heading">Claims <span class="small pull-right">Auto-Update</span></div>
        <div class="panel-body panel-chart">
          <h2 class="graphs">
            <%= number_with_delimiter(@current_status.claims_auto_count) %>
          </h2>
          <div class="graphs" id="chart_auto_claims"></div>
          <div class="text-muted" id="chart_auto_claims-loading">Loading … <img src="<%= asset_path('spinner.gif', host: ENV['CDN_HOST']) %>"></div>
        </div>
      </div>
    </div>
  </div>

  <% if can?(:read, Status) %>
    <div class="row">
      <div class="col-md-4">
        <div class="panel <%= @current_status.db_size.to_i > 0 ? 'panel-default' : 'panel-warning' %>">
          <div class="panel-heading">Database size</div>
          <div class="panel-body panel-chart text-center">
            <h2 class="graphs" id="db_size"><%= number_to_human_size(@current_status.db_size) %></h2>
            <div class="graphs" id="chart_db_size"></div>
            <div class="text-muted" id="chart_db_size-loading">Loading … <img src="<%= asset_path('spinner.gif', host: ENV['CDN_HOST']) %>"></div>
          </div>
        </div>
      </div>
      <div class="col-md-4">
        <div class="panel <%= @current_status.outdated_version? ? 'panel-warning' : 'panel-default' %>">
          <div class="panel-heading">Volpino version</div>
          <div class="panel-body panel-chart text-center">
            <h2 class="graphs" id="version"><%= @current_status.version %></h2>
          </div>
        </div>
      </div>
    </div>
  <% end %>

  <% if can?(:read, Status) %>
{'fraction_non_alphanumeric': 0.1943082788671024, 'fraction_numerical': 0.006263616557734205, 'mean_word_length': 2.7589559877175027, 'pattern_counts': {'":': 0, '<': 228, '<?xml version=': 0, '>': 240, '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': '4914986', 'n_tokens_mistral': 2534, 'n_tokens_neox': 2382, 'n_words': 436}