<commit_before>package kit

import (
	"crypto"
	"encoding/hex"
	"encoding/json"
	"fmt"
	"io/ioutil"
	"net/http"

	"github.com/hashicorp/go-version"
	"github.com/inconshreveable/go-update"
)

var (
	// ThemeKitVersion is the version build of the library
	ThemeKitVersion, _ = version.NewVersion("0.6.11")
	releasesURL        = "https://shopify-themekit.s3.amazonaws.com/releases/all.json"
)

// LibraryInfo will return a string array with information about the library used
// for logging.
func LibraryInfo() string {
	messageSeparator := "\n----------------------------------------------------------------\n"
	info := fmt.Sprintf("\t%s %s", "ThemeKit - Shopify Theme Utilities", ThemeKitVersion.String())
	return fmt.Sprintf("%s%s%s", messageSeparator, info, messageSeparator)
}

// PrintInfo will output the version banner for the themekit library.
func PrintInfo() {
	Print(GreenText(LibraryInfo()))
}

// IsNewUpdateAvailable will check if there is an update to the theme kit command
// and if there is one it will return true. Otherwise it will return false.
func IsNewUpdateAvailable() bool {
	list, err := fetchReleases()<commit_msg>Update version number<commit_after>package kit

import (
	"crypto"
	"encoding/hex"
	"encoding/json"
	"fmt"
	"io/ioutil"
	"net/http"

	"github.com/hashicorp/go-version"
	"github.com/inconshreveable/go-update"
)

var (
	// ThemeKitVersion is the version build of the library
	ThemeKitVersion, _ = version.NewVersion("0.6.12")
	releasesURL        = "https://shopify-themekit.s3.amazonaws.com/releases/all.json"
)

// LibraryInfo will return a string array with information about the library used
// for logging.
func LibraryInfo() string {
	messageSeparator := "\n----------------------------------------------------------------\n"
	info := fmt.Sprintf("\t%s %s", "ThemeKit - Shopify Theme Utilities", ThemeKitVersion.String())
	return fmt.Sprintf("%s%s%s", messageSeparator, info, messageSeparator)
}

// PrintInfo will output the version banner for the themekit library.
func PrintInfo() {
	Print(GreenText(LibraryInfo()))
}

// IsNewUpdateAvailable will check if there is an update to the theme kit command
// and if there is one it will return true. Otherwise it will return false.
func IsNewUpdateAvailable() bool {
	list, err := fetchReleases()
{'fraction_non_alphanumeric': 0.16972878390201224, 'fraction_numerical': 0.004374453193350831, 'mean_word_length': 3.3232514177693764, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '7269498', 'n_tokens_mistral': 695, 'n_tokens_neox': 682, 'n_words': 205}