<commit_before><h1>Activities</h1>
<div class="container">
<div class="row">
<table class="table table-striped">
  <thead>
    <tr>
      <th scope="col">Category</th>
      <th scope="col">Name</th>
      <th scope="col">Score</th>
      <th scope="col">Key Stages</th>
      <th scope="col"></th>
    </tr>
  </thead>

  <tbody>
    <% @activity_types.each do |activity_type| %>
      <tr class="<%= active(activity_type.active) %>" scope="row" >
        <td><%= activity_type.activity_category.name %></td>
        <td><%= link_to activity_type.name, activity_type_path(activity_type) %></td>
        <td><%= activity_type.score %></td>
        <td><%= activity_type.key_stage_list %></td>
        <td><%= link_to 'Edit', edit_activity_type_path(activity_type), class: 'btn btn-primary btn-sm' %></td>
      </tr>
    <% end %>
  </tbody>
</table>
</div>

</div>
<div class="container">
<div class="row">
  <%= link_to 'New Activity', new_activity_type_path, class: 'btn btn-primary' %>
</div>
</div><commit_msg>SPlit by category<commit_after><h1>Activity Types</h1>
<div class="container">
  <div class="row">
    <p><%= link_to 'New Activity Type', new_activity_type_path, class: 'btn btn-primary' %></p>
  </div>
</div>

<% ActivityCategory.all.each do |activity_category| %>
<div class="container">
  <h2><%= activity_category.name %></h2>
  <div class="row">
  <table class="table table-striped">
    <thead>
      <tr>
        <th scope="col">Name</th>
        <th scope="col">Score</th>
        <th scope="col">Key Stages</th>
        <th scope="col"></th>
      </tr>
    </thead>

    <tbody>
      <% @activity_types.where(activity_category: activity_category).each do |activity_type| %>
        <tr class="<%= active(activity_type.active) %>" scope="row" >
          <td><%= link_to activity_type.name, activity_type_path(activity_type) %></td>
          <td><%= activity_type.score %></td>
          <td><%= activity_type.key_stage_list %></td>
          <td><%= link_to 'Edit', edit_activity_type_path(activity_type), class: 'btn btn-primary btn-sm' %></td>
        </tr>
      <% end %>
    </tbody>
  </table>
  </div>
</div>

<% end %>

<div class="container">
  <div class="row">
    <%= link_to 'New Activity', new_activity_type_path, class: 'btn btn-primary' %>
  </div>
</div>
{'fraction_non_alphanumeric': 0.2066115702479339, 'fraction_numerical': 0.0026098303610265334, 'mean_word_length': 3.4061302681992336, 'pattern_counts': {'":': 0, '<': 108, '<?xml version=': 0, '>': 108, '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': '3002054', 'n_tokens_mistral': 850, 'n_tokens_neox': 814, 'n_words': 167}