<commit_before>/* 
 * TTModular Library
 * Copyright © 2010, <NAME>
 * 
 * License: This code is licensed under the terms of the "New BSD License"
 * http://creativecommons.org/licenses/BSD/
 */


#include "TTModular.h"

// Statics and Globals
static bool TTModularHasInitialized = false;

TTApplicationManagerPtr	TTModularApplications = NULL;

TTHashPtr TTModularNamespaces = NULL;

/****************************************************************************************************/

void TTModularInit()
{	
	// Initialized Foundation framework
	TTFoundationInit();
	
	// DEBUG
	TTObjectPtr stringTest, nodeTest;
	TTValue v;
	TTObjectInstantiate(TTSymbol("string.test"), &stringTest, kTTValNONE);
	stringTest->test(v);
	
	TTObjectInstantiate(TTSymbol("nodelib.test"), &nodeTest, kTTValNONE);
	nodeTest->test(v);
	
	if (!TTModularHasInitialized) {
		
		TTModularHasInitialized = true;
		
		// register classes -- both internal and external
		TTApplication::registerClass();
		TTApplicationManager::registerClass();
		TTContainer::registerClass();
		TTCue::registerClass();
		TTCueManager::registerClass();
		TTData::registerClass();
		TTExplorer::registerClass();
		TTInput::registerClass();
		TTMapper::registerClass();
		TTMapperManager::registerClass();
		TTMirror::registerClass();
		TTOpmlHandler::registerClass();<commit_msg>Launching the symbol.test during the Modular initialisation in order to debug it easily<commit_after>/* 
 * TTModular Library
 * Copyright © 2010, <NAME>
 * 
 * License: This code is licensed under the terms of the "New BSD License"
 * http://creativecommons.org/licenses/BSD/
 */


#include "TTModular.h"

// Statics and Globals
static bool TTModularHasInitialized = false;

TTApplicationManagerPtr	TTModularApplications = NULL;

TTHashPtr TTModularNamespaces = NULL;

/****************************************************************************************************/

void TTModularInit()
{	
	// Initialized Foundation framework
	TTFoundationInit();
	
	// DEBUG
	TTObjectPtr stringTest = NULL, symbolTest = NULL, nodeTest = NULL;
	TTValue v;
	
	TTObjectInstantiate(TTSymbol("string.test"), &stringTest, kTTValNONE);
	stringTest->test(v);
	
	TTObjectInstantiate(TTSymbol("symbol.test"), &symbolTest, kTTValNONE);
	symbolTest->test(v);
	
	TTObjectInstantiate(TTSymbol("nodelib.test"), &nodeTest, kTTValNONE);
	nodeTest->test(v);
	
	if (!TTModularHasInitialized) {
		
		TTModularHasInitialized = true;
		
		// register classes -- both internal and external
		TTApplication::registerClass();
		TTApplicationManager::registerClass();
		TTContainer::registerClass();
		TTCue::registerClass();
		TTCueManager::registerClass();
		TTData::registerClass();
		TTExplorer::registerClass();
		TTInput::registerClass();
		TTMapper::registerClass();
		TTMapperManager::registerClass();
		TTMirror::registerClass();
		TTOpmlHandler::registerClass();
{'fraction_non_alphanumeric': 0.18482422554820746, 'fraction_numerical': 0.0027845457709711106, 'mean_word_length': 6.0962962962962965, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 10, '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': '4526105', 'n_tokens_mistral': 907, 'n_tokens_neox': 813, 'n_words': 175}