<commit_before>class UserMailer < ActionMailer::Base
  default delivery_method: :ses
  default from: "<EMAIL>"

  def invite_email(to_email, from_user)
    @from_user = from_user
    @from_name = from_user.name || from_user.email
    @invite_url = INVITE_URL
    mail(to: to_email, subject: "#{@from_name} has invited you to CurateScience")
  end

  def feedback_email(feedback_message)
    @feedback_message = feedback_message
    @from_user = @feedback_message.user
    @from_name = @from_user.name || @from_user.email
    mail(to: "<EMAIL>", subject: "Feedback from #{@from_name}")
  end
end<commit_msg>Mail feedback messages to <EMAIL><commit_after>class UserMailer < ActionMailer::Base
  default delivery_method: :ses
  default from: "<EMAIL>"

  def invite_email(to_email, from_user)
    @from_user = from_user
    @from_name = from_user.name || from_user.email
    @invite_url = INVITE_URL
    mail(to: to_email, subject: "#{@from_name} has invited you to CurateScience")
  end

  def feedback_email(feedback_message)
    @feedback_message = feedback_message
    @from_user = @feedback_message.user
    @from_name = @from_user.name || @from_user.email
    mail(to: "<EMAIL>", subject: "Feedback from #{@from_name}")
  end
end
{'fraction_non_alphanumeric': 0.11201298701298701, 'fraction_numerical': 0.0, 'mean_word_length': 4.734883720930233, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 8, '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': '6581470', 'n_tokens_mistral': 427, 'n_tokens_neox': 414, 'n_words': 95}