<commit_before>package main

import (
	"fmt"
	"io"
	"log"
	"os"
	"strconv"

	"github.com/codegangsta/cli"
	"github.com/danmane/abalone/go/api"
	"github.com/danmane/abalone/go/api/client"
	"github.com/olekukonko/tablewriter"
)

const (
	argName   = "name"
	argVer    = "version"
	argExe    = "exe"
	argAuthor = "author"
)

var PlayersCmd = cli.Command{
	Name:      "players",
	ShortName: "p",
	Usage:     "manage ai players",
	Action: func(c *cli.Context) {
		if err := ListPlayersHandler(c); err != nil {
			log.Fatal(err)
		}
	},
	Subcommands: []cli.Command{
		{
			Name:      "create",
			ShortName: "c",
			Usage:     "create a player",
			Flags: []cli.Flag{
				cli.StringFlag{
					Name:  "name, n",
					Usage: "name used to identify player",
				},
				cli.IntFlag{
					Name:  "version, v",
					Value: 1,
				},
				cli.StringFlag{
					Name:  argExe,
					Usage: "path where binary executable for player is found",
				},
				cli.IntFlag{
					Name:  "author, a",
					Usage: "id of player's author (user)",
				},<commit_msg>for convenience allow user to provide a few different options for path/exe<commit_after>package main

import (
	"fmt"
	"io"
	"log"
	"os"
	"strconv"

	"github.com/codegangsta/cli"
	"github.com/danmane/abalone/go/api"
	"github.com/danmane/abalone/go/api/client"
	"github.com/olekukonko/tablewriter"
)

const (
	argName   = "name"
	argVer    = "version"
	argExe    = "exe"
	argAuthor = "author"
)

var PlayersCmd = cli.Command{
	Name:      "players",
	ShortName: "p",
	Usage:     "manage ai players",
	Action: func(c *cli.Context) {
		if err := ListPlayersHandler(c); err != nil {
			log.Fatal(err)
		}
	},
	Subcommands: []cli.Command{
		{
			Name:      "create",
			ShortName: "c",
			Usage:     "create a player",
			Flags: []cli.Flag{
				cli.StringFlag{
					Name:  "name, n",
					Usage: "name used to identify player",
				},
				cli.IntFlag{
					Name:  "version, v",
					Value: 1,
				},
				cli.StringFlag{
					Name:  "exe, path, e, p",
					Usage: "path where the player's executable binary can be found",
				},
				cli.IntFlag{
					Name:  "author, a",
					Usage: "id of player's author (user)",
				},
{'fraction_non_alphanumeric': 0.15395348837209302, 'fraction_numerical': 0.0009302325581395349, 'mean_word_length': 2.70223752151463, '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': '1037351', 'n_tokens_mistral': 982, 'n_tokens_neox': 824, 'n_words': 197}