<commit_before>package main

import (
	"flag"
	"fmt"
	"github.com/jcla1/goquizduell"
	"github.com/jcla1/goquizduell/util"
	"math"
	"math/rand"
	"os"
	"strings"
)

var numRandGames = flag.Int("randGames", 0, "number of random games to start")
var constGames = flag.Int("constGames", 20, "how many random games to maintain")
var ansStdDev = flag.Float64("ansStdDev", 0.8, "parameter to control the number of correct answers the player gives")
var giveUpMins = flag.Int("giveUpMins", 360, "number of minutes to play a game before giving up")

var noPlayNames stringSlice

func init() {
	flag.Var(&noPlayNames, "noPlayNames", "comma-seperated list of usernames that should not be played against")
}

func main() {
	flag.Parse()
	c := util.PrepareClient(os.Getenv("QD_USERNAME"), os.Getenv("QD_PASSWORD"), os.Getenv("QD_COOKIE_FILE"))

	games := c.GetUserGames().User.Games
<commit_msg>Changed cmd line flags to more unix like dashed names instead of camelcase.<commit_after>package main

import (
	"flag"
	"fmt"
	"github.com/jcla1/goquizduell"
	"github.com/jcla1/goquizduell/util"
	"math"
	"math/rand"
	"os"
	"strings"
)

var numRandGames = flag.Int("rand-games", 0, "number of random games to start")
var constGames = flag.Int("const-games", 20, "how many random games to maintain")
var ansStdDev = flag.Float64("ans-stddev", 0.8, "parameter to control the number of correct answers the player gives")
var giveUpMins = flag.Int("give-up-mins", 360, "number of minutes to play a game before giving up")

var noPlayNames stringSlice

func init() {
	flag.Var(&noPlayNames, "no-play-names", "comma-seperated list of usernames that should not be played against")
}

func main() {
	flag.Parse()
	c := util.PrepareClient(os.Getenv("QD_USERNAME"), os.Getenv("QD_PASSWORD"), os.Getenv("QD_COOKIE_FILE"))

	games := c.GetUserGames().User.Games

{'fraction_non_alphanumeric': 0.13544511196067724, 'fraction_numerical': 0.013107591480065538, 'mean_word_length': 5.168350168350169, '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': '2828395', 'n_tokens_mistral': 689, 'n_tokens_neox': 663, 'n_words': 184}