<commit_before>require 'factory_girl'
require 'pry'
require 'simplecov'
require 'sidekiq'
require 'sidekiq/testing'

SimpleCov.start do
  coverage_dir 'tmp/coverage'
end

require 'rekiq'

# configure sidekiq for testing
Sidekiq::Testing.fake!
Sidekiq::Logging.logger = nil

RSpec.configure do |config|
  config.include FactoryGirl::Syntax::Methods

  config.before(:each) do
    Sidekiq::Worker.clear_all
    Redis.new.flushdb
  end

  config.after(:suite) do
    Sidekiq::Worker.clear_all
    Redis.new.flushdb
  end
end

# configure factory girl
FactoryGirl.definition_file_paths = %w{./spec/factories}
FactoryGirl.find_definitions<commit_msg>removing redis flush (used for old job)<commit_after>require 'factory_girl'
require 'pry'
require 'simplecov'
require 'sidekiq'
require 'sidekiq/testing'

SimpleCov.start do
  coverage_dir 'tmp/coverage'
end

require 'rekiq'

# configure sidekiq for testing
Sidekiq::Testing.fake!
Sidekiq::Logging.logger = nil

RSpec.configure do |config|
  config.include FactoryGirl::Syntax::Methods

  config.before(:each) do
    Sidekiq::Worker.clear_all
  end

  config.after(:suite) do
    Sidekiq::Worker.clear_all
  end
end

# configure factory girl
FactoryGirl.definition_file_paths = %w{./spec/factories}
FactoryGirl.find_definitions
{'fraction_non_alphanumeric': 0.10062893081761007, 'fraction_numerical': 0.0, 'mean_word_length': 5.333333333333333, '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': '6570195', 'n_tokens_mistral': 443, 'n_tokens_neox': 433, 'n_words': 95}