<commit_before>// Copyright 2010-2013 RethinkDB, all rights reserved.
#include <functional>

#include "arch/io/disk.hpp"
#include "arch/runtime/coroutines.hpp"
#include "arch/timing.hpp"
#include "btree/btree_store.hpp"
#include "btree/operations.hpp"
#include "btree/slice.hpp"  // RSI: for thing.
#include "buffer_cache/mirrored/config.hpp"
#include "containers/archive/boost_types.hpp"
#include "rdb_protocol/btree.hpp"
#include "rdb_protocol/pb_utils.hpp"
#include "rdb_protocol/protocol.hpp"
#include "rdb_protocol/sym.hpp"
#include "serializer/config.hpp"
#include "unittest/gtest.hpp"
#include "unittest/unittest_utils.hpp"
#include "rdb_protocol/minidriver.hpp"

#define TOTAL_KEYS_TO_INSERT 1000
#define MAX_RETRIES_FOR_SINDEX_POSTCONSTRUCT 5

#pragma GCC diagnostic ignored "-Wshadow"

#if SLICE_ALT
using namespace alt;  // RSI
#endif

namespace unittest {

void insert_rows(int start, int finish, btree_store_t<rdb_protocol_t> *store) {
    guarantee(start <= finish);
    for (int i = start; i < finish; ++i) {
        cond_t dummy_interruptor;
#if SLICE_ALT
        scoped_ptr_t<alt_txn_t> txn;
#else
        scoped_ptr_t<transaction_t> txn;
#endif
        scoped_ptr_t<real_superblock_t> superblock;
        write_token_pair_t token_pair;
        store->new_write_token_pair(&token_pair);
        store->acquire_superblock_for_write(
            repli_timestamp_t::invalid,
            1, write_durability_t::SOFT,<commit_msg>Made TOTAL_KEYS_TO_INSERT in unittest/rdb_btree.cc be 100.<commit_after>// Copyright 2010-2013 RethinkDB, all rights reserved.
#include <functional>

#include "arch/io/disk.hpp"
#include "arch/runtime/coroutines.hpp"
#include "arch/timing.hpp"
#include "btree/btree_store.hpp"
#include "btree/operations.hpp"
#include "btree/slice.hpp"  // RSI: for thing.
#include "buffer_cache/mirrored/config.hpp"
#include "containers/archive/boost_types.hpp"
#include "rdb_protocol/btree.hpp"
#include "rdb_protocol/pb_utils.hpp"
#include "rdb_protocol/protocol.hpp"
#include "rdb_protocol/sym.hpp"
#include "serializer/config.hpp"
#include "unittest/gtest.hpp"
#include "unittest/unittest_utils.hpp"
#include "rdb_protocol/minidriver.hpp"

// RSI: This used to be 1000.  We made it 100 because right now we don't support soft
// durability and that makes the test be slow.
#define TOTAL_KEYS_TO_INSERT 100
#define MAX_RETRIES_FOR_SINDEX_POSTCONSTRUCT 5

#pragma GCC diagnostic ignored "-Wshadow"

#if SLICE_ALT
using namespace alt;  // RSI
#endif

namespace unittest {

void insert_rows(int start, int finish, btree_store_t<rdb_protocol_t> *store) {
    guarantee(start <= finish);
    for (int i = start; i < finish; ++i) {
        cond_t dummy_interruptor;
#if SLICE_ALT
        scoped_ptr_t<alt_txn_t> txn;
#else
        scoped_ptr_t<transaction_t> txn;
#endif
        scoped_ptr_t<real_superblock_t> superblock;
        write_token_pair_t token_pair;
        store->new_write_token_pair(&token_pair);
        store->acquire_superblock_for_write(
            repli_timestamp_t::invalid,
            1, write_durability_t::SOFT,
{'fraction_non_alphanumeric': 0.11016672115070285, 'fraction_numerical': 0.012095456031382805, 'mean_word_length': 4.6353591160221, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, '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': '7429179', 'n_tokens_mistral': 1143, 'n_tokens_neox': 1101, 'n_words': 227}