<commit_before>function is_array( mixed_var ) {
    // http://kevin.vanzonneveld.net
    // +   original by: <NAME> (http://kevin.vanzonneveld.net)
    // +   improved by: <NAME>
    // +   bugfixed by: Cord
    // +   bugfixed by: Manish
    // +   improved by: <NAME>
    // %        note 1: In php.js, javascript objects are like php associative arrays, thus JavaScript objects will also
    // %        note 1: return true
    // *     example 1: is_array(['Kevin', 'van', 'Zonneveld']);
    // *     returns 1: true
    // *     example 2: is_array('<NAME>');
    // *     returns 2: false
    // *     example 3: is_array({0: 'Kevin', 1: 'van', 2: 'Zonneveld'});
    // *     returns 3: true
    // *     example 4: is_array(function tmp_a(){this.name = 'Kevin'});
    // *     returns 4: false

    if (!mixed_var) {
        return false;
    }

    if (typeof mixed_var === 'object') {
        // Uncomment to disable support for associative arrays / objects
        //
        //  if (mixed_var.propertyIsEnumerable('length') || typeof mixed_var.length !== 'number') {
        //      return false;
        //  }

        return true;
    }

    return false;
}<commit_msg>Make comment more clear<commit_after>function is_array( mixed_var ) {
    // http://kevin.vanzonneveld.net
    // +   original by: <NAME> (http://kevin.vanzonneveld.net)
    // +   improved by: <NAME>
    // +   bugfixed by: Cord
    // +   bugfixed by: Manish
    // +   improved by: <NAME>
    // %        note 1: In php.js, javascript objects are like php associative arrays, thus JavaScript objects will also
    // %        note 1: return true
    // *     example 1: is_array(['Kevin', 'van', 'Zonneveld']);
    // *     returns 1: true
    // *     example 2: is_array('<NAME>');
    // *     returns 2: false
    // *     example 3: is_array({0: 'Kevin', 1: 'van', 2: 'Zonneveld'});
    // *     returns 3: true
    // *     example 4: is_array(function tmp_a(){this.name = 'Kevin'});
    // *     returns 4: false

    if (!mixed_var) {
        return false;
    }

    if (typeof mixed_var === 'object') {
        // Uncomment to enable strict JavsScript-proof type checking
        // This will disable support for associative arrays / objects, however
        // Read discussion at: http://kevin.vanzonneveld.net/techblog/article/javascript_equivalent_for_phps_is_array/
        //
        //  if (mixed_var.propertyIsEnumerable('length') || typeof mixed_var.length !== 'number') {
        //      return false;
        //  }

        return true;
    }

    return false;
}
{'fraction_non_alphanumeric': 0.14875389408099687, 'fraction_numerical': 0.010124610591900311, 'mean_word_length': 1.9562715765247412, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '4479582', 'n_tokens_mistral': 850, 'n_tokens_neox': 797, 'n_words': 215}