<commit_before>ActionMailer::Base.default_url_options[:host] ||= config_options[:host]
ActionMailer::Base.default_content_type = "text/html"

# if there is a mailer configuration in site_config
if ActionMailer::Base.delivery_method.nil? && mailer_opts = config_options['mailer']<commit_msg>Fixing the mailer initializer to it'll pick up site config options. This may not be the desired end-behavior, but gets it working again.<commit_after>ActionMailer::Base.default_url_options[:host] ||= config_options[:host]
ActionMailer::Base.default_content_type = "text/html"

if ActionMailer::Base.delivery_method != :test && mailer_opts = config_options['mailer']
{'fraction_non_alphanumeric': 0.11450381679389313, 'fraction_numerical': 0.0, 'mean_word_length': 8.371428571428572, 'pattern_counts': {'":': 0, '<': 3, '<?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': '1542135', 'n_tokens_mistral': 200, 'n_tokens_neox': 197, 'n_words': 46}