<commit_before>/*
  Test Simple Logger for Qt

  <NAME>, 06.2015

*/

#include <QApplication>
#include <QDir>

#include "dialog.h"
#include "simpleQtLogger.h"

int main(int argc, char *argv[])
{
  QApplication a(argc, argv);

  // initialize SimpleQtLogger (step 1/2)
  SimpleQtLogger::createInstance(qApp)->setLogFileName(QDir::home().filePath("Documents/Qt/testSimpleQtLoggerGui.log"), 10*1024, 10);
  SQTL_LOG_ENABLE_INFO = true;
  SQTL_LOG_ENABLE_DEBUG = false;
  SQTL_LOG_ENABLE_FUNCTION = true;<commit_msg>Specify log-format (example)<commit_after>/*
  Test Simple Logger for Qt

  <NAME>, 06.2015

*/

#include <QApplication>
#include <QDir>

#include "dialog.h"
#include "simpleQtLogger.h"

int main(int argc, char *argv[])
{
  QApplication a(argc, argv);

  // initialize SimpleQtLogger (step 1/2)
  SimpleQtLogger::createInstance(qApp)->setLogFormat("<TS> [<LL>] <TEXT> (<FUNC>@<FILE>:<LINE>)", "<TS> [<LL>] <TEXT>");
  SimpleQtLogger::getInstance()->setLogFileName(QDir::home().filePath("Documents/Qt/testSimpleQtLoggerGui.log"), 10*1024, 10);
  SQTL_LOG_ENABLE_INFO = true;
  SQTL_LOG_ENABLE_DEBUG = false;
  SQTL_LOG_ENABLE_FUNCTION = true;
{'fraction_non_alphanumeric': 0.16045099739809193, 'fraction_numerical': 0.027753686036426712, 'mean_word_length': 5.869047619047619, 'pattern_counts': {'":': 0, '<': 18, '<?xml version=': 0, '>': 21, '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': '7135964', 'n_tokens_mistral': 449, 'n_tokens_neox': 406, 'n_words': 82}