<commit_before>package main

import (
	"fmt"
	"gopkg.in/alecthomas/kingpin.v2"
	"os"
)

var (
	app                     = kingpin.New("deploybot-cli", "DeployBot command line client")
	verbose                 = app.Flag("verbose", "Verbose").Short('v').Bool()
	repositoryIdFlag        = app.Flag("repository_id", "Repository id (applies to select commands)").Short('r').Int()
	environmentIdFlag       = app.Flag("environment_id", "Environment id (applies to select commands)").Short('e').Int()
	userIdFlag              = app.Flag("user_id", "User id (applies to select commands)").Short('u').Int()
	serverIdFlag            = app.Flag("server_id", "Server id (applies to select commands)").Short('s').Int()
	listCommand             = app.Command("list", "List repositories, environments, servers, users.")
	listRepositoriesCommand = listCommand.Command("repositories", "List repositories.")
	listEnvironmentsCommand = listCommand.Command("environments", "List environments (optionnaly filter by repository).")
	listServersCommand      = listCommand.Command("servers", "List servers (optionnaly filter by repository or environment).")
	listUsersCommand        = listCommand.Command("users", "List users.")
	showCommand             = app.Command("show", "Show repository, environment, server, user.")
	showRepositoryCommand   = showCommand.Command("repository", "Show repository details (and environments if verbose is set).")
	showEnvironmentCommand  = showCommand.Command("environment", "Show environment details (and servers if verbose is set).")
	showServerCommand       = showCommand.Command("server", "Show server details.")
	showUserCommand         = showCommand.Command("user", "Show user details.")
	refreshCommand          = app.Command("refresh", "Refresh a repository")
	bot                     = &DeployBot{}
)

func main() {
	config := &Config{}
	if err := config.Load(""); err != nil {
		fmt.Println("Unable to read config, please create a ~/.deploybot.toml with a token and a domain")
		fmt.Println(err)<commit_msg>Prep flags/comands for deploy<commit_after>package main

import (
	"fmt"
	"gopkg.in/alecthomas/kingpin.v2"
	"os"
)

var (
	app                                = kingpin.New("deploybot-cli", "DeployBot command line client")
	verbose                            = app.Flag("verbose", "Verbose").Short('v').Bool()
	repositoryIdFlag                   = app.Flag("repository_id", "Repository id (applies to select commands)").Short('r').Int()
	environmentIdFlag                  = app.Flag("environment_id", "Environment id (applies to select commands)").Short('e').Int()
	userIdFlag                         = app.Flag("user_id", "User id (applies to select commands)").Short('u').Int()
	serverIdFlag                       = app.Flag("server_id", "Server id (applies to select commands)").Short('s').Int()
	listCommand                        = app.Command("list", "List repositories, environments, servers, users.")
	listRepositoriesCommand            = listCommand.Command("repositories", "List repositories.")
	listEnvironmentsCommand            = listCommand.Command("environments", "List environments (optionnaly filter by repository).")
	listServersCommand                 = listCommand.Command("servers", "List servers (optionnaly filter by repository or environment).")
	listUsersCommand                   = listCommand.Command("users", "List users.")
	showCommand                        = app.Command("show", "Show repository, environment, server, user.")
	showRepositoryCommand              = showCommand.Command("repository", "Show repository details (and environments if verbose is set).")
	showEnvironmentCommand             = showCommand.Command("environment", "Show environment details (and servers if verbose is set).")
	showServerCommand                  = showCommand.Command("server", "Show server details.")
	showUserCommand                    = showCommand.Command("user", "Show user details.")
	refreshCommand                     = app.Command("refresh", "Refresh a repository")
	deployCommand                      = app.Command("deploy", "Deploy an environment")
	deployFromScratchFlag              = deployCommand.Flag("from_scratch", "Deploy everything again").Short('a').Bool()
	deployDontTriggerNotificationsFlag = deployCommand.Flag("no_trigger", "Don't trigger notifications").Short('t').Bool()
	deployWaitForCompletionFlag        = deployCommand.Flag("wait", "Wait until deploy is over").Short('w').Bool()
	deployCommentArg                   = deployCommand.Arg("comment", "Add a comment to deploy").String()
	bot                                = &DeployBot{}
)

func main() {
	config := &Config{}
	if err := config.Load(""); err != nil {
		fmt.Println("Unable to read config, please create a ~/.deploybot.toml with a token and a domain")
		fmt.Println(err)
{'fraction_non_alphanumeric': 0.1315022888056596, 'fraction_numerical': 0.0004161464835622139, 'mean_word_length': 3.2427184466019416, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5717347', 'n_tokens_mistral': 1284, 'n_tokens_neox': 1239, 'n_words': 333}