<commit_before>require_relative 'services/job_supervisor'
require_relative 'services/worker_supervisor'
require_relative 'services/mongodb/migrator'

unless ENV['RACK_ENV'] == 'test' || ENV['NO_MONGO_PUBSUB']
  MongoPubsub.start!(PubsubChannel)
  JobSupervisor.run!
end

WorkerSupervisor.run!<commit_msg>Do not run server workers in specs (#2284)<commit_after>require_relative 'services/job_supervisor'
require_relative 'services/worker_supervisor'
require_relative 'services/mongodb/migrator'

unless ENV['RACK_ENV'] == 'test' || ENV['NO_MONGO_PUBSUB']
  MongoPubsub.start!(PubsubChannel)
  JobSupervisor.run!
  WorkerSupervisor.run!
end
{'fraction_non_alphanumeric': 0.11442006269592477, 'fraction_numerical': 0.006269592476489028, 'mean_word_length': 8.830769230769231, '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': '5967643', 'n_tokens_mistral': 228, 'n_tokens_neox': 217, 'n_words': 34}