<commit_before><% wrap_layout :layout do %>
<div class="container blog-post">
  <% if content_for?(:banner) %>
    <div class="post-banner">
      <%= yield_content :banner %>
    </div>
  <% end %>

  <%= '<div class="draft-banner">This is a draft. It will not show up on the live site.</div>' if (should_show_drafts? && is_draft?(current_article)) %>

  <header class="blog-post-header">
    <h1><%= put_gocd_in_span(current_article.title) %></h1>
    <h4><%= current_article.data["author"] %></h4>
    <p class='tags'>
       <% current_article.tags.each do |tag, current_article| %>
        <% link_to tag_path(tag), :class => 'tag' do %>
        <%= tag %>
        <% end %>
       <% end %>
     </p>
  </header>

  <div class="row">
    <div class="col-md-9">
      <main id="main" role="main">
      <%= yield %>
      </main>
    </div>
    <div class="col-md-3">
      <aside class="post-sidebar">
        <section  class="recent-ariticles">
          <section class='post'>
 -            <%= partial 'partials/_subscribe_to_blog.html.erb' %>
 -          </section>
          <h2 class="section-title">Recent Articles</h2>
          <ol>
            <% blog.articles[0...5].each do |article| %>
            <li>
              <span class="post-date"><%= article.date.strftime('%b %e') %></span>
              <span class="post-author"><%= article.data["author"] %></span>
              <%= link_to article.title, article %>
            </li>
            <% end %>
          </ol>
        </section>
        <section>
          <h2 class="section-title">By Year</h2>
          <ol>
            <% blog.articles.group_by {|a| a.date.year }.each do |year, articles| %>
            <li><%= link_to "#{year} (#{articles.size})", blog_year_path(year).sub(/\.html$/, '/index.html') %></li>
            <% end %>
          </ol>
        </section>

      </aside>
    </div>
  </div>
<commit_msg>Hide preview articles in 'Recent Articles'<commit_after><% wrap_layout :layout do %>
<div class="container blog-post">
  <% if content_for?(:banner) %>
    <div class="post-banner">
      <%= yield_content :banner %>
    </div>
  <% end %>

  <%= '<div class="draft-banner">This is a draft. It will not show up on the live site.</div>' if (should_show_drafts? && is_draft?(current_article)) %>

  <header class="blog-post-header">
    <h1><%= put_gocd_in_span(current_article.title) %></h1>
    <h4><%= current_article.data["author"] %></h4>
    <p class='tags'>
       <% current_article.tags.each do |tag, current_article| %>
        <% link_to tag_path(tag), :class => 'tag' do %>
        <%= tag %>
        <% end %>
       <% end %>
     </p>
  </header>

  <div class="row">
    <div class="col-md-9">
      <main id="main" role="main">
      <%= yield %>
      </main>
    </div>
    <div class="col-md-3">
      <aside class="post-sidebar">
        <section  class="recent-ariticles">
          <section class='post'>
            <%= partial 'partials/_subscribe_to_blog.html.erb' %>
          </section>
          <h2 class="section-title">Recent Articles</h2>
          <ol>
            <% selected_articles_for_display_in(blog.articles)[0...5].each do |article| %>
            <li>
              <span class="post-date"><%= article.date.strftime('%b %e') %></span>
              <span class="post-author"><%= article.data["author"] %></span>
              <%= link_to article.title, article %>
            </li>
            <% end %>
          </ol>
        </section>
        <section>
          <h2 class="section-title">By Year</h2>
          <ol>
            <% selected_articles_for_display_in(blog.articles).group_by {|a| a.date.year }.each do |year, articles| %>
            <li><%= link_to "#{year} (#{articles.size})", blog_year_path(year).sub(/\.html$/, '/index.html') %></li>
            <% end %>
          </ol>
        </section>

      </aside>
    </div>
  </div>

{'fraction_non_alphanumeric': 0.20107996914373874, 'fraction_numerical': 0.0061712522499357166, 'mean_word_length': 2.147249190938511, 'pattern_counts': {'":': 0, '<': 137, '<?xml version=': 0, '>': 139, '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': '6309006', 'n_tokens_mistral': 1388, 'n_tokens_neox': 1283, 'n_words': 257}