<commit_before>class PortalMailer < ApplicationMailer
  def generic_email(hideRecipients, recipients, reply_to, subject, content)
    @content = content
    if (hideRecipients)
      mail(bcc: recipients, reply_to: reply_to, subject: subject)
    else
      mail(to: recipients, reply_to: reply_to, subject: subject)
    end
  end
end
<commit_msg>Add documentation to #55 Backend<commit_after>class PortalMailer < ApplicationMailer

  # @param hideRecipients [Boolean], recipients [Array<String>], reply_to [Array<String>], subject [String], content [String]
  # @return [ActionMailer::MessageDelivery] a mail object with the given parameters.
  def generic_email(hideRecipients, recipients, reply_to, subject, content)
    @content = content
    if (hideRecipients)
      mail(bcc: recipients, reply_to: reply_to, subject: subject)
    else
      mail(to: recipients, reply_to: reply_to, subject: subject)
    end
  end
end

{'fraction_non_alphanumeric': 0.09081081081081081, 'fraction_numerical': 0.002162162162162162, 'mean_word_length': 4.823899371069182, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 5, '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': '4412186', 'n_tokens_mistral': 286, 'n_tokens_neox': 271, 'n_words': 82}