<commit_before>'use strict';

const delay = require('delay');


const aggregate = require('../aggregates/aggregate');

const firstImport = require('./firstImport');
const update = require('./update');

let sleepTime = 1000 * 24 * 3600;

cron();

async function cron() {
  await firstImport();
  while (true) {
    await update();
    await aggregate();
    await delay(sleepTime);
  }
}

<commit_msg>add comment about cron oneday<commit_after>'use strict';

const delay = require('delay');


const aggregate = require('../aggregates/aggregate');

const firstImport = require('./firstImport');
const update = require('./update');

let sleepTime = 1000 * 24 * 3600; // 1 day

cron();

async function cron() {
  await firstImport();
  while (true) {
    await update();
    await aggregate();
    await delay(sleepTime);
  }
}


{'fraction_non_alphanumeric': 0.16, 'fraction_numerical': 0.025454545454545455, 'mean_word_length': 3.9759036144578315, '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': '868450', 'n_tokens_mistral': 270, 'n_tokens_neox': 247, 'n_words': 72}