<commit_before>ActionMailer::Base.smtp_settings = {
  :address              => APP_CONFIG['mail']['address'],
  :port                 => APP_CONFIG['mail']['port'],
  :domain               => APP_CONFIG['mail']['domain'],
  :user_name            => APP_CONFIG['mail']['user_name'],
  :password             => APP_CONFIG['mail']['password'],
  :authentication       => APP_CONFIG['mail']['authentication'],
  :enable_starttls_auto => true
}

ActionMailer::Base.default_url_options[:host] = APP_CONFIG['hostname']
ActionMailer::Base.register_interceptor( DevelopmentMailInterceptor ) if Rails.env.development?<commit_msg>ALM-400 make mailer settings optional<commit_after>if APP_CONFIG['mail']
  ActionMailer::Base.smtp_settings = {
    :address              => APP_CONFIG['mail']['address'],
    :port                 => APP_CONFIG['mail']['port'],
    :domain               => APP_CONFIG['mail']['domain'],
    :user_name            => APP_CONFIG['mail']['user_name'],
    :password             => APP_CONFIG['mail']['password'],
    :authentication       => APP_CONFIG['mail']['authentication'],
    :enable_starttls_auto => true
  }
end

ActionMailer::Base.default_url_options[:host] = APP_CONFIG['hostname']
ActionMailer::Base.register_interceptor( DevelopmentMailInterceptor ) if Rails.env.development?
{'fraction_non_alphanumeric': 0.16156202143950996, 'fraction_numerical': 0.002297090352220521, 'mean_word_length': 3.752727272727273, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 17, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2866096', 'n_tokens_mistral': 384, 'n_tokens_neox': 362, 'n_words': 48}