<commit_before>#!/usr/bin/env ruby

require 'bin/common'
require 'beanstalk-client'

number = ARGV[0] ? ARGV[0].to_i : 100

begin 
  @jobs = Beanstalk::Pool.new(['localhost:11300'], 'jobs')
  number.times do 
    @jobs.yput({:command => "sleep #{(1..5).to_a[rand(5)]}; echo '#{Time.now}'", 
                :params => {}, 
                :id => (1..100).to_a[rand(100)],
                :frequency => [10, 30, 60, 120][rand(4)],
                :offset => 0})
  end
rescue Beanstalk::NotConnected
  puts "beanstalk isn't up!"
  exit 2
end
  
<commit_msg>don't just do an echo, also exit weirdly<commit_after>#!/usr/bin/env ruby

require 'bin/common'
require 'beanstalk-client'

number = ARGV[0] ? ARGV[0].to_i : 100

begin 
  @jobs = Beanstalk::Pool.new(['localhost:11300'], 'jobs')
  number.times do 
    #@jobs.yput({:command => "sleep #{(1..5).to_a[rand(5)]}; echo '#{Time.now}'", 
    @jobs.yput({:command => "sleep #{(1..5).to_a[rand(5)]}; exit #{(0..2).to_a[rand(3)]}", 
                :params => {}, 
                :id => (1..100).to_a[rand(100)],
                :frequency => [10, 30, 60, 120][rand(4)],
                :offset => 0})
  end
rescue Beanstalk::NotConnected
  puts "beanstalk isn't up!"
  exit 2
end
  

{'fraction_non_alphanumeric': 0.2097560975609756, 'fraction_numerical': 0.056910569105691054, 'mean_word_length': 2.6636904761904763, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 14, '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': '5122277', 'n_tokens_mistral': 537, 'n_tokens_neox': 451, 'n_words': 94}