<commit_before># Declare sidekiq-cron jobs (sidekiq workers that must be run periodically)
#
# cron format: (minute hour day-of-month month day-of-week)

Sidekiq.configure_server do |config|
  Sidekiq::Cron::Job.create name: 'Cleanup old invitations - daily at 2AM',
                            cron: '0 2 * * *',
                            klass: 'CleanupInvitationsWorker',
                            queue: :maintenance

  Sidekiq::Cron::Job.create name: 'Cleanup old signups - daily at 3AM',
                            cron: '0 3 * * *',
                            klass: 'CleanupSignupsWorker',
                            queue: :maintenance

  Sidekiq::Cron::Job.create name: 'Cleanup old signups - daily at 4AM',
                            cron: '0 4 * * *',
                            klass: 'DestroyOldJobStatesWorker',
                            queue: :maintenance

  Sidekiq::Cron::Job.create name: 'Restore missing scheduled feed updates - daily at 5AM',
                            cron: '0 5 * * *',
                            klass: 'FixSchedulesWorker',
                            queue: :maintenance

  Sidekiq::Cron::Job.create name: 'Reset the demo user - hourly',
                            cron: '0 * * * *',
                            klass: 'ResetDemoUserWorker',
                            queue: :maintenance

  Sidekiq::Cron::Job.create name: 'Update the statistics of the Rails cache - every 10 minutes',
                            cron: '*/10 * * * *',
                            klass: 'UpdateRedisCacheStatsWorker',
                            queue: :maintenance
end<commit_msg>Run FixSchedulesWorker daily at 6AM instead of 5AM.<commit_after># Declare sidekiq-cron jobs (sidekiq workers that must be run periodically)
#
# cron format: (minute hour day-of-month month day-of-week)

Sidekiq.configure_server do |config|
  Sidekiq::Cron::Job.create name: 'Cleanup old invitations - daily at 2AM',
                            cron: '0 2 * * *',
                            klass: 'CleanupInvitationsWorker',
                            queue: :maintenance

  Sidekiq::Cron::Job.create name: 'Cleanup old signups - daily at 3AM',
                            cron: '0 3 * * *',
                            klass: 'CleanupSignupsWorker',
                            queue: :maintenance

  Sidekiq::Cron::Job.create name: 'Cleanup old signups - daily at 4AM',
                            cron: '0 4 * * *',
                            klass: 'DestroyOldJobStatesWorker',
                            queue: :maintenance

  Sidekiq::Cron::Job.create name: 'Restore missing scheduled feed updates - daily at 6AM',
                            cron: '0 6 * * *',
                            klass: 'FixSchedulesWorker',
                            queue: :maintenance

  Sidekiq::Cron::Job.create name: 'Reset the demo user - hourly',
                            cron: '0 * * * *',
                            klass: 'ResetDemoUserWorker',
                            queue: :maintenance

  Sidekiq::Cron::Job.create name: 'Update the statistics of the Rails cache - every 10 minutes',
                            cron: '*/10 * * * *',
                            klass: 'UpdateRedisCacheStatsWorker',
                            queue: :maintenance
end
{'fraction_non_alphanumeric': 0.0982360097323601, 'fraction_numerical': 0.010948905109489052, 'mean_word_length': 1.392, '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': '4607536', 'n_tokens_mistral': 896, 'n_tokens_neox': 860, 'n_words': 236}