<commit_before>Mongoid::Criteria.class_eval do
  def relation *args, &block
    self
  end

  def base
    klass
  end
end

<commit_msg>Mock some AR::Relation methods about tables<commit_after>require 'delegate'

Mongoid::Criteria.class_eval do
  def relation *args, &block
    self
  end

  def base
    klass
  end

  def table
    CollectionTable.new(klass.collection)
  end

  class CollectionTable < SimpleDelegator
    def from(*a)
      self
    end
  end
end


{'fraction_non_alphanumeric': 0.0641025641025641, 'fraction_numerical': 0.0, 'mean_word_length': 3.043103448275862, 'pattern_counts': {'":': 0, '<': 4, '<?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': '7041625', 'n_tokens_mistral': 157, 'n_tokens_neox': 154, 'n_words': 45}