<commit_before>Resque::Mailer.excluded_environments = []

Resque::Mailer.error_handler = lambda { |mailer, message, error, action, args|
  if mailer.method_defined? :error_handler
    mailer.error_handler message, error, action, args
  else
    raise error
  end
}<commit_msg>Correctly call mailers error_handler. refs #1365<commit_after>Resque::Mailer.excluded_environments = []

Resque::Mailer.error_handler = lambda { |mailer, message, error, action, args|
  if mailer.respond_to? :error_handler
    mailer.error_handler message, error, action, args
  else
    raise error
  end
}
{'fraction_non_alphanumeric': 0.09948542024013722, 'fraction_numerical': 0.00686106346483705, 'mean_word_length': 5.279569892473118, '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': '3206407', 'n_tokens_mistral': 193, 'n_tokens_neox': 188, 'n_words': 45}