<commit_before>require 'resque'
require 'resque/failure/base'
require 'resque/failure/multiple'
require 'resque/failure/redis'
require_dependency 'redis_factory'

# Load automatically all resque files from lib/resque
Dir[Rails.root.join("lib/resque/*.rb")].each {|f| require f}

Resque.redis = RedisFactory.new_connection

Resque::Failure::Multiple.classes = [Resque::Failure::Redis, ResqueFailureLogger]
Resque::Failure.backend = Resque::Failure::Multiple

## Logging
logger_stdout = STDOUT.dup
logger_stdout.sync = Rails.env.development?

Resque.logger.level = :info
Resque.logger = Carto::Common::Logger.new(logger_stdout)<commit_msg>Fix require statement<commit_after>require 'resque'
require 'resque/failure/base'
require 'resque/failure/multiple'
require 'resque/failure/redis'
require './lib/resque_failure_logger'
require_dependency 'redis_factory'

# Load automatically all resque files from lib/resque
Dir[Rails.root.join("lib/resque/*.rb")].each {|f| require f}

Resque.redis = RedisFactory.new_connection

Resque::Failure::Multiple.classes = [Resque::Failure::Redis, ResqueFailureLogger]
Resque::Failure.backend = Resque::Failure::Multiple

## Logging
logger_stdout = STDOUT.dup
logger_stdout.sync = Rails.env.development?

Resque.logger.level = :info
Resque.logger = Carto::Common::Logger.new(logger_stdout)
{'fraction_non_alphanumeric': 0.13106060606060607, 'fraction_numerical': 0.0, 'mean_word_length': 7.360759493670886, 'pattern_counts': {'":': 0, '<': 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': '5305208', 'n_tokens_mistral': 435, 'n_tokens_neox': 427, 'n_words': 77}