<commit_before>'use strict';

// Load modules
var Code = require('code');
var Lab = require('lab');
var Path = require('path');

// Test shortcuts
var lab = exports.lab = Lab.script();
var describe = lab.experiment;
var expect = Code.expect;
var it = lab.test;

describe('utils - utils/index', function () {

    it('Checks if lsdir returns array of ony wanted files', function (done) {

        var files = require('../lib/utils').lsdir(Path.join(__dirname),'utils.js');

        expect(files).to.be.array();
        expect(files).not.to.contain('utils.js');
        expect(files).not.to.contain('.foo.js');
        expect(files).not.to.contain('utils.js~');
        done();

    });
});<commit_msg>Fix typo on the test/utils<commit_after>'use strict';

// Load modules
var Code = require('code');
var Lab = require('lab');
var Path = require('path');

// Test shortcuts
var lab = exports.lab = Lab.script();
var describe = lab.experiment;
var expect = Code.expect;
var it = lab.test;

describe('utils - utils/index', function () {

    it('Checks if lsdir returns array of only wanted files', function (done) {

        var files = require('../lib/utils').lsdir(Path.join(__dirname),'utils.js');

        expect(files).to.be.array();
        expect(files).not.to.contain('utils.js');
        expect(files).not.to.contain('.foo.js');
        expect(files).not.to.contain('utils.js~');
        done();

    });
});
{'fraction_non_alphanumeric': 0.18741159830268742, 'fraction_numerical': 0.0, 'mean_word_length': 3.2620481927710845, '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': '4460494', 'n_tokens_mistral': 455, 'n_tokens_neox': 442, 'n_words': 104}