<commit_before>class InMemoryAdapter
  attr_accessor :db

  def initialize
    @db = []
  end

  def all
    db
  end

  def find(id)

  end

  def create!(params = {})
    @db << OpenStruct.new(params.merge(id: @db.count))
    @db.last
  end

  def count
    @db.count
  end

  def not_found_error_class
    StandardError
  end

  def record_invalid_error_class
    StandardError
  end
end<commit_msg>Fake roles adapter<commit_after>class InMemoryAdapter
  attr_accessor :db
  class FakeRoles
    def where(*args)
      self
    end

    def count
      self
    end
  end

  def initialize
    @db = []
  end

  def all
    db
  end

  def find(id)

  end

  def create!(params = {})
    @db << OpenStruct.new(params.merge(id: @db.count, roles: FakeRoles.new))
    @db.last
  end

  def count
    @db.count
  end

  def not_found_error_class
    StandardError
  end

  def record_invalid_error_class
    StandardError
  end
end
{'fraction_non_alphanumeric': 0.07534983853606028, 'fraction_numerical': 0.0, 'mean_word_length': 2.4444444444444446, 'pattern_counts': {'":': 0, '<': 7, '<?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': '4605713', 'n_tokens_mistral': 342, 'n_tokens_neox': 326, 'n_words': 84}