<commit_before>class ChallengeSuccessMailer < ApplicationMailer
  attr_reader :initiated_by, :challenge

  def challenge_success_email(initiated_by:, challenge:, email:)
    return if Rails.env.test?
    @initiated_by = initiated_by
    @challenge = challenge
    mail(to: email, subject: 'OSUMB Challenge Creation Success')
  end
end
<commit_msg>Rails: update challenge success email to use maintainer email not in production<commit_after>class ChallengeSuccessMailer < ApplicationMailer
  attr_reader :initiated_by, :challenge

  def challenge_success_email(initiated_by:, challenge:, email:)
    return if Rails.env.test?
    @initiated_by = initiated_by
    @challenge = challenge
    to = Rails.env.production? ? email : ENV['MAINTAINER_EMAIL']
    mail(to: to, subject: 'OSUMB Challenge Creation Success')
  end
end

{'fraction_non_alphanumeric': 0.08150851581508516, 'fraction_numerical': 0.0, 'mean_word_length': 5.18796992481203, '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': '1773208', 'n_tokens_mistral': 258, 'n_tokens_neox': 239, 'n_words': 67}