<commit_before>ActionMailer::Base.default_url_options[:host] = ENV['website_url'].to_s.gsub(/^https?:\/\//, '')
unless Rails.env.test?
  ActionMailer::Base.delivery_method = :smtp
  ActionMailer::Base.smtp_settings = {
    enable_starttls_auto: true,
    address: ENV['smtp_address'],
    port: ENV['smtp_port'].to_i,
    domain: ENV['smtp_domain'],
    authentication: ENV['smtp_authentication'].to_sym, # :plain, :login, or, :cram_md5
    email: ENV['smtp_email'],
    user_name: ENV['smtp_user_name'],
    password: ENV['<PASSWORD>']
  }
else
  ActionMailer::Base.smtp_settings[:email] = "<EMAIL>"
end<commit_msg>Only set domain if it is not blank<commit_after>ActionMailer::Base.default_url_options[:host] = ENV['website_url'].to_s.gsub(/^https?:\/\//, '')
unless Rails.env.test?
  ActionMailer::Base.delivery_method = :smtp
  ActionMailer::Base.smtp_settings = {
    enable_starttls_auto: true,
    address: ENV['smtp_address'],
    port: ENV['smtp_port'].to_i,
    domain: (ENV['smtp_domain'].blank? ? nil : ENV['smtp_domain']),
    authentication: ENV['smtp_authentication'].to_sym, # :plain, :login, or, :cram_md5
    email: ENV['smtp_email'],
    user_name: ENV['smtp_user_name'],
    password: ENV['<PASSWORD>']
  }
else
  ActionMailer::Base.smtp_settings[:email] = "<EMAIL>"
end
{'fraction_non_alphanumeric': 0.1768813033359193, 'fraction_numerical': 0.0015515903801396431, 'mean_word_length': 5.417910447761194, 'pattern_counts': {'":': 0, '<': 7, '<?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': '6327480', 'n_tokens_mistral': 513, 'n_tokens_neox': 489, 'n_words': 70}