<commit_before>package main

import (
	"flag"
	"fmt"
	"time"
)

const (
	secondsaday = 3600 * 24
)

func main() {
	dateFlag := flag.Int("date", 0, "A date, given as unix days")
	flag.Parse()
	if *dateFlag != 0 {
		fmt.Println(time.Unix(int64(*dateFlag)*secondsaday, 0).UTC().Format("02.01.2006"))
		return
	}
	fmt.Println(time.Now().Unix() / secondsaday)
}<commit_msg>Added comments about leap seconds<commit_after>package main

import (
	"flag"
	"fmt"
	"time"
)

const (
	// UNIX time does not take leap seconds into account. Neither does Unix Days.
	secondsaday = 3600 * 24
)

func main() {
	dateFlag := flag.Int("date", 0, "A date, given as unix days")
	flag.Parse()
	if *dateFlag != 0 {
		// Be aware that UNIX days and normal days does not match, because of leap seconds.
		fmt.Println(time.Unix(int64(*dateFlag)*secondsaday, 0).UTC().Format("02.01.2006"))
		return
	}
	fmt.Println(time.Now().Unix() / secondsaday)
}
{'fraction_non_alphanumeric': 0.16069489685124863, 'fraction_numerical': 0.04125950054288816, 'mean_word_length': 3.983783783783784, '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': '1097171', 'n_tokens_mistral': 383, 'n_tokens_neox': 341, 'n_words': 92}