<commit_before>//
// Created by david on 2019-03-27.
//

#pragma once
#include <spdlog/logger.h>
#if defined(SPDLOG_FMT_EXTERNAL)
#include <fmt/ranges.h>
#include <fmt/ostream.h>
#else
#include <spdlog/fmt/bundled/ranges.h>
#include <spdlog/fmt/bundled/ostream.h>
#endif

namespace Logger{
    extern void enableTimeStamp(std::shared_ptr<spdlog::logger> &log);
    extern void disableTimeStamp(std::shared_ptr<spdlog::logger> &log);
    extern void setLogLevel(std::shared_ptr<spdlog::logger> &log, size_t levelZeroToSix);
    extern size_t getLogLevel(std::shared_ptr<spdlog::logger> &log);
    extern void setLogger(std::shared_ptr<spdlog::logger> &log, std::string name, size_t levelZeroToSix = 2, bool timestamp = true);
    extern std::shared_ptr<spdlog::logger>  setLogger(std::string name, size_t levelZeroToSix = 2, bool timestamp = true);
}
<commit_msg>Fixed crash on ci due to missing spdlog include<commit_after>//
// Created by david on 2019-03-27.
//

#pragma once
#include <spdlog/spdlog.h>
#if defined(SPDLOG_FMT_EXTERNAL)
#include <fmt/ranges.h>
#include <fmt/ostream.h>
#else
#include <spdlog/fmt/bundled/ranges.h>
#include <spdlog/fmt/bundled/ostream.h>
#endif

namespace Logger{
    extern void enableTimeStamp(std::shared_ptr<spdlog::logger> &log);
    extern void disableTimeStamp(std::shared_ptr<spdlog::logger> &log);
    extern void setLogLevel(std::shared_ptr<spdlog::logger> &log, size_t levelZeroToSix);
    extern size_t getLogLevel(std::shared_ptr<spdlog::logger> &log);
    extern void setLogger(std::shared_ptr<spdlog::logger> &log, std::string name, size_t levelZeroToSix = 2, bool timestamp = true);
    extern std::shared_ptr<spdlog::logger>  setLogger(std::string name, size_t levelZeroToSix = 2, bool timestamp = true);
}

{'fraction_non_alphanumeric': 0.13879408418657566, 'fraction_numerical': 0.011376564277588168, 'mean_word_length': 6.00796812749004, 'pattern_counts': {'":': 0, '<': 25, '<?xml version=': 0, '>': 25, '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': '3067303', 'n_tokens_mistral': 655, 'n_tokens_neox': 636, 'n_words': 136}