<commit_before>// Copyright 2014 Canonical Ltd.
// Licensed under the AGPLv3, see LICENCE file for details.

package backups

import (
	"fmt"

	"github.com/juju/cmd"
	"github.com/juju/errors"
	"launchpad.net/gnuflag"
)

const listDoc = `
"list" provides the metadata associated with all backups.
`

// CreateCommand is the sub-command for creating a new backup.
type ListCommand struct {
	CommandBase
	// Brief means only IDs will be printed.
	Brief bool
}

// Info implements Command.Info.
func (c *ListCommand) Info() *cmd.Info {
	return &cmd.Info{
		Name:    "list",
		Args:    "",
		Purpose: "get all metadata",
		Doc:     listDoc,
	}
}

// SetFlags implements Command.SetFlags.
func (c *ListCommand) SetFlags(f *gnuflag.FlagSet) {
	f.BoolVar(&c.Brief, "brief", false, "only print IDs")
}

// Init implements Command.Init.
func (c *ListCommand) Init(args []string) error {
	if err := cmd.CheckEmpty(args); err != nil {
		return errors.Trace(err)
	}
	return nil
}
<commit_msg>Fix a typo.<commit_after>// Copyright 2014 Canonical Ltd.
// Licensed under the AGPLv3, see LICENCE file for details.

package backups

import (
	"fmt"

	"github.com/juju/cmd"
	"github.com/juju/errors"
	"launchpad.net/gnuflag"
)

const listDoc = `
"list" provides the metadata associated with all backups.
`

// ListCommand is the sub-command for listing all available backups.
type ListCommand struct {
	CommandBase
	// Brief means only IDs will be printed.
	Brief bool
}

// Info implements Command.Info.
func (c *ListCommand) Info() *cmd.Info {
	return &cmd.Info{
		Name:    "list",
		Args:    "",
		Purpose: "get all metadata",
		Doc:     listDoc,
	}
}

// SetFlags implements Command.SetFlags.
func (c *ListCommand) SetFlags(f *gnuflag.FlagSet) {
	f.BoolVar(&c.Brief, "brief", false, "only print IDs")
}

// Init implements Command.Init.
func (c *ListCommand) Init(args []string) error {
	if err := cmd.CheckEmpty(args); err != nil {
		return errors.Trace(err)
	}
	return nil
}

{'fraction_non_alphanumeric': 0.12793068297655455, 'fraction_numerical': 0.0050968399592252805, 'mean_word_length': 3.607981220657277, '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': '5751747', 'n_tokens_mistral': 707, 'n_tokens_neox': 672, 'n_words': 210}