<commit_before>require 'coveralls'
Coveralls.wear_merged!

ENV['RACK_ENV'] = 'test'

require 'bothan'
require 'data_kitten'
require 'rack/test'
require 'webmock/rspec'
require 'database_cleaner'
require 'nokogiri'
require 'byebug'
require 'dotenv'
Dotenv.load

module RSpecMixin
  include Rack::Test::Methods
  def app
    Rack::Cascade.new [ Bothan::App, Bothan::Api], [406]
  end
end

RSpec.configure do |config|
  config.include RSpecMixin

  config.expect_with :rspec do |expectations|
    expectations.include_chain_clauses_in_custom_matcher_descriptions = true<commit_msg>require api in spec helper<commit_after>require 'coveralls'
Coveralls.wear_merged!

ENV['RACK_ENV'] = 'test'

require 'bothan'
require 'api'
require 'data_kitten'
require 'rack/test'
require 'webmock/rspec'
require 'database_cleaner'
require 'nokogiri'
require 'byebug'
require 'dotenv'
Dotenv.load

module RSpecMixin
  include Rack::Test::Methods
  def app
    Rack::Cascade.new [ Bothan::App, Bothan::Api], [406]
  end
end

RSpec.configure do |config|
  config.include RSpecMixin

  config.expect_with :rspec do |expectations|
    expectations.include_chain_clauses_in_custom_matcher_descriptions = true
{'fraction_non_alphanumeric': 0.10312764158918004, 'fraction_numerical': 0.00507185122569738, 'mean_word_length': 6.175757575757576, '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': '5749756', 'n_tokens_mistral': 426, 'n_tokens_neox': 419, 'n_words': 95}