<commit_before><table class="table">
  <thead>
    <tr>
      <th><%= I18n.t('views.time_entries.start') %></th>
      <th><%= I18n.t('views.time_entries.stop') %></th>
      <th><%= I18n.t('views.time_entries.duration') %></th>
      <th colspan="2"><% if display_add_time_entry %><%= link_to I18n.t('views.time_entries.add_time_entry'), new_user_time_entry_path(@user, date: @date) %><% end %></th>
    </tr>
  </thead>

  <tbody>
    <% @time_entries.each do |time_entry| %>
    <tr>
      <td><%= time_entry.startTime.to_formatted_s(:pretty_time)%></td>
      <td><%= time_entry.stopTime.to_formatted_s(:pretty_time) unless time_entry.stopTime.nil? %></td>
      <td><%= format_duration(time_entry.duration) unless time_entry.duration.nil? %></td>
      <td><%= link_to raw('<i class="fa fa-pencil-square-o"></i>'), edit_user_time_entry_path(time_entry.user, time_entry) %></td>
      <td><%= link_to raw('<i class="fa fa-trash-o"></i>'), [time_entry.user, time_entry], method: :delete, data: { confirm: I18n.t('views.time_entries.confirm_delete') } %></td>
    </tr>
    <% end %>
  </tbody>
  <tfoot>
    <% if @working_day.leave_day.nil? %>
    <tr>
      <td colspan="2" class="summary-label"><%= I18n.t('views.time_entries.pause') %>:</td>
      <td colspan="3"><%= format_duration(@working_day.pause_duration)%></td>
    </tr>
    <tr>
      <td colspan="2" class="summary-label"><%= I18n.t('views.time_entries.duration') %>:</td>
      <td colspan="3"><%= format_duration(@working_day.duration)%> / <%= format_duration(@working_day.expected_duration)%></td>
    </tr>
    <% if !@report_summary.nil? %>
      <tr>
        <td colspan="2" class="summary-label"><%= I18n.t('views.time_entries.balance') %>:</td>
        <td colspan="3"><%= format_duration(@report_summary.working_hours_balance+@report_summary.comp_time)%></td>
      </tr>
    <% end %>
    <% else  %>
    <tr><td colspan="5"><center><%= render "partials/leave_day_type", leave_day: @working_day.leave_day %></center></td></tr>
    <% end %>
  </tfoot>
</table>
<commit_msg>Fixed broken view if displayed day is leave day<commit_after><table class="table">
  <thead>
    <tr>
      <th><%= I18n.t('views.time_entries.start') %></th>
      <th><%= I18n.t('views.time_entries.stop') %></th>
      <th><%= I18n.t('views.time_entries.duration') %></th>
      <th colspan="2"><% if display_add_time_entry %><%= link_to I18n.t('views.time_entries.add_time_entry'), new_user_time_entry_path(@user, date: @date) %><% end %></th>
    </tr>
  </thead>

  <tbody>
    <% @time_entries.each do |time_entry| %>
    <tr>
      <td><%= time_entry.startTime.to_formatted_s(:pretty_time)%></td>
      <td><%= time_entry.stopTime.to_formatted_s(:pretty_time) unless time_entry.stopTime.nil? %></td>
      <td><%= format_duration(time_entry.duration) unless time_entry.duration.nil? %></td>
      <td><%= link_to raw('<i class="fa fa-pencil-square-o"></i>'), edit_user_time_entry_path(time_entry.user, time_entry) %></td>
      <td><%= link_to raw('<i class="fa fa-trash-o"></i>'), [time_entry.user, time_entry], method: :delete, data: { confirm: I18n.t('views.time_entries.confirm_delete') } %></td>
    </tr>
    <% end %>
  </tbody>
  <tfoot>
    <% if @working_day.leave_day.nil? %>
    <tr>
      <td colspan="2" class="summary-label"><%= I18n.t('views.time_entries.pause') %>:</td>
      <td colspan="3"><%= format_duration(@working_day.pause_duration)%></td>
    </tr>
    <tr>
      <td colspan="2" class="summary-label"><%= I18n.t('views.time_entries.duration') %>:</td>
      <td colspan="3"><%= format_duration(@working_day.duration)%> / <%= format_duration(@working_day.expected_duration)%></td>
    </tr>
    <% if !@report_summary.nil? %>
      <tr>
        <td colspan="2" class="summary-label"><%= I18n.t('views.time_entries.balance') %>:</td>
        <td colspan="3"><%= format_duration(@report_summary.working_hours_balance+@report_summary.comp_time)%></td>
      </tr>
    <% end %>
    <% else  %>
    <tr><td colspan="5"><center><%= @working_day.leave_day.localized_leave_day_type %></center></td></tr>
    <% end %>
  </tfoot>
</table>

{'fraction_non_alphanumeric': 0.22691933916423712, 'fraction_numerical': 0.011661807580174927, 'mean_word_length': 4.070197044334975, 'pattern_counts': {'":': 0, '<': 171, '<?xml version=': 0, '>': 171, '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': '5993922', 'n_tokens_mistral': 1637, 'n_tokens_neox': 1524, 'n_words': 235}