<commit_before>require 'rubygems'
require 'dripdrop/agent'

agent = DripDrop::Agent.new(ZMQ::PUB,'tcp://127.0.0.1:2900',:connect)

loop do
  #Test is the message name, this is the first part of the 0MQ message, used for filtering
  #at the 0MQ sub socket level, :head is always a hash,  :body is freeform
  #EVERYTHING must be serializable to BERT
  agent.send_message('test', :body => 'hello', :head => {:key => 'value'})
  puts "SEND"
  sleep 1
end<commit_msg>Add todo note to agent test<commit_after>##
##TODO: This badly needs to be rewritten
##

require 'rubygems'
require 'dripdrop/agent'

agent = DripDrop::Agent.new(ZMQ::PUB,'tcp://127.0.0.1:2900',:connect)

loop do
  agent.send_message('test', :body => 'hello', :head => {:key => 'value'})
  puts "SEND"
  sleep 1
end
{'fraction_non_alphanumeric': 0.15444015444015444, 'fraction_numerical': 0.03088803088803089, 'mean_word_length': 4.720588235294118, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '3585708', 'n_tokens_mistral': 303, 'n_tokens_neox': 284, 'n_words': 87}