<commit_before><tr class="<%= cycle('even', 'odd') %>">
  <td class="<%= radio.radio_group.color if radio.radio_group.present? %>"><%= link_to(radio.radio_group.name, radio.radio_group) if radio.radio_group.present? %></td>
  <td>
    <% if current_user and current_user.can_admin_radios? %>
        <%= link_to radio.number, edit_radio_path(radio) %>
    <% else %>
        <%= radio.number %>
    <% end %>
  </td>
  <td><%= radio.radio_assignment && radio.radio_assignment.department ? radio.radio_assignment.department.name : "" %></td>
  <td><%= radio.radio_assignment && radio.radio_assignment.volunteer ? radio.radio_assignment.volunteer.first_name : "" %></td>
  <td><%= radio.radio_assignment && radio.radio_assignment.volunteer ? radio.radio_assignment.volunteer.last_name : "" %></td>
  <td><%= radio.state %></td>
  <% if current_user and current_user.can_assign_radios? %>
      <td>
        <% if radio.state == "in" and radio.radio_assignment.nil? %>
            <%= link_to "Check&nbsp;out".html_safe, checkout_radio_path(radio), method: :get, class: 'button small-button check-out' %>
        <% else %>
            <%= link_to "Transfer".html_safe, checkout_radio_path(radio), method: :get, class: 'button small-button transfer' %>
            <%= link_to "Check&nbsp;in".html_safe, radio.radio_assignment, confirm: 'Are you sure?', method: :delete, class: 'button small-button check-in' %>
        <% end %>

        <% if current_user && current_user.can_admin_radios? %>
            <%= link_to "Delete".html_safe, radio_path(radio), method: :delete, confirm: 'Are you sure?', class: 'button small-button' %>
        <% end %>
      </td>
  <% end %>
</tr><commit_msg>Radio checkins glitch.<commit_after><tr class="<%= cycle('even', 'odd') %>">
  <td class="<%= radio.radio_group.color if radio.radio_group.present? %>"><%= link_to(radio.radio_group.name, radio.radio_group) if radio.radio_group.present? %></td>
  <td>
    <% if current_user and current_user.can_admin_radios? %>
        <%= link_to radio.number, edit_radio_path(radio) %>
    <% else %>
        <%= radio.number %>
    <% end %>
  </td>
  <td><%= radio.radio_assignment && radio.radio_assignment.department ? radio.radio_assignment.department.name : "" %></td>
  <td><%= radio.radio_assignment && radio.radio_assignment.volunteer ? radio.radio_assignment.volunteer.first_name : "" %></td>
  <td><%= radio.radio_assignment && radio.radio_assignment.volunteer ? radio.radio_assignment.volunteer.last_name : "" %></td>
  <td><%= radio.state %></td>
  <% if current_user and current_user.can_assign_radios? %>
      <td>
        <% if radio.state == "in" and radio.radio_assignment.nil? %>
            <%= link_to "Check&nbsp;out".html_safe, checkout_radio_path(radio), method: :get, class: 'button small-button check-out' %>
        <% else %>
            <%= link_to "Transfer".html_safe, checkout_radio_path(radio), method: :get, class: 'button small-button transfer' %>
            <%= link_to "Check&nbsp;in".html_safe, radio_assignment_path(radio.radio_assignment), confirm: 'Are you sure?', method: :delete, class: 'button small-button check-in' %>
        <% end %>

        <% if current_user && current_user.can_admin_radios? %>
            <%= link_to "Delete".html_safe, radio_path(radio), method: :delete, confirm: 'Are you sure?', class: 'button small-button' %>
        <% end %>
      </td>
  <% end %>
</tr>
{'fraction_non_alphanumeric': 0.17917888563049852, 'fraction_numerical': 0.0, 'mean_word_length': 3.777310924369748, 'pattern_counts': {'":': 0, '<': 81, '<?xml version=': 0, '>': 81, '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': '223629', 'n_tokens_mistral': 1217, 'n_tokens_neox': 1124, 'n_words': 213}