<commit_before>package main

import (
	"log"
	"sync"
	"time"

	"github.com/relab/raft/proto/gorums"
	"golang.org/x/net/context"
	"google.golang.org/grpc"
)

var client gorums.RaftClient

var counter chan interface{}
var seq chan uint64

func main() {
	counter = make(chan interface{})
	seq = make(chan uint64)
	stop := make(chan interface{})

	go func() {
		i := uint64(1)

		for {
			select {
			case seq <- i:
			case <-stop:
				return
			}

			i++
		}
	}()

	mgr, err := gorums.NewManager([]string{":9202"},
		gorums.WithGrpcDialOptions(
			grpc.WithInsecure(),
			grpc.WithBlock(),
			grpc.WithTimeout(time.Second),
		))

	if err != nil {
		log.Fatal(err)
	}<commit_msg>Added leader address flag to client<commit_after>package main

import (
	"flag"
	"log"
	"sync"
	"time"

	"github.com/relab/raft/proto/gorums"
	"golang.org/x/net/context"
	"google.golang.org/grpc"
)

var client gorums.RaftClient

var counter chan interface{}
var seq chan uint64

var leader = flag.String("leader", "", "leader server address")

func main() {
	flag.Parse()

	if *leader == "" {
		log.Fatal("Leader server address not specified.")
	}

	counter = make(chan interface{})
	seq = make(chan uint64)
	stop := make(chan interface{})

	go func() {
		i := uint64(1)

		for {
			select {
			case seq <- i:
			case <-stop:
				return
			}

			i++
		}
	}()

	mgr, err := gorums.NewManager([]string{*leader},
		gorums.WithGrpcDialOptions(
			grpc.WithInsecure(),
			grpc.WithBlock(),
			grpc.WithTimeout(time.Second),
		))

	if err != nil {
		log.Fatal(err)
	}
{'fraction_non_alphanumeric': 0.15885416666666666, 'fraction_numerical': 0.01171875, 'mean_word_length': 3.293296089385475, 'pattern_counts': {'":': 1, '<': 7, '<?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': '5410923', 'n_tokens_mistral': 675, 'n_tokens_neox': 583, 'n_words': 130}