<commit_before>require 'spork'

Spork.prefork do
  # Requires supporting ruby files with custom matchers and macros, etc,
  # in spec/support/ and its subdirectories.
  require 'rspec'
  require 'fake_braintree'
  require 'timecop'
  require 'bourne'
  Dir[File.join(File.dirname(__FILE__), "support/**/*.rb")].each {|f| require f}

  Dir.mkdir('tmp') unless File.directory?('tmp')
  File.new('tmp/braintree_log', 'w').close

  TEST_CC_NUMBER = %w(4111 1111 1111 1111).join<commit_msg>Move into a method.<commit_after>require 'spork'

Spork.prefork do
  require 'rspec'
  require 'fake_braintree'
  require 'timecop'
  require 'bourne'

  def clear_braintree_log
    Dir.mkdir('tmp') unless File.directory?('tmp')
    File.new('tmp/braintree_log', 'w').close
  end

  Dir[File.join(File.dirname(__FILE__), "support/**/*.rb")].each {|f| require f}

  clear_braintree_log

  TEST_CC_NUMBER = %w(4111 1111 1111 1111).join
{'fraction_non_alphanumeric': 0.1437908496732026, 'fraction_numerical': 0.034858387799564274, 'mean_word_length': 4.638036809815951, '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': '5789460', 'n_tokens_mistral': 363, 'n_tokens_neox': 330, 'n_words': 75}