<commit_before>require 'skimlinks'
require 'webmock/rspec'
require 'vcr'
require 'ffaker'

VCR.configure do |config|
  config.hook_into :webmock
  config.cassette_library_dir = 'spec/fixtures/vcr_cassettes'
  config.default_cassette_options = {
    record:            :new_episodes,
    match_requests_on: [:method, VCR.request_matchers.uri_without_param(:key)]
  }
end

RSpec.configure do |config|
  config.treat_symbols_as_metadata_keys_with_true_values = true
  config.run_all_when_everything_filtered = true
  config.filter_run :focus

  config.order = 'random'
end

def valid_value_for_config(key)
  valid_values_const_name        = "VALID_#{key.to_s.pluralize.upcase}"
  valid_value_classes_const_name = "VALID_#{key.to_s.upcase}_CLASSES"
  case<commit_msg>Remove newline<commit_after>require 'skimlinks'
require 'webmock/rspec'
require 'vcr'
require 'ffaker'

VCR.configure do |config|
  config.hook_into :webmock
  config.cassette_library_dir = 'spec/fixtures/vcr_cassettes'
  config.default_cassette_options = {
    record:            :new_episodes,
    match_requests_on: [:method, VCR.request_matchers.uri_without_param(:key)]
  }
end

RSpec.configure do |config|
  config.treat_symbols_as_metadata_keys_with_true_values = true
  config.run_all_when_everything_filtered = true
  config.filter_run :focus
  config.order = 'random'
end

def valid_value_for_config(key)
  valid_values_const_name        = "VALID_#{key.to_s.pluralize.upcase}"
  valid_value_classes_const_name = "VALID_#{key.to_s.upcase}_CLASSES"
  case
{'fraction_non_alphanumeric': 0.09436435124508519, 'fraction_numerical': 0.0, 'mean_word_length': 5.33609958506224, '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': '6844984', 'n_tokens_mistral': 566, 'n_tokens_neox': 564, 'n_words': 82}