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: course_analytic.rb
    path of file: ./repos/expertiza/app/models/analytic
    
    the code of the file until where you have to start completion: require 'analytic/assignment_analytic'
module CourseAnalytic
  #====== general statistics ======#
  def num_participant
    
  def assignment_max_scores
    list = []
    assignments.each do |assignment|
      list << assignment.max_team_score
    end
    if list.empty?
      [0]
    else
      list
    end