<commit_before>require 'pathname'
require 'rubygems'

gem 'activesupport'
gem 'mongodb-mongo'
gem 'jnunemaker-validatable'

require 'activesupport'
require 'mongo'
require 'validatable'

dir = Pathname(__FILE__).dirname.expand_path + 'mongo_mapper'
require dir + 'validation'
require dir + 'sub_document'
require dir + 'document'
require dir + 'key'
require dir + 'finder_options'

module MongoMapper
  class DocumentNotFound < StandardError; end
  
  def self.connection
    @@connection ||= XGen::Mongo::Driver::Mongo.new
  end
  
  def self.connection=(new_connection)
    @@connection = new_connection
  end
  
  def self.database=(name)
    @@database = MongoMapper.connection.db(name)<commit_msg>Use the load path instead of absolute paths<commit_after>require 'pathname'
require 'rubygems'

gem 'activesupport'
gem 'mongodb-mongo'
gem 'jnunemaker-validatable'

require 'activesupport'
require 'mongo'
require 'validatable'

require 'mongo_mapper/validation'
require 'mongo_mapper/sub_document'
require 'mongo_mapper/document'
require 'mongo_mapper/key'
require 'mongo_mapper/finder_options'

module MongoMapper
  class DocumentNotFound < StandardError; end
  
  def self.connection
    @@connection ||= XGen::Mongo::Driver::Mongo.new
  end
  
  def self.connection=(new_connection)
    @@connection = new_connection
  end
  
  def self.database=(name)
    @@database = MongoMapper.connection.db(name)
{'fraction_non_alphanumeric': 0.10376687988628287, 'fraction_numerical': 0.0, 'mean_word_length': 5.458715596330276, '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': '1159371', 'n_tokens_mistral': 466, 'n_tokens_neox': 452, 'n_words': 106}