<commit_before>require("should");

describe('CodeFilter', function() {
    CodeFilter = require('../lib/filters/code/code')
    describe('#isCode()', function () {
        it('should let not code pass', function () {
            CodeFilter.isCode('Salut les gens' ).should.not.be.ok()
        });
        it('should let code pass on one line', function () {
            CodeFilter.isCode('vérifie les {}').should.not.be.ok()
        });
        it('should detect code based on {}', function () {
            CodeFilter.isCode('var assert = require("assert");\ndescribe(\'CodeIntercaptor\', function() {\n    describe(\'#intercep()\', function () {\n        it(\'should return -1 when the value is not present\', function () {\n            assert.equal(-1, [1,2,3].indexOf(5));\n            assert.equal(-1, [1,2,3].indexOf(0));\n        });\n    });\n});')
                .should.be.ok()
        });
    });
});<commit_msg>Correction d'appel au fichier index.js<commit_after>require("should");

describe('CodeFilter', function() {
    CodeFilter = require('../lib/filters/code')
    describe('#isCode()', function () {
        it('should let not code pass', function () {
            CodeFilter.isCode('Salut les gens' ).should.not.be.ok()
        });
        it('should let code pass on one line', function () {
            CodeFilter.isCode('vérifie les {}').should.not.be.ok()
        });
        it('should detect code based on {}', function () {
            CodeFilter.isCode('var assert = require("assert");\ndescribe(\'CodeIntercaptor\', function() {\n    describe(\'#intercep()\', function () {\n        it(\'should return -1 when the value is not present\', function () {\n            assert.equal(-1, [1,2,3].indexOf(5));\n            assert.equal(-1, [1,2,3].indexOf(0));\n        });\n    });\n});')
                .should.be.ok()
        });
    });
});
{'fraction_non_alphanumeric': 0.20182012847965738, 'fraction_numerical': 0.011777301927194861, 'mean_word_length': 2.3797468354430378, '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': '6147333', 'n_tokens_mistral': 567, 'n_tokens_neox': 558, 'n_words': 124}