<commit_before>module Spree
  class OrdersController < Spree::StoreController
    ssl_required :show

    before_filter :check_authorization
    rescue_from ActiveRecord::RecordNotFound, :with => :render_404
    helper 'spree/products', 'spree/orders'

    respond_to :html

    def show
      @order = Order.find_by_number!(params[:id])
      if stale?(:etag => @order, :last_modified => @order.updated_at)
        respond_with(@order)
      end
    end

    def update<commit_msg>Revert "[frontend] Cache OrdersController#show using ConditionalGet"<commit_after>module Spree
  class OrdersController < Spree::StoreController
    ssl_required :show

    before_filter :check_authorization
    rescue_from ActiveRecord::RecordNotFound, :with => :render_404
    helper 'spree/products', 'spree/orders'

    respond_to :html

    def show
      @order = Order.find_by_number!(params[:id])
    end

    def update
{'fraction_non_alphanumeric': 0.09340659340659341, 'fraction_numerical': 0.006593406593406593, 'mean_word_length': 3.9510869565217392, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '5521116', 'n_tokens_mistral': 284, 'n_tokens_neox': 267, 'n_words': 61}