<commit_before><nav class="main-navi">
  <% if @cur_site.menu_portal_visible? %>
    <h2><%= link_to @cur_site.menu_portal_label || t('modules.gws/portal'), "#{gws_portal_path}/", class: "icon-portal" %></h2>
    <div class="child-menu">
      <% @cur_user.groups.in_group(@cur_site).each do |group| %>
        <% next if group.id == @cur_site.id %>
        <h3><%= link_to group.trailing_name, gws_portal_group_path(group: group) %></h3>
      <% end %>
      <h3><%= link_to t('gws/portal.tabs.root_portal'), gws_portal_group_path(group: @cur_site) %></h3>
    </div>
  <% end %>

  <% if @cur_site.menu_reminder_visible? %>
    <h2><%= link_to @cur_site.menu_reminder_label || t('mongoid.models.gws/reminder'), gws_reminders_path, class: "icon-reminder" %></h2>
  <% end %>

  <% if @cur_site.menu_bookmark_visible? %>
    <h2><%= link_to @cur_site.menu_bookmark_label || t('modules.gws/bookmark'), gws_bookmarks_path, class: "icon-bookmark" %></h2>
  <% end %>

  <% if @cur_site.menu_schedule_visible? %>
    <h2><%= link_to @cur_site.menu_schedule_label || t('modules.gws/schedule'), gws_schedule_main_path, class: "icon-schedule" %></h2>
    <div class="child-menu">
      <h3><%= link_to t('gws/schedule.tabs.personal'), gws_schedule_plans_path %></h3>
      <h3><%= link_to t('gws/schedule.tabs.todo'), gws_schedule_todos_path %></h3>
      <h3><%= link_to t('gws/schedule.tabs.facility'), gws_schedule_facilities_path %></h3>
      <h3><%= link_to t('gws/schedule.tabs.search'), gws_schedule_search_path %></h3>
    </div>
  <% end %>

  <% if @cur_site.menu_memo_visible? %>
    <h2><%= link_to @cur_site.menu_memo_label || t('modules.gws/memo'), gws_memo_main_path, class: "icon-memo" %></h2>
  <% end %>

  <% if @cur_site.menu_report_visible? %><commit_msg>[fix] gws messsage : gws_message_link in menu view<commit_after><nav class="main-navi">
  <% if @cur_site.menu_portal_visible? %>
    <h2><%= link_to @cur_site.menu_portal_label || t('modules.gws/portal'), "#{gws_portal_path}/", class: "icon-portal" %></h2>
    <div class="child-menu">
      <% @cur_user.groups.in_group(@cur_site).each do |group| %>
        <% next if group.id == @cur_site.id %>
        <h3><%= link_to group.trailing_name, gws_portal_group_path(group: group) %></h3>
      <% end %>
      <h3><%= link_to t('gws/portal.tabs.root_portal'), gws_portal_group_path(group: @cur_site) %></h3>
    </div>
  <% end %>

  <% if @cur_site.menu_reminder_visible? %>
    <h2><%= link_to @cur_site.menu_reminder_label || t('mongoid.models.gws/reminder'), gws_reminders_path, class: "icon-reminder" %></h2>
  <% end %>

  <% if @cur_site.menu_bookmark_visible? %>
    <h2><%= link_to @cur_site.menu_bookmark_label || t('modules.gws/bookmark'), gws_bookmarks_path, class: "icon-bookmark" %></h2>
  <% end %>

  <% if @cur_site.menu_schedule_visible? %>
    <h2><%= link_to @cur_site.menu_schedule_label || t('modules.gws/schedule'), gws_schedule_main_path, class: "icon-schedule" %></h2>
    <div class="child-menu">
      <h3><%= link_to t('gws/schedule.tabs.personal'), gws_schedule_plans_path %></h3>
      <h3><%= link_to t('gws/schedule.tabs.todo'), gws_schedule_todos_path %></h3>
      <h3><%= link_to t('gws/schedule.tabs.facility'), gws_schedule_facilities_path %></h3>
      <h3><%= link_to t('gws/schedule.tabs.search'), gws_schedule_search_path %></h3>
    </div>
  <% end %>

  <% if @cur_site.menu_memo_visible? %>
    <% if Gws::Memo::Message.allowed?(:read, @cur_user, site: @cur_site) %>
      <h2><%= link_to @cur_site.menu_memo_label || t('modules.gws/memo'), gws_memo_main_path, class: "icon-memo" %></h2>
    <% end %>
  <% end %>

  <% if @cur_site.menu_report_visible? %>
{'fraction_non_alphanumeric': 0.2034867883410515, 'fraction_numerical': 0.011985834922364479, 'mean_word_length': 4.423929098966027, 'pattern_counts': {'":': 0, '<': 109, '<?xml version=': 0, '>': 109, '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': '4419259', 'n_tokens_mistral': 1552, 'n_tokens_neox': 1485, 'n_words': 222}