<commit_before>require 'resque/tasks'

namespace :resque do
  task :setup => :environment do
  end
end<commit_msg>Add resque airbrake config<commit_after>require 'resque/tasks'
require 'resque/failure/airbrake'

namespace :resque do
  task :setup => :environment do
    if ENV['AIRBRAKE_API_KEY']
      Resque::Failure::Multiple.classes = [Resque::Failure::Redis, Resque::Failure::Airbrake]
      Resque::Failure.backend = Resque::Failure::Multiple
    end
  end
end
{'fraction_non_alphanumeric': 0.11802575107296137, 'fraction_numerical': 0.0, 'mean_word_length': 5.3108108108108105, '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': '620662', 'n_tokens_mistral': 154, 'n_tokens_neox': 153, 'n_words': 34}