<commit_before>// Copyright (c) 2009-2010 <NAME>
// Copyright (c) 2009-2012 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

#include "irc.h"
#include "db.h"
#include "net.h"
#include "init.h"
#include "strlcpy.h"
#include "addrman.h"
#include "ui_interface.h"

#ifdef WIN32
#include <string.h>
#endif

#ifdef USE_UPNP
#include <miniwget.h>
#include <miniupnpc.h>
#include <upnpcommands.h>
#include <upnperrors.h>
#endif

using namespace std;
using namespace boost;


#ifndef QT_GUI
 boost::thread_group threadGroup;
#endif
extern std::string GetCommandNonce(std::string command);
extern std::string DefaultOrg();
extern std::string DefaultOrgKey(int key_length);
extern std::string DefaultBlockKey(int key_length);
extern std::string GetBestBlockHash(std::string sCPID);
extern std::string TestHTTPProtocol(std::string sCPID);

std::string DefaultBoincHashArgs();

extern std::string LegacyDefaultBoincHashArgs();


bool IsCPIDValidv3(std::string cpidv2, bool allow_investor);

extern int nMaxConnections;
MiningCPID GetNextProject(bool bForce);
void HarvestCPIDs(bool cleardata);

bool IsCPIDValid_Retired(std::string cpid, std::string ENCboincpubkey);<commit_msg>Fix compilation of UPNP support<commit_after>// Copyright (c) 2009-2010 <NAME>
// Copyright (c) 2009-2012 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

#include "irc.h"
#include "db.h"
#include "net.h"
#include "init.h"
#include "strlcpy.h"
#include "addrman.h"
#include "ui_interface.h"

#ifdef WIN32
#include <string.h>
#endif

#ifdef USE_UPNP
#include <miniupnpc/miniwget.h>
#include <miniupnpc/miniupnpc.h>
#include <miniupnpc/upnpcommands.h>
#include <miniupnpc/upnperrors.h>
#endif

using namespace std;
using namespace boost;


#ifndef QT_GUI
 boost::thread_group threadGroup;
#endif
extern std::string GetCommandNonce(std::string command);
extern std::string DefaultOrg();
extern std::string DefaultOrgKey(int key_length);
extern std::string DefaultBlockKey(int key_length);
extern std::string GetBestBlockHash(std::string sCPID);
extern std::string TestHTTPProtocol(std::string sCPID);

std::string DefaultBoincHashArgs();

extern std::string LegacyDefaultBoincHashArgs();


bool IsCPIDValidv3(std::string cpidv2, bool allow_investor);

extern int nMaxConnections;
MiningCPID GetNextProject(bool bForce);
void HarvestCPIDs(bool cleardata);

bool IsCPIDValid_Retired(std::string cpid, std::string ENCboincpubkey);
{'fraction_non_alphanumeric': 0.1210967250571211, 'fraction_numerical': 0.016755521706016754, 'mean_word_length': 7.033639143730887, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '1912258', 'n_tokens_mistral': 947, 'n_tokens_neox': 875, 'n_words': 227}