<commit_before>#ifndef __MIO_FREQ_BUFFER_H__
#define __MIO_FREQ_BUFFER_H__

#include <condition_variable>
#include <functional>
#include <mutex>
#include <queue>
#include <thread>
#include "mio/altro/error.h"

#ifndef NDEBUG
#define __FREQ_BUF_DBG__
#endif


namespace mio{

template <typename DATA_T>
class CFreqBuffer{
  public:
    CFreqBuffer(){
      SetDefaultValues();
    }


    CFreqBuffer(std::function<void(DATA_T, void*)> user_func, const size_t freq = 10,
                const size_t max_buf_size = 5, const bool with_fifo_checking = false,
                void *user_data = nullptr){
      SetDefaultValues();
      Init(user_func, freq, max_buf_size, with_fifo_checking);
    }<commit_msg>fix debug macro<commit_after>#ifndef __MIO_FREQ_BUFFER_H__
#define __MIO_FREQ_BUFFER_H__

#include <condition_variable>
#include <functional>
#include <mutex>
#include <queue>
#include <thread>
#include "mio/altro/error.h"

#ifdef DEBUG
#define __FREQ_BUF_DBG__
#endif


namespace mio{

template <typename DATA_T>
class CFreqBuffer{
  public:
    CFreqBuffer(){
      SetDefaultValues();
    }


    CFreqBuffer(std::function<void(DATA_T, void*)> user_func, const size_t freq = 10,
                const size_t max_buf_size = 5, const bool with_fifo_checking = false,
                void *user_data = nullptr){
      SetDefaultValues();
      Init(user_func, freq, max_buf_size, with_fifo_checking);
    }
{'fraction_non_alphanumeric': 0.10056657223796034, 'fraction_numerical': 0.00424929178470255, 'mean_word_length': 4.101083032490974, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, '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': '3347634', 'n_tokens_mistral': 508, 'n_tokens_neox': 484, 'n_words': 110}