<commit_before>#include <unordered_set>
#include <thread>
#include <mutex>

#include <boost/algorithm/string.hpp>
#include <bitcoin/bitcoin.hpp>
#include <wallet/wallet.hpp>
#include <obelisk/obelisk.hpp>

#include "config.hpp"
#include "util.hpp"

#ifdef _WIN32
#ifndef NOMINMAX
// Macro min(a,b) a conflicts with pdcurses.
#define NOMINMAX
#endif
#include <stdlib.h>
#include <pdcwin.h>
#else
#include <ncurses.h>
#include <unistd.h>
#endif

using std::placeholders::_1;
using std::placeholders::_2;
using std::placeholders::_3;

// warning: this is not good code!
std::mutex broadcast_mutex;
std::vector<bc::transaction_type> tx_broadcast_queue;

class wallet_control;

typedef boost::circular_buffer<std::string> string_buffer;

typedef std::unordered_set<bc::payment_address> unique_address_set;

struct wallet_history_entry
{
    bool is_credit;
    bc::output_point point;
    size_t block_height;<commit_msg>fix compile issue with missing min() in wallet.cpp<commit_after>#include <unordered_set>
#include <thread>
#include <mutex>

#include <boost/algorithm/string.hpp>
#include <bitcoin/bitcoin.hpp>
#include <wallet/wallet.hpp>
#include <obelisk/obelisk.hpp>

#include "config.hpp"
#include "util.hpp"

#ifdef _WIN32
    #ifndef NOMINMAX
        // Macro min(a,b) a conflicts with pdcurses.
        #define NOMINMAX
    #endif
        #include <stdlib.h>
        #include <pdcwin.h>
#else
    #include <ncurses.h>
    #include <unistd.h>
    using std::min;
#endif

using std::placeholders::_1;
using std::placeholders::_2;
using std::placeholders::_3;

// warning: this is not good code!
std::mutex broadcast_mutex;
std::vector<bc::transaction_type> tx_broadcast_queue;

class wallet_control;

typedef boost::circular_buffer<std::string> string_buffer;

typedef std::unordered_set<bc::payment_address> unique_address_set;

struct wallet_history_entry
{
    bool is_credit;
    bc::output_point point;
    size_t block_height;
{'fraction_non_alphanumeric': 0.12596799173980383, 'fraction_numerical': 0.005162622612287042, 'mean_word_length': 5.569491525423729, 'pattern_counts': {'":': 0, '<': 31, '<?xml version=': 0, '>': 31, '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': '2588279', 'n_tokens_mistral': 692, 'n_tokens_neox': 686, 'n_words': 154}