<commit_before>require_relative '../spec_init'

module AssertCamelKeys
  def self.call(hash)
    camel_keys? hash
  end

  def self.camel_keys?(val)
    case val
      when ::Array
        val.map { |v| camel_keys?(v) }
      when ::Hash
        val.map { |k, v| camel_case?(k); camel_keys?(v) }
      else
        val
    end<commit_msg>True is a better representation of truth<commit_after>require_relative '../spec_init'

module AssertCamelKeys
  def self.call(hash)
    camel_keys? hash
  end

  def self.camel_keys?(val)
    case val
      when ::Array
        val.map { |v| camel_keys?(v) }
      when ::Hash
        val.map { |k, v| camel_case?(k); camel_keys?(v) }
      else
        true
    end
{'fraction_non_alphanumeric': 0.11647727272727272, 'fraction_numerical': 0.0, 'mean_word_length': 2.4057971014492754, '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': '3817497', 'n_tokens_mistral': 251, 'n_tokens_neox': 250, 'n_words': 61}