<commit_before>/*
 * watchdog.h
 *
 *  Created on: 06.03.2020
 *      Author: eyckj
 */

#pragma one
#include <atomic>
#include <chrono>
#include <condition_variable>
#include <functional>
#include <mutex>
#include <thread>

namespace util {
/**
 * a watch dog based on https://github.com/didenko/TimeoutGuard
 */
class watchdog {<commit_msg>fix clang issue wrt. to CentOS gcc headers<commit_after>/*
 * watchdog.h
 *
 *  Created on: 06.03.2020
 *      Author: eyckj
 */

#pragma one
#ifdef __clang__
#include <bits/c++config.h>
#if __GLIBCXX__ == 20150623
#define noexcept
#endif
#endif
#include <atomic>
#ifdef noexcept
#undef noexcept
#endif
#include <chrono>
#include <condition_variable>
#include <functional>
#include <mutex>
#include <thread>

namespace util {
/**
 * a watch dog based on https://github.com/didenko/TimeoutGuard
 */
class watchdog {
{'fraction_non_alphanumeric': 0.13551401869158877, 'fraction_numerical': 0.028037383177570093, 'mean_word_length': 4.290123456790123, 'pattern_counts': {'":': 0, '<': 16, '<?xml version=': 0, '>': 16, 'https://': 2, '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': '3177251', 'n_tokens_mistral': 319, 'n_tokens_neox': 296, 'n_words': 85}