<commit_before><div class="row" id="checkpoint<%= checkpoint.id %>">
  <div class="unit-inner">
    <div class="checkpoint-content">
      <h4>
      <%= checkpoint.expectation %>
      </h4>
      <% if current_user.student? %>
        <!-- Student Controls -->
        <%= content_tag :div, '?', class: 'btn btn-small success-criteria', data: { title: "Success Criteria", content: checkpoint.success_criteria } %>
      <% else %>
        <!-- Teacher Controls -->
        <div><%= checkpoint.success_criteria %></div>
        <%= link_to 'Edit', edit_classroom_track_checkpoint_path(@classroom, @track, checkpoint), class: 'btn', id: "edit-checkpoint" %>

        <%= link_to 'Delete', classroom_track_checkpoint_path(@classroom, @track, checkpoint), method: :delete, data: {confirm: "Are you sure?"}, class: 'btn', id: "delete-checkpoint" %>
      <% end %>
    </div>
    <% if current_user.student? %>
      <!-- Student Controls -->
      <div class="checkpoint-score-links">
        <%= button_to Rating::OPTIONS[0], classroom_track_ratings_path(@classroom, @track, checkpoint_id: checkpoint, value: 0), class: 'checkpoint-rating checkpoint0 btn', remote: true %>
        <%= button_to Rating::OPTIONS[1], classroom_track_ratings_path(@classroom, @track, checkpoint_id: checkpoint, value: 1), class: 'checkpoint-rating checkpoint1 btn', remote: true %>
        <%= button_to Rating::OPTIONS[2], classroom_track_ratings_path(@classroom, @track, checkpoint_id: checkpoint, value: 2), class: 'checkpoint-rating checkpoint2 btn', remote: true %>
      </div>

      <div class="marker <%= checkpoint_class_name(checkpoint) %>">
      </div>
    <% end %><commit_msg>logic in checkpoint partial is easier to read now<commit_after><div class="row" id="checkpoint<%= checkpoint.id %>">
  <div class="unit-inner">
    <div class="checkpoint-content">
      <h4><%= checkpoint.expectation %></h4>

      <% if current_user.teacher? %>
        <div><%= checkpoint.success_criteria %></div>
        <!-- Teacher Controls -->
        <%= link_to 'Edit', edit_classroom_track_checkpoint_path(@classroom, @track, checkpoint), class: 'btn', id: "edit-checkpoint" %>

        <%= link_to 'Delete', classroom_track_checkpoint_path(@classroom, @track, checkpoint), method: :delete, data: {confirm: "Are you sure?"}, class: 'btn', id: "delete-checkpoint" %>
      <% else %>
        <%= content_tag :div, '?', class: 'btn btn-small success-criteria', data: { title: "Success Criteria", content: checkpoint.success_criteria } %>
      <% end %>
    </div>

    <% if current_user.student? %>
      <!-- Student Controls -->
      <div class="checkpoint-score-links">
        <%= button_to Rating::OPTIONS[0], classroom_track_ratings_path(@classroom, @track, checkpoint_id: checkpoint, value: 0), class: 'checkpoint-rating checkpoint0 btn', remote: true %>
        <%= button_to Rating::OPTIONS[1], classroom_track_ratings_path(@classroom, @track, checkpoint_id: checkpoint, value: 1), class: 'checkpoint-rating checkpoint1 btn', remote: true %>
        <%= button_to Rating::OPTIONS[2], classroom_track_ratings_path(@classroom, @track, checkpoint_id: checkpoint, value: 2), class: 'checkpoint-rating checkpoint2 btn', remote: true %>
      </div>
      <div class="marker <%= checkpoint_class_name(checkpoint) %>"></div>
    <% end %>
{'fraction_non_alphanumeric': 0.1694762191450933, 'fraction_numerical': 0.006622516556291391, 'mean_word_length': 4.073282442748091, 'pattern_counts': {'":': 0, '<': 62, '<?xml version=': 0, '>': 62, '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': '1357254', 'n_tokens_mistral': 1088, 'n_tokens_neox': 977, 'n_words': 234}