<commit_before>jest('boolean tests');

test('yes examples', 4, function () {
    yes( true, 'yes: true is true' );
    yes( !false, 'yes: not false is true' );
    yes( !!true, 'yes: not not true is true' );
    yes( 1, 'yes: truthy is true' );
});

test('no examples', 4, function () {    
    no( false, 'no: false is false' );
    no( !true, 'no: not true is false' );
    no( !!false, 'no: not not false is false' ); 
    no( 0, 'no: falsy is false' ); 
});

test('alike examples', 4, function () {
    var a;
    alike( 1, 1, 'alike: one is one' );
    alike( true, true, 'alike: true is true' );
    alike( 'jest', 'jest', 'alike: string is string' );
    alike( a = [1], a, 'alike: array is array' );
});

test('unlike examples', 4, function () {
    unlike( 1, 2, 'unlike: one is not two' );
    unlike( true, false, 'unlike: true is not false' );
    unlike( 'jest', 'jester', 'unlike: string is not string' );
    unlike( [1], [2], 'unlike: array is not array' );
});

test('same examples', 4, function () {
    same( 1, 1, 'same: one is one' );
    same( 'jest', 'jest', 'same: string is string' );
    same( [1], [1], 'same: array is array' );
    same( { 1 : 1 }, { 1 : 1 }, 'same: object is object' );
});

test('different examples', 4, function () {
    different( 1, 2, 'different: one is not two' );
    different( 'jest', 'jester', 'different: string is not string' );
    different( [1], [0], 'different: array is not array' );
    different( { 1 : 0 }, { 1 : 1}, 'different: objects are different' );
});
<commit_msg>formatting<commit_after>jest('boolean tests');

test('yes examples', 4, function () {
    yes( true, 'yes: true is true' );
    yes( !false, 'yes: not false is true' );
    yes( !!true, 'yes: not not true is true' );
    yes( 1, 'yes: truthy is true' );
});

test('no examples', 4, function () {    
    no( false, 'no: false is false' );
    no( !true, 'no: not true is false' );
    no( !!false, 'no: not not false is false' ); 
    no( 0, 'no: falsy is false' ); 
});

test('alike examples', 4, function () {
    var a;
    alike( 1, 1, 'alike: one is one' );
    alike( true, true, 'alike: true is true' );
    alike( 'jest', 'jest', 'alike: string is string' );
    alike( a = [1], a, 'alike: array is array' );
});

test('unlike examples', 4, function () {
    unlike( 1, 2, 'unlike: one is not two' );
    unlike( true, false, 'unlike: true is not false' );
    unlike( 'jest', 'jester', 'unlike: string is not string' );
    unlike( [1], [2], 'unlike: array is not array' );
});

test('same examples', 4, function () {
    same( 1, 1, 'same: one is one' );
    same( 'jest', 'jest', 'same: string is string' );
    same( [1], [1], 'same: array is array' );
    same( { 1 : 1 }, { 1 : 1 }, 'same: object is object' );
});

test('different examples', 4, function () {
    different( 1, 2, 'different: one is not two' );
    different( 'jest', 'jester', 'different: string is not string' );
    different( [1], [0], 'different: array is not array' );
    different( { 1 : 0 }, { 1 : 1 }, 'different: objects are different' );
});

{'fraction_non_alphanumeric': 0.20052083333333334, 'fraction_numerical': 0.020182291666666668, 'mean_word_length': 3.1193029490616624, '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': '2709812', 'n_tokens_mistral': 1142, 'n_tokens_neox': 1085, 'n_words': 412}