<commit_before>package main

// This trick is learnt from a post by <NAME>
// https://groups.google.com/d/msg/golang-nuts/gU7oQGoCkmg/j3nNxuS2O_sJ

// For error message, use log pkg directly

import (
	"flag"
	"log"
	"os"
)

type infoLogging bool
type debugLogging bool
type errorLogging bool
type requestLogging bool
type responseLogging bool

var (
	info   infoLogging
	debug  debugLogging
	errl   errorLogging
	dbgRq  requestLogging
	dbgRep responseLogging

	verbose  bool
	colorize bool
)

var (
	errorLog    = log.New(os.Stderr, "\033[31m[Error]\033[0m ", log.LstdFlags)
	debugLog    = log.New(os.Stderr, "\033[34m[Debug]\033[0m ", log.LstdFlags)
	requestLog  = log.New(os.Stderr, "\033[32m[>>>>>]\033[0m ", log.LstdFlags)
	responseLog = log.New(os.Stderr, "\033[33m[<<<<<]\033[0m ", log.LstdFlags)
)

func init() {
	flag.BoolVar((*bool)(&info), "info", true, "info log")
	flag.BoolVar((*bool)(&debug), "debug", false, "debug log")
	flag.BoolVar((*bool)(&errl), "err", true, "error log")
	flag.BoolVar((*bool)(&dbgRq), "reqest", false, "request log")<commit_msg>Fix typo in option: reqest -> request.<commit_after>package main

// This trick is learnt from a post by <NAME>
// https://groups.google.com/d/msg/golang-nuts/gU7oQGoCkmg/j3nNxuS2O_sJ

// For error message, use log pkg directly

import (
	"flag"
	"log"
	"os"
)

type infoLogging bool
type debugLogging bool
type errorLogging bool
type requestLogging bool
type responseLogging bool

var (
	info   infoLogging
	debug  debugLogging
	errl   errorLogging
	dbgRq  requestLogging
	dbgRep responseLogging

	verbose  bool
	colorize bool
)

var (
	errorLog    = log.New(os.Stderr, "\033[31m[Error]\033[0m ", log.LstdFlags)
	debugLog    = log.New(os.Stderr, "\033[34m[Debug]\033[0m ", log.LstdFlags)
	requestLog  = log.New(os.Stderr, "\033[32m[>>>>>]\033[0m ", log.LstdFlags)
	responseLog = log.New(os.Stderr, "\033[33m[<<<<<]\033[0m ", log.LstdFlags)
)

func init() {
	flag.BoolVar((*bool)(&info), "info", true, "info log")
	flag.BoolVar((*bool)(&debug), "debug", false, "debug log")
	flag.BoolVar((*bool)(&errl), "err", true, "error log")
	flag.BoolVar((*bool)(&dbgRq), "request", false, "request log")
{'fraction_non_alphanumeric': 0.1648148148148148, 'fraction_numerical': 0.03611111111111111, 'mean_word_length': 4.583979328165374, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 16, 'https://': 2, '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': '5569753', 'n_tokens_mistral': 905, 'n_tokens_neox': 852, 'n_words': 188}