<commit_before>class BlogEntriesController < Spree::BaseController
  resource_controller
  actions :show, :index

  before_filter :load_news_archive_data

  index.before do
    @blog_entries = BlogEntry.find :all
  end

  show.before do
    @blog_entry = BlogEntry.find_by_permalink(params[:slug])
  end

  def tag
    @blog_entries = BlogEntry.by_tag(params[:tag])
    render :action => :index
  end

  def archive
    @blog_entries = BlogEntry.by_date(params)
    render :action => :index<commit_msg>remove resource_controller from BlogEntriesController in conformance with Spree direction<commit_after>class BlogEntriesController < Spree::BaseController

  before_filter :load_news_archive_data

  def show
    unless @blog_entry = BlogEntry.find_by_permalink(params[:slug])
        render :file => "#{RAILS_ROOT}/public/404.html", :layout => false, :status => 404
    end
  end

  def index
    @blog_entries = BlogEntry.find :all
  end

  def tag
    @blog_entries = BlogEntry.by_tag(params[:tag])
    render 'index'
  end

  def archive
    @blog_entries = BlogEntry.by_date(params)
    render 'index'
{'fraction_non_alphanumeric': 0.09033423667570009, 'fraction_numerical': 0.005420054200542005, 'mean_word_length': 4.177570093457944, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 8, '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': '1678422', 'n_tokens_mistral': 358, 'n_tokens_neox': 344, 'n_words': 80}