<commit_before>package main

import (
	"flag"
	"time"

	"contrib.go.opencensus.io/exporter/stackdriver"
	"github.com/hashicorp/go-hclog"
	"go.opencensus.io/examples/exporter"
	"go.opencensus.io/stats/view"

	"github.com/seanpfeifer/coffeebeanbot"
	"github.com/seanpfeifer/coffeebeanbot/metrics"
)

const (
	defaultConfigFile  = "cfg.json"
	defaultSecretsFile = "./secrets/discord.json"

	// This should never be less than 60s, or you risk having issues with Stackdriver / a very large bill.
	stackdriverReportingInterval = 60 * time.Second
	stackdriverMetricPrefix      = "cbb"
)

type metricsOptions struct {
	StackdriverMetrics bool
	PrintMetrics       bool
}

func main() {
	logger := createLogger("cbb")
	defer logger.Info("------- BOT SHUTDOWN -------")

	// Parse config + secrets file paths
	configPath := flag.String("cfg", defaultConfigFile, "the config to start the bot with")
	secretsPath := flag.String("secrets", defaultSecretsFile, "the secrets file to load")
	// Also parse metrics options<commit_msg>Updated default cfg + secrets file in bot main<commit_after>package main

import (
	"flag"
	"time"

	"contrib.go.opencensus.io/exporter/stackdriver"
	"github.com/hashicorp/go-hclog"
	"go.opencensus.io/examples/exporter"
	"go.opencensus.io/stats/view"

	"github.com/seanpfeifer/coffeebeanbot"
	"github.com/seanpfeifer/coffeebeanbot/metrics"
)

const (
	defaultConfigFile  = "cfg.toml"
	defaultSecretsFile = "./secrets/discord.toml"

	// This should never be less than 60s, or you risk having issues with Stackdriver / a very large bill.
	stackdriverReportingInterval = 60 * time.Second
	stackdriverMetricPrefix      = "cbb"
)

type metricsOptions struct {
	StackdriverMetrics bool
	PrintMetrics       bool
}

func main() {
	logger := createLogger("cbb")
	defer logger.Info("------- BOT SHUTDOWN -------")

	// Parse config + secrets file paths
	configPath := flag.String("cfg", defaultConfigFile, "the config to start the bot with")
	secretsPath := flag.String("secrets", defaultSecretsFile, "the secrets file to load")
	// Also parse metrics options
{'fraction_non_alphanumeric': 0.12251815980629539, 'fraction_numerical': 0.00387409200968523, 'mean_word_length': 4.126550868486352, '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': '4462410', 'n_tokens_mistral': 707, 'n_tokens_neox': 676, 'n_words': 168}