<commit_before># Responsible for sending out lifecycle emails to active accounts.
class LifecycleMailer < ActionMailer::Base

  SUPPORT   = '<EMAIL>'
  NO_REPLY  = '<EMAIL>'

  # Mail instructions for a new account, with a secure link to activate,
  # set their password, and log in.
  def login_instructions(account)
    subject     "Welcome to DocumentCloud"
    from        SUPPORT
    recipients  [account.rfc_email]
    body        :account            => account,
                :key                => account.security_key.key,
                :organization_name  => account.organization_name
  end

  # Mail instructions for resetting an active account's password.
  def reset_request(account)
    subject     "DocumentCloud Password Reset"
    from        SUPPORT
    recipients  [account.rfc_email]
    body        :account            => account,
                :key                => account.security_key.key
  end

  # Mail a notification that a new account has been enabled in your organization.
  def enabled_notification(account, emails)
    subject     "DocumentCloud Account Enabled: #{account.full_name}"
    from        SUPPORT
    recipients  emails
    body        :account => account
  end

  # When someone sends a message through the "Contact Us" form, deliver it to
  # us via email.
  def contact_us(account, message)
    subject     "DocumentCloud Message from #{account.full_name}"
    from        NO_REPLY
    recipients  SUPPORT
    body        :account => account, :message => message
    @headers['Reply-to'] = account.email
  end

  # Mail a notification of an exception that occurred in production.
  def exception_notification(error)
    subject     "DocumentCloud Exception: #{error.class.name}"
    from        NO_REPLY
    recipients  "<EMAIL>"
    body        :error => error
  end

end
<commit_msg>stop sending to the rfc email address<commit_after># Responsible for sending out lifecycle emails to active accounts.
class LifecycleMailer < ActionMailer::Base

  SUPPORT   = '<EMAIL>'
  NO_REPLY  = '<EMAIL>'

  # Mail instructions for a new account, with a secure link to activate,
  # set their password, and log in.
  def login_instructions(account)
    subject     "Welcome to DocumentCloud"
    from        SUPPORT
    recipients  [account.email]
    body        :account            => account,
                :key                => account.security_key.key,
                :organization_name  => account.organization_name
  end

  # Mail instructions for resetting an active account's password.
  def reset_request(account)
    subject     "DocumentCloud Password Reset"
    from        SUPPORT
    recipients  [account.email]
    body        :account            => account,
                :key                => account.security_key.key
  end

  # Mail a notification that a new account has been enabled in your organization.
  def enabled_notification(account, emails)
    subject     "DocumentCloud Account Enabled: #{account.full_name}"
    from        SUPPORT
    recipients  emails
    body        :account => account
  end

  # When someone sends a message through the "Contact Us" form, deliver it to
  # us via email.
  def contact_us(account, message)
    subject     "DocumentCloud Message from #{account.full_name}"
    from        NO_REPLY
    recipients  SUPPORT
    body        :account => account, :message => message
    @headers['Reply-to'] = account.email
  end

  # Mail a notification of an exception that occurred in production.
  def exception_notification(error)
    subject     "DocumentCloud Exception: #{error.class.name}"
    from        NO_REPLY
    recipients  "<EMAIL>"
    body        :error => error
  end

end

{'fraction_non_alphanumeric': 0.06933911159263272, 'fraction_numerical': 0.0, 'mean_word_length': 2.435348837209302, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 27, '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': '5299569', 'n_tokens_mistral': 1002, 'n_tokens_neox': 955, 'n_words': 340}