<commit_before><commit_msg>added socket to initializers<commit_after>require 'em-websocket'
require 'eventmachine'

EM.next_tick {
  EventMachine::WebSocket.start(:host => "0.0.0.0", :port => 8080, :debug => true) do |ws|
    ws.onopen    {  ws.send "Hello Client!"}
    ws.onmessage { |msg| ws.send "Pong: #{msg}" }
    ws.onclose   { puts "WebSocket closed" }
  end
}
{'fraction_non_alphanumeric': 0.16531165311653118, 'fraction_numerical': 0.02168021680216802, 'mean_word_length': 4.0, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 6, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 1, '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': '3490446', 'n_tokens_mistral': 144, 'n_tokens_neox': 134, 'n_words': 30}