<commit_before><%= link_to booth_assignments_admin_polls_path do %>
  <span class="icon-angle-left"></span> <%= t("shared.back") %>
<% end %>
<hr>

<h2 class="inline-block"><%= t("admin.booth_assignments.manage.assignments_list", poll: @poll.name) %></h2>

<% if @booths.empty? %>
  <div class="callout primary">
    <%= t("admin.booths.index.no_booths") %>
  </div>
<% else %>
  <table>
    <thead>
      <th><%= t("admin.booths.index.name") %></th>
      <th><%= t("admin.booth_assignments.status.assign_status") %></th>
      <th class="text-right"><%= t("admin.actions.actions") %></th>
    </thead>
    <tbody>
    <% @booths.each do |booth| %>
      <%= render partial: "booth_assignment", locals: { booth: booth } %>
    <% end %>
    </tbody>
  </table>
<% end %><commit_msg>Use booth assigment partial correctly<commit_after><%= link_to booth_assignments_admin_polls_path do %>
  <span class="icon-angle-left"></span> <%= t("shared.back") %>
<% end %>
<hr>

<h2 class="inline-block"><%= t("admin.booth_assignments.manage.assignments_list", poll: @poll.name) %></h2>

<% if @booths.empty? %>
  <div class="callout primary">
    <%= t("admin.booths.index.no_booths") %>
  </div>
<% else %>
  <table>
    <thead>
      <th><%= t("admin.booths.index.name") %></th>
      <th><%= t("admin.booth_assignments.status.assign_status") %></th>
      <th class="text-right"><%= t("admin.actions.actions") %></th>
    </thead>
    <tbody>
    <% @booths.each do |booth| %>
      <tr id="<%= dom_id(booth) %>" class="booth">
        <%= render partial: "booth_assignment", locals: { booth: booth, booth_assignment: booth.assignment_on_poll(@poll) } %>
      </tr>
    <% end %>
    </tbody>
  </table>
<% end %>
{'fraction_non_alphanumeric': 0.23446658851113716, 'fraction_numerical': 0.0023446658851113715, 'mean_word_length': 3.754874651810585, 'pattern_counts': {'":': 0, '<': 72, '<?xml version=': 0, '>': 72, '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': '2137660', 'n_tokens_mistral': 697, 'n_tokens_neox': 630, 'n_words': 111}