<commit_before>require 'bundler/setup'
require 'json_schema/artesano'

RSpec.configure do |config|
  config.example_status_persistence_file_path = ".rspec_status"

  config.disable_monkey_patching!
  config.filter_run_when_matching :focus
  config.order = :random

  config.expect_with :rspec do |c|
    c.syntax = :expect
  end
end<commit_msg>Add #support_sketch helper method to load schemas located in spec/support/ forderl.<commit_after>require 'bundler/setup'
require 'json_schema/artesano'

RSpec.configure do |config|
  config.example_status_persistence_file_path = ".rspec_status"

  config.disable_monkey_patching!
  config.filter_run_when_matching :focus
  config.order = :random

  config.expect_with :rspec do |c|
    c.syntax = :expect
  end
end

def support_sketch(name)
  schema_path = File.expand_path("../support/#{name}.json", __FILE__)
  JSON.parse( File.read(schema_path) )
end
{'fraction_non_alphanumeric': 0.09921962095875139, 'fraction_numerical': 0.0, 'mean_word_length': 5.27972027972028, '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': '3667218', 'n_tokens_mistral': 311, 'n_tokens_neox': 304, 'n_words': 61}