<commit_before><div id="<%= dom_id(division, :draw_tickets_header) %>">
  <h2 class="text-center"><strong><%= division.name %></strong></h2>
  <hr/>

  <div class="btn-group btn-lg btn-block p-0">
    <%= link_to "Draw a Ticket", draw_organization_lottery_path(division.organization, division.lottery, division_id: division.id),
                method: :post,
                disabled: division.full? || division.all_entrants_drawn?,
                class: "btn btn-lg btn-block btn-success font-weight-bold" %>
    <% if division.entrants.pre_selected.present? %>
      <button class="btn btn-lg btn-success font-weight-bold dropdown-toggle dropdown-toggle-split" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
        <span class="sr-only">Toggle Dropdown</span>
      </button>
      <div class="dropdown-menu">
        <a class="dropdown-item disabled" href="#">Pre-Selected Entrants</a>
        <div class="dropdown-divider"></div>
        <% division.entrants.pre_selected.each do |entrant| %>
          <%= link_to "Draw #{entrant.full_name}", draw_organization_lottery_lottery_entrant_path(division.organization, division.lottery, entrant),
                      method: :post,
                      disabled: entrant.drawn?,
                      class: "dropdown-item" %>
        <% end %>
      </div>
    <% end %>
  </div>

  <div class="card mt-3">
    <div class="card-body">
      <div class="row">
        <div class="col-8">
          <h6 class="font-weight-bold">Winners</h6>
        </div>
        <div class="col-4">
          <h6 class="text-right"><%= "(#{division.winning_entrants.count}/#{division.maximum_entries})" %></h6>
        </div>
      </div>
      <div class="progress">
        <%= bootstrap_progress_bar(min_value: 0, max_value: division.maximum_entries, current_value: division.winning_entrants.count, color: "success") %>
      </div>
      <div class="row mt-2">
        <div class="col-8">
          <h6 class="font-weight-bold">Waitlist</h6>
        </div>
        <div class="col-4">
          <h6 class="text-right"><%= "(#{division.wait_list_entrants.count}/#{division.maximum_wait_list})" %></h6>
        </div>
      </div>
      <div class="progress">
        <%= bootstrap_progress_bar(min_value: 0, max_value: division.maximum_wait_list, current_value: division.wait_list_entrants.count, color: "warning") %>
      </div>
      <div class="row mt-2">
        <div class="col-8">
          <h6 class="font-weight-bold">Pre-selects</h6>
        </div>
        <div class="col-4">
          <h6 class="text-right"><%= "(#{division.entrants.pre_selected.count}/#{division.entrants.pre_selected.drawn.count})" %></h6>
        </div>
      </div>
      <div class="progress">
        <%= bootstrap_progress_bar(min_value: 0, max_value: division.entrants.pre_selected.count, current_value: division.entrants.pre_selected.drawn.count, color: "secondary") %>
      </div>
    </div>
  </div>
</div>
<commit_msg>Reverse order of drawn preselected and total preselected in the division header<commit_after><div id="<%= dom_id(division, :draw_tickets_header) %>">
  <h2 class="text-center"><strong><%= division.name %></strong></h2>
  <hr/>

  <div class="btn-group btn-lg btn-block p-0">
    <%= link_to "Draw a Ticket", draw_organization_lottery_path(division.organization, division.lottery, division_id: division.id),
                method: :post,
                disabled: division.full? || division.all_entrants_drawn?,
                class: "btn btn-lg btn-block btn-success font-weight-bold" %>
    <% if division.entrants.pre_selected.present? %>
      <button class="btn btn-lg btn-success font-weight-bold dropdown-toggle dropdown-toggle-split" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
        <span class="sr-only">Toggle Dropdown</span>
      </button>
      <div class="dropdown-menu">
        <a class="dropdown-item disabled" href="#">Pre-Selected Entrants</a>
        <div class="dropdown-divider"></div>
        <% division.entrants.pre_selected.each do |entrant| %>
          <%= link_to "Draw #{entrant.full_name}", draw_organization_lottery_lottery_entrant_path(division.organization, division.lottery, entrant),
                      method: :post,
                      disabled: entrant.drawn?,
                      class: "dropdown-item" %>
        <% end %>
      </div>
    <% end %>
  </div>

  <div class="card mt-3">
    <div class="card-body">
      <div class="row">
        <div class="col-8">
          <h6 class="font-weight-bold">Winners</h6>
        </div>
        <div class="col-4">
          <h6 class="text-right"><%= "(#{division.winning_entrants.count}/#{division.maximum_entries})" %></h6>
        </div>
      </div>
      <div class="progress">
        <%= bootstrap_progress_bar(min_value: 0, max_value: division.maximum_entries, current_value: division.winning_entrants.count, color: "success") %>
      </div>
      <div class="row mt-2">
        <div class="col-8">
          <h6 class="font-weight-bold">Waitlist</h6>
        </div>
        <div class="col-4">
          <h6 class="text-right"><%= "(#{division.wait_list_entrants.count}/#{division.maximum_wait_list})" %></h6>
        </div>
      </div>
      <div class="progress">
        <%= bootstrap_progress_bar(min_value: 0, max_value: division.maximum_wait_list, current_value: division.wait_list_entrants.count, color: "warning") %>
      </div>
      <div class="row mt-2">
        <div class="col-8">
          <h6 class="font-weight-bold">Pre-selects</h6>
        </div>
        <div class="col-4">
          <h6 class="text-right"><%= "(#{division.entrants.pre_selected.drawn.count}/#{division.entrants.pre_selected.count})" %></h6>
        </div>
      </div>
      <div class="progress">
        <%= bootstrap_progress_bar(min_value: 0, max_value: division.entrants.pre_selected.count, current_value: division.entrants.pre_selected.drawn.count, color: "secondary") %>
      </div>
    </div>
  </div>
</div>

{'fraction_non_alphanumeric': 0.17165668662674652, 'fraction_numerical': 0.008982035928143712, 'mean_word_length': 2.8250636132315523, 'pattern_counts': {'":': 0, '<': 149, '<?xml version=': 0, '>': 149, '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': '7388677', 'n_tokens_mistral': 2018, 'n_tokens_neox': 1908, 'n_words': 341}