<commit_before>package main

import (
	"github.com/codegangsta/cli"

	osd "github.com/libopenstorage/openstorage/cli"
	"github.com/libopenstorage/openstorage/drivers/ebs"
)

const (
	version = "0.3"
)

var (
	providers = []string{ebs.Name}
)

func start(c *cli.Context) {
	if !osd.DaemonMode(c) {
		cli.ShowAppHelp(c)
	}
}

func main() {
	app := cli.NewApp()
	app.Name = "osd"
	app.Usage = "Open Storage CLI"
	app.Version = version
	app.Flags = []cli.Flag{
		cli.BoolFlag{
			Name:  "json,j",
			Usage: "output in json",
		},
		cli.BoolFlag{
			Name:  osd.DaemonAlias,
			Usage: "Start OSD in daemon mode",
		},
		cli.StringSliceFlag{
			Name:  "provider, p",
			Usage: "provider name and options: name=btrfs,root_vol=/var/openstorage/btrfs",
		},
	}
	app.Action = start
	app.Commands = []cli.Command{
		{
			Name:        "volume",
			Aliases:     []string{"v"},
			Usage:       "Manage volumes",
			Subcommands: osd.VolumeCommands(),
		},
		{
			Name:        "provider",
			Aliases:     []string{"p"},
			Usage:       "Manage providers",
			Subcommands: osd.ProviderCommands(),
		},
	}
}

func init() {
}<commit_msg>start the daemon<commit_after>package main

import (
	"github.com/codegangsta/cli"
	"os"

	osd "github.com/libopenstorage/openstorage/cli"
	"github.com/libopenstorage/openstorage/drivers/ebs"
)

const (
	version = "0.3"
)

var (
	providers = []string{ebs.Name}
)

func start(c *cli.Context) {
	if !osd.DaemonMode(c) {
		cli.ShowAppHelp(c)
	}
}

func main() {
	app := cli.NewApp()
	app.Name = "osd"
	app.Usage = "Open Storage CLI"
	app.Version = version
	app.Flags = []cli.Flag{
		cli.BoolFlag{
			Name:  "json,j",
			Usage: "output in json",
		},
		cli.BoolFlag{
			Name:  osd.DaemonAlias,
			Usage: "Start OSD in daemon mode",
		},
		cli.StringSliceFlag{
			Name:  "provider, p",
			Usage: "provider name and options: name=btrfs,root_vol=/var/openstorage/btrfs",
		},
	}
	app.Action = start
	app.Commands = []cli.Command{
		{
			Name:        "volume",
			Aliases:     []string{"v"},
			Usage:       "Manage volumes",
			Subcommands: osd.VolumeCommands(),
		},
		{
			Name:        "provider",
			Aliases:     []string{"p"},
			Usage:       "Manage providers",
			Subcommands: osd.ProviderCommands(),
		},
	}
	app.Run(os.Args)
}

func init() {
}
{'fraction_non_alphanumeric': 0.16452896948252985, 'fraction_numerical': 0.0017691287041132243, 'mean_word_length': 3.075675675675676, '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': '2568945', 'n_tokens_mistral': 975, 'n_tokens_neox': 897, 'n_words': 170}