<commit_before>// Copyright (c) 2015 The Paycoin developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "init.h"
#include "bitcoinrpc.h"
#include "scrapesdb.h"

#define printf OutputDebugStringF

using namespace json_spirit;
using namespace std;

extern CScrapesDB* scrapesDB;

Value setscrapeaddress(const Array& params, bool fHelp)
{
    if (fHelp || params.size() != 2)
        throw runtime_error(
            "setscrapeaddress <staking address>, <address to stake to>\n"
            "Set an auto scrape address to send stake rewards to from a given address."
        );

    string strAddress = params[0].get_str();
    CBitcoinAddress address(strAddress);
    string strScrapeAddress = params[1].get_str();
    CBitcoinAddress scrapeAddress(strScrapeAddress);

    if (address.Get() == scrapeAddress.Get())
        throw runtime_error(<commit_msg>Remove comma from setscrapeaddress description<commit_after>// Copyright (c) 2015 The Paycoin developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "init.h"
#include "bitcoinrpc.h"
#include "scrapesdb.h"

#define printf OutputDebugStringF

using namespace json_spirit;
using namespace std;

extern CScrapesDB* scrapesDB;

Value setscrapeaddress(const Array& params, bool fHelp)
{
    if (fHelp || params.size() != 2)
        throw runtime_error(
            "setscrapeaddress <staking address> <address to stake to>\n"
            "Set an auto scrape address to send stake rewards to from a given address."
        );

    string strAddress = params[0].get_str();
    CBitcoinAddress address(strAddress);
    string strScrapeAddress = params[1].get_str();
    CBitcoinAddress scrapeAddress(strScrapeAddress);

    if (address.Get() == scrapeAddress.Get())
        throw runtime_error(
{'fraction_non_alphanumeric': 0.10020554984583761, 'fraction_numerical': 0.007194244604316547, 'mean_word_length': 3.8796992481203008, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '575974', 'n_tokens_mistral': 592, 'n_tokens_neox': 554, 'n_words': 175}