<commit_before>#ifndef BVS_LOGGER_H
#define BVS_LOGGER_H

#include <iostream>
#include <memory>
#include <string>

#include "bvs/traits.h"



/** Macro to use with Logger. */
#ifdef BVS_LOG_SYSTEM
#define LOG(level, args) { logger.out(level) << args << std::endl; logger.endl(); };
#else
//TODO rather inefficient, leave for now
#define LOG(level, args) { std::ostream nirvana(0); nirvana << level << args;};
#endif



/** BVS namespace, contains all library stuff. */
namespace BVS
{<commit_msg>logger: explain nirvana<commit_after>#ifndef BVS_LOGGER_H
#define BVS_LOGGER_H

#include <iostream>
#include <memory>
#include <string>

#include "bvs/traits.h"



/** Macro to use with Logger. */
#ifdef BVS_LOG_SYSTEM
#define LOG(level, args) { logger.out(level) << args << std::endl; logger.endl(); };
#else
//TODO rather inefficient, leave for now
// nirvana is used so args is evaluated in all cases
#define LOG(level, args) { std::ostream nirvana(0); nirvana << level << args;};
#endif



/** BVS namespace, contains all library stuff. */
namespace BVS
{
{'fraction_non_alphanumeric': 0.14881516587677726, 'fraction_numerical': 0.0018957345971563982, 'mean_word_length': 4.932584269662922, 'pattern_counts': {'":': 0, '<': 25, '<?xml version=': 0, '>': 9, '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': '4406193', 'n_tokens_mistral': 378, 'n_tokens_neox': 369, 'n_words': 112}