<commit_before><% @posts.each do |p| %>
    <div class="col-sm-4 blog-item">
        <div class="thumbnail">
            <a href="#">
              <img class="img-responsive" src="https://unsplash.it/700/300?random" alt="">
            </a>
            <h4 class="text-center"><%= link_to truncate(p.title, length: 40), post_path(p) %></h4>
            <p><i class="fa fa-clock-o" aria-hidden="true"></i> Posted on <%= p.created_at.strftime("%B %d, %Y") %></p>
            <p><%= truncate p.content, length: 100 %></p>
        </div>
    </div>
<% end %>
<commit_msg>Add truncate method to post title.<commit_after><% @posts.each do |p| %>
    <div class="col-sm-4 blog-item">
        <div class="thumbnail">
            <a href="#">
              <img class="img-responsive" src="https://unsplash.it/700/300?random" alt="">
            </a>
            <h4 class="text-center"><%= link_to truncate(p.title, length: 30), post_path(p) %></h4>
            <p><i class="fa fa-clock-o" aria-hidden="true"></i> Posted on <%= p.created_at.strftime("%B %d, %Y") %></p>
            <p><%= truncate p.content, length: 100 %></p>
        </div>
    </div>
<% end %>

{'fraction_non_alphanumeric': 0.22731201382886776, 'fraction_numerical': 0.024200518582541054, 'mean_word_length': 2.3371757925072045, 'pattern_counts': {'":': 0, '<': 43, '<?xml version=': 0, '>': 43, 'https://': 2, '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': '6486736', 'n_tokens_mistral': 443, 'n_tokens_neox': 402, 'n_words': 91}