<commit_before>package ss13

import (
	"log"
	"time"
)

var (
	now            = time.Now()
	debugging bool = false
)

func log_error(err error) {
	if err != nil {
		log.Panic("WARNING ", err)
	}
}

func check_error(err error) {
	if err != nil {
		log.Fatal("ERROR ", err)
	}
}

func SetDebug(val bool) {
	debugging = val
}

func IsDebugging() bool {
	return debugging
}<commit_msg>Make log_error actually log errors without panicing.<commit_after>package ss13

import (
	"log"
	"time"
)

var (
	now            = time.Now()
	debugging bool = false
)

func log_error(err error) bool {
	if err != nil {
		log.Printf("WARNING: %s\n", err)
		return true
	}
	return false
}

func check_error(err error) {
	if err != nil {
		log.Fatal("ERROR ", err)
	}
}

func SetDebug(val bool) {
	debugging = val
}

func IsDebugging() bool {
	return debugging
}
{'fraction_non_alphanumeric': 0.13095238095238096, 'fraction_numerical': 0.004761904761904762, 'mean_word_length': 3.142857142857143, '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': '5657787', 'n_tokens_mistral': 332, 'n_tokens_neox': 320, 'n_words': 86}