<commit_before><div class="header row">
  <div class="col-lg-12">
    <h2><%= @title %></h2>
  </div>
</div>

<ul class="nav nav-tabs">
  <li class="active"><a href="#disk-stats" data-toggle="tab">Disk Stats</a></li>
  <li><a href="#system-stats" data-toggle="tab">System Stats</a></li>
</ul>

<div class="tab-content">
  <div class="row tab-pane active" id="disk-stats">
    <div class="col-md-12">

      <div class="progress" data-toggle="tooltip" title="<%= humanize_size @stats[:total_size] %>" data-placement="right" style="width: 90%">

        <div data-toggle="tooltip" data-placement="bottom" title="<%= humanize_size @stats[:parity_size] %> Parity" class="progress-bar progress-bar-parity" style="width: <%= number_to_percentage @stats[:percent_parity] %>"></div>

        <div data-toggle="tooltip" data-placement="bottom" title="<%= humanize_size @stats[:cache_size] %> Cache" class="progress-bar progress-bar-cache" style="width: <%= number_to_percentage @stats[:percent_cache] %>"></div>

        <div data-toggle="tooltip" data-placement="bottom" title="<%= humanize_size @stats[:used_space] %> Used" class="progress-bar progress-bar-used" style="width: <%= number_to_percentage (@stats[:percent_used_of_total]) %>;"></div>
      </div>

    </div>

    <div class="col-md-6">
      <ul class="list-group">
        <li class="list-group-item">
          <strong><%= humanize_size @stats[:total_size] %></strong>
          <small class="text-muted">Array</small>
        </li>
        <li class="list-group-item">
          <strong><%= humanize_size @stats[:parity_size] %></strong>
          <small class="text-muted">Parity</small>
        </li>
        <li class="list-group-item">
          <strong><%= humanize_size @stats[:cache_size] %></strong>
          <small class="text-muted">Cache</small>
        </li>
      </ul>
    </div>
    <div class="col-md-6">
      <ul class="list-group">
        <li class="list-group-item">
          <strong><%= humanize_size @stats[:usable_size] %></strong>
          <small class="text-muted">Usable</small>
        </li>
        <li class="list-group-item">
          <strong>
            <%= humanize_size @stats[:used_space] %>
          </strong>
          (<%= number_to_percentage @stats[:percent_used] %>)
          <small class="text-muted">Used</small>
        </li>
        <li class="list-group-item">
          <strong>
            <%= humanize_size @stats[:free_space] %>
          </strong>
          (<%= number_to_percentage @stats[:percent_free] %>)
          <small class="text-muted">Free</small>
        </li>
      </ul>
    </div>
  </div>

  <div class="row tab-pane" id="system-stats">
    <div class="col-md-6">
      <div class="panel">
        <div class="panel-heading">Processor</div>
        [graph]
      </div>
    </div>
    <div class="col-md-6">
      <div class="panel">
        <div class="panel-heading">Memory</div>
        [graph]
      </div>
    </div>
    <div class="col-md-6">
      <div class="panel">
        <div class="panel-heading">Network</div>
        [graph]
      </div>
    </div>
    <div class="col-md-6">
      <div class="panel">
        <div class="panel-heading">Storage</div>
        [graph]
      </div>
    </div>
  </div>
</div>

<commit_msg>Remove dead code from dashboard<commit_after><div class="header row">
  <div class="col-lg-12">
    <h2><%= @title %></h2>
  </div>
</div>

<ul class="nav nav-tabs">
  <li class="active"><a href="#disk-stats" data-toggle="tab">Disk Stats</a></li>
</ul>

<div class="tab-content">
  <div class="row tab-pane active" id="disk-stats">
    <div class="col-md-12">

      <div class="progress" data-toggle="tooltip" title="<%= humanize_size @stats[:total_size] %>" data-placement="right" style="width: 90%">

        <div data-toggle="tooltip" data-placement="bottom" title="<%= humanize_size @stats[:parity_size] %> Parity" class="progress-bar progress-bar-parity" style="width: <%= number_to_percentage @stats[:percent_parity] %>"></div>

        <div data-toggle="tooltip" data-placement="bottom" title="<%= humanize_size @stats[:cache_size] %> Cache" class="progress-bar progress-bar-cache" style="width: <%= number_to_percentage @stats[:percent_cache] %>"></div>

        <div data-toggle="tooltip" data-placement="bottom" title="<%= humanize_size @stats[:used_space] %> Used" class="progress-bar progress-bar-used" style="width: <%= number_to_percentage (@stats[:percent_used_of_total]) %>;"></div>
      </div>

    </div>

    <div class="col-md-6">
      <ul class="list-group">
        <li class="list-group-item">
          <strong><%= humanize_size @stats[:total_size] %></strong>
          <small class="text-muted">Array</small>
        </li>
        <li class="list-group-item">
          <strong><%= humanize_size @stats[:parity_size] %></strong>
          <small class="text-muted">Parity</small>
        </li>
        <% if @stats[:cache_size] > 0 %>
          <li class="list-group-item">
            <strong><%= humanize_size @stats[:cache_size] %></strong>
            <small class="text-muted">Cache</small>
          </li>
        <% end %>
      </ul>
    </div>
    <div class="col-md-6">
      <ul class="list-group">
        <li class="list-group-item">
          <strong><%= humanize_size @stats[:usable_size] %></strong>
          <small class="text-muted">Usable</small>
        </li>
        <li class="list-group-item">
          <strong>
            <%= humanize_size @stats[:used_space] %>
          </strong>
          (<%= number_to_percentage @stats[:percent_used] %>)
          <small class="text-muted">Used</small>
        </li>
        <li class="list-group-item">
          <strong>
            <%= humanize_size @stats[:free_space] %>
          </strong>
          (<%= number_to_percentage @stats[:percent_free] %>)
          <small class="text-muted">Free</small>
        </li>
      </ul>
    </div>
  </div>
</div>


{'fraction_non_alphanumeric': 0.20296946178505146, 'fraction_numerical': 0.004217985490129914, 'mean_word_length': 2.846852693056457, 'pattern_counts': {'":': 0, '<': 207, '<?xml version=': 0, '>': 208, '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': '6300765', 'n_tokens_mistral': 2038, 'n_tokens_neox': 1948, 'n_words': 353}