<commit_before>#include "demo.h"

Demo::Demo(void) {
	this->root = NULL;
	this->sceneMgr = NULL;
	this->window = NULL;
	
	this->resourcesCfg = "resources.cfg";
	this->pluginsCfg = "plugins.cfg";
	
	this->camera = NULL;
	
	this->shutDown = false;
}

//------------------------------------------------------------------------------

Demo::~Demo(void) {
	// remove ourself as a Window listener
	Ogre::WindowEventUtilities::removeWindowEventListener(this->window, this);
	windowClosed(this->window);
}

//------------------------------------------------------------------------------

bool Demo::start(void) {
	// construct Ogre::Root
	this->root = new Ogre::Root(this->pluginsCfg);<commit_msg>Chargement des fichiers plugins.cfg et resources.cfg en fonction du mode de compilation (Debug ou Release)<commit_after>#include "demo.h"

Demo::Demo(void) {
	this->root = NULL;
	this->sceneMgr = NULL;
	this->window = NULL;
	
#ifdef _DEBUG
	this->resourcesCfg = "resources_d.cfg";
#else
	this->resourcesCfg = "resources.cfg";
#endif

#ifdef _DEBUG
	this->pluginsCfg = "plugins_d.cfg";
#else
	this->pluginsCfg = "plugins.cfg";
#endif
	
	this->camera = NULL;
	
	this->shutDown = false;
}

//------------------------------------------------------------------------------

Demo::~Demo(void) {
	// remove ourself as a Window listener
	Ogre::WindowEventUtilities::removeWindowEventListener(this->window, this);
	windowClosed(this->window);
}

//------------------------------------------------------------------------------

bool Demo::start(void) {
	// construct Ogre::Root
	this->root = new Ogre::Root(this->pluginsCfg);
{'fraction_non_alphanumeric': 0.32627646326276466, 'fraction_numerical': 0.0, 'mean_word_length': 1.9759259259259259, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 27, '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': '5723580', 'n_tokens_mistral': 470, 'n_tokens_neox': 451, 'n_words': 93}