<commit_before>package commands

import (
	cli "github.com/urfave/cli"
)

var Commands = cli.Commands{
	{
		Name:   "add-http",
		Usage:  "Add endpoints to checkup",
		Action: addHTTPEndpoint,
		Flags: []cli.Flag{
			cli.StringFlag{
				Name:  "name",
				Value: "",
				Usage: "Name of endpoint",
			},
			cli.StringFlag{
				Name:  "url",
				Value: "",
				Usage: "URL to check",
			},
			cli.StringFlag{
				Name:  "host",
				Value: ":9009",
				Usage: "grpc server address",
			},
		},
	},
	{
		Name:   "add-tcp",
		Usage:  "Add tcp endpoints to checkup",
		Action: addTCPEndpoint,
		Flags: []cli.Flag{
			cli.StringFlag{
				Name:  "name",
				Value: "",
				Usage: "Name of endpoint",
			},
			cli.StringFlag{
				Name:  "address",
				Value: "",
				Usage: "Address to check",
			},
			cli.BoolFlag{
				Name:  "tls",
				Usage: "Is it tls endpoint?",
			},
			cli.StringFlag{
				Name:  "host",
				Value: ":9009",
				Usage: "grpc server address",
			},
		},
	},
	{
		Name:   "check",
		Usage:  "list and check endpoints",
		Action: checkEndpoint,
		Flags: []cli.Flag{
			cli.StringFlag{
				Name:  "host",
				Value: ":9009",
				Usage: "grpc server address",
			},
		},
	},
	{
		Name:   "list",
		Usage:  "list endpoint",
		Action: listEndpoint,
		Flags: []cli.Flag{
			cli.StringFlag{
				Name:  "host",
				Value: ":9009",
				Usage: "grpc server address",
			},
		},
	},
	{
		Name:   "delete",
		Usage:  "delete endpoint",
		Action: deleteEndpoint,
		Flags: []cli.Flag{
			cli.StringFlag{
				Name:  "host",
				Value: ":9009",
				Usage: "grpc server address",
			},
			cli.StringFlag{
				Name:  "name",
				Value: "",
				Usage: "endpoint name",
			},
		},
	},
}<commit_msg>add setup status page in commands<commit_after>package commands

import (
	cli "github.com/urfave/cli"
)

var Commands = cli.Commands{
	{
		Name:   "add-http",
		Usage:  "Add endpoints to checkup",
		Action: addHTTPEndpoint,
		Flags: []cli.Flag{
			cli.StringFlag{
				Name:  "name",
				Value: "",
				Usage: "Name of endpoint",
			},
			cli.StringFlag{
				Name:  "url",
				Value: "",
				Usage: "URL to check",
			},
			cli.StringFlag{
				Name:  "host",
				Value: ":9009",
				Usage: "grpc server address",
			},
		},
	},
	{
		Name:   "add-tcp",
		Usage:  "Add tcp endpoints to checkup",
		Action: addTCPEndpoint,
		Flags: []cli.Flag{
			cli.StringFlag{
				Name:  "name",
				Value: "",
				Usage: "Name of endpoint",
			},
			cli.StringFlag{
				Name:  "address",
				Value: "",
				Usage: "Address to check",
			},
			cli.BoolFlag{
				Name:  "tls",
				Usage: "Is it tls endpoint?",
			},
			cli.StringFlag{
				Name:  "host",
				Value: ":9009",
				Usage: "grpc server address",
			},
		},
	},
	{
		Name:   "check",
		Usage:  "list and check endpoints",
		Action: checkEndpoint,
		Flags: []cli.Flag{
			cli.StringFlag{
				Name:  "host",
				Value: ":9009",
				Usage: "grpc server address",
			},
		},
	},
	{
		Name:   "list",
		Usage:  "list endpoint",
		Action: listEndpoint,
		Flags: []cli.Flag{
			cli.StringFlag{
				Name:  "host",
				Value: ":9009",
				Usage: "grpc server address",
			},
		},
	},
	{
		Name:   "delete",
		Usage:  "delete endpoint",
		Action: deleteEndpoint,
		Flags: []cli.Flag{
			cli.StringFlag{
				Name:  "host",
				Value: ":9009",
				Usage: "grpc server address",
			},
			cli.StringFlag{
				Name:  "name",
				Value: "",
				Usage: "endpoint name",
			},
		},
	},
	{
		Name:   "setup-page",
		Usage:  "delete endpoint",
		Action: setupStatusPage,
		Flags: []cli.Flag{
			cli.StringFlag{
				Name:  "url",
				Value: "localhost:80",
				Usage: "url to serve the status page",
			},
			cli.StringFlag{
				Name:  "storage",
				Value: "fs",
				Usage: "storage type",
			},
		},
	},
}
{'fraction_non_alphanumeric': 0.1724415793714746, 'fraction_numerical': 0.011281224818694601, 'mean_word_length': 2.4513438368860054, 'pattern_counts': {'":': 10, '<': 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': '5482833', 'n_tokens_mistral': 1785, 'n_tokens_neox': 1405, 'n_words': 338}