<commit_before><nav class="mod-navi current-navi">
  <h2><%= link_to @cur_site.menu_attendance_label || t('modules.gws/attendance'), gws_attendance_main_path, class: "icon-attendance" %></h2>
  <h3><%= link_to t('modules.gws/attendance/time_card'), gws_attendance_time_cards_path %></h3>
  <h3><%= link_to t('modules.gws/attendance/management/time_card'), gws_attendance_management_time_cards_path, class: "management" %></h3>
</nav>

<%= render partial: 'gws/main/navi' %><commit_msg>[fix] hide management menu if user has no permissions<commit_after><nav class="mod-navi current-navi">
  <h2><%= link_to @cur_site.menu_attendance_label || t('modules.gws/attendance'), gws_attendance_main_path, class: "icon-attendance" %></h2>
  <h3><%= link_to t('modules.gws/attendance/time_card'), gws_attendance_time_cards_path %></h3>
  <% if %i[manage_private manage_all].find { |priv| Gws::Attendance::TimeCard.allowed?(priv, @cur_user, site: @cur_site) } %>
    <h3><%= link_to t('modules.gws/attendance/management/time_card'), gws_attendance_management_time_cards_path, class: "management" %></h3>
  <% end %>
</nav>

<%= render partial: 'gws/main/navi' %>
{'fraction_non_alphanumeric': 0.18347826086956523, 'fraction_numerical': 0.010434782608695653, 'mean_word_length': 7.105633802816901, 'pattern_counts': {'":': 0, '<': 29, '<?xml version=': 0, '>': 29, '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': '4142771', 'n_tokens_mistral': 448, 'n_tokens_neox': 450, 'n_words': 71}