<commit_before># frozen_string_literal: true

class CourseApprovalFollowupWorker
  FOLLOWUP_DELAY = 3.days
  THIRTY_DAYS = 60 * 60 * 24 * 30
  include Sidekiq::Worker
  sidekiq_options lock: :until_executed,
                  lock_ttl: THIRTY_DAYS

  def self.schedule_followup_email(course:)
    perform_in(FOLLOWUP_DELAY, course.id)
  end

  # TODO: Remove unused param once all jobs that use it have been run
  def perform(course_id, _instructor_id = nil)
    course = Course.find(course_id)
    CourseApprovalFollowupMailer.send_followup(course)
  end
end
<commit_msg>Remove unused parameter<commit_after># frozen_string_literal: true

class CourseApprovalFollowupWorker
  FOLLOWUP_DELAY = 3.days
  THIRTY_DAYS = 60 * 60 * 24 * 30
  include Sidekiq::Worker
  sidekiq_options lock: :until_executed,
                  lock_ttl: THIRTY_DAYS

  def self.schedule_followup_email(course:)
    perform_in(FOLLOWUP_DELAY, course.id)
  end

  def perform(course_id)
    course = Course.find(course_id)
    CourseApprovalFollowupMailer.send_followup(course)
  end
end

{'fraction_non_alphanumeric': 0.06779661016949153, 'fraction_numerical': 0.01694915254237288, 'mean_word_length': 4.21078431372549, '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': '3425505', 'n_tokens_mistral': 392, 'n_tokens_neox': 361, 'n_words': 79}