<commit_before>package config

import (
	"fmt"
	"strings"

	"github.com/codegangsta/cli"
)

var (
	// Flags is the list of all CLI flags accepted by travis-worker
	Flags = []cli.Flag{
		cli.StringFlag{
			Name:   "amqp-uri",
			Value:  defaultAmqpURI,
			Usage:  "The URI to the AMQP server to connect to",
			EnvVar: twEnvVars("AMQP_URI"),
		},
		cli.IntFlag{
			Name:   "pool-size",
			Value:  defaultPoolSize,
			Usage:  "The size of the processor pool, affecting the number of jobs this worker can run in parallel",
			EnvVar: twEnvVars("POOL_SIZE"),
		},
		cli.StringFlag{
			Name:   "build-api-uri",
			Usage:  "The full URL to the build API endpoint to use. Note that this also requires the path of the URL. If a username is included in the URL, this will be translated to a token passed in the Authorization header",
			EnvVar: twEnvVars("BUILD_API_URI"),
		},
		cli.StringFlag{
			Name:   "provider-name",
			Value:  defaultProviderName,
			Usage:  "The name of the provider to use. See below for provider-specific configuration",
			EnvVar: twEnvVars("PROVIDER_NAME"),
		},
		cli.StringFlag{
			Name:   "queue-name",
			Usage:  "The AMQP queue to subscribe to for jobs",
			EnvVar: twEnvVars("QUEUE_NAME"),
		},
		cli.StringFlag{
			Name:   "librato-email",
			Usage:  "Librato metrics account email",
			EnvVar: twEnvVars("LIBRATO_EMAIL"),
		},
		cli.StringFlag{
			Name:   "librato-token",
			Usage:  "Librato metrics account token",
			EnvVar: twEnvVars("LIBRATO_TOKEN"),
		},
		cli.StringFlag{
			Name:   "librato-source",
			Usage:  "Librato metrics source name",
			EnvVar: twEnvVars("LIBRATO_SOURCE"),
		},
		cli.StringFlag{
			Name:   "sentry-dsn",
			Usage:  "The DSN to send Sentry events to",
			EnvVar: twEnvVars("SENTRY_DSN"),
		},
		cli.StringFlag{
			Name:   "hostname",
			Value:  defaultHostname,
			Usage:  "Host name used in log output to identify the source of a job",<commit_msg>config: use hostname as default value for librato source<commit_after>package config

import (
	"fmt"
	"strings"

	"github.com/codegangsta/cli"
)

var (
	// Flags is the list of all CLI flags accepted by travis-worker
	Flags = []cli.Flag{
		cli.StringFlag{
			Name:   "amqp-uri",
			Value:  defaultAmqpURI,
			Usage:  "The URI to the AMQP server to connect to",
			EnvVar: twEnvVars("AMQP_URI"),
		},
		cli.IntFlag{
			Name:   "pool-size",
			Value:  defaultPoolSize,
			Usage:  "The size of the processor pool, affecting the number of jobs this worker can run in parallel",
			EnvVar: twEnvVars("POOL_SIZE"),
		},
		cli.StringFlag{
			Name:   "build-api-uri",
			Usage:  "The full URL to the build API endpoint to use. Note that this also requires the path of the URL. If a username is included in the URL, this will be translated to a token passed in the Authorization header",
			EnvVar: twEnvVars("BUILD_API_URI"),
		},
		cli.StringFlag{
			Name:   "provider-name",
			Value:  defaultProviderName,
			Usage:  "The name of the provider to use. See below for provider-specific configuration",
			EnvVar: twEnvVars("PROVIDER_NAME"),
		},
		cli.StringFlag{
			Name:   "queue-name",
			Usage:  "The AMQP queue to subscribe to for jobs",
			EnvVar: twEnvVars("QUEUE_NAME"),
		},
		cli.StringFlag{
			Name:   "librato-email",
			Usage:  "Librato metrics account email",
			EnvVar: twEnvVars("LIBRATO_EMAIL"),
		},
		cli.StringFlag{
			Name:   "librato-token",
			Usage:  "Librato metrics account token",
			EnvVar: twEnvVars("LIBRATO_TOKEN"),
		},
		cli.StringFlag{
			Name:   "librato-source",
			Value:  defaultHostname,
			Usage:  "Librato metrics source name",
			EnvVar: twEnvVars("LIBRATO_SOURCE"),
		},
		cli.StringFlag{
			Name:   "sentry-dsn",
			Usage:  "The DSN to send Sentry events to",
			EnvVar: twEnvVars("SENTRY_DSN"),
		},
		cli.StringFlag{
			Name:   "hostname",
			Value:  defaultHostname,
			Usage:  "Host name used in log output to identify the source of a job",
{'fraction_non_alphanumeric': 0.1133384734001542, 'fraction_numerical': 0.0, 'mean_word_length': 3.478711162255466, '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': '5443488', 'n_tokens_mistral': 1516, 'n_tokens_neox': 1346, 'n_words': 417}