<commit_before>module Houston::Reports
  class Mailer < ::ViewMailer
    self.stylesheets = stylesheets + %w{houston/reports/charts.scss}
    
    helper Houston::Reports::ApplicationHelper
    
    
    def weekly_user_report(report, options={})
      @report = report
      
      mail({
        to:       options.fetch(:to, report.user),
        subject:  "#{report.username} ⭑ #{report.date.strftime("%b %-d, %Y")}",
        template: "houston/reports/reports/user_report"
      })
    end
    
    
  end
end<commit_msg>[skip] Added the ability to CC and BCC reports (1m)<commit_after>module Houston::Reports
  class Mailer < ::ViewMailer
    self.stylesheets = stylesheets + %w{houston/reports/charts.scss}
    
    helper Houston::Reports::ApplicationHelper
    
    
    def weekly_user_report(report, options={})
      @report = report
      
      mail(options.pick(:cc, :bcc).merge({
        to:       options.fetch(:to, report.user),
        subject:  "#{report.username} ⭑ #{report.date.strftime("%b %-d, %Y")}",
        template: "houston/reports/reports/user_report"
      }))
    end
    
    
  end
end
{'fraction_non_alphanumeric': 0.13672922252010725, 'fraction_numerical': 0.0008936550491510277, 'mean_word_length': 2.6245954692556634, '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': '5200271', 'n_tokens_mistral': 376, 'n_tokens_neox': 357, 'n_words': 69}