<commit_before>require('newrelic')
var DateTime = require('dateutils').DateTime
var dao = require('./src/dao')
var daysAhead = 0
var maxDaysAhead = 60

doRefresh()
setInterval(() => {
    doRefresh()
}, 1000 * 60 * 10)

function doRefresh() {
    dao.refresh(new DateTime().plusDays(daysAhead).toISODateString(), 1, () => { })
    if (daysAhead > maxDaysAhead) daysAhead = 0
    else daysAhead++
}

<commit_msg>Make updating twice more frequent: calls every 5 minutes<commit_after>require('newrelic')
var DateTime = require('dateutils').DateTime
var dao = require('./src/dao')
var daysAhead = 0
var maxDaysAhead = 60

doRefresh()
setInterval(() => {
    doRefresh()
}, 1000 * 60 * 5)

function doRefresh() {
    dao.refresh(new DateTime().plusDays(daysAhead).toISODateString(), 1, () => { })
    if (daysAhead > maxDaysAhead) daysAhead = 0
    else daysAhead++
}


{'fraction_non_alphanumeric': 0.15625, 'fraction_numerical': 0.03009259259259259, 'mean_word_length': 4.509554140127388, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '4116599', 'n_tokens_mistral': 320, 'n_tokens_neox': 288, 'n_words': 70}