<commit_before><div class="scroll-container">
  <% @resources.each do |resource| %>
    <a href='/resources/<%= resource.id %>' class='dashboard-box-link'>
      <div class="resource-block">
         <div class="resource-post-image">
           <% if resource.curriculum.nickname == "Rails" %>
             <div>
               <%= image_tag("back-end-engineering-icon.png", size: "80x80") %>
             </div>
              <% elsif resource.curriculum.nickname == "Python" %>
             <div>
               <%= image_tag("data-science-icon.png", size: "80x80") %>
             </div>
           <% elsif resource.curriculum.nickname == "Front End" %>
             <div>
               <%= image_tag("front-end-engineering-icon.png", size: "80x80") %>
             </div>
           <% end %>
         </div>
        <p class="dashboard-event-title"><%= resource.title %></p>
        <p class="dashboard-event-details"><%= resource.curriculum.nickname %></p>
        <p class="dashboard-event-details event-details-spacing"><%= resource.description %></p>
        <!--<p class="dashboard-event-details"><%= resource.website_html unless resource.website.blank? %></p>-->
      </div>
    </a>
  <% end %>
</div><commit_msg>Add truncate to dashboard resource description<commit_after><div class="scroll-container">
  <% @resources.each do |resource| %>
    <a href='/resources/<%= resource.id %>' class='dashboard-box-link'>
      <div class="resource-block">
         <div class="resource-post-image">
           <% if resource.curriculum.nickname == "Rails" %>
             <div>
               <%= image_tag("back-end-engineering-icon.png", size: "80x80") %>
             </div>
              <% elsif resource.curriculum.nickname == "Python" %>
             <div>
               <%= image_tag("data-science-icon.png", size: "80x80") %>
             </div>
           <% elsif resource.curriculum.nickname == "Front End" %>
             <div>
               <%= image_tag("front-end-engineering-icon.png", size: "80x80") %>
             </div>
           <% end %>
         </div>
        <p class="dashboard-event-title"><%= resource.title %></p>
        <p class="dashboard-event-details"><%= resource.curriculum.nickname %></p>
        <p class="dashboard-event-details event-details-spacing"><%= truncate( resource.description, length: 143) %></p>
        <!--<p class="dashboard-event-details"><%= resource.website_html unless resource.website.blank? %></p>-->
      </div>
    </a>
  <% end %>
</div>
{'fraction_non_alphanumeric': 0.19259848786311182, 'fraction_numerical': 0.010744130521289296, 'mean_word_length': 2.210727969348659, 'pattern_counts': {'":': 0, '<': 77, '<?xml version=': 0, '>': 77, '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': '4104983', 'n_tokens_mistral': 808, 'n_tokens_neox': 755, 'n_words': 133}