<commit_before>desc "This task is called by the Heroku scheduler add-on"

task :check_for_expiring_subscriptions => :environment do
  puts "Checking for expiring subscriptions..."
  res = User.check_for_subscription_updates
  puts "done."
  puts JSON.pretty_generate(res)
end

task :clean_old_deleted_boards => :environment do
  puts "Cleaning old deleted boards..."
  count = DeletedBoard.flush_old_records
  puts "done, #{count} deleted."
end<commit_msg>rake trask for generating log summaries<commit_after>desc "This task is called by the Heroku scheduler add-on"

task :check_for_expiring_subscriptions => :environment do
  puts "Checking for expiring subscriptions..."
  res = User.check_for_subscription_updates
  puts "done."
  puts JSON.pretty_generate(res)
end

task :generate_log_summaries => :environment do
  puts "Generating log summaries..."
  LogSession.generate_log_summaries
  puts "done."
end

task :clean_old_deleted_boards => :environment do
  puts "Cleaning old deleted boards..."
  count = DeletedBoard.flush_old_records
  puts "done, #{count} deleted."
end
{'fraction_non_alphanumeric': 0.08804448563484708, 'fraction_numerical': 0.0, 'mean_word_length': 5.101694915254237, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 8, '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': '628526', 'n_tokens_mistral': 329, 'n_tokens_neox': 342, 'n_words': 100}