<commit_before>/* jshint unused:false */
function NodeCG(bundlename, bundleConfig, ncgConfig, socket) {
    'use strict';

    // This constructor only works if socket.io is loaded
    if (typeof io === 'undefined') {
        throw new Error('[nodeceg] Socket.IO must be loaded before instantiating the API');
    }

    Object.defineProperty(this, 'config', {
        value: ncgConfig,
        writable: false,
        enumerable: true
    });
    Object.freeze(this.config);

    this.bundleConfig = bundleConfig;
    this._handlers = [];
    this._varHandlers = [];
    this._declaredVars = {};
<commit_msg>If a page has no title, set it to the current bundle name.<commit_after>/* jshint unused:false */
function NodeCG(bundlename, bundleConfig, ncgConfig, socket) {
    'use strict';

    // This constructor only works if socket.io is loaded
    if (typeof io === 'undefined') {
        throw new Error('[nodeceg] Socket.IO must be loaded before instantiating the API');
    }

    // If title isn't set, set it to the bundle name
    if (document.title === '') document.title = bundlename;

    Object.defineProperty(this, 'config', {
        value: ncgConfig,
        writable: false,
        enumerable: true
    });
    Object.freeze(this.config);

    this.bundleConfig = bundleConfig;
    this._handlers = [];
    this._varHandlers = [];
    this._declaredVars = {};

{'fraction_non_alphanumeric': 0.1211022480058013, 'fraction_numerical': 0.0, 'mean_word_length': 2.909348441926346, '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': '5087855', 'n_tokens_mistral': 410, 'n_tokens_neox': 401, 'n_words': 120}