<commit_before>require "vcr"

RSpec.configure do |config|
  config.treat_symbols_as_metadata_keys_with_true_values = true
end

VCR.configure do |vcr|
  vcr.cassette_library_dir = File.join(File.dirname(__FILE__), "../cassettes")
  vcr.allow_http_connections_when_no_cassette = false
  vcr.hook_into :excon

  vcr.configure_rspec_metadata!
  vcr.default_cassette_options = {
    :record => :new_episodes,
    #:record => :none,
    :match_requests_on => [:method, :path, :body],
    :update_content_length_header => true
  }

  # Gives lots of clues about how VCR is running
  #vcr.debug_logger = $stderr<commit_msg>Ensure VCR is not recording on normal spec runs<commit_after>require "vcr"

RSpec.configure do |config|
  config.treat_symbols_as_metadata_keys_with_true_values = true
end

VCR.configure do |vcr|
  vcr.cassette_library_dir = File.join(File.dirname(__FILE__), "../cassettes")
  vcr.allow_http_connections_when_no_cassette = false
  vcr.hook_into :excon

  vcr.configure_rspec_metadata!
  vcr.default_cassette_options = {
    #:record => :new_episodes,
    :record => :none,
    :match_requests_on => [:method, :path, :body],
    :update_content_length_header => true
  }

  # Gives lots of clues about how VCR is running
  #vcr.debug_logger = $stderr
{'fraction_non_alphanumeric': 0.1060126582278481, 'fraction_numerical': 0.0, 'mean_word_length': 4.829493087557604, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '6772418', 'n_tokens_mistral': 471, 'n_tokens_neox': 459, 'n_words': 89}