<commit_before>#!/usr/bin/env ruby
require 'json'
require 'bunny'

conn = Bunny.new 'amqp://guest:guest@172.23.25.65:5672'
conn.start

ch = conn.create_channel
tqone  = ch.queue(ARGV.first)
x  = ch.default_exchange

msg =  {
  handler:             'chef',
  run_list:            'recipe[chef-metal::nextranet]',
  override_attributes: {}
}

puts "Sending #{msg.to_json} -> #{ARGV.first}"
x.publish(msg.to_json, routing_key: tqone.name)
conn.close<commit_msg>Make send testscript more relevant.<commit_after>#!/usr/bin/env ruby
require 'json'
require 'bunny'

conn = Bunny.new 'amqp://orc-agent:<EMAIL>:5672'
conn.start

ch = conn.create_channel
q  = ch.queue(ARGV.first)
x  = ch.default_exchange

msg =  {
  handler:             'chef',
  run_list:            'recipe[your_webapp:redeploy]',
  override_attributes: { branch: 'ticket-3902',
                         treeish: '93a7de' }
}

puts "Sending #{msg.to_json} -> #{ARGV.first}"
x.publish(msg.to_json, routing_key: q.name)
conn.close
{'fraction_non_alphanumeric': 0.1557128412537917, 'fraction_numerical': 0.024266936299292215, 'mean_word_length': 3.3805309734513274, 'pattern_counts': {'":': 0, '<': 4, '<?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': '6170387', 'n_tokens_mistral': 411, 'n_tokens_neox': 382, 'n_words': 67}