<commit_before>package main

import (
	".."

	"math/rand"
	"time"
)

func main() {
	// TODO: When done turn on seeding the random number generator.
	if false {
		rand.Seed(time.Now().UTC().UnixNano())
	}

	m := maze.NewMaze(5, 5)
	m.Carve()
	m.Dump()
	m.Print()
}<commit_msg>Update the driver for the maze program.<commit_after>package main

import (
	".."

	"flag"
	"fmt"
	"math/rand"
	"os"
	"time"
)

func main() {
	rows := flag.Int("r", 5, "Number of rows.")
	cols := flag.Int("c", 5, "Number of columns.")
	seed := flag.Int64("s", 0, "If the specified seed is less then 1 the time will be used as a seed.")
	dump := flag.Bool("d", false, "Dump maze data.")
	flag.Parse()

	if *rows < 5 {
		fmt.Printf("maze: Selected number of rows is %d. Mimumum number of rows is %d", *rows, 5)
		os.Exit(1)
	}

	if *cols < 5 {
		fmt.Printf("maze: Selected number of cols is %d. Mimumum number of cols is %d", *cols, 5)
		os.Exit(1)
	}

	if *seed < 1 {
		rand.Seed(time.Now().UTC().UnixNano())
	} else {
		rand.Seed(*seed)
	}

	m := maze.NewMaze(*rows, *cols)
	m.Carve()
	if *dump {
		m.Dump()
	}
	m.Print()
}
{'fraction_non_alphanumeric': 0.1885245901639344, 'fraction_numerical': 0.01366120218579235, 'mean_word_length': 3.147169811320755, 'pattern_counts': {'":': 0, '<': 6, '<?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': '867543', 'n_tokens_mistral': 492, 'n_tokens_neox': 458, 'n_words': 132}