<commit_before>function is_bool (mixed_var) {
    // http://kevin.vanzonneveld.net
    // +   original by: <NAME>
    // *     example 1: is_bool(false);
    // *     returns 1: true
    // *     example 2: is_bool(0);
    // *     returns 2: false
    return (typeof mixed_var === 'boolean');
}<commit_msg>Applied optimization of is_bool (Thanks CoursesWeb!)<commit_after>function is_bool (mixed_var) {
    // http://kevin.vanzonneveld.net
    // +   original by: <NAME>
    // +   improved by: CoursesWeb (http://www.coursesweb.net/)
    // *     example 1: is_bool(false);
    // *     returns 1: true
    // *     example 2: is_bool(0);
    // *     returns 2: false
    return (obj === true || obj === false); // Faster (in FF) than type checking
}
{'fraction_non_alphanumeric': 0.16201859229747675, 'fraction_numerical': 0.013280212483399735, 'mean_word_length': 2.236051502145923, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 1, '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': '4004428', 'n_tokens_mistral': 264, 'n_tokens_neox': 251, 'n_words': 62}