<commit_before>require File.expand_path(File.dirname(__FILE__) + '/../../test_helper')

# Load library
require 'rubygems'

gem 'mongoid', ENV['VERSION'] ? "=#{ENV['VERSION']}" : '>=2.0.0'
require 'mongoid'

# Establish database connection
Mongoid.configure do |config|
  config.master = Mongo::Connection.new('127.0.0.1', 27017, :slave_ok => true).db('test')<commit_msg>Update Mongoid integration test to be dependent on >= 2.0.0.rc.7<commit_after>require File.expand_path(File.dirname(__FILE__) + '/../../test_helper')

# Load library
require 'rubygems'

gem 'mongoid', ENV['VERSION'] ? "=#{ENV['VERSION']}" : '>=2.0.0.rc.7'
require 'mongoid'

# Establish database connection
Mongoid.configure do |config|
  config.master = Mongo::Connection.new('127.0.0.1', 27017, :slave_ok => true).db('test')
{'fraction_non_alphanumeric': 0.1984924623115578, 'fraction_numerical': 0.0414572864321608, 'mean_word_length': 5.42741935483871, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 8, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '4539968', 'n_tokens_mistral': 292, 'n_tokens_neox': 276, 'n_words': 57}