<commit_before>#include <cstring>
#include <iostream>
#include <memory>
#include <spdlog/fmt/ostr.h>
#include <spdlog/spdlog.h>

extern std::shared_ptr<spdlog::logger> kDefaultLogger;

#define __FILENAME__ (std::strrchr(__FILE__, '/') ? strrchr(__FILE__, '/') + 1 : __FILE__)

#define cds_debug(fmt, ...)                                                                                            \
    do {                                                                                                               \
        kDefaultLogger->debug("[{}@{}] " fmt, __FILENAME__, __LINE__, ##__VA_ARGS__);                                  \
    } while (0)
#define cds_warn(fmt, ...)                                                                                             \
    do {                                                                                                               \
        kDefaultLogger->warn("[{}@{}] " fmt, __FILENAME__, __LINE__, ##__VA_ARGS__);                                   \
    } while (0)
#define cds_error(fmt, ...)                                                                                            \
    do {                                                                                                               \
        kDefaultLogger->error("[{}@{}] " fmt, __FILENAME__, __LINE__, ##__VA_ARGS__);                                  \
    } while (0)
#define cds_info(fmt, ...)                                                                                             \
    do {                                                                                                               \
        kDefaultLogger->info("[{}@{}] " fmt, __FILENAME__, __LINE__, ##__VA_ARGS__);                                   \
    } while (0)<commit_msg>Adding function name to log format<commit_after>#include <cstring>
#include <iostream>
#include <memory>
#include <spdlog/fmt/ostr.h>
#include <spdlog/spdlog.h>

extern std::shared_ptr<spdlog::logger> kDefaultLogger;

#define __FILENAME__ (std::strrchr(__FILE__, '/') ? strrchr(__FILE__, '/') + 1 : __FILE__)

#define cds_debug(fmt, ...)                                                                                            \
    do {                                                                                                               \
        kDefaultLogger->debug("[{}():{}@{}] " fmt, __FUNCTION__, __FILENAME__, __LINE__, ##__VA_ARGS__);                                  \
    } while (0)
#define cds_warn(fmt, ...)                                                                                             \
    do {                                                                                                               \
        kDefaultLogger->warn("[{}():{}@{}] " fmt, __FUNCTION__, __FILENAME__, __LINE__, ##__VA_ARGS__);                                   \
    } while (0)
#define cds_error(fmt, ...)                                                                                            \
    do {                                                                                                               \
        kDefaultLogger->error("[{}():{}@{}] " fmt, __FUNCTION__, __FILENAME__, __LINE__, ##__VA_ARGS__);                                  \
    } while (0)
#define cds_info(fmt, ...)                                                                                             \
    do {                                                                                                               \
        kDefaultLogger->info("[{}():{}@{}] " fmt, __FUNCTION__, __FILENAME__, __LINE__, ##__VA_ARGS__);                                   \
    } while (0)
{'fraction_non_alphanumeric': 0.10472334682860998, 'fraction_numerical': 0.002699055330634278, 'mean_word_length': 0.6282952548330404, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 23, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 76, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4695554', 'n_tokens_mistral': 717, 'n_tokens_neox': 692, 'n_words': 126}