<commit_before>begin
  require 'delayed/jruby_worker'
  worker = Delayed::JRubyWorker.new(:quiet => true)
  worker.start
rescue => e
  if defined?(Rails.logger)
    Rails.logger.fatal(e)<commit_msg>set DJ Worker options from ENV just like rake work does<commit_after>begin
  require 'delayed/jruby_worker'
  worker = Delayed::JRubyWorker.new(
    :min_priority => ENV['MIN_PRIORITY'],
    :max_priority => ENV['MAX_PRIORITY'],
    :queues => (ENV['QUEUES'] || ENV['QUEUE'] || '').split(','),
    :quiet => true
  )
  worker.start
rescue => e
  if defined?(Rails.logger)
    Rails.logger.fatal(e)
{'fraction_non_alphanumeric': 0.15798319327731092, 'fraction_numerical': 0.0, 'mean_word_length': 4.467889908256881, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 10, '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': '3503542', 'n_tokens_mistral': 227, 'n_tokens_neox': 215, 'n_words': 42}