<commit_before>/***********************************************************************************************************************
 * logger.cpp
 *
 *  Created on: Nov 2, 2010
 *      Author: <NAME>
 **********************************************************************************************************************/

#include "logger.h"
#include <iostream>
#include "Log.h"
#include "LogTester.h"
#include <QCoreApplication>

Q_EXPORT_PLUGIN2( logger, Logger::LoggerPlugin )

namespace Logger {

bool LoggerPlugin::initialize(Envision::EnvisionManager&)
{
	std::cout << "here" << std::endl;
	return true;
}

void LoggerPlugin::selfTest(QString)
{
	LogTester lt;
	lt.runTests();
	qApp->processEvents();
	if (lt.allTestsOK())<commit_msg>Removed a debug print on initialization.<commit_after>/***********************************************************************************************************************
 * logger.cpp
 *
 *  Created on: Nov 2, 2010
 *      Author: <NAME>
 **********************************************************************************************************************/

#include "logger.h"
#include <iostream>
#include "Log.h"
#include "LogTester.h"
#include <QCoreApplication>

Q_EXPORT_PLUGIN2( logger, Logger::LoggerPlugin )

namespace Logger {

bool LoggerPlugin::initialize(Envision::EnvisionManager&)
{
	return true;
}

void LoggerPlugin::selfTest(QString)
{
	LogTester lt;
	lt.runTests();
	qApp->processEvents();
	if (lt.allTestsOK())
{'fraction_non_alphanumeric': 0.42162162162162165, 'fraction_numerical': 0.008108108108108109, 'mean_word_length': 8.085889570552148, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 11, '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': '5861805', 'n_tokens_mistral': 411, 'n_tokens_neox': 382, 'n_words': 79}