<commit_before>package main

import (
	"fmt"
	"strings"
	"os"
)

var (
	silent bool
	// Declared in common:
	// hashFunction HashValue
	// cwd string
)

var cmdVerify = &Command{
	Run: verify,
	Usage: `verify [-s] [-c=hash] [-D=dir] [file]`,
	Short: "Verify using a checksum file",
	Long: `
Verify all files for the given directory against a checksum file. If a specific
file is given, only that file is verified.`,
}

// Initialized in common:
// var preferredHashes []string

func init() {
	const (
		silentUsage = "silent; don't output to STDERR"
		cwdUsage = "the directory for which to verify using the checksum file"
	)
	hashUsage := fmt.Sprintf("the hash to use; if unspecified, the following are tried in order: %s", strings.Join(preferredHashes, ", "))
	f := &cmdVerify.Flag
	f.BoolVar(&silent, "s", false, silentUsage)
	f.Var(&hashFunction, "c", hashUsage)
	f.StringVar(&cwd, "D", ".", cwdUsage)
}

func verify(cmd *Command, args []string) {
	var err error
	hash, checksums := setDirAndHashOptions()
	singleFileMode, singleFile := false, ""
	if len(args) == 1 {<commit_msg>Improve documentation for verify<commit_after>package main

import (
	"fmt"
	"strings"
	"os"
)

var (
	silent bool
	// Declared in common:
	// hashFunction HashValue
	// cwd string
)

var cmdVerify = &Command{
	Run: verify,
	Usage: `verify [-s] [-c=hash] [-D=dir] [file]`,
	Short: "Verify using a checksum file",
	Long: `
Verify all files for the given directory against a checksum file. If a specific
file is given, only that file is verified.

If verification is successful, then the exit status will be 0 and no output will
be written. If there is a checksum mismatch, then the exit status will be 1 and
the mismatch(es) in question will be written to STDERR unless silent mode is on.`,
}

// Initialized in common:
// var preferredHashes []string

func init() {
	const (
		silentUsage = "silent; don't output to STDERR"
		cwdUsage = "the directory for which to verify using the checksum file"
	)
	hashUsage := fmt.Sprintf("the hash to use; if unspecified, the following are tried in order: %s", strings.Join(preferredHashes, ", "))
	f := &cmdVerify.Flag
	f.BoolVar(&silent, "s", false, silentUsage)
	f.Var(&hashFunction, "c", hashUsage)
	f.StringVar(&cwd, "D", ".", cwdUsage)
}

func verify(cmd *Command, args []string) {
	var err error
	hash, checksums := setDirAndHashOptions()
	singleFileMode, singleFile := false, ""
	if len(args) == 1 {
{'fraction_non_alphanumeric': 0.12602965403624383, 'fraction_numerical': 0.0016474464579901153, 'mean_word_length': 4.19017094017094, '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': '2420826', 'n_tokens_mistral': 823, 'n_tokens_neox': 813, 'n_words': 300}