<commit_before>
#ifndef __BUFFER_CACHE_WRITEBACK_HPP__
#define __BUFFER_CACHE_WRITEBACK_HPP__

#include <set>

#include "concurrency/rwi_lock.hpp"

template <class config_t>
struct writeback_tmpl_t : public lock_available_callback<config_t> {<commit_msg>Adding some todo items to writeback<commit_after>
#ifndef __BUFFER_CACHE_WRITEBACK_HPP__
#define __BUFFER_CACHE_WRITEBACK_HPP__

#include <set>

#include "concurrency/rwi_lock.hpp"

// TODO: What about interval=0 (flush on every transaction)?
// TODO: What about interval=+inf (never flush)?

template <class config_t>
struct writeback_tmpl_t : public lock_available_callback<config_t> {
{'fraction_non_alphanumeric': 0.08268330733229329, 'fraction_numerical': 0.0015600624024961, 'mean_word_length': 8.04225352112676, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '364418', 'n_tokens_mistral': 216, 'n_tokens_neox': 210, 'n_words': 51}