<commit_before>// 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 <boost/assign/list_of.hpp> // for 'map_list_of()'
#include <boost/foreach.hpp>

#include "checkpoints.h"

#include "txdb.h"
#include "scrypt.h"
#include "main.h"
#include "uint256.h"


static const int nCheckpointSpan = 10;

namespace Checkpoints
{
    typedef std::map<int, uint256> MapCheckpoints;

    //
    // What makes a good checkpoint block?
    // + Is surrounded by blocks with reasonable timestamps
    //   (no blocks before with a timestamp after, none after with
    //    timestamp before)
    // + Contains no strange transactions
    //
    static MapCheckpoints mapCheckpoints =
        boost::assign::map_list_of
        ( 0, hashGenesisBlock )
        ( 1, uint256("0x000001ead02641108d924307f9c4d4a00931752cc605c5f63f76867a8ac56564"))
        ( 2, uint256("0x000009ddc37d639d9a6d1e8c400044a4bcdfdeddb88eaad9e4fe4a84f2b41741"))
        ( 10, uint256("0x00000e8bdda8d1091d469920a5cb4c6c811314c656b23bc6985bc260356a8202"))
        ( 100, uint256("0x00000030d87db6ecf85e694c13fe2c2b55da71d6d66dc1e2b7e0c678fe08da47"))
        ( 1000, uint256("0x00000d2581c68ff3eafe75b2030fe6708ea00c9ad65ae329f8fe6173b62c9b1e"))
        ( 2000, uint256("0x4550e9cb4f5dd3a32f9de0db3b1cc555916a1fa0e1e29a5688149af1253e02f1"))
        ( 3000, uint256("0x30ea5f07f0f46e3337b2a014208871d70c412060a97c3360fbf032c6bec179b5"))
        ( 3600, uint256("0x00000e65cf85aecebf920e41e28cbc1c29b55f782fbc448c5e452950103119cc"))
        ( 3601, uint256("0x00000901c279f826e60f24b69d66bc35991d485c818d1e3052f83d8b2c849b23"))
        ( 3616, uint256("0x000593ec5726d0a637f4265cc6bfdcee57a12d9babadf3e3d7d9817b132c05df"))
        ( 3617, uint256("0x2bb2a3f54ed47fa2d27e720eebce585ba1e2cf2cf0461a99615ea575ce6ac77c"))
        ( 3618, uint256("0x606495a5ac1a034a826e269275bf83540b4f264bff92976e74b43e90e40e13b4"))
        ( 70000, uint256("0x953f19c1c049fdbd74dfd7858a62d8fec97b42f15431ec8a976836105772bfac"))
        ( 80000, uint256("0xaf5b19392b3954d4571885ae271d15596c53073c2d256d51884779ee4ad9a4e3"))
        ( 90000, uint256("0x4e96156e7d453f4c54b6be32dc2f7bbfa76b1148d5d32c3fb9c2a8786d05c54c"))
        ( 100000, uint256("0x3b628dc58f8c41d823bb9adc0bac1354e7d707e4e3e771b47082f9ea660e5209"))
        ( 130000, uint256("0xb8ac46f1dc132e8dd7839e29c3ffb681334064ffbff7bc0ee8e3e4d6e32e144c"))
        ( 132715, uint256("0x0000046b5a4e193c9b7db8a1ebd2dff86dea15961fb2d8cb2cbbc2fb5ade8d83"))
        ( 133420, uint256("0x00000a68f83b760840c77caf13f8594445198a5355dbaeab8048c0555ff02955"))
        ( 489530, uint256("0x000000000b6e3c35eb309e00294a5eddff0069fb401c7cef146cc44f9a52dc4f"))
        ( 489531, uint256("0x000000000a583a1e78bbafbfe60dc8a9a2701a3801f4062e2f71103c4a1e0f0b"))
    ;

    // TestNet has no checkpoints
    static MapCheckpoints mapCheckpointsTestnet =
        boost::assign::map_list_of
        ( 0, hashGenesisBlockTestNet )
    ;

    bool CheckHardened(int nHeight, const uint256& hash)
    {
        MapCheckpoints& checkpoints = (fTestNet ? mapCheckpointsTestnet : mapCheckpoints);

        MapCheckpoints::const_iterator i = checkpoints.find(nHeight);
        if (i == checkpoints.end()) return true;
        return hash == i->second;
    }

    int GetTotalBlocksEstimate()
    {
        MapCheckpoints& checkpoints = (fTestNet ? mapCheckpointsTestnet : mapCheckpoints);

        return checkpoints.rbegin()->first;
    }<commit_msg>Checkpoint Remodified<commit_after>// 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 <boost/assign/list_of.hpp> // for 'map_list_of()'
#include <boost/foreach.hpp>

#include "checkpoints.h"

#include "txdb.h"
#include "scrypt.h"
#include "main.h"
#include "uint256.h"


static const int nCheckpointSpan = 10;

namespace Checkpoints
{
    typedef std::map<int, uint256> MapCheckpoints;

    //
    // What makes a good checkpoint block?
    // + Is surrounded by blocks with reasonable timestamps
    //   (no blocks before with a timestamp after, none after with
    //    timestamp before)
    // + Contains no strange transactions
    //
    static MapCheckpoints mapCheckpoints =
        boost::assign::map_list_of
        ( 0, hashGenesisBlock )
        ( 1, uint256("0x000001ead02641108d924307f9c4d4a00931752cc605c5f63f76867a8ac56564"))
        ( 2, uint256("0x000009ddc37d639d9a6d1e8c400044a4bcdfdeddb88eaad9e4fe4a84f2b41741"))
        ( 10, uint256("0x00000e8bdda8d1091d469920a5cb4c6c811314c656b23bc6985bc260356a8202"))
        ( 100, uint256("0x00000030d87db6ecf85e694c13fe2c2b55da71d6d66dc1e2b7e0c678fe08da47"))
        ( 1000, uint256("0x00000d2581c68ff3eafe75b2030fe6708ea00c9ad65ae329f8fe6173b62c9b1e"))
        ( 2000, uint256("0x4550e9cb4f5dd3a32f9de0db3b1cc555916a1fa0e1e29a5688149af1253e02f1"))
        ( 3000, uint256("0x30ea5f07f0f46e3337b2a014208871d70c412060a97c3360fbf032c6bec179b5"))
        ( 3600, uint256("0x00000e65cf85aecebf920e41e28cbc1c29b55f782fbc448c5e452950103119cc"))
        ( 3601, uint256("0x00000901c279f826e60f24b69d66bc35991d485c818d1e3052f83d8b2c849b23"))
        ( 3616, uint256("0x000593ec5726d0a637f4265cc6bfdcee57a12d9babadf3e3d7d9817b132c05df"))
        ( 3617, uint256("0x2bb2a3f54ed47fa2d27e720eebce585ba1e2cf2cf0461a99615ea575ce6ac77c"))
        ( 3618, uint256("0x606495a5ac1a034a826e269275bf83540b4f264bff92976e74b43e90e40e13b4"))
        ( 70000, uint256("0x953f19c1c049fdbd74dfd7858a62d8fec97b42f15431ec8a976836105772bfac"))
        ( 80000, uint256("0xaf5b19392b3954d4571885ae271d15596c53073c2d256d51884779ee4ad9a4e3"))
        ( 90000, uint256("0x4e96156e7d453f4c54b6be32dc2f7bbfa76b1148d5d32c3fb9c2a8786d05c54c"))
        ( 100000, uint256("0x3b628dc58f8c41d823bb9adc0bac1354e7d707e4e3e771b47082f9ea660e5209"))
        ( 130000, uint256("0xb8ac46f1dc132e8dd7839e29c3ffb681334064ffbff7bc0ee8e3e4d6e32e144c"))
        ( 132715, uint256("0x0000046b5a4e193c9b7db8a1ebd2dff86dea15961fb2d8cb2cbbc2fb5ade8d83"))
        ( 133420, uint256("0x00000a68f83b760840c77caf13f8594445198a5355dbaeab8048c0555ff02955"))
        ( 489529, uint256("0x000000000c3f140a4a2beafd815cf2b616336cc4aad7706def329dc6d4e9aacf"))
    ;

    // TestNet has no checkpoints
    static MapCheckpoints mapCheckpointsTestnet =
        boost::assign::map_list_of
        ( 0, hashGenesisBlockTestNet )
    ;

    bool CheckHardened(int nHeight, const uint256& hash)
    {
        MapCheckpoints& checkpoints = (fTestNet ? mapCheckpointsTestnet : mapCheckpoints);

        MapCheckpoints::const_iterator i = checkpoints.find(nHeight);
        if (i == checkpoints.end()) return true;
        return hash == i->second;
    }

    int GetTotalBlocksEstimate()
    {
        MapCheckpoints& checkpoints = (fTestNet ? mapCheckpointsTestnet : mapCheckpoints);

        return checkpoints.rbegin()->first;
    }
{'fraction_non_alphanumeric': 0.0862583487281512, 'fraction_numerical': 0.2890436265454029, 'mean_word_length': 4.792592592592593, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 3, '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': '7088035', 'n_tokens_mistral': 4046, 'n_tokens_neox': 2968, 'n_words': 329}