<commit_before>class Assessment < ActiveRecord::Base
  has_many :student_assessments, -> (student) { extending FindByStudent }

  def self.mcas_ela; where(family: "MCAS", subject: "ELA").last_or_missing end

  def self.mcas_math; where(family: "MCAS", subject: "Math").last_or_missing end

  def self.star_math; where(family: "STAR", subject: "Math").last_or_missing end

  def self.star_reading; where(family: "MCAS", subject: "Math").last_or_missing end

  def self.map_test; where(family: "MAP").last_or_missing end

  def self.dibels; where(family: "DIBELS").last_or_missing end

  def self.access; where(family: "ACCESS").last_or_missing end

  def self.math; where(subject: "Math").all_or_missing end

  def self.mcas; where(family: "MCAS").all_or_missing end

  def self.star; where(family: "STAR").all_or_missing end

  def self.ela; where(subject: "ELA").all_or_missing end

  def self.reading; where(subject: "Reading").all_or_missing end

  def self.last_or_missing; last || MissingAssessment.new end

  def self.all_or_missing; present? ? all : MissingAssessment.new end

end<commit_msg>Fix copy/paste mistake. Thank you specs for catching this! :100:<commit_after>class Assessment < ActiveRecord::Base
  has_many :student_assessments, -> (student) { extending FindByStudent }

  def self.mcas_ela; where(family: "MCAS", subject: "ELA").last_or_missing end

  def self.mcas_math; where(family: "MCAS", subject: "Math").last_or_missing end

  def self.star_math; where(family: "STAR", subject: "Math").last_or_missing end

  def self.star_reading; where(family: "STAR", subject: "Reading").last_or_missing end

  def self.map_test; where(family: "MAP").last_or_missing end

  def self.dibels; where(family: "DIBELS").last_or_missing end

  def self.access; where(family: "ACCESS").last_or_missing end

  def self.math; where(subject: "Math").all_or_missing end

  def self.mcas; where(family: "MCAS").all_or_missing end

  def self.star; where(family: "STAR").all_or_missing end

  def self.ela; where(subject: "ELA").all_or_missing end

  def self.reading; where(subject: "Reading").all_or_missing end

  def self.last_or_missing; last || MissingAssessment.new end

  def self.all_or_missing; present? ? all : MissingAssessment.new end

end
{'fraction_non_alphanumeric': 0.1238898756660746, 'fraction_numerical': 0.0013321492007104796, 'mean_word_length': 5.474137931034483, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '2608980', 'n_tokens_mistral': 795, 'n_tokens_neox': 744, 'n_words': 184}