<commit_before>#ifndef XAPIAND_INCLUDED_UTILS_H
#define XAPIAND_INCLUDED_UTILS_H

#include <string>

void log(void *obj, const char *fmt, ...);

std::string repr(const char *p, size_t size);
std::string repr(const std::string &string);

#define LOG(...) log(__VA_ARGS__)
#define LOG_EV(...) log(__VA_ARGS__)
#define LOG_CONN(...) log(__VA_ARGS__)
#define LOG_OBJ(...) log(__VA_ARGS__)
#define LOG_ERR(...) log(__VA_ARGS__)
#define LOG_HTTP_PROTO(...) log(__VA_ARGS__)<commit_msg>Do not log object lives<commit_after>#ifndef XAPIAND_INCLUDED_UTILS_H
#define XAPIAND_INCLUDED_UTILS_H

#include <string>

void log(void *obj, const char *fmt, ...);

std::string repr(const char *p, size_t size);
std::string repr(const std::string &string);

#define LOG(...) log(__VA_ARGS__)
#define LOG_EV(...) log(__VA_ARGS__)
#define LOG_CONN(...) log(__VA_ARGS__)
#define LOG_OBJ(...)
#define LOG_ERR(...) log(__VA_ARGS__)
#define LOG_HTTP_PROTO(...) log(__VA_ARGS__)
{'fraction_non_alphanumeric': 0.16824395373291273, 'fraction_numerical': 0.0, 'mean_word_length': 6.104477611940299, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '559309', 'n_tokens_mistral': 361, 'n_tokens_neox': 354, 'n_words': 82}