<commit_before>package debug

/*
github.com/dokipen/debug is a port of visionmedia/debug nodejs lib. It is meant to be extremely quick to get going with. All configuration is done on the commandline with the DEBUG environmental variable.

The current differences with nodejs's debug are that timing is not supported and we include the debug callers file and line number in the output.
*/

import (
	"crypto/md5"
	"fmt"
	colorfmt "github.com/wsxiaoys/terminal/color"
	"io"
	"os"
	"path/filepath"
	"runtime"
	"strings"
	"sync"
)

// Possible color values.
const COLORS = "rgbcmykw"

var (
	matchCache  = map[string]bool{}
	prefixCache = map[string]string{}
	colorCache  = map[string]string{}
	mutex       = new(sync.Mutex)
	globs       []string
)

/*
init prepares the environmental DEBUG variable.<commit_msg>Fixes godoc<commit_after>/*
github.com/dokipen/debug is a port of visionmedia/debug nodejs lib. It is meant to be extremely quick to get going with. All configuration is done on the commandline with the DEBUG environmental variable.

The current differences with nodejs's debug are that timing is not supported and we include the debug callers file and line number in the output.
*/
package debug

import (
	"crypto/md5"
	"fmt"
	colorfmt "github.com/wsxiaoys/terminal/color"
	"io"
	"os"
	"path/filepath"
	"runtime"
	"strings"
	"sync"
)

// Possible color values.
const COLORS = "rgbcmykw"

var (
	matchCache  = map[string]bool{}
	prefixCache = map[string]string{}
	colorCache  = map[string]string{}
	mutex       = new(sync.Mutex)
	globs       []string
)

/*
init prepares the environmental DEBUG variable.
{'fraction_non_alphanumeric': 0.09175449473031617, 'fraction_numerical': 0.0012399256044637321, 'mean_word_length': 4.02803738317757, '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': '2024610', 'n_tokens_mistral': 518, 'n_tokens_neox': 507, 'n_words': 185}