<commit_before>class FrontendMailer < ActionMailer::Base
  default from: TradeTariffFrontend.from_email,
          to: TradeTariffFrontend.to_email

  def new_feedback(message, name = nil, email = nil)
    @message = message
    @name = name
    @email = email

    mail subject: "Trade Tariff Feedback",
         reply_to: @email
  end
end<commit_msg>Ensure email parameters for SES are valid - reply_to: must have an email address; the value cannot be empty if this parameter is used - name: set @name (used in email message template) to `nil` instead of ablank string, which causes a rendering error in the email body<commit_after>class FrontendMailer < ActionMailer::Base
  default from: TradeTariffFrontend.from_email,
          to: TradeTariffFrontend.to_email

  def new_feedback(message, name = nil, email = nil)
    @message = message
    @name = name.presence || nil
    @email = email.presence || TradeTariffFrontend.from_email

    mail subject: "Trade Tariff Feedback",
         reply_to: @email
  end
end
{'fraction_non_alphanumeric': 0.07465618860510806, 'fraction_numerical': 0.0, 'mean_word_length': 3.73953488372093, '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': '1659709', 'n_tokens_mistral': 310, 'n_tokens_neox': 301, 'n_words': 105}