<commit_before>/*globals describe,it*/

'use strict';
var Utils = require('../src/Utils'),
    lossyNet = require('./networks/lossy_net'),
    assert = require('assert');

describe('Utils Tests', function() {
    describe('getNetworkGraph', function() {
        it('should get all node ids', function() {
            var ids = Object.keys(Utils.getNetworkGraph(lossyNet)),
                actualIds = ['node1', 'node2', 'node3'];
            console.log('ids: ', ids);

            for (var i = actualIds.length; i--;) {
                assert(ids.indexOf(actualIds[i]) !== -1, 
                    'Missing id '+actualIds[i]);
            }
            assert(actualIds.length === ids.length, 
                'Lengths of ids do not match');
        });
    });
});<commit_msg>Added packet loss<commit_after>/*globals describe,it*/

'use strict';
var Utils = require('../src/Utils'),
    lossyNet = require('./networks/lossy_net'),
    assert = require('assert');

describe('Utils Tests', function() {
    describe('getNetworkGraph', function() {
        it('should get all node ids', function() {
            var ids = Object.keys(Utils.getNetworkGraph(lossyNet)),
                actualIds = ['node1', 'node2', 'node3'];

            for (var i = actualIds.length; i--;) {
                assert(ids.indexOf(actualIds[i]) !== -1, 
                    'Missing id '+actualIds[i]);
            }
            assert(actualIds.length === ids.length, 
                'Lengths of ids do not match');
        });
    });
});
{'fraction_non_alphanumeric': 0.16962524654832348, 'fraction_numerical': 0.005259697567389875, 'mean_word_length': 2.138144329896907, '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': '5173143', 'n_tokens_mistral': 444, 'n_tokens_neox': 425, 'n_words': 98}