<commit_before><div class="panel panel-default">
  <div class="panel-heading">
    Events with registration limits
  </div>

  <div class="panel-body">
    <table class='default-table progress'>
      <thead>
        <tr>
          <th>Day</th>
          <th>Event</th>
          <th>Status</th>
          <th>Registrations</th>
        </tr>
      </thead>
      <tbody>
        <% @events_with_limits.each do |event| %>
          <tr>
            <td><%= l(event.day.date, format: :day_only) %></td>
            <td><%= link_to(event.name, edit_admin_competition_event_path(current_competition, event)) %></td>
            <td style="width: 300px">
              <div class="progress">
                <% progress = 100.0 * (event.number_of_confirmed_registrations.to_f / event.max_number_of_registrations.to_f) %>
                <%
                  style = if progress < 50
                    'success'
                  elsif progress >= 80 && progress <= 95
                    'warning'
                  else
                    'danger'
                  end
                %>
                <div class="progress-bar progress-bar-<%= style %>" style="width: <%= [100, progress].min %>%">
                </div>
              </div><commit_msg>fix progress<commit_after><div class="panel panel-default">
  <div class="panel-heading">
    Events with registration limits
  </div>

  <div class="panel-body">
    <table class='default-table progress'>
      <thead>
        <tr>
          <th>Day</th>
          <th>Event</th>
          <th>Status</th>
          <th>Registrations</th>
        </tr>
      </thead>
      <tbody>
        <% @events_with_limits.each do |event| %>
          <tr>
            <td><%= l(event.day.date, format: :day_only) %></td>
            <td><%= link_to(event.name, edit_admin_competition_event_path(current_competition, event)) %></td>
            <td style="width: 300px">
              <div class="progress">
                <% progress = 100.0 * (event.number_of_confirmed_registrations.to_f / event.max_number_of_registrations.to_f) %>
                <%
                  style = if progress < 75
                    'success'
                  elsif progress >= 90
                    'danger'
                  else
                    'warning'
                  end
                %>
                <div class="progress-bar progress-bar-<%= style %>" style="width: <%= [100, progress].min %>%">
                </div>
              </div>
{'fraction_non_alphanumeric': 0.1444043321299639, 'fraction_numerical': 0.012033694344163659, 'mean_word_length': 1.5090543259557343, 'pattern_counts': {'":': 0, '<': 76, '<?xml version=': 0, '>': 75, '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': '4503470', 'n_tokens_mistral': 785, 'n_tokens_neox': 704, 'n_words': 138}