<commit_before>require 'pathname'

dir = Pathname(__FILE__).dirname.expand_path + 'dm-ambition'

require dir / 'collection'
require dir / 'model'
require dir / 'query'
require dir / 'version'

module DataMapper
  class Collection
    include Ambition::Collection
  end

  module Model
    include Ambition::Model
  end

  class Query
    include Ambition::Query
  end

  if Gem::Version.new(DataMapper::VERSION) < Gem::Version.new('0.10')
    module Model
      def self.descendants<commit_msg>Removed usage of Pathname when requiring lib files<commit_after>require 'dm-ambition/collection'
require 'dm-ambition/model'
require 'dm-ambition/query'
require 'dm-ambition/version'

module DataMapper
  class Collection
    include Ambition::Collection
  end

  module Model
    include Ambition::Model
  end

  class Query
    include Ambition::Query
  end

  if Gem::Version.new(DataMapper::VERSION) < Gem::Version.new('0.10')
    module Model
      def self.descendants
{'fraction_non_alphanumeric': 0.09410548086866598, 'fraction_numerical': 0.0062047569803516025, 'mean_word_length': 4.041666666666667, 'pattern_counts': {'":': 0, '<': 5, '<?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': '2051527', 'n_tokens_mistral': 297, 'n_tokens_neox': 286, 'n_words': 79}