<commit_before># frozen_string_literal: true

#
# Application Mailer
# ====================
class ApplicationMailer < ActionMailer::Base
  helper :html # HtmlHelper

  before_action :set_setting
  before_action :set_map_setting
  before_action :set_contact_settings

  private

  def set_setting
    @setting = Setting.first
  end

  def set_map_setting
    @map_setting = MapSetting.first.decorate
  end

  def set_contact_settings
    @copy_to_sender = false
  end
end<commit_msg>ApplicationMailer :: Include SharedColorVariables module to fix issue in production<commit_after># frozen_string_literal: true

#
# Application Mailer
# ====================
class ApplicationMailer < ActionMailer::Base
  include SharedColoredVariables
  helper :html # HtmlHelper

  before_action :set_setting
  before_action :set_map_setting
  before_action :set_contact_settings

  private

  def set_setting
    @setting = Setting.first
  end

  def set_map_setting
    @map_setting = MapSetting.first.decorate
  end

  def set_contact_settings
    @copy_to_sender = false
  end
end
{'fraction_non_alphanumeric': 0.08622305529522024, 'fraction_numerical': 0.0, 'mean_word_length': 4.804347826086956, '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': '4019482', 'n_tokens_mistral': 330, 'n_tokens_neox': 314, 'n_words': 77}