<commit_before>var cons = require('../cons/cons.js');
var argsHelper = require('../helpers/args.js');

/**
 * Returns a cons list constructed from the given parameters.
 * @return {cons}
 */
function list(){
    function helper(args){
        if (args.length === 0){
            return null;
        } else {
            return cons(args[0], helper(args.slice(1)));
        }
    }
    return helper(argsHelper(arguments));
}

module.exports = list;<commit_msg>Update list<commit_after>var cons = require('../cons/cons.js');
var argsHelper = require('../helpers/args.js');

/**
 * Returns a cons list constructed from the given parameters.
 * @return {cons}
 */
function list(){
    function helper(args){
        if (args.length === 0){
            return null;
        } else {
            return cons(args[0], helper(args.slice(1)));
        }
    }
    if (arguments.length === 1 && Array.isArray(arguments[0])){
        return helper(arguments[0]);
    } else {
        return helper(argsHelper(arguments));
    }
    
}

module.exports = list;
{'fraction_non_alphanumeric': 0.16205910390848427, 'fraction_numerical': 0.008579599618684462, 'mean_word_length': 2.511705685618729, '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': '5767088', 'n_tokens_mistral': 307, 'n_tokens_neox': 305, 'n_words': 75}