<commit_before><h1>Master Grid</h1>

<%
  format_names = Format.all.sort_by(&:position).map(&:name)
%>

<div class="row pad_top pad_sides aiki_box">
  <div class="col-md-12">
    <table class="table table-striped table-bordered">
      <thead class="rank_row">
        <th><strong>Waza/Format</strong></th>
        <% format_names.each do |format_name| %>
          <th><%= format_name %></th>
        <% end %>
      </thead>
      <tbody>
        <%
        master = Waza.master_hash
        master.each do |waza, format_hash|
        %>
          <tr>
          <td><strong><%= waza %></strong></td>
          <%
          format_names.each do |format_name|
            waza_formats = format_hash[format_name]
            if waza_formats && waza_formats.any?
              waza_formats = waza_formats.sort{|x,y| x.rank.position <=> y.rank.position}
          %>
                <td>

                  <%
                  waza_formats.each do |waza_format|
                    data = "#{waza_format.rank_name} - #{waza_format.videos.size} Video(s)"
                    if waza == "Iaido Only"
                      data = "#{waza_format.waza.short_description} - " + data
                    end
                  %>
                    <% if waza_format.videos.any? %>
                      <%= link_to data, aikido_path(waza: waza_format.waza, video: waza_format.first_video) %>
                    <% else %>
                      <%= link_to data, aikido_path(waza: waza_format.waza, format_type: waza_format.format) %>
                    <% end %>
                    <% unless waza_format == waza_formats.last %>
                      <br/>
                      <br/>
                    <% end %>
                  <% end %>

                </td>
            <% else %>
                <td>0</td>
          <%
            end
          end
          %>
          </tr>
        <% end %>
      </tbody>
    </table>
  </div>
</div>



<commit_msg>change to top left to waza \ format<commit_after><h1>Master Grid</h1>

<%
  format_names = Format.all.sort_by(&:position).map(&:name)
%>

<div class="row pad_top pad_sides aiki_box">
  <div class="col-md-12">
    <table class="table table-striped table-bordered">
      <thead class="rank_row">
        <th><strong>Waza \ Format</strong></th>
        <% format_names.each do |format_name| %>
          <th><%= format_name %></th>
        <% end %>
      </thead>
      <tbody>
        <%
        master = Waza.master_hash
        master.each do |waza, format_hash|
        %>
          <tr>
          <td><strong><%= waza %></strong></td>
          <%
          format_names.each do |format_name|
            waza_formats = format_hash[format_name]
            if waza_formats && waza_formats.any?
              waza_formats = waza_formats.sort{|x,y| x.rank.position <=> y.rank.position}
          %>
                <td>

                  <%
                  waza_formats.each do |waza_format|
                    data = "#{waza_format.rank_name} - #{waza_format.videos.size} Video(s)"
                    if waza == "Iaido Only"
                      data = "#{waza_format.waza.short_description} - " + data
                    end
                  %>
                    <% if waza_format.videos.any? %>
                      <%= link_to data, aikido_path(waza: waza_format.waza, video: waza_format.first_video) %>
                    <% else %>
                      <%= link_to data, aikido_path(waza: waza_format.waza, format_type: waza_format.format) %>
                    <% end %>
                    <% unless waza_format == waza_formats.last %>
                      <br/>
                      <br/>
                    <% end %>
                  <% end %>

                </td>
            <% else %>
                <td>0</td>
          <%
            end
          end
          %>
          </tr>
        <% end %>
      </tbody>
    </table>
  </div>
</div>




{'fraction_non_alphanumeric': 0.13970588235294118, 'fraction_numerical': 0.002535496957403651, 'mean_word_length': 1.2869565217391303, 'pattern_counts': {'":': 0, '<': 103, '<?xml version=': 0, '>': 103, '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': '6595748', 'n_tokens_mistral': 1323, 'n_tokens_neox': 1199, 'n_words': 205}