<commit_before># frozen_string_literal: true

require "spree/authentication_helpers"
require "application_responder"
require 'cancan'
require 'spree/core/controller_helpers/auth'
require 'spree/core/controller_helpers/respond_with'
require 'spree/core/controller_helpers/ssl'
require 'spree/core/controller_helpers/common'
require 'open_food_network/referer_parser'

class ApplicationController < ActionController::Base
  self.responder = ApplicationResponder
  respond_to :html

  helper 'spree/base'
  helper 'spree/orders'
  helper 'spree/payment_methods'
  helper 'shared'
  helper 'enterprises'
  helper 'order_cycles'
  helper 'order'
  helper 'shop'
  helper 'injection'
  helper 'markdown'
  helper 'footer_links'
  helper 'discourse'
  helper 'checkout'

  protect_from_forgery

  include Spree::Core::ControllerHelpers::Auth
  include Spree::Core::ControllerHelpers::RespondWith
  include Spree::Core::ControllerHelpers::SSL
  include Spree::Core::ControllerHelpers::Common

  prepend_before_action :restrict_iframes
  before_action :set_cache_headers # prevent cart emptying via cache when using back button #1213

  include RawParams
  include EnterprisesHelper
  include Spree::AuthenticationHelpers<commit_msg>add TOS helper to application_controller.rb<commit_after># frozen_string_literal: true

require "spree/authentication_helpers"
require "application_responder"
require 'cancan'
require 'spree/core/controller_helpers/auth'
require 'spree/core/controller_helpers/respond_with'
require 'spree/core/controller_helpers/ssl'
require 'spree/core/controller_helpers/common'
require 'open_food_network/referer_parser'

class ApplicationController < ActionController::Base
  self.responder = ApplicationResponder
  respond_to :html

  helper 'spree/base'
  helper 'spree/orders'
  helper 'spree/payment_methods'
  helper 'shared'
  helper 'enterprises'
  helper 'order_cycles'
  helper 'order'
  helper 'shop'
  helper 'injection'
  helper 'markdown'
  helper 'footer_links'
  helper 'discourse'
  helper 'checkout'
  helper 'terms_and_conditions'

  protect_from_forgery

  include Spree::Core::ControllerHelpers::Auth
  include Spree::Core::ControllerHelpers::RespondWith
  include Spree::Core::ControllerHelpers::SSL
  include Spree::Core::ControllerHelpers::Common

  prepend_before_action :restrict_iframes
  before_action :set_cache_headers # prevent cart emptying via cache when using back button #1213

  include RawParams
  include EnterprisesHelper
  include Spree::AuthenticationHelpers
{'fraction_non_alphanumeric': 0.08087649402390439, 'fraction_numerical': 0.0031872509960159364, 'mean_word_length': 6.7024539877300615, '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': '1873889', 'n_tokens_mistral': 751, 'n_tokens_neox': 747, 'n_words': 167}