<commit_before>// Copyright 2017 The Upspin Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

// Audit provides subcommands for auditing storage consumption.
// It has several subcommands that should be used in a way yet to be
// determined.
package main // import "upspin.io/cmd/upspin-audit"

// TODO:
// - add failsafes to avoid misuse of delete-garbage
// - add a command that is the reverse of find-garbage (find-missing?)
// - add a tidy command to remove data from old scans

import (
	"bufio"
	"flag"
	"fmt"
	"log"
	"os"
	"path/filepath"
	"sort"
	"strconv"
	"strings"
	"time"

	"upspin.io/config"
	"upspin.io/errors"
	"upspin.io/flags"
	"upspin.io/subcmd"
	"upspin.io/transports"
	"upspin.io/upspin"
	"upspin.io/version"
)

const (
	timeFormat    = "2006-01-02 15:04:05"<commit_msg>cmd/upspin-audit: update the package doc comment<commit_after>// Copyright 2017 The Upspin Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

// Audit provides subcommands for auditing storage consumption.
// See the command's usage method for documentation.
package main // import "upspin.io/cmd/upspin-audit"

// TODO:
// - add failsafes to avoid misuse of delete-garbage
// - add a command that is the reverse of find-garbage (find-missing?)
// - add a tidy command to remove data from old scans

import (
	"bufio"
	"flag"
	"fmt"
	"log"
	"os"
	"path/filepath"
	"sort"
	"strconv"
	"strings"
	"time"

	"upspin.io/config"
	"upspin.io/errors"
	"upspin.io/flags"
	"upspin.io/subcmd"
	"upspin.io/transports"
	"upspin.io/upspin"
	"upspin.io/version"
)

const (
	timeFormat    = "2006-01-02 15:04:05"
{'fraction_non_alphanumeric': 0.12200684150513112, 'fraction_numerical': 0.020524515393386546, 'mean_word_length': 3.398496240601504, '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': '6684380', 'n_tokens_mistral': 658, 'n_tokens_neox': 622, 'n_words': 204}