<commit_before>package log

import (
	"fmt"
	"io"
	"io/ioutil"
	"log"
	"os"
	"strings"
)

var Stderr io.Writer = os.Stderr
var Discard io.Writer = ioutil.Discard

var topics map[string]struct{} = make(map[string]struct{})

func Println(topic string, v ...interface{}) bool {
	if IsOn(topic) {
		fmt.Println(v)
		return true
	}
	return false
}

func SetOutput(w io.Writer) { log.SetOutput(w) }

func On(topic string) {
	for _, t := range strings.Split(topic, " ") {
		topics[t] = struct{}{}
	}
}

func Off(topic string) {
	delete(topics, topic)
}

func IsOn(topic string) bool {
	_, ok := topics[topic]
	return ok
}<commit_msg>lot of different fixes<commit_after>package log

import (
	"io"
	"io/ioutil"
	"log"
	"os"
	"strings"
)

var Stderr io.Writer = os.Stderr
var Discard io.Writer = ioutil.Discard

var topics map[string]struct{} = make(map[string]struct{})

func Println(topic string, v ...interface{}) bool {
	if IsOn(topic) {
		log.Println(v...)
		return true
	}
	return false
}

func SetOutput(w io.Writer) { log.SetOutput(w) }

func On(topic string) {
	for _, t := range strings.Split(topic, " ") {
		topics[t] = struct{}{}
	}
}

func Off(topic string) {
	delete(topics, topic)
}

func IsOn(topic string) bool {
	_, ok := topics[topic]
	return ok
}
{'fraction_non_alphanumeric': 0.15672235481304694, 'fraction_numerical': 0.0, 'mean_word_length': 3.933333333333333, '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': '3970413', 'n_tokens_mistral': 506, 'n_tokens_neox': 495, 'n_words': 122}