<commit_before>require "rubygems"
require "rails"
require "rails/test_help"
require "pry"
require "database_cleaner"
require "shoulda/context"
require "turn"
require "logeater"

DatabaseCleaner.strategy = :truncation
DatabaseCleaner.clean

DatabaseCleaner.strategy = :transaction

class ActiveSupport::TestCase
  
  setup do
    DatabaseCleaner.start
  end
  
  teardown do
    DatabaseCleaner.clean
  end
  
end
<commit_msg>[fix] Used the test database when running tests (5m)<commit_after>ENV["RAILS_ENV"] = "test"
require "rubygems"
require "rails"
require "rails/test_help"
require "pry"
require "database_cleaner"
require "shoulda/context"
require "turn"
require "logeater"

load File.expand_path("../../db/schema.rb", __FILE__)

DatabaseCleaner.strategy = :truncation
DatabaseCleaner.clean

DatabaseCleaner.strategy = :transaction

class ActiveSupport::TestCase
  
  setup do
    DatabaseCleaner.start
  end
  
  teardown do
    DatabaseCleaner.clean
  end
  
end

{'fraction_non_alphanumeric': 0.09175257731958762, 'fraction_numerical': 0.0010309278350515464, 'mean_word_length': 4.957055214723926, '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': '4077777', 'n_tokens_mistral': 326, 'n_tokens_neox': 317, 'n_words': 77}