<commit_before><% unless params[:no_layout].present? %>
  <%= render :partial => "common_documents/headers" %>
  <div id="documents_grid">
<% end %> 

<% @activities.each do |a| %>
<% document = a.activity_objects.first.document %>
<div class="attachment_tile" id="<%= dom_id(document)%>">
  <div class="attachment_tile_thumb">
    <%= link_to thumb_for(document,48),
    {:controller => "documents", :action => "show", :id => document},
    :type => document.type,
    :title => document.file_file_name,
    :path => document_path(document) %>
  </div>
  <div class="attachment_tile_tipsy">
    <%= link_to image_tag("btn/btn_down.png"),
    "javascript:;"  %>
    <div class="tipsy_content" style="display:none;">
      <div class="actions">        
        <%= link_to content_tag(:div,image_tag("btn/download.png") + t('document.actions.download'), :class => :action), download_document_path(document) %>
        <% if document.post_activity.edit_object_by?(current_subject) %>
          <%= link_to content_tag(:div,image_tag("btn/edit.png") + t('document.actions.edit'), :class => :action, :id => :document_edit_action), document_path(document, :editing => true) %>
        <% end %>
        <% if document.post_activity.delete_object_by?(current_subject) %>
          <%= link_to content_tag(:div,image_tag("btn/error.png") + t('document.actions.delete'), :class => :action), document.post_activity.direct_object , :confirm => t('confirm_delete',
            :scope => document.post_activity.direct_object.class.to_s.underscore), :method => :delete %><commit_msg>Fix document path in index<commit_after><% unless params[:no_layout].present? %>
  <%= render :partial => "common_documents/headers" %>
  <div id="documents_grid">
<% end %> 

<% @activities.each do |a| %>
<% document = a.activity_objects.first.document %>
<div class="attachment_tile" id="<%= dom_id(document)%>">
  <div class="attachment_tile_thumb">
    <%= link_to thumb_for(document,48),
                document_path(document),
                :type => document.type,
                :title => document.file_file_name,
                :path => document_path(document) %>
  </div>
  <div class="attachment_tile_tipsy">
    <%= link_to image_tag("btn/btn_down.png"),
    "javascript:;"  %>
    <div class="tipsy_content" style="display:none;">
      <div class="actions">        
        <%= link_to content_tag(:div,image_tag("btn/download.png") + t('document.actions.download'), :class => :action), download_document_path(document) %>
        <% if document.post_activity.edit_object_by?(current_subject) %>
          <%= link_to content_tag(:div,image_tag("btn/edit.png") + t('document.actions.edit'), :class => :action, :id => :document_edit_action), document_path(document, :editing => true) %>
        <% end %>
        <% if document.post_activity.delete_object_by?(current_subject) %>
          <%= link_to content_tag(:div,image_tag("btn/error.png") + t('document.actions.delete'), :class => :action), document.post_activity.direct_object , :confirm => t('confirm_delete',
            :scope => document.post_activity.direct_object.class.to_s.underscore), :method => :delete %>
{'fraction_non_alphanumeric': 0.1800632911392405, 'fraction_numerical': 0.0012658227848101266, 'mean_word_length': 4.24212271973466, 'pattern_counts': {'":': 0, '<': 45, '<?xml version=': 0, '>': 72, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7244327', 'n_tokens_mistral': 1049, 'n_tokens_neox': 986, 'n_words': 155}