<commit_before>package buildinfo

var GitInfo string

func Version() string {
	if GitInfo != "" {
		return GitInfo
	}
	return "unknown" // TODO: show binary's date?
}<commit_msg>buildinfo: document GitInfo<commit_after>package buildinfo

// GitInfo is either the empty string (the default)
// or is set to the git hash of the most recent commit
// using the -X linker flag. For example, it's set like:
// $ go install --ldflags="-X camlistore.org/pkg/buildinfo.GitInfo "`./misc/gitversion` camlistore.org/server/camlistored
var GitInfo string

func Version() string {
	if GitInfo != "" {
		return GitInfo
	}
	return "unknown"
}
{'fraction_non_alphanumeric': 0.11164274322169059, 'fraction_numerical': 0.0, 'mean_word_length': 3.984126984126984, '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': '5971802', 'n_tokens_mistral': 203, 'n_tokens_neox': 193, 'n_words': 70}