<commit_before>module Hatsnipe
  class Engineer
    def initialize
    end
    def nest
      loop do
        puts "Snoozing"
        sleep(5)
      end
    end
  end
end<commit_msg>Start listening on the hatsnipe socket<commit_after>require 'socket'

module Hatsnipe
  class Engineer
    def initialize
      @socket = UNIXServer.new("/tmp/hatsnipe.sock")
    end
    def nest
      begin
        while connection = @socket.accept
          while command = connection.gets
            command = command.split(':').first
            puts command
          end
        end
      rescue SystemExit, Interrupt
        @socket.close
      end
    end
  end
end
{'fraction_non_alphanumeric': 0.057926829268292686, 'fraction_numerical': 0.001524390243902439, 'mean_word_length': 1.8565217391304347, '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': '5076070', 'n_tokens_mistral': 189, 'n_tokens_neox': 186, 'n_words': 56}