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: daily_engaged_users.rb
    path of file: ./repos/discourse/app/models/concerns/reports
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

module Reports::DailyEngagedUsers
  extend ActiveSupport::Concern

  class_methods do
    def report_daily_engaged_users(report)
      report.average = true

      report.data = []

      data = Us
    
    def report_daily_engaged_users(report)
      report.average = true

      report.data = []

      data = UserAction.count_daily_engaged_users(report.start_date, report.end_date)

      if report.facets.include?(:prev30Days)
        prev30DaysData =
          UserAction.count_daily_engaged_users(report.start_date - 30.days, report.start_date)
        report.prev30Days = prev30DaysData.sum { |k, v| v }
      end