<commit_before>require 'bundler'
Bundler.require
require_relative "../initializer"

task :stress do
  loop do
    begin
      Stresser.run_batch
    rescue StandardError => e
      Rollbar.error(e)
    end
    sleep 1
  end
end
<commit_msg>Update stress task<commit_after>require 'bundler'
Bundler.require
require_relative "../initializer"

task :stress do
  loop do
    begin
      Stresser.run_batch
    rescue StandardError => e
      puts "#{e.class}:#{e.message}\n#{e.backtrace.join("\n")}"
    else
      puts "batch completed"
    end
    sleep 1
  end
end

{'fraction_non_alphanumeric': 0.10106382978723404, 'fraction_numerical': 0.0035460992907801418, 'mean_word_length': 2.896551724137931, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '4514642', 'n_tokens_mistral': 190, 'n_tokens_neox': 191, 'n_words': 49}