<commit_before>require 'rubygems'
require 'spork'

require 'coveralls'
Coveralls.wear!

Spork.prefork do
  ENV['RAILS_ENV'] ||= 'test'

  require File.expand_path('../dummy/config/environment.rb',  __FILE__)

  require 'rspec/rails'
  require 'database_cleaner'
  require 'pry'
  require 'rediska'

  Dir[File.expand_path('../support/*.rb', __FILE__)].each{|f| require f }

  RSpec.configure do |config|
    config.mock_with :rspec

    # Exclude broken tests.
    config.filter_run_excluding :broken => true
    config.filter_run :focus => true
    config.run_all_when_everything_filtered = true

    config.before(:suite) do
      DatabaseCleaner.strategy = :transaction
      DatabaseCleaner.clean_with(:truncation)
    end

    config.before(:each) do
      DatabaseCleaner.start
    end

    config.after(:each) do
      DatabaseCleaner.clean
    end

    config.after(:suite) do
      FileUtils.rm_rf(File.expand_path('../test.sqlite3', __FILE__))
    end
  end
end

Spork.each_run do
end<commit_msg>Removed redundant.<commit_after>require 'rubygems'
require 'spork'

require 'coveralls'
Coveralls.wear!

Spork.prefork do
  ENV['RAILS_ENV'] ||= 'test'

  require File.expand_path('../dummy/config/environment.rb',  __FILE__)

  require 'rspec/rails'
  require 'database_cleaner'
  require 'pry'
  require 'rediska'

  Dir[File.expand_path('../support/*.rb', __FILE__)].each{|f| require f }

  RSpec.configure do |config|
    config.mock_with :rspec

    config.before(:suite) do
      DatabaseCleaner.strategy = :transaction
      DatabaseCleaner.clean_with(:truncation)
    end

    config.before(:each) do
      DatabaseCleaner.start
    end

    config.after(:each) do
      DatabaseCleaner.clean
    end

    config.after(:suite) do
      FileUtils.rm_rf(File.expand_path('../test.sqlite3', __FILE__))
    end
  end
end
{'fraction_non_alphanumeric': 0.12137780207763806, 'fraction_numerical': 0.0010934937124111536, 'mean_word_length': 3.485294117647059, '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': '1636005', 'n_tokens_mistral': 643, 'n_tokens_neox': 609, 'n_words': 118}