<commit_before>
var lists = require('../lib/list');
var vectors = require('../lib/vector');
var utils = require('../lib/utils');
var parsers = require('../lib/parser');

exports['Create list'] = function (test) {
    var list = lists.list(1, null);
    
    test.ok(list);
    test.strictEqual(list.first(), 1);
    test.strictEqual(list.next(), null);
};

exports['Lists as string'] = function (test) {
    test.equal(lists.list(1, null).asString(), "(1)");
    test.equal(lists.list(1, lists.list(2, null)).asString(), "(1 2)");
    test.equal(lists.create([1, lists.create([2, 3]), 4]).asString(), "(1 (2 3) 4)");
    test.equal(lists.create([1, vectors.create([2, 3]), 4]).asString(), "(1 [2 3] 4)");
    test.equal(lists.list(true, lists.list(false, null)).asString(), "(true false)");
};

exports['Is list'] = function (test) {<commit_msg>List test refactor<commit_after>
const lists = require('../lib/list');
const vectors = require('../lib/vector');
const utils = require('../lib/utils');
const parsers = require('../lib/parser');

exports['Create list'] = function (test) {
    const list = lists.list(1, null);
    
    test.ok(list);
    test.strictEqual(list.first(), 1);
    test.strictEqual(list.next(), null);
};

exports['Lists as string'] = function (test) {
    test.equal(lists.list(1, null).asString(), "(1)");
    test.equal(lists.list(1, lists.list(2, null)).asString(), "(1 2)");
    test.equal(lists.create([1, lists.create([2, 3]), 4]).asString(), "(1 (2 3) 4)");
    test.equal(lists.create([1, vectors.create([2, 3]), 4]).asString(), "(1 [2 3] 4)");
    test.equal(lists.list(true, lists.list(false, null)).asString(), "(true false)");
};

exports['Is list'] = function (test) {
{'fraction_non_alphanumeric': 0.24281524926686218, 'fraction_numerical': 0.0281524926686217, 'mean_word_length': 4.24923076923077, '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': '1297910', 'n_tokens_mistral': 600, 'n_tokens_neox': 587, 'n_words': 130}