<commit_before>require "logger"
require "mongoid"

module FReCon
	class Database
		def self.setup(environment = :development)
			Mongoid.load!(File.join(File.dirname(__FILE__), "mongoid.yml"), environment)

			Mongoid.logger.level = Logger::DEBUG
			Mongoid.logger = Logger.new($stdout)

			Moped.logger.level = Logger::DEBUG
			Moped.logger = Logger.new($stdout)

			Dir.glob(File.join(File.dirname(__FILE__), "models/*.rb")).each do |file|
				require_relative file
			end
		end
	end
end<commit_msg>Remove require_relative in db.rb<commit_after>require "logger"
require "mongoid"
require "frecon/models"

module FReCon
	class Database
		def self.setup(environment = :development)
			Mongoid.load!(File.join(File.dirname(__FILE__), "mongoid.yml"), environment)

			Mongoid.logger.level = Logger::DEBUG
			Mongoid.logger = Logger.new($stdout)

			Moped.logger.level = Logger::DEBUG
			Moped.logger = Logger.new($stdout)
		end
	end
end
{'fraction_non_alphanumeric': 0.1284796573875803, 'fraction_numerical': 0.0, 'mean_word_length': 4.701219512195122, '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': '6839267', 'n_tokens_mistral': 348, 'n_tokens_neox': 307, 'n_words': 61}