<commit_before>package meta

import "fmt"

// GITCOMMIT indicates which git hash the binary was built off of.
var GITCOMMIT string

// VERSION indicates which version of the binary is running.
var VERSION string

const majorRelease = "0.3.x"

// Version returns the version/commit string.
func Version() string {
	version, commit := VERSION, GITCOMMIT
	if commit == "" && version == "" {
		version, commit = majorRelease, "master"
	}
	return fmt.Sprintf("fsql version %v, built off %v", version, commit)
}
<commit_msg>Use fallback if one of commit/version are blank (instead of both)<commit_after>package meta

import "fmt"

// GITCOMMIT indicates which git hash the binary was built off of.
var GITCOMMIT string

// VERSION indicates which version of the binary is running.
var VERSION string

const majorRelease = "0.3.x"

// Version returns the version/commit string.
func Version() string {
	version, commit := VERSION, GITCOMMIT
	if commit == "" || version == "" {
		version, commit = majorRelease, "master"
	}
	return fmt.Sprintf("fsql version %v, built off %v", version, commit)
}

{'fraction_non_alphanumeric': 0.10386029411764706, 'fraction_numerical': 0.003676470588235294, 'mean_word_length': 4.136792452830188, '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': '5643521', 'n_tokens_mistral': 327, 'n_tokens_neox': 328, 'n_words': 132}