<commit_before># Iter 1-2
class ContactBatchMailer < ActionMailer::Base
  default from: '<EMAIL>'
  # default from: '<EMAIL>'
  
  #Iter 2-2 Improved email (with attachment) (By <NAME>, <NAME>)
  def contact_batch_email(name, message, subject, recipient, send)
    if (send == "on")
      Attachment.all.each do |a|
        attachments[a.document_file_name] = File.read("#{a.document.path}") if a.marked
      end
    end
    @name = name
    @message = message
    @subject = subject 
    @recipient = recipient
    
    mail(to: recipient, subject: "Contact batch email")
  end
  #End of Iter 2-2

end
# End for Iter 1-2<commit_msg><fix> reset_pw for iter2<commit_after># Iter 1-2
class ContactBatchMailer < ActionMailer::Base
  default from: '<EMAIL>'
  # default from: '<EMAIL>'
  
  #Iter 2-2 Improved email (with attachment) (By <NAME>, <NAME>)
  def contact_batch_email(name, message, subject, recipient, send)
    if (send == "on")
      Attachment.all.each do |a|
        attachments[a.document_file_name] = File.read("#{a.document.path}") if a.marked
      end
    end
    mail(to: recipient, name: name, subject: subject, body: message)
  end
  #End of Iter 2-2

end
# End for Iter 1-2
{'fraction_non_alphanumeric': 0.13043478260869565, 'fraction_numerical': 0.014214046822742474, 'mean_word_length': 3.3369565217391304, 'pattern_counts': {'":': 0, '<': 14, '<?xml version=': 0, '>': 12, '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': '5089797', 'n_tokens_mistral': 414, 'n_tokens_neox': 403, 'n_words': 122}