<commit_before>class RecitationAssignmentMailer < ActionMailer::Base
  def recitation_assignment_email(email, recitation_partition, root_url)
    @recitation_partition = recitation_partition
    @course = Course.main
    @email = email
    @protocol, @host = *root_url.split('://', 2)
    @host.slice!(-1) if @host[-1] == ?/

    hostname = @host.split(':', 2).first
    mail :to => email,
         :from => recitation_assignment_from(hostname, @protocol),
         :subject => recitation_assignment_subject(hostname, @protocol)

  end

  def recitation_assignment_subject(server_hostname, protocol)
    %Q|"#{Course.main.number} recitation assignment proposal"|
  end

  def recitation_assignment_from(server_hostname, protocol)
    %Q|"#{Course.main.number} staff" <#{Course.main.email}>|
  end
end<commit_msg>Fixed subject line in recitation assigments email.<commit_after>class RecitationAssignmentMailer < ActionMailer::Base
  def recitation_assignment_email(email, recitation_partition, root_url)
    @recitation_partition = recitation_partition
    @course = Course.main
    @email = email
    @protocol, @host = *root_url.split('://', 2)
    @host.slice!(-1) if @host[-1] == ?/

    hostname = @host.split(':', 2).first
    mail :to => email,
         :from => recitation_assignment_from(hostname, @protocol),
         :subject => recitation_assignment_subject(hostname, @protocol)

  end

  def recitation_assignment_subject(server_hostname, protocol)
    %Q|#{Course.main.number} recitation assignment proposal|
  end

  def recitation_assignment_from(server_hostname, protocol)
    %Q|"#{Course.main.number} staff" <#{Course.main.email}>|
  end
end
{'fraction_non_alphanumeric': 0.12839059674502712, 'fraction_numerical': 0.004822182037371911, 'mean_word_length': 4.570469798657718, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 11, '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': '6949499', 'n_tokens_mistral': 532, 'n_tokens_neox': 528, 'n_words': 103}