<commit_before>import { assert } from "chai";

import * as commands from "../src/commands";
import * as cluster from "cluster";
import { setup } from "../src/index";

describe("memshared", () => {

    if (cluster.isMaster) {
        let worker = cluster.fork();

        it("should set up with initial data", () => {
            setup({
                number: 1,
                string: "Hello world!",
                hash: { one: 1, two: 2, three: 3 },
                list: [ 9, 8, 7, 6, 5, 4, 3, 2, 1 ]
            });
        });

        it("all tests", (done) => {
            worker.on("exit", () => done());
        });

    } else {<commit_msg>increase mocha timeout. forking takes a while.<commit_after>import { assert } from "chai";

import * as commands from "../src/commands";
import * as cluster from "cluster";
import { setup } from "../src/index";

describe("memshared", () => {

    if (cluster.isMaster) {
        let worker = cluster.fork();

        it("should set up with initial data", () => {
            setup({
                number: 1,
                string: "Hello world!",
                hash: { one: 1, two: 2, three: 3 },
                list: [ 9, 8, 7, 6, 5, 4, 3, 2, 1 ]
            });
        });

        it("all tests", (done) => {
            worker.on("exit", () => done());
        }).timeout(5000);

    } else {
{'fraction_non_alphanumeric': 0.17733627667402502, 'fraction_numerical': 0.02207505518763797, 'mean_word_length': 1.6666666666666667, 'pattern_counts': {'":': 0, '<': 3, '<?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': '4778510', 'n_tokens_mistral': 443, 'n_tokens_neox': 392, 'n_words': 125}