<commit_before>require 'test/unit'
require 'faraday'
require 'fixtures'

$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))

require 'cardgate'

def cardgate_connection
  @connection ||= Faraday.new do |faraday|
    faraday.response :json

    faraday.adapter :test do |stubs|
      yield(stubs)
    end 
  end
end
<commit_msg>Require mocha/test_unit after rails was removed as dependency.<commit_after>require 'test/unit'
require 'mocha/test_unit'
require 'fixtures'

$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))

require 'cardgate'

def cardgate_connection
  @connection ||= Faraday.new do |faraday|
    faraday.response :json

    faraday.adapter :test do |stubs|
      yield(stubs)
    end 
  end
end

{'fraction_non_alphanumeric': 0.12516823687752354, 'fraction_numerical': 0.0, 'mean_word_length': 4.35251798561151, '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': '2715655', 'n_tokens_mistral': 270, 'n_tokens_neox': 254, 'n_words': 59}