<commit_before><table class="table table-striped table-condensed" id="activity-scores">
  <thead>
    <tr>
      <th>Dimension</th>
      <th>Activity</th>
      <th>Score vs Goal</th>
    </tr>
  </thead>
  <tbody>
    <% for dimension in @dimensions %>
      <% dimension.activities.each_with_index do |activity, index| %>
        <tr>
          <% if index == 0 %>
            <td rowspan="<%= dimension.activities.length %>">
              <%= dimension.title %>
            </td>
          <% end %>
          <td><%= activity.title %></td>
          <td><%= assessment.scores.where(activity_id: activity.id).first.score %></td>
        </tr>      
      <% end %>
    <% end %>
  </tbody>
</table><commit_msg>Ensure there are scores for an activity<commit_after><table class="table table-striped table-condensed" id="activity-scores">
  <thead>
    <tr>
      <th>Dimension</th>
      <th>Activity</th>
      <th>Score vs Goal</th>
    </tr>
  </thead>
  <tbody>
    <% for dimension in @dimensions %>
      <% dimension.activities.each_with_index do |activity, index| %>
        <tr>
          <% if index == 0 %>
            <td rowspan="<%= dimension.activities.length %>">
              <%= dimension.title %>
            </td>
          <% end %>
          <td><%= activity.title %></td>
          <% scores = assessment.scores.where(activity_id: activity.id) %>
          <td><%= scores.first.score if scores.length > 0 %></td>
        </tr>      
      <% end %>
    <% end %>
  </tbody>
</table>
{'fraction_non_alphanumeric': 0.18223989396951623, 'fraction_numerical': 0.0019880715705765406, 'mean_word_length': 1.99009900990099, 'pattern_counts': {'":': 0, '<': 68, '<?xml version=': 0, '>': 69, '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': '5387710', 'n_tokens_mistral': 520, 'n_tokens_neox': 473, 'n_words': 100}