<commit_before><% last ||= false -%>
<% show_author ||= false%>

<div class="<%=cycle("even_thread" , "odd_thread")%> attachment_cloud <%='last' if last%>">

  <div class="event event_padding">
    <div class="div-logo">
      <%= raw(link_logo(attachment.space, :size =>'w48', :url => space_path(attachment.space), :title=>attachment.space.name)) %>
    </div>
    <div class="home_event">
      <ul class="group_links">
        <li><%= link_to(image_tag("./icons/cancel.png", :alt => t('delete.one'),:class=>"icon"), space_attachment_path(attachment.space, attachment),
          {:method => :delete, :title => t('delete.one'), :confirm => t('delete.confirm', :element => attachment.filename)}) if attachment.authorize?(:delete, :to => current_user) %></li>
      </ul>
      <!--<div class="logo_home" style="float:right; padding-right:100px;"><%=logo(attachment,:size => '32')%></div>-->
      <p><%=image_tag("icons/attach.png",:class=>"icon", :title => t('attachment.home.one', :space=>attachment.space.name))%> <%=link_to sanitize(attachment.filename), space_attachment_path(attachment.space, attachment, :format => attachment.format!),:class=>"unified_news"%><span class="updated"> <%= t('created_time_ago', :time => sanitize(time_ago_in_words(attachment.created_at))) %></span></p>
      <ul>
        <li class="main_date small-font">
          <% if show_author -%>
          <%=t('author')%>:<span class="unified_user"><%=link_to (attachment.author.name,user_path(attachment.author),:class=>"unified_user")%></span>
          <% end -%>
        </li>
      </ul>
    </div>
  </div>
</div><commit_msg>Forgot the most important link_to error in the last commit.<commit_after><% last ||= false -%>
<% show_author ||= false%>

<div class="<%=cycle("even_thread" , "odd_thread")%> attachment_cloud <%='last' if last%>">

  <div class="event event_padding">
    <div class="div-logo">
      <%= raw(link_logo(attachment.space, :size =>'w48', :url => space_path(attachment.space), :title=>attachment.space.name)) %>
    </div>
    <div class="home_event">
      <ul class="group_links">
        <li><%= link_to(image_tag("./icons/cancel.png", :alt => t('delete.one'),:class=>"icon"), space_attachment_path(attachment.space, attachment),
          {:method => :delete, :title => t('delete.one'), :confirm => t('delete.confirm', :element => attachment.filename)}) if attachment.authorize?(:delete, :to => current_user) %></li>
      </ul>
      <!--<div class="logo_home" style="float:right; padding-right:100px;"><%=logo(attachment,:size => '32')%></div>-->
      <p><%=image_tag("icons/attach.png",:class=>"icon", :title => t('attachment.home.one', :space=>attachment.space.name))%> <%= link_to(sanitize(attachment.filename), space_attachment_path(attachment.space, attachment, :format => attachment.format!),:class=>"unified_news") %><span class="updated"> <%= t('created_time_ago', :time => sanitize(time_ago_in_words(attachment.created_at))) %></span></p>
      <ul>
        <li class="main_date small-font">
          <% if show_author -%>
          <%=t('author')%>:<span class="unified_user"><%=link_to(attachment.author.name,user_path(attachment.author),:class=>"unified_user")%></span>
          <% end -%>
        </li>
      </ul>
    </div>
  </div>
</div>
{'fraction_non_alphanumeric': 0.2283007334963325, 'fraction_numerical': 0.004278728606356968, 'mean_word_length': 4.6921739130434785, 'pattern_counts': {'":': 0, '<': 81, '<?xml version=': 0, '>': 117, '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': '4933324', 'n_tokens_mistral': 1121, 'n_tokens_neox': 1075, 'n_words': 173}