<commit_before><%= render(partial: 'shared/user_select', locals: { link_generator: :user_path_work_summary, selected_user: @user }) %>
<%= render partial: 'reports/shared/time_frame_selector' %>
<%= render partial: 'reports/shared/header', locals: {base_url: "/reports/work/users/#{@user.id}/:year", title: t('.title') } %>

<% content_for :label do %>

<% end %>

<div class="content-summary row">
  <div class="small-12 columns">
    <table class="nice small-12">
      <thead>
        <tr>
          <th>&nbsp;</th>
          <th><%= t 'reports.work.columns.effective_worked' %></th>
          <th><%= t 'reports.work.columns.absent' %></th>
          <th><%= t 'reports.work.columns.time_bonuses' %></th>
          <th><%= t 'reports.work.columns.adjustments' %></th>
          <th><%= t 'reports.work.columns.target' %></th>
          <th><%= t 'reports.work.columns.overtime' %></th>
        </tr>
      </thead>
      <tbody>
        <% @users.each do |user| %>
          <% @buckets.each do |range| %>
            <tr>
              <td>
                <% if (range.max-range.min) <= 7 %>
                  <%= link_to label_for_range(range), show_date_user_time_entries_path(user, range.min) %>
                <% else %>
                  <%= link_to label_for_month(range.min), reports_work_user_month_path(user, range.min.year, range.min.month) %>
                <% end %>
              </td>
              <td>
                <%= render partial: 'reports/shared/tooltip', locals: {time_types: user.time_sheet.effective_working_time_by_type(range), total: user.time_sheet.effective_working_time_total(range) } %>
              </td>
              <td>
                <%= render partial: 'reports/shared/tooltip', locals: {time_types: user.time_sheet.absences_by_type(range), total: user.time_sheet.absences_total(range) } %>
              </td>
              <td>
                <span><%= format_hours(user.time_sheet.bonus(range)) %></span>
              </td>
              <td>
                <%= render partial: 'reports/shared/tooltip', locals: {time_types: user.time_sheet.adjustments_by_type(range), total: user.time_sheet.adjustments_total(range) } %>
              </td>
              <td>
                <span><%= format_hours(user.time_sheet.planned_working_time(range)) %></span>
              </td>
              <td>
                <span><%= format_hours(user.time_sheet.overtime(range)) %></span>
              </td>
            </tr>
          <% end %>
        <% end %>
      </tbody>
    </table>
  </div>
</div>
<commit_msg>better if<commit_after><%= render(partial: 'shared/user_select', locals: { link_generator: :user_path_work_summary, selected_user: @user }) %>
<%= render partial: 'reports/shared/time_frame_selector' %>
<%= render partial: 'reports/shared/header', locals: {base_url: "/reports/work/users/#{@user.id}/:year", title: t('.title') } %>

<% content_for :label do %>

<% end %>

<div class="content-summary row">
  <div class="small-12 columns">
    <table class="nice small-12">
      <thead>
        <tr>
          <th>&nbsp;</th>
          <th><%= t 'reports.work.columns.effective_worked' %></th>
          <th><%= t 'reports.work.columns.absent' %></th>
          <th><%= t 'reports.work.columns.time_bonuses' %></th>
          <th><%= t 'reports.work.columns.adjustments' %></th>
          <th><%= t 'reports.work.columns.target' %></th>
          <th><%= t 'reports.work.columns.overtime' %></th>
        </tr>
      </thead>
      <tbody>
        <% @users.each do |user| %>
          <% @buckets.each do |range| %>
            <tr>
              <td>
                <% if @month %>
                  <%= link_to label_for_range(range), show_date_user_time_entries_path(user, range.min) %>
                <% else %>
                  <%= link_to label_for_month(range.min), reports_work_user_month_path(user, range.min.year, range.min.month) %>
                <% end %>
              </td>
              <td>
                <%= render partial: 'reports/shared/tooltip', locals: {time_types: user.time_sheet.effective_working_time_by_type(range), total: user.time_sheet.effective_working_time_total(range) } %>
              </td>
              <td>
                <%= render partial: 'reports/shared/tooltip', locals: {time_types: user.time_sheet.absences_by_type(range), total: user.time_sheet.absences_total(range) } %>
              </td>
              <td>
                <span><%= format_hours(user.time_sheet.bonus(range)) %></span>
              </td>
              <td>
                <%= render partial: 'reports/shared/tooltip', locals: {time_types: user.time_sheet.adjustments_by_type(range), total: user.time_sheet.adjustments_total(range) } %>
              </td>
              <td>
                <span><%= format_hours(user.time_sheet.planned_working_time(range)) %></span>
              </td>
              <td>
                <span><%= format_hours(user.time_sheet.overtime(range)) %></span>
              </td>
            </tr>
          <% end %>
        <% end %>
      </tbody>
    </table>
  </div>
</div>

{'fraction_non_alphanumeric': 0.1755485893416928, 'fraction_numerical': 0.0017633228840125393, 'mean_word_length': 2.08086904043452, 'pattern_counts': {'":': 0, '<': 152, '<?xml version=': 0, '>': 151, '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': '6637453', 'n_tokens_mistral': 1739, 'n_tokens_neox': 1584, 'n_words': 274}