<commit_before>var os = require('os'),
    should = require('should'),
    assert = require('assert'),
    data = require('../data/mockdata').data;


console.log("++++++++++ testing the app ++++++++++");
console.log("does the exported data exist?");
poo = should.exist(data, "data exported from data file");

console.log("++++++++++ testing the poo ++++++++++");
console.log(poo);
console.log("++++++++++ testing the poo ++++++++++");

//console.log(data.accounts);
is_mock = should(data.status).equal('muck', data.status);
console.log(is_mock, " mock data is mock");
console.log(data.getLiquidBalanceTtl(data.accounts));<commit_msg>Starting to use should.js for unit testing.<commit_after>var os = require('os'),
    should = require('should'),
    assert = require('assert'),
    data = require('../data/mockdata').data;


console.log("++++++++++ testing the app ++++++++++\n");
console.log("\t testing successful data connection.");

console.log("\t>>>>> Does the exported data exist?");
var is_data_there = should.exist(data, "data seems to not be exported from data file");
console.log(is_data_there);
if (is_data_there != null && typeof is_data_there == 'object') {
    console.log(is_data_there);
}



//console.log(data.accounts);
is_mock = should(data.status).equal('muck', data.status);
//console.log(is_mock, " mock data is mock");
console.log("\n\t++++++++++ mock liquid balances sum: %d\n", data.getLiquidBalanceTtl(data.accounts));

{'fraction_non_alphanumeric': 0.22614107883817428, 'fraction_numerical': 0.0, 'mean_word_length': 5.402654867256637, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 8, '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': '449853', 'n_tokens_mistral': 467, 'n_tokens_neox': 449, 'n_words': 110}