<commit_before>const assert = require('chai').assert;
const fs = require('fs');

const Neuron = require('../src/neuron');
const Network = require('../src/network');

describe('Network', () => {
    it('should create a new network', () => {
        const network = new Network();
        const neuron = new Neuron();

        console.log(neuron.process(10));



        const stream = fs.createWriteStream(`./results/newtork-${new Date().toISOString().slice(0, 10)}_${network.id}.json`);
        const networkBuffer = Buffer(JSON.stringify(network.toJSON(), null, 4));
        stream.write(networkBuffer);
        stream.end();
    });
});<commit_msg>add fixme in spec file<commit_after>const assert = require('chai').assert;
const fs = require('fs');

const Neuron = require('../src/neuron');
const Network = require('../src/network');

// FIXME this is temporary for test the network and show what is computed inside.
describe('Network', () => {
    it('should create a new network', () => {
        const network = new Network();
        const neuron = new Neuron();

        console.log(neuron.process(10));

        const stream = fs.createWriteStream(`./results/newtork-${new Date().toISOString().slice(0, 10)}_${network.id}.json`);
        const networkBuffer = Buffer(JSON.stringify(network.toJSON(), null, 4));
        stream.write(networkBuffer);
        stream.end();
    });
});
{'fraction_non_alphanumeric': 0.17926565874730022, 'fraction_numerical': 0.008639308855291577, 'mean_word_length': 3.3848580441640377, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '3787019', 'n_tokens_mistral': 413, 'n_tokens_neox': 391, 'n_words': 96}