<commit_before># frozen_string_literal: true

class ApplicationMailer < ActionMailer::Base
  default from: "admin@#{ENV['EMAIL_DOMAIN']}"
  layout "mailer"

  def snap_application_notification(file_name:, recipient_email:)
    attachments["snap_application.pdf"] = File.read(file_name)
    mail to: recipient_email, subject: "Your SNAP application"<commit_msg>Send system emails from `hello@` (#143)<commit_after># frozen_string_literal: true

class ApplicationMailer < ActionMailer::Base
  default from: "hello@#{ENV['EMAIL_DOMAIN']}"
  layout "mailer"

  def snap_application_notification(file_name:, recipient_email:)
    attachments["snap_application.pdf"] = File.read(file_name)
    mail to: recipient_email, subject: "Your SNAP application"
{'fraction_non_alphanumeric': 0.11528150134048257, 'fraction_numerical': 0.004021447721179625, 'mean_word_length': 7.3, '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': '4648029', 'n_tokens_mistral': 234, 'n_tokens_neox': 227, 'n_words': 50}