<commit_before>/* 
 * TTBlue Class that maintains a table of symbols
 * Copyright © 2008, <NAME>
 * 
 * License: This code is licensed under the terms of the GNU LGPL
 * http://www.gnu.org/licenses/lgpl.html 
 */

#include "TTSymbolTable.h"
#include "TTMutex.h"

static TTMutex*				sMutex = NULL;
TTEXPORT TTSymbolTable*		ttSymbolTable = NULL;

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

TTSymbolTable::TTSymbolTable()
{
	if(!sMutex)
		sMutex = new TTMutex(true);
	symbolTable.insert(TTSymbolTablePair("", new TTSymbol("", 0))); 
}


TTSymbolTable::~TTSymbolTable()
{
	TTSymbolTableIter	iter;

	for(iter = symbolTable.begin(); iter != symbolTable.end(); iter++)<commit_msg>including TTValue.h in this source file so we don't have to include it in the header file<commit_after>/* 
 * TTBlue Class that maintains a table of symbols
 * Copyright © 2008, <NAME>
 * 
 * License: This code is licensed under the terms of the GNU LGPL
 * http://www.gnu.org/licenses/lgpl.html 
 */

#include "TTSymbolTable.h"
#include "TTMutex.h"
#include "TTValue.h"

static TTMutex*				sMutex = NULL;
TTEXPORT TTSymbolTable*		ttSymbolTable = NULL;

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

TTSymbolTable::TTSymbolTable()
{
	if(!sMutex)
		sMutex = new TTMutex(true);
	symbolTable.insert(TTSymbolTablePair("", new TTSymbol("", 0))); 
}


TTSymbolTable::~TTSymbolTable()
{
	TTSymbolTableIter	iter;

	for(iter = symbolTable.begin(); iter != symbolTable.end(); iter++)
{'fraction_non_alphanumeric': 0.24664536741214058, 'fraction_numerical': 0.006389776357827476, 'mean_word_length': 5.391836734693878, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '6513946', 'n_tokens_mistral': 522, 'n_tokens_neox': 479, 'n_words': 127}