<commit_before>package raft

import (
	"net"
)

type AppendEntriesRequest struct {
	// Provide the current term and leader
	Term   uint64
	Leader net.Addr

	// Provide the previous entries for integrity checking
	PrevLogEntry uint64
	PrevLogTerm  uint64

	// New entries to commit
	Entries []*Log

	// Commit index on the leader
	LeaderCommitIndex uint64
}

type AppendEntriesResponse struct {
	// Newer term if leader is out of date
	Term uint64

	// Last Log is a hint to help accelerate rebuilding slow nodes
	LastLog uint64

	// We may not succeed if we have a conflicting entry
	Success bool
}

type RequestVoteRequest struct {
	// Provide the term and our id
	Term      uint64
	Candidate net.Addr

	// Used to ensure safety
	LastLogIndex uint64
	LastLogTerm  uint64
}

type RequestVoteResponse struct {
	// Newer term if leader is out of date
	Term uint64

	// Return the peers, so that a node can shutdown on removal
	Peers []net.Addr

	// Is the vote granted
	Granted bool
}

type InstallSnapshotRequest struct {
	Term   uint64
	Leader net.Addr

	// These are the last index/term included in the snapshot
	LastLogIndex uint64
	LastLogTerm  uint64

	// Peer Set in the snapshot
	Peers []net.Addr

	// Size of the snapshot
	Size uint64
}

type InstallSnapshotResponse struct {
	Term    uint64
	Success bool
}<commit_msg>Fixing Size type<commit_after>package raft

import (
	"net"
)

type AppendEntriesRequest struct {
	// Provide the current term and leader
	Term   uint64
	Leader net.Addr

	// Provide the previous entries for integrity checking
	PrevLogEntry uint64
	PrevLogTerm  uint64

	// New entries to commit
	Entries []*Log

	// Commit index on the leader
	LeaderCommitIndex uint64
}

type AppendEntriesResponse struct {
	// Newer term if leader is out of date
	Term uint64

	// Last Log is a hint to help accelerate rebuilding slow nodes
	LastLog uint64

	// We may not succeed if we have a conflicting entry
	Success bool
}

type RequestVoteRequest struct {
	// Provide the term and our id
	Term      uint64
	Candidate net.Addr

	// Used to ensure safety
	LastLogIndex uint64
	LastLogTerm  uint64
}

type RequestVoteResponse struct {
	// Newer term if leader is out of date
	Term uint64

	// Return the peers, so that a node can shutdown on removal
	Peers []net.Addr

	// Is the vote granted
	Granted bool
}

type InstallSnapshotRequest struct {
	Term   uint64
	Leader net.Addr

	// These are the last index/term included in the snapshot
	LastLogIndex uint64
	LastLogTerm  uint64

	// Peer Set in the snapshot
	Peers []net.Addr

	// Size of the snapshot
	Size int64
}

type InstallSnapshotResponse struct {
	Term    uint64
	Success bool
}
{'fraction_non_alphanumeric': 0.04747550866616428, 'fraction_numerical': 0.02260738507912585, 'mean_word_length': 3.2753623188405796, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '1586758', 'n_tokens_mistral': 854, 'n_tokens_neox': 792, 'n_words': 346}