<commit_before>require 'yaml'

class IntegrationSpecHelper
	def self.InitializeMongo
	  config = YAML.load_file('config/config.yml')
	  MongoMapper.connection = Mongo::Connection.new(config['database']['host'])
	  MongoMapper.database = config['database']['name']
	  if config['database'].has_key? 'username'
 +         MongoMapper.connection[config['database']['name']].authenticate(config['database']['username'], config['database']['password'])
 +        else
 +          MongoMapper.connection[config['database']['name']]
 +        end
	end
end<commit_msg>integraton spec don't need auth against mongo<commit_after>require 'yaml'
require 'mongo_mapper'

class IntegrationSpecHelper
  def self.InitializeMongo
    config = YAML.load_file('config/config.yml')
    MongoMapper.connection = Mongo::Connection.new(config['database']['host'])
    MongoMapper.database = config['database']['name']
  end
end
{'fraction_non_alphanumeric': 0.14933628318584072, 'fraction_numerical': 0.0, 'mean_word_length': 5.557971014492754, 'pattern_counts': {'":': 0, '<': 3, '<?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': '2467339', 'n_tokens_mistral': 266, 'n_tokens_neox': 253, 'n_words': 43}