<commit_before>var range = function(low, high, plus) {
    if(arguments.length == 1) {
        high = low;
        low = 0;
        plus = 1;
    } else if(arguments.length == 2) {
        plus = 1;
    }
    var a = [];
    for (var i = low; i < high; i += plus) {
        a.push(i);
    }
    return a;
};<commit_msg>Improved range comments and documentation.<commit_after>/*
 * range(low, high, plus)
 * 
 * ARGUMENTS:
 * if one argument:
 *     Argument specifies high value, low is set to 0, and the increment
 *     is set to 1.
 * if two arguments:
 *     First argument specifies low value, second argument specifies high
 *     value, and the increment is set to 1.
 * if three arguments:
 *     First argument specifies low value, second argument specifies high
 *     value, and third argument specifies increment.
 * 
 * RETURNS:
 * Array of numbers, based on arguments given.
 */
var range = function(low, high, plus) {
    
    // If there is only one argument:
    if(arguments.length == 1) {
        high = low;
        low = 0;
        plus = 1;
    
    // If there are two arguments:
    } else if(arguments.length == 2) {
        plus = 1;
    }
    
    // Create the array.
    var a = [];
    
    // Populate the array based on the arguments given.
    for (var i = low; i < high; i += plus) {
        a.push(i);
    }
    
    // Return the array.
    return a;
};

{'fraction_non_alphanumeric': 0.11438848920863309, 'fraction_numerical': 0.00935251798561151, 'mean_word_length': 1.9532908704883227, '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': '2679655', 'n_tokens_mistral': 446, 'n_tokens_neox': 423, 'n_words': 161}