<commit_before>module Spree
  module Blog
    class ContentsController < BaseController
      include Spree::Core::ControllerHelpers::Order
      layout 'spree/layouts/spree_blog'

      before_filter :load_blog_data

      def index
        @order = current_order
        @title = "Indice dei contenuti"
        @posts_searcher = build_posts_searcher params
        @posts = @posts_searcher.retrieve_posts
      end<commit_msg>post ordered in reverse order by published date<commit_after>module Spree
  module Blog
    class ContentsController < BaseController
      include Spree::Core::ControllerHelpers::Order
      layout 'spree/layouts/spree_blog'

      before_filter :load_blog_data

      def index
        @order = current_order
        @title = "Indice dei contenuti"
        @posts_searcher = build_posts_searcher params
        @posts = @posts_searcher.retrieve_posts.order(:published_at).reverse_order
      end
{'fraction_non_alphanumeric': 0.06378378378378378, 'fraction_numerical': 0.0, 'mean_word_length': 3.2477064220183487, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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': '4620089', 'n_tokens_mistral': 260, 'n_tokens_neox': 263, 'n_words': 60}