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

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

    respond_to :html

    before_action :assign_order_with_lock, only: :update
    before_action :apply_coupon_code, only: :update
    skip_before_action :verify_authenticity_token
<commit_msg>Validate authenticity token on all actions but populate<commit_after>module Spree
  class OrdersController < Spree::StoreController
    ssl_required :show

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

    respond_to :html

    before_action :assign_order_with_lock, only: :update
    before_action :apply_coupon_code, only: :update
    skip_before_action :verify_authenticity_token, only: [:populate]

{'fraction_non_alphanumeric': 0.07240293809024134, 'fraction_numerical': 0.0062959076600209865, 'mean_word_length': 5.445945945945946, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '4327166', 'n_tokens_mistral': 292, 'n_tokens_neox': 278, 'n_words': 65}