<commit_before>package client

import (
	"fmt"
	"strings"
	"text/tabwriter"

	Cli "github.com/daolicloud/daolictl/cli"
)

// Usage: daolictl policy
func (cli *DaoliCli) CmdPolicy(args ...string) error {
	cmd := Cli.Subcmd("policy", []string{"COMMAND [OPTIONS]"}, policyUsage(), false)
	err := ParseFlags(cmd, args, true)
	cmd.Usage()
	return err
}

////Usage: daolictl policy list
//func (cli *DaoliCli) CmdPolicyList(args ...string) error {
//	cmd := Cli.Subcmd("policy list", nil, "Lists policies", true)
//Usage: daolictl cutls
func (cli *DaoliCli) CmdCutLs(args ...string) error {
	cmd := Cli.Subcmd("cutls", nil, Cli.GlobalCommands["cutls"].Description, true)
	if err := ParseFlags(cmd, args, true); err != nil {
		return err
	}

	polis, err := cli.client.PolicyList()
	if err != nil {
		return err
	}

	wr := tabwriter.NewWriter(cli.out, 20, 1, 3, ' ', 0)
	for _, p := range polis {
		parts := strings.Split(p, ":")
		if len(parts) == 2 {
			fmt.Fprintf(wr, "%s\t%s\t", parts[0], parts[1])
			fmt.Fprintf(wr, "\n")
		}
	}
	wr.Flush()
	return nil
}<commit_msg>modify name info<commit_after>package client

import (
	"fmt"
	"strings"
	"text/tabwriter"

	Cli "github.com/daolicloud/daolictl/cli"
)

// Usage: daolictl policy
func (cli *DaoliCli) CmdPolicy(args ...string) error {
	cmd := Cli.Subcmd("policy", []string{"COMMAND [OPTIONS]"}, policyUsage(), false)
	err := ParseFlags(cmd, args, true)
	cmd.Usage()
	return err
}

////Usage: daolictl policy list
//func (cli *DaoliCli) CmdPolicyList(args ...string) error {
//	cmd := Cli.Subcmd("policy list", nil, "Lists policies", true)
//Usage: daolictl cutls
func (cli *DaoliCli) CmdCutls(args ...string) error {
	cmd := Cli.Subcmd("cutls", nil, Cli.GlobalCommands["cutls"].Description, true)
	if err := ParseFlags(cmd, args, true); err != nil {
		return err
	}

	polis, err := cli.client.PolicyList()
	if err != nil {
		return err
	}

	wr := tabwriter.NewWriter(cli.out, 20, 1, 3, ' ', 0)
	for _, p := range polis {
		parts := strings.Split(p, ":")
		if len(parts) == 2 {
			fmt.Fprintf(wr, "%s\t%s\t", parts[0], parts[1])
			fmt.Fprintf(wr, "\n")
		}
	}
	wr.Flush()
	return nil
}
{'fraction_non_alphanumeric': 0.1875293014533521, 'fraction_numerical': 0.007501172058134084, 'mean_word_length': 3.861047835990888, 'pattern_counts': {'":': 2, '<': 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': '5956015', 'n_tokens_mistral': 879, 'n_tokens_neox': 825, 'n_words': 206}