<commit_before><% content_for :sidebar do %>
  <%= render :partial => 'spree/blog/shared/sidebar' %>
<% end %>

<div class="post">
  
  <div class="post-title">
    <h5><%= h @post.posted_at.strftime('%A %B %d, %Y').gsub(/\s0/, ' ') %></h5> 
    <h1><%=h @post.title %></h1>
  </div>
  
  <% if @post.has_images? %>     
    <div class="post-images">
      <% @post.images.each_with_index do |image, index| %>
   	    <p><%= link_to image_tag(image.attachment.url(:medium), :alt => image.has_alt? ? image.alt : "#{@post.title} - Photo #{index + 1}"), image.attachment.url(:large), :id => "photo_#{index}" %></p>
 	    <% end %>
    </div>
  <% end %>   
    
  <%= @post.rendered_body %>  
  
  <br class="clear"/>
  
  <div class="post-tags">
    <h5>Tagged:</h5>
    <p><%= @post.tags.collect{|tag| link_to(tag.name, search_posts_path(tag.name)) }.join(", ").html_safe %></p>
  </div>

  <% unless @post.products.empty? %>
    <div class="post-products">
      <%= render 'spree/shared/products', :products => @post.products %>
    </div>
  <% end %>
  
  <%= render "spree/blog/shared/disqus_comments" if @blog_config %>

</div><commit_msg>added data-hooks to divs<commit_after><% content_for :sidebar do %>
  <%= render :partial => 'spree/blog/shared/sidebar' %>
<% end %>

<div class="post" data-hook="post-show">
  
  <div class="post-title" data-hook="post-show-title">
    <h5><%= h @post.posted_at.strftime('%A %B %d, %Y').gsub(/\s0/, ' ') %></h5> 
    <h1><%=h @post.title %></h1>
  </div>
  
  <% if @post.has_images? %>     
    <div class="post-images" data-hook="post-show-image">
      <% @post.images.each_with_index do |image, index| %>
   	    <p><%= link_to image_tag(image.attachment.url(:medium), :alt => image.has_alt? ? image.alt : "#{@post.title} - Photo #{index + 1}"), image.attachment.url(:large), :id => "photo_#{index}" %></p>
 	    <% end %>
    </div>
  <% end %>   
    
  <%= @post.rendered_body %>  
  
  <br class="clear"/>
  
  <div class="post-tags" data-hook="post-show-tags">
    <h5>Tagged:</h5>
    <p><%= @post.tags.collect{|tag| link_to(tag.name, search_posts_path(tag.name)) }.join(", ").html_safe %></p>
  </div>

  <% unless @post.products.empty? %>
    <div class="post-products" data-hook="post-show-related-products">
      <%= render 'spree/shared/products', :products => @post.products %>
    </div>
  <% end %>
  
  <%= render "spree/blog/shared/disqus_comments" if @blog_config %>

</div>
{'fraction_non_alphanumeric': 0.24047521507578862, 'fraction_numerical': 0.006554690700532569, 'mean_word_length': 3.2322357019064123, 'pattern_counts': {'":': 0, '<': 77, '<?xml version=': 0, '>': 85, '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': '5886961', 'n_tokens_mistral': 1010, 'n_tokens_neox': 944, 'n_words': 161}