<commit_before>namespace :alerts do
  desc 'Run alerts job'
  task create: [:environment] do
    puts Time.zone.now
    schools = School.active
    schools.each do |school|
      puts "Running all alerts for #{school.name}"
      Alerts::GenerateAndSaveAlerts.new(school).perform
    end
    puts Time.zone.now
  end
end<commit_msg>Create alerts for inactive schools<commit_after>namespace :alerts do
  desc 'Run alerts job'
  task create: [:environment] do
    puts Time.zone.now
    schools = School.all
    schools.each do |school|
      puts "Running all alerts for #{school.name}"
      Alerts::GenerateAndSaveAlerts.new(school).perform
    end
    puts Time.zone.now
  end
end
{'fraction_non_alphanumeric': 0.09090909090909091, 'fraction_numerical': 0.0, 'mean_word_length': 3.2955974842767297, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '6594945', 'n_tokens_mistral': 211, 'n_tokens_neox': 214, 'n_words': 63}