<commit_before># Use this file to easily define all of your cron jobs.
#
# It's helpful, but not entirely necessary to understand cron before proceeding.
# http://en.wikipedia.org/wiki/Cron
# Learn more: http://github.com/javan/whenever

# for some reason the default 'rake' wasn't using 'bundle exec', so we're redefining it here
job_type :rake, "cd :path && RAILS_ENV=:environment bundle exec rake :task --silent :output"

every :day, :at => '2am' do
  # updates the stats - will only increment stats from the past day
  rake "mconf:analytics:update"
  # send daily emails
  runner "Mconf::DigestEmail.send_daily_digest"
end

every :sunday, :at => '3am' do
  # restart the analytics stats every week
  rake "mconf:analytics:init"
  # send weekly emails
  runner "Mconf::DigestEmail.send_weekly_digest"
end<commit_msg>Updating the schedule for digest emails to be sent at a decent time.<commit_after># Use this file to easily define all of your cron jobs.
#
# It's helpful, but not entirely necessary to understand cron before proceeding.
# http://en.wikipedia.org/wiki/Cron
# Learn more: http://github.com/javan/whenever

# for some reason the default 'rake' wasn't using 'bundle exec', so we're redefining it here
job_type :rake, "cd :path && RAILS_ENV=:environment bundle exec rake :task --silent :output"

every :day, :at => '1am' do
  # updates the stats - will only increment stats from the past day
  rake "mconf:analytics:update"
end

every :sunday, :at => '2am' do
  # restart the analytics stats every week
  rake "mconf:analytics:init"
end

every :day, :at => '2pm' do
  # send daily digest emails
  runner "Mconf::DigestEmail.send_daily_digest"
end

every :monday, :at => '2pm' do
  # send weekly digest emails
  runner "Mconf::DigestEmail.send_weekly_digest"
end
{'fraction_non_alphanumeric': 0.10304054054054054, 'fraction_numerical': 0.0033783783783783786, 'mean_word_length': 4.5186335403726705, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '3664213', 'n_tokens_mistral': 583, 'n_tokens_neox': 558, 'n_words': 217}