<commit_before># encoding: UTF-8

module AMQP
  def self.start_web_dispatcher(*args)
    p "web worker args: #{args.inspect}"
    if defined?(PhusionPassenger) 
      PhusionPassenger.on_event(:starting_worker_process) do |forked| 
        if forked
          EM.kill_reactor
          Thread.current[:mq] = nil 
          @conn = nil
        end 
        th = Thread.current 
        Thread.new{ <commit_msg>rm debugging<commit_after># encoding: UTF-8

module AMQP
  def self.start_web_dispatcher(*args)
    if defined?(PhusionPassenger) 
      PhusionPassenger.on_event(:starting_worker_process) do |forked| 
        if forked
          EM.kill_reactor
          Thread.current[:mq] = nil 
          @conn = nil
        end 
        th = Thread.current 
        Thread.new{ 
{'fraction_non_alphanumeric': 0.08891752577319588, 'fraction_numerical': 0.002577319587628866, 'mean_word_length': 2.264705882352941, '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': '3348429', 'n_tokens_mistral': 256, 'n_tokens_neox': 238, 'n_words': 52}