<commit_before>require "aws-sdk-core"

sqs = Aws::SQS::Client.new(region: 'us-east-1')

queue_urls = sqs.list_queues(queue_name_prefix: "widow-")[:queue_urls]

queue = nil
puts "Choose a queue:"

while queue.nil? do
  index = 0
  queue_urls.each do |queueName|
    puts index.to_s + ": " + queueName
  end

  puts "\nQueue number:"
  index = gets.chomp.to_i

  if queue_urls[index]
    queue = queue_urls[index]
  end

end


puts "\nWhat message?"
message = gets.chomp

puts "\nHow many times?"
times = gets.chomp.to_i

puts "\n\nSending message below #{times} times to queue #{queue}"
puts message

times.times do
  sqs.send_message(<commit_msg>Minor fix for queue indices in the test script<commit_after>require "aws-sdk-core"

sqs = Aws::SQS::Client.new(region: 'us-east-1')

queue_urls = sqs.list_queues(queue_name_prefix: "widow-")[:queue_urls]

queue = nil
puts "Choose a queue:"

while queue.nil? do
  index = 0
  queue_urls.each do |queueName|
    puts index.to_s + ": " + queueName
    index = index.succ
  end

  puts "\nQueue number:"
  index = gets.chomp.to_i

  if queue_urls[index]
    queue = queue_urls[index]
  end

end


puts "\nWhat message?"
message = gets.chomp

puts "\nHow many times?"
times = gets.chomp.to_i

puts "\n\nSending message below #{times} times to queue #{queue}"
puts message

times.times do
  sqs.send_message(
{'fraction_non_alphanumeric': 0.12759643916913946, 'fraction_numerical': 0.002967359050445104, 'mean_word_length': 3.835125448028674, 'pattern_counts': {'":': 2, '<': 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': '4569018', 'n_tokens_mistral': 524, 'n_tokens_neox': 523, 'n_words': 133}