<commit_before>package nd

import (
	"time"
)

var Now func() time.Time
var UTC = func() time.Time {
	return Now().UTC()
}

func init() {
	ResetNow()
}

func ResetNow() {
	Now = func() time.Time { return time.Now() }
}

func ForceNow(t time.Time) {
	Now = func() time.Time { return t }
}

func ForceNowTimestamp(timestamp int64) {
	ForceNow(time.Unix(timestamp, 0))
}<commit_msg>allow to force a time into utc<commit_after>package nd

import (
	"time"
)

var Now func() time.Time
var UTC = func() time.Time {
	return Now().UTC()
}

func init() {
	ResetNow()
}

func ResetNow() {
	Now = func() time.Time { return time.Now() }
}

func ForceNow(t time.Time) {
	Now = func() time.Time { return t }
}
func ForceUTC(t time.Time) {
	ForceNow(t.UTC())
}

func ForceNowTimestamp(timestamp int64) {
	ForceNow(time.Unix(timestamp, 0))
}
{'fraction_non_alphanumeric': 0.16, 'fraction_numerical': 0.007272727272727273, 'mean_word_length': 3.9759036144578315, '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': '2569743', 'n_tokens_mistral': 318, 'n_tokens_neox': 312, 'n_words': 84}