You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: base_personalization_strategy.rb
    path of file: ./repos/coursemology2/app/controllers/concerns/course/lesson_plan/strategies
    
    the code of the file until where you have to start completion: # frozen_string_literal: true
# The BasePersonalizationStrategy declares operations common to all, if not most, personalized timeline algorithms.
# It also defines the interface to use when calling the algorithm defined by the subclasses.
class Course::LessonPlan::Strategies:
    
  def precompute_data(course_user) # rubocop:disable Metrics/AbcSize, Metrics/MethodLength
    submitted_items = lesson_plan_items_submission_time_hash(course_user)
    items = course_user.course.lesson_plan_items.published.
            with_reference_times_for(course_user).
            with_personal_times_for(course_user).
            to_a
    items = items.sort_by { |x| x.time_for(course_user).start_at }
    items_affecting_personal_times = items.select(&:affects_personal_times?)
    learning_rate_ema = compute_learning_rate_ema(
      course_user, items_affecting_personal_times, submitted_items, self.class::LEARNING_RATE_ALPHA
    )
    unless learning_rate_ema.nil?
      effective_min, effective_max = compute_learning_rate_effective_limits(course_user, items, submitted_items,
                                                                            self.class::MIN_LEARNING_RATE,
                                                                            self.class::MAX_LEARNING_RATE)
      learning_rate_ema = [self.class::HARD_MIN_LEARNING_RATE, effective_min,
                           [learning_rate_ema, effective_max].min].max
    end