<commit_before><nav class="nav-management-menu">
  <% if Gws::Share::File.allowed?(:edit, @cur_user, site: @cur_site) %>
    <%= link_to gws_share_management_files_path do %>
        <i class="material-icons md-20">&#xE8B8;</i><%= t("ss.management") %>
    <% end %>
  <% end %>
</nav>

<nav class="nav-menu">
  <% if params[:action] =~ /index/ %>
    <%#= link_to t("gws/share.links.categories"), categories_gws_share_files_path %>
    <% if @model.allowed?(:write, @cur_user, site: @cur_site) %>
      <%= link_to t('ss.links.new'), action: :new %>
    <% end %>
    <% if Gws::Share::Folder.allowed?(:edit, @cur_user, site: @cur_site) || Gws::Share::Folder.allowed?(:download, @cur_user, site: @cur_site) %>
      <%= link_to t('gws/share.links.folder'),gws_share_folders_path %>
    <% end %>
  <% elsif params[:action] =~ /new|create|lock|categories/ %>
    <%= link_to t('ss.links.back_to_index'), action: :index %>
  <% elsif params[:action] =~ /edit|update|disable|move|delete/ %>
    <% if @item.allowed?(:read, @cur_user, site: @cur_site) %>
      <%= link_to t('ss.links.back_to_show'), action: :show, id: @item %>
    <% end %>
  <% else %>
    <% if @item.allowed?(:edit, @cur_user, site: @cur_site) %><commit_msg>[modify] create menu condition<commit_after><nav class="nav-management-menu">
  <% if Gws::Share::File.allowed?(:edit, @cur_user, site: @cur_site) %>
    <%= link_to gws_share_management_files_path do %>
        <i class="material-icons md-20">&#xE8B8;</i><%= t("ss.management") %>
    <% end %>
  <% end %>
</nav>

<nav class="nav-menu">
  <% if params[:action] =~ /index/ %>
    <%#= link_to t("gws/share.links.categories"), categories_gws_share_files_path %>
    <% if @model.allowed?(:write, @cur_user, site: @cur_site) && params[:folder] %>
      <%= link_to t('ss.links.new'), action: :new %>
    <% end %>
    <% if Gws::Share::Folder.allowed?(:edit, @cur_user, site: @cur_site) || Gws::Share::Folder.allowed?(:download, @cur_user, site: @cur_site) %>
      <%= link_to t('gws/share.links.folder'),gws_share_folders_path %>
    <% end %>
  <% elsif params[:action] =~ /new|create|lock|categories/ %>
    <%= link_to t('ss.links.back_to_index'), action: :index %>
  <% elsif params[:action] =~ /edit|update|disable|move|delete/ %>
    <% if @item.allowed?(:read, @cur_user, site: @cur_site) %>
      <%= link_to t('ss.links.back_to_show'), action: :show, id: @item %>
    <% end %>
  <% else %>
    <% if @item.allowed?(:edit, @cur_user, site: @cur_site) %>
{'fraction_non_alphanumeric': 0.22771084337349398, 'fraction_numerical': 0.00321285140562249, 'mean_word_length': 4.255274261603375, 'pattern_counts': {'":': 0, '<': 55, '<?xml version=': 0, '>': 55, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2220620', 'n_tokens_mistral': 1009, 'n_tokens_neox': 926, 'n_words': 154}