<commit_before>module Flamingo
  FLAMINGO_SLEEP_DELAY = ENV['FLAMINGO_SLEEP_DELAY'].to_i || 0
  module Daemon
    class Flamingod

      def exit_signaled?
        @exit_signaled
      end

      def exit_signaled=(val)
        @exit_signaled = val
      end

      def start_new_wader
        wader = WaderProcess.new
        # wader.start
        wader
      end

      def start_new_dispatcher
        dispatcher = DispatcherProcess.new
        # dispatcher.start
        dispatcher
      end

      def start_new_server
        server = ServerProcess.new
        server.start
        server
      end

      def trap_signals
        trap("TERM") { terminate! }
        trap("INT")  { terminate! }
        trap("USR1") { restart_wader }
      end
<commit_msg>Oops - left some important stuff commented out while exploring<commit_after>module Flamingo
  FLAMINGO_SLEEP_DELAY = ENV['FLAMINGO_SLEEP_DELAY'].to_i || 0
  module Daemon
    class Flamingod

      def exit_signaled?
        @exit_signaled
      end

      def exit_signaled=(val)
        @exit_signaled = val
      end

      def start_new_wader
        wader = WaderProcess.new
        wader.start
        wader
      end

      def start_new_dispatcher
        dispatcher = DispatcherProcess.new
        dispatcher.start
        dispatcher
      end

      def start_new_server
        server = ServerProcess.new
        server.start
        server
      end

      def trap_signals
        trap("TERM") { terminate! }
        trap("INT")  { terminate! }
        trap("USR1") { restart_wader }
      end

{'fraction_non_alphanumeric': 0.061822817080943275, 'fraction_numerical': 0.0025493945188017845, 'mean_word_length': 1.8807339449541285, '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': '950088', 'n_tokens_mistral': 503, 'n_tokens_neox': 488, 'n_words': 104}