<commit_before>require 'chronic'

# https://github.com/ssoroka/scheduler_daemon for help
class ManagementInformationV2GenerationTask < Scheduler::SchedulerTask
  every '1d', first_at: Chronic.parse('next 2:50 am')

  def run
    LogStuff.info { 'AGFS Management Information Generation V2 started' }
    Stats::StatsReportGenerator.call('management_information_v2')
    LogStuff.info { 'AGFS Management Information Generation V2 finished' }
  rescue StandardError => e
    LogStuff.error { 'AGFS Management Information Generation V2 error: ' + e.message }
  end
end<commit_msg>Correct log output for scheduler<commit_after>require 'chronic'

# https://github.com/ssoroka/scheduler_daemon for help
class ManagementInformationV2GenerationTask < Scheduler::SchedulerTask
  every '1d', first_at: Chronic.parse('next 2:50 am')

  def run
    LogStuff.info { 'Management Information Generation V2 started' }
    Stats::StatsReportGenerator.call('management_information_v2')
    LogStuff.info { 'Management Information Generation V2 finished' }
  rescue StandardError => e
    LogStuff.error { 'Management Information Generation V2 error: ' + e.message }
  end
end
{'fraction_non_alphanumeric': 0.08996539792387544, 'fraction_numerical': 0.015570934256055362, 'mean_word_length': 5.288043478260869, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, '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': '5525489', 'n_tokens_mistral': 339, 'n_tokens_neox': 329, 'n_words': 88}