<commit_before>require("source-map-support").install();
import * as site from "./lib/autoload";

site.server.init("modules"); // use ./modules/ as a module directory
// site.server.start(); // start listening
<commit_msg>Prevent uncaught errors from crashing the server<commit_after>require("source-map-support").install();

process.on("uncaughtException", function(err : Error) {
    console.log("An uncaught error occurred: " + err.message);
    console.log(err.stack);
});

import * as site from "./lib/autoload";

site.server.init("modules"); // use ./modules/ as a module directory

{'fraction_non_alphanumeric': 0.1686541737649063, 'fraction_numerical': 0.0, 'mean_word_length': 4.6, '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': '1289002', 'n_tokens_mistral': 171, 'n_tokens_neox': 169, 'n_words': 44}