<commit_before><% addons = @item.class.addons.select { |addon| [Gws::Addon::File].exclude?(addon.klass) } %>

<div class="addon-views">
  <div class="addon-view" id="addon-basic">
    <% if addons.size > 0 %><div class="addon-head"><h2><%= t "ss.basic_info"%></h2></div><% end %>
    <div class="addon-body">
      <%= render file: "_show" %>
    </div>
  </div>
  <%= render file: "_addons_show", locals: { addons: addons } if addons.size > 0 %>
</div>

<% if controller_path == "gws/share/folders" %>
  <div class="gws-share file-download">
    <article class="topic">
      <header>
        <h2><%= t('gws/share.folder_download') %></h2>
      </header>
      <div class="menu">
        <%= link_to(t('gws/share.links.file_download'), download_folder_gws_share_folder_path, class: 'btn file_download') if SS::File.where(folder_id: @item._id).present? %>
      </div>
    </article>
  </div>
<% end %>
<commit_msg>[modify] hidden file download button condition<commit_after><% addons = @item.class.addons.select { |addon| [Gws::Addon::File].exclude?(addon.klass) } %>

<div class="addon-views">
  <div class="addon-view" id="addon-basic">
    <% if addons.size > 0 %><div class="addon-head"><h2><%= t "ss.basic_info"%></h2></div><% end %>
    <div class="addon-body">
      <%= render file: "_show" %>
    </div>
  </div>
  <%= render file: "_addons_show", locals: { addons: addons } if addons.size > 0 %>
</div>

<% if SS::File.where(folder_id: @item._id, deleted: nil).present? %>
  <div class="gws-share file-download">
    <article class="topic">
      <header>
        <h2><%= t('gws/share.folder_download') %></h2>
      </header>
      <div class="menu">
        <%= link_to(t('gws/share.links.file_download'), download_folder_gws_share_folder_path, class: 'btn file_download')  %>
      </div>
    </article>
  </div>
<% end %>

{'fraction_non_alphanumeric': 0.21980413492927095, 'fraction_numerical': 0.006528835690968444, 'mean_word_length': 3.6556962025316455, 'pattern_counts': {'":': 0, '<': 63, '<?xml version=': 0, '>': 67, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 11, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7576758', 'n_tokens_mistral': 720, 'n_tokens_neox': 689, 'n_words': 128}