<commit_before>require 'factory_girl'
require 'database_cleaner'

module TestEnvironment

  include FactoryGirl::Syntax::Methods

  Dir[File.expand_path('../test_environment/*.rb', __FILE__)].each do |path|
    include "TestEnvironment::#{File.basename(path, '.rb').camelize}".constantize
  end

  def before_all! test=nil

  end

  def before_each! test=nil

  end

  def after_each! test=nil

  end

  extend self

end

DatabaseCleaner.strategy = :truncation<commit_msg>the test suite now truncates all tables when it starts<commit_after>require 'factory_girl'
require 'database_cleaner'

module TestEnvironment

  include FactoryGirl::Syntax::Methods

  Dir[File.expand_path('../test_environment/*.rb', __FILE__)].each do |path|
    include "TestEnvironment::#{File.basename(path, '.rb').camelize}".constantize
  end

  def before_all! test=nil
    DatabaseCleaner.strategy = :truncation
    DatabaseCleaner.clean
  end

  def before_each! test=nil

  end

  def after_each! test=nil

  end

  extend self

end

{'fraction_non_alphanumeric': 0.10552268244575937, 'fraction_numerical': 0.0, 'mean_word_length': 4.607734806629834, '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': '5413255', 'n_tokens_mistral': 338, 'n_tokens_neox': 318, 'n_words': 75}