<commit_before>class Meeting < ActiveRecord::Base
  default_scope { order("met DESC") }

  scope :met_between, ->(start_time, end_time) { where("met >= ? AND met < ?", start_time, end_time) }
  scope :met_after, ->(time) { where("met > ?", time) }

  scope :for_school, lambda {|school|
    where(school_id: school.id) unless school.nil?
  }

  belongs_to :meeting_type
  belongs_to :school
  has_many :meeting_members
  has_many :members, :through => :meeting_members

  @_instructor = nil

  def instructor
    @_instructor || self._get_instructor
  end

  def students
    @students ||= self.meeting_members.select { |mm| mm.role_id == Role::student_role_id }<commit_msg>Fix previous 30 days stat<commit_after>class Meeting < ActiveRecord::Base
  default_scope { order("met DESC") }

  scope :met_between, ->(start_time, end_time) { where("met >= ? AND met < ?", end_time, start_time) }
  scope :met_after, ->(time) { where("met > ?", time) }

  scope :for_school, lambda {|school|
    where(school_id: school.id) unless school.nil?
  }

  belongs_to :meeting_type
  belongs_to :school
  has_many :meeting_members
  has_many :members, :through => :meeting_members

  @_instructor = nil

  def instructor
    @_instructor || self._get_instructor
  end

  def students
    @students ||= self.meeting_members.select { |mm| mm.role_id == Role::student_role_id }
{'fraction_non_alphanumeric': 0.13088235294117648, 'fraction_numerical': 0.0014705882352941176, 'mean_word_length': 4.379446640316205, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 13, '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': '5247200', 'n_tokens_mistral': 477, 'n_tokens_neox': 466, 'n_words': 108}