<commit_before>/*
 * Boolean.xor(a[, b[, c]] ...)
 * 
 * ARGUMENTS:
 * any number of any type
 * 
 * RETURNS:
 * XOR value of all the arguments. (True if one true value, false otherwise.)
 */
Boolean.xor = function() {
    var r = false;
    for (var i = 0; i < arguments.length; i++) {
       r = arguments[i] || r ? (arguments[i] && r ? false : true) : false;
    }
    return r;
};<commit_msg>Improved comments for xor.<commit_after>/*
 * Boolean.xor(a[, b[, c]] ...)
 * 
 * ARGUMENTS:
 * any number of any type
 * 
 * RETURNS:
 * XOR value of all the arguments. (True if one true value, false otherwise.)
 */
Boolean.xor = function() {
    
    // Base value is false.
    var r = false;
    
    // Loop through every argument:
    for (var i = 0; i < arguments.length; i++) {
        
        // Determine if the value should be changed.
        r = arguments[i] || r ? (arguments[i] && r ? false : true) : false;
    }
    
    // Return the value.
    return r;
};
{'fraction_non_alphanumeric': 0.1574074074074074, 'fraction_numerical': 0.00205761316872428, 'mean_word_length': 2.1693811074918568, 'pattern_counts': {'":': 0, '<': 5, '<?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': '5721320', 'n_tokens_mistral': 341, 'n_tokens_neox': 321, 'n_words': 113}