<commit_before>class GradebookExporter
  include Sidekiq::Worker

  def perform(user_id, course_id)
    user = User.find(user_id)
    course = Course.find(course_id)
    if course.present? && user.present?
      if course..student_weighted?
        csv_data = course.gradebook_for_course(course)
      else
        csv_data = course.multiplied_gradebook_for_course(course)
      end
      NotificationMailer.gradebook_export(course,user,csv_data).deliver
    end
  end
end
<commit_msg>Updated gradebook exporter<commit_after>class GradebookExporter
  include Sidekiq::Worker

  def perform(user_id, course_id)
    user = User.find(user_id)
    course = Course.find(course_id)
    if course.present? && user.present?
      if course.student_weighted?
        csv_data = course.gradebook_for_course(course)
      else
        csv_data = course.multiplied_gradebook_for_course(course)
      end
      NotificationMailer.gradebook_export(course,user,csv_data).deliver
    end
  end
end

{'fraction_non_alphanumeric': 0.07841140529531568, 'fraction_numerical': 0.0, 'mean_word_length': 3.6809523809523808, 'pattern_counts': {'":': 0, '<': 3, '<?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': '2742409', 'n_tokens_mistral': 319, 'n_tokens_neox': 310, 'n_words': 54}