<commit_before>package update

import (
	"fmt"
	"time"

	"github.com/jcelliott/lumber"

	"github.com/nanobox-io/nanobox/models"
)

// Check for updates to nanobox once a week
const checkFrequency = (168 * time.Hour)

// Check checks to see if there is an update available for the nanobox CLI
func Check() {
	// load the update model
	updateInfo, err := models.LoadUpdate()
	if err != nil {
		lumber.Error("update:models.LoadUpdate(): %s", err)
		return
	}

	// return early if it's not time to check yet
	if !checkable(updateInfo) {
		return
	}
<commit_msg>Check for updates more frequently<commit_after>package update

import (
	"fmt"
	"time"

	"github.com/jcelliott/lumber"

	"github.com/nanobox-io/nanobox/models"
)

// Check for updates to nanobox every other day
const checkFrequency = (48 * time.Hour)

// Check checks to see if there is an update available for the nanobox CLI
func Check() {
	// load the update model
	updateInfo, err := models.LoadUpdate()
	if err != nil {
		lumber.Error("update:models.LoadUpdate(): %s", err)
		return
	}

	// return early if it's not time to check yet
	if !checkable(updateInfo) {
		return
	}

{'fraction_non_alphanumeric': 0.11433597185576078, 'fraction_numerical': 0.0043975373790677225, 'mean_word_length': 3.683127572016461, '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': '4079959', 'n_tokens_mistral': 410, 'n_tokens_neox': 380, 'n_words': 126}