<commit_before>
var debug = require('debug');
var serialNumber = require('serial-number');
var serverStats = require('./lib/serverstats');
var systemStats = require('./lib/systemstats');

serialNumber(function (err, value) {
  console.log('Serial Number', value);
});

setInterval(function () {
  serverStats(function () {
    debug('serverStats tick completed');
  });

  systemStats(function () {
    debug ('systemStats tick completed');
  });
}, 10000);<commit_msg>made run at launch and changed dealy to 60 seconds<commit_after>
var debug = require('debug');
var serialNumber = require('serial-number');
var serverStats = require('./lib/serverstats');
var systemStats = require('./lib/systemstats');

serialNumber(function (err, value) {
  console.log('Serial Number', value);
});

function sendStats() {
  serverStats(function () {
    debug('serverStats tick completed');
  });

  systemStats(function () {
    debug ('systemStats tick completed');
  });
}

sendStats();
setInterval(sendStats, 60000);
{'fraction_non_alphanumeric': 0.1636904761904762, 'fraction_numerical': 0.011904761904761904, 'mean_word_length': 5.345911949685535, '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': '4162456', 'n_tokens_mistral': 292, 'n_tokens_neox': 278, 'n_words': 71}