<commit_before><% content_for :title do %>
  <% "OpenSplitTime: Event group traffic - #{@presenter.name}" %>
<% end %>
<div class="row header">
  <div class="col-xs-5">
    <h2><strong><%= "#{@presenter.name}" %></strong></h2>
    <div class="breadcrumb"><%= link_to 'Organizations', organizations_path %>
      / <%= link_to @presenter.organization.name, organization_path(@presenter.organization) %>
      / <%= link_to @presenter.event_group.name, event_group_path(@presenter.event_group) %>
      / <%= "Traffic / #{@presenter.split_name}" %></div>
  </div>
  <div class="col-xs-7 page-navigation">
    <div class="row">
      <%= render 'events/view_buttons', view_object: @presenter %>
    </div>
  </div>
</div>


<div class="row">
  <div class="col-xs-6">
    <div class="dropdown float-left-button">
      <button class="btn btn-default dropdown-toggle" type="button" id="split-name-dropdown" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
        <strong><%= @presenter.split_name %></strong>
        <span class="caret"></span>
      </button>
      <ul class="dropdown-menu" aria-labelledby="split-name-dropdown">
        <% @presenter.ordered_split_names.each do |split_name| %>
          <li class="<%= "disabled" if split_name.parameterize == @presenter.split_name.parameterize %>"><%= link_to split_name.titleize, request.params.merge(split_name: split_name.parameterize) %></li>
        <% end %>
      </ul>
    </div>

    <div class="dropdown float-left-button">
      <button class="btn btn-default dropdown-toggle" type="button" id="frequency-dropdown" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
        <strong><%= pluralize(@presenter.band_width / 1.minute, 'minute') %></strong>
        <span class="caret"></span>
      </button>
      <ul class="dropdown-menu" aria-labelledby="frequency-dropdown">
        <% @presenter.suggested_band_widths.each do |band_width| %>
          <li class="<%= "disabled" if band_width == @presenter.band_width %>"><%= link_to pluralize(band_width / 1.minute, 'minute'), request.params.merge(band_width: band_width) %></li>
        <% end %>
      </ul>
    </div>
  </div>

  <div class="col-xs-6">
    <div class="row">
    </div>
  </div>
</div>

<hr>
<h4><%= @presenter.table_title %></h4>
<div>
  <table class="table table-condensed table-striped" style="width:80%">
    <thead>
    <tr>
      <th></th>
      <th class="text-center" colspan="<%= @presenter.sub_split_kinds.size %>"><%= @presenter.sub_split_kinds.many? ? 'Sub Split' : '' %></th>
    </tr>
    <tr>
      <th>Time Range</th>
      <% @presenter.sub_split_kinds.each do |kind| %>
        <th class="text-center"><%= kind.to_s.titleize %></th>
      <% end %>
    </tr>
    </thead>
    <tbody>
    <% @presenter.table.each do |row| %>
      <tr>
        <td><%= row.range %></td>
        <% @presenter.sub_split_kinds.each do |kind| %>
          <td class="text-center" style="white-space:pre-wrap; word-wrap:break-word"><%= row.count[kind] %></td>
        <% end %>
      </tr>
    <% end %>
    <tr>
      <th>Totals</th>
      <% @presenter.sub_split_kinds.each do |kind| %>
        <th class="text-center" style="white-space:pre-wrap; word-wrap:break-word"><%= @presenter.totals(kind) %></th>
      <% end %>
    </tr>
    </tbody>
  </table>
</div><commit_msg>Traffic updated to new markup<commit_after><% content_for :title do %>
  <% "OpenSplitTime: Event group traffic - #{@presenter.name}" %>
<% end %>

<% content_for(:container_type) do %>skip
<% end %>

<header class="ost-header">
  <div class="container">
    <div class="row">
      <div class="ost-title col-sm-5">
        <h1><strong><%= [@presenter.name, nil].compact.join(': ') %></strong></h1>
        <ul class="breadcrumb breadcrumb-ost">
          <li><%= link_to @presenter.organization.name, organization_path(@presenter.organization) %></li>
          <li><%= link_to @presenter.event_group.name, event_group_path(@presenter.event_group) %></li>
          <li>Traffic</li>
          <li class="active"><%= @presenter.split_name %></li>
        </ul>
      </div>
      <aside class="ost-alerts col-sm-7">
      </aside>
    </div>
    <%= render 'events/view_buttons', view_object: @presenter %>
  </div>
</header>

<aside class="ost-toolbar">
  <div class="container">
    <div class="row">
      <div class="col-xs-6">
        <div class="dropdown float-left-button">
          <button class="btn btn-default dropdown-toggle" type="button" id="split-name-dropdown" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
            <strong><%= @presenter.split_name %></strong>
            <span class="caret"></span>
          </button>
          <ul class="dropdown-menu" aria-labelledby="split-name-dropdown">
            <% @presenter.ordered_split_names.each do |split_name| %>
              <li class="<%= "disabled" if split_name.parameterize == @presenter.split_name.parameterize %>"><%= link_to split_name.titleize, request.params.merge(split_name: split_name.parameterize) %></li>
            <% end %>
          </ul>
        </div>

        <div class="dropdown float-left-button">
          <button class="btn btn-default dropdown-toggle" type="button" id="frequency-dropdown" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
            <strong><%= pluralize(@presenter.band_width / 1.minute, 'minute') %></strong>
            <span class="caret"></span>
          </button>
          <ul class="dropdown-menu" aria-labelledby="frequency-dropdown">
            <% @presenter.suggested_band_widths.each do |band_width| %>
              <li class="<%= "disabled" if band_width == @presenter.band_width %>"><%= link_to pluralize(band_width / 1.minute, 'minute'), request.params.merge(band_width: band_width) %></li>
            <% end %>
          </ul>
        </div>
      </div>
    </div>
  </div>
</aside>

<article class="ost-article container">
  <h4><%= @presenter.table_title %></h4>
  <div>
    <table class="table table-condensed table-striped" style="width:80%">
      <thead>
      <tr>
        <th></th>
        <th class="text-center" colspan="<%= @presenter.sub_split_kinds.size %>"><%= @presenter.sub_split_kinds.many? ? 'Sub Split' : '' %></th>
      </tr>
      <tr>
        <th>Time Range</th>
        <% @presenter.sub_split_kinds.each do |kind| %>
          <th class="text-center"><%= kind.to_s.titleize %></th>
        <% end %>
      </tr>
      </thead>
      <tbody>
      <% @presenter.table.each do |row| %>
        <tr>
          <td><%= row.range %></td>
          <% @presenter.sub_split_kinds.each do |kind| %>
            <td class="text-center" style="white-space:pre-wrap; word-wrap:break-word"><%= row.count[kind] %></td>
          <% end %>
        </tr>
      <% end %>
      <tr>
        <th>Totals</th>
        <% @presenter.sub_split_kinds.each do |kind| %>
          <th class="text-center" style="white-space:pre-wrap; word-wrap:break-word"><%= @presenter.totals(kind) %></th>
        <% end %>
      </tr>
      </tbody>
    </table>
  </div>
</article>
{'fraction_non_alphanumeric': 0.19997177533163984, 'fraction_numerical': 0.003245836861416878, 'mean_word_length': 2.937222222222222, 'pattern_counts': {'":': 0, '<': 245, '<?xml version=': 0, '>': 245, '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': '1068500', 'n_tokens_mistral': 2520, 'n_tokens_neox': 2373, 'n_words': 435}