<commit_before>/**
 * Copyright (c) 2013, <NAME>
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 *
 * @file
 * @author <NAME> <EMAIL>
 */

#pragma once
#include <vector>
#include <chrono>
#include <functional>
#include <bmcl/Option.h>

namespace raft
{

enum class Error : uint8_t
{
    Shutdown,
    NotLeader,
    OneVotingChangeOnly,
    NodeUnknown,
    NothingToApply,
    NothingToSend,
    CantSendToMyself,
    NotCandidate,
};

enum class State
{
    Follower,
    Candidate,<commit_msg>error for the case when unable to send data<commit_after>/**
 * Copyright (c) 2013, <NAME>
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 *
 * @file
 * @author <NAME> <EMAIL>
 */

#pragma once
#include <vector>
#include <chrono>
#include <functional>
#include <bmcl/Option.h>

namespace raft
{

enum class Error : uint8_t
{
    Shutdown,
    NotLeader,
    OneVotingChangeOnly,
    NodeUnknown,
    NothingToApply,
    NothingToSend,
    CantSendToMyself,
    NotCandidate,
    CantSend,
};

enum class State
{
    Follower,
    Candidate,
{'fraction_non_alphanumeric': 0.10173913043478261, 'fraction_numerical': 0.008695652173913044, 'mean_word_length': 3.359848484848485, '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': '6912618', 'n_tokens_mistral': 402, 'n_tokens_neox': 392, 'n_words': 122}