<commit_before>package config

import (
	"sync"

	"github.com/jeffpierce/cassabon/logging"
)

// The globally accessible configuration and state object.
var G Globals

// Define Application Settings Structure
type Globals struct {

	// Goroutine management.
	Quit chan struct{}
	WG   sync.WaitGroup

	// Integration into local filesystem and remote services.
	Log struct {
		Logdir   string // Log Directory
		Loglevel string // Level to log at.
		System   *logging.FileLogger
		Carbon   *logging.FileLogger
		API      *logging.FileLogger
	}
	Statsd struct {
		Host string // Host or IP address of statsd server
		Port string // Port that statsd server listens on
	}
	Cassandra struct {
		Hosts []string // List of hostnames or IP addresses of Cassandra ring
		Port  string   // Cassandra port
	}
	Redis struct {
		Host string // Hostname or IP address of Redis
		Port string // Redis port
	}

	// Configuration of the services offered to clients.
	API struct {
		Address string // HTTP API listens on this address
		Port    string // HTTP API listens on this port
	}
	Carbon struct {
		Address  string // Address for Carbon Receiver to listen on
		Port     string // Port for Carbon Receiver to listen on
		Protocol string // "tcp", "udp" or "both" are acceptable
	}

	// Configuration of internal elements.
	Rollups map[string][]string // Map of regex and default rollups
}<commit_msg>Make Global Redis config match CassabonConfig struct.<commit_after>package config

import (
	"sync"

	"github.com/jeffpierce/cassabon/logging"
)

// The globally accessible configuration and state object.
var G Globals

// Define Application Settings Structure
type Globals struct {

	// Goroutine management.
	Quit chan struct{}
	WG   sync.WaitGroup

	// Integration into local filesystem and remote services.
	Log struct {
		Logdir   string // Log Directory
		Loglevel string // Level to log at.
		System   *logging.FileLogger
		Carbon   *logging.FileLogger
		API      *logging.FileLogger
	}
	Statsd struct {
		Host string // Host or IP address of statsd server
		Port string // Port that statsd server listens on
	}
	Cassandra struct {
		Hosts []string // List of hostnames or IP addresses of Cassandra ring
		Port  string   // Cassandra port
	}
	Redis struct {
		Index RedisSettings // Settings for Redis Index
		Queue RedisSettings // Settings for Redis Queue
	}

	// Configuration of the services offered to clients.
	API struct {
		Address string // HTTP API listens on this address
		Port    string // HTTP API listens on this port
	}
	Carbon struct {
		Address  string // Address for Carbon Receiver to listen on
		Port     string // Port for Carbon Receiver to listen on
		Protocol string // "tcp", "udp" or "both" are acceptable
	}

	// Configuration of internal elements.
	Rollups map[string][]string // Map of regex and default rollups
}
{'fraction_non_alphanumeric': 0.06732463870285513, 'fraction_numerical': 0.0, 'mean_word_length': 3.089337175792507, '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': '4393658', 'n_tokens_mistral': 859, 'n_tokens_neox': 799, 'n_words': 344}