<commit_before>package main

import (
	log "github.com/Sirupsen/logrus"
	"gopkg.in/urfave/cli.v1"
	"os"
	"time"
)

func main() {
	// This won't be needed in cli v2
	cli.VersionFlag.Name = "version"
	cli.HelpFlag.Name = "help"
	cli.HelpFlag.Hidden = true

	app := cli.NewApp()
	app.Name = "speedboat"
	app.Usage = "a next generation load generator"
	app.Version = "0.2.0"
	app.Commands = []cli.Command{
		cli.Command{
			Name:      "run",
			Aliases:   []string{"r"},
			Usage:     "Starts running a load test",
			ArgsUsage: "url|filename",
			Flags: []cli.Flag{
				cli.IntFlag{
					Name:  "vus, u",
					Usage: "virtual users to simulate",
					Value: 10,
				},
				cli.DurationFlag{
					Name:  "duration, d",
					Usage: "test duration, 0 to run until cancelled",
					Value: 10 * time.Second,
				},
				cli.StringFlag{
					Name:  "type, t",
					Usage: "input type, one of: auto, url, js",
					Value: "auto",
				},
			},
			Action: actionRun,
		},
		cli.Command{
			Name:   "status",
			Usage:  "Looks up the status of a running test",
			Action: actionStatus,
		},
		cli.Command{
			Name:      "scale",
			Usage:     "Scales a running test",
			ArgsUsage: "vus",
			Action:    actionScale,
		},
		cli.Command{
			Name:      "abort",
			Usage:     "Aborts a running test",
			ArgsUsage: "",
			Action:    actionAbort,
		},
	}
	app.Flags = []cli.Flag{
		cli.BoolFlag{
			Name:  "verbose, v",
			Usage: "show debug messages",
		},
		cli.StringFlag{
			Name:  "address, a",
			Usage: "address for the HTTP API",
			Value: "127.0.0.1:6565",
		},
	}
	app.Before = func(cc *cli.Context) error {
		if cc.Bool("verbose") {
			log.SetLevel(log.DebugLevel)
		}

		return nil
	}
	if err := app.Run(os.Args); err != nil {
		os.Exit(1)
	}
}
<commit_msg>[docs] Better help texts<commit_after>package main

import (
	log "github.com/Sirupsen/logrus"
	"gopkg.in/urfave/cli.v1"
	"os"
	"time"
)

func main() {
	// This won't be needed in cli v2
	cli.VersionFlag.Name = "version"
	cli.HelpFlag.Name = "help"
	cli.HelpFlag.Hidden = true

	app := cli.NewApp()
	app.Name = "speedboat"
	app.Usage = "a next generation load generator"
	app.Version = "0.2.0"
	app.Commands = []cli.Command{
		cli.Command{
			Name:      "run",
			Usage:     "Starts running a load test",
			ArgsUsage: "url|filename",
			Flags: []cli.Flag{
				cli.IntFlag{
					Name:  "vus, u",
					Usage: "virtual users to simulate",
					Value: 10,
				},
				cli.DurationFlag{
					Name:  "duration, d",
					Usage: "test duration, 0 to run until cancelled",
					Value: 10 * time.Second,
				},
				cli.StringFlag{
					Name:  "type, t",
					Usage: "input type, one of: auto, url, js",
					Value: "auto",
				},
			},
			Action: actionRun,
		},
		cli.Command{
			Name:      "status",
			Usage:     "Looks up the status of a running test",
			ArgsUsage: " ",
			Action:    actionStatus,
		},
		cli.Command{
			Name:      "scale",
			Usage:     "Scales a running test",
			ArgsUsage: "vus",
			Action:    actionScale,
		},
		cli.Command{
			Name:      "abort",
			Usage:     "Aborts a running test",
			ArgsUsage: " ",
			Action:    actionAbort,
		},
	}
	app.Flags = []cli.Flag{
		cli.BoolFlag{
			Name:  "verbose, v",
			Usage: "show debug messages",
		},
		cli.StringFlag{
			Name:  "address, a",
			Usage: "address for the API",
			Value: "127.0.0.1:6565",
		},
	}
	app.Before = func(cc *cli.Context) error {
		if cc.Bool("verbose") {
			log.SetLevel(log.DebugLevel)
		}

		return nil
	}
	if err := app.Run(os.Args); err != nil {
		os.Exit(1)
	}
}

{'fraction_non_alphanumeric': 0.15792474344355759, 'fraction_numerical': 0.011972633979475485, 'mean_word_length': 2.5230923694779115, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '4161254', 'n_tokens_mistral': 1597, 'n_tokens_neox': 1335, 'n_words': 337}