<commit_before>package main

import (
	"bitbucket.org/pkg/inflect"
	"fmt"
	"os"
	"strconv"
	"strings"
)

var cmdBigObject = &Command{
	Usage: "bigobject",
	Short: "Manage big objects",
	Long: `
Manage big objects

Usage:

  force bigobject list

  force bigobject create <name> [<field>:<type> [<option>:<value>]]

  force bigobject create -n=MyObject -l="My Object" -p="My Objects" \
  -f=name:Field1+label:"Field 1"+type:Text+length:120 \
  -f=name:MyDate+type=dateTime

Examples:

  force bigobject list

  force bigobject create Todo Description:string

`,
}

type boField []string

func (i *boField) String() string {
	return fmt.Sprint(*i)
}

func (i *boField) Set(value string) error {
	// That would permit usages such as
	//	-deltaT 10s -deltaT 15s
	for _, name := range strings.Split(value, ",") {
		*i = append(*i, name)
	}
	return nil
}

var (
	fields           boField
	deploymentStatus string
	objectLabel      string
	pluralLabel      string
)

func init() {
	cmdBigObject.Flag.Var(&fields, "field", "names of metadata")
	cmdBigObject.Flag.Var(&fields, "f", "names of metadata")
	cmdBigObject.Flag.StringVar(&deploymentStatus, "deployment", "Deployed", "deployment status")
	cmdBigObject.Flag.StringVar(&deploymentStatus, "d", "Deployed", "deployment status")<commit_msg>bigobject usage fix<commit_after>package main

import (
	"bitbucket.org/pkg/inflect"
	"fmt"
	"os"
	"strconv"
	"strings"
)

var cmdBigObject = &Command{
	Usage: "bigobject",
	Short: "Manage big objects",
	Long: `
Manage big objects

Usage:

  force bigobject list

  force bigobject create -n=<name> [-f=<field> ...]
  		A field is defined as a "+" separated list of attributes
  		Attributes depend on the type of the field.
  		
  		Type = text: name, label, length
  		Type = datetime: name, label
  		Type = lookup: name, label, referenceTo, relationshipName


Examples:

  force bigobject list

  force bigobject create -n=MyObject -l="My Object" -p="My Objects" \
  -f=name:Field1+label:"Field 1"+type:Text+length:120 \
  -f=name:MyDate+type=dateTime

`,
}

type boField []string

func (i *boField) String() string {
	return fmt.Sprint(*i)
}

func (i *boField) Set(value string) error {
	// That would permit usages such as
	//	-deltaT 10s -deltaT 15s
	for _, name := range strings.Split(value, ",") {
		*i = append(*i, name)
	}
	return nil
}

var (
	fields           boField
	deploymentStatus string
	objectLabel      string
	pluralLabel      string
)

func init() {
	cmdBigObject.Flag.Var(&fields, "field", "names of metadata")
	cmdBigObject.Flag.Var(&fields, "f", "names of metadata")
	cmdBigObject.Flag.StringVar(&deploymentStatus, "deployment", "Deployed", "deployment status")
	cmdBigObject.Flag.StringVar(&deploymentStatus, "d", "Deployed", "deployment status")
{'fraction_non_alphanumeric': 0.1348314606741573, 'fraction_numerical': 0.006524102935846321, 'mean_word_length': 4.111111111111111, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 10, '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': '446780', 'n_tokens_mistral': 991, 'n_tokens_neox': 961, 'n_words': 262}