<commit_before>/// microLog_test.cpp

// clang++ -std=c++11 ./microLog_test.cpp
// clang++ -std=c++11 -stdlib=libc++ ./microLog_test.cpp

// These macros can also be defined in the makefile, or in microLog_config.hpp:
/*
#define MICRO_LOG_ACTIVE 1
#define MICRO_LOG_FILE_NAME "test.log"
#define MICRO_LOG_MIN_LEVEL 4
*/

#ifdef MICRO_LOG_TEST

#define MICRO_LOG_ACTIVE 1
#include "microLog.hpp"

#include <iostream>

uLOG_INIT;     // microLog initialization


int main()
{
    uLOG_START_APP("myProg.log");<commit_msg>- Test logs on ram-disk.<commit_after>/// microLog_test.cpp

// clang++ -std=c++11 ./microLog_test.cpp
// clang++ -std=c++11 -stdlib=libc++ ./microLog_test.cpp

// These macros can also be defined in the makefile, or in microLog_config.hpp:
/*
#define MICRO_LOG_ACTIVE 1
#define MICRO_LOG_FILE_NAME "test.log"
#define MICRO_LOG_MIN_LEVEL 4
*/

#ifdef MICRO_LOG_TEST

#define MICRO_LOG_ACTIVE 1
#include "microLog.hpp"

#include <iostream>
#include <string>

uLOG_INIT;     // microLog initialization


int main()
{
    std::string logPath;
    logPath.append("/Volumes/ramdisk/");
    logPath.append("myProg.log");

    std::cout << "Log file path: " << logPath << std::endl;

    uLOG_START_APP(logPath);
{'fraction_non_alphanumeric': 0.14215686274509803, 'fraction_numerical': 0.011437908496732025, 'mean_word_length': 4.212765957446808, 'pattern_counts': {'":': 0, '<': 12, '<?xml version=': 0, '>': 6, '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': '609450', 'n_tokens_mistral': 489, 'n_tokens_neox': 455, 'n_words': 105}