<commit_before>#ifndef LOGGING_H
#define LOGGING_H

#ifdef __ANDROID__
#define ELPP_DISABLE_DEFAULT_CRASH_HANDLING
#else // not android
#define ELPP_STACKTRACE_ON_CRASH
#endif

#define ELPP_NO_DEFAULT_LOG_FILE


#include "vendor/easylogging++.h"
#include <SenseKit/sensekit_types.h>

#define INITIALIZE_LOGGING INITIALIZE_EASYLOGGINGPP

namespace sensekit {
    void initialize_logging(const char* logFilePath, sensekit_log_severity_t severity);
}

#endif /* LOGGING_H */
<commit_msg>Gate stacktrace logging for android/windows Make note about valgrind banana-like behavior<commit_after>#ifndef LOGGING_H
#define LOGGING_H

// TODO valgrind will go bananas with the default crash handler enabled
// #define ELPP_DISABLE_DEFAULT_CRASH_HANDLING
#define ELPP_NO_DEFAULT_LOG_FILE

// enable stacktraces for GCC/Clang on *nixes
#if ! defined(__ANDROID__) && ! defined(_MSC_VER)
#define ELPP_STACKTRACE_ON_CRASH
#endif

#include "vendor/easylogging++.h"
#include <SenseKit/sensekit_types.h>

#define INITIALIZE_LOGGING INITIALIZE_EASYLOGGINGPP

namespace sensekit {
    void initialize_logging(const char* logFilePath, sensekit_log_severity_t severity);
}

#endif /* LOGGING_H */

{'fraction_non_alphanumeric': 0.07751277683134583, 'fraction_numerical': 0.0, 'mean_word_length': 6.781456953642384, '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': '4475178', 'n_tokens_mistral': 433, 'n_tokens_neox': 421, 'n_words': 91}