<commit_before>"use strict";

const { app, BrowserWindow, ipcMain: ipc } = require("electron");

const util = require("./src/server/util");
const config = require("./src/server/routes/config");

async function createWindow() {
    const mainWindow = new BrowserWindow({
        frame: false,
        height: 850,
        icon: "src/client/img/favicon.ico",
        show: false,
        width: 1450,
        webPreferences: {
            nodeIntegration: true
        }
    });

    mainWindow.once("ready-to-show", () => {
        mainWindow.show();
    });

    ipc.on("mocha-done", (event, count) => {
        mainWindow.webContents.once("destroyed", () => {
            app.exit(count);
        });

        mainWindow.close();
    });<commit_msg>chore(electron): set enableRemoteModule to true<commit_after>"use strict";

const { app, BrowserWindow, ipcMain: ipc } = require("electron");

const util = require("./src/server/util");
const config = require("./src/server/routes/config");

async function createWindow() {
    const mainWindow = new BrowserWindow({
        frame: false,
        height: 850,
        icon: "src/client/img/favicon.ico",
        show: false,
        width: 1450,
        webPreferences: {
            enableRemoteModule: true,
            nodeIntegration: true
        }
    });

    mainWindow.once("ready-to-show", () => {
        mainWindow.show();
    });

    ipc.on("mocha-done", (event, count) => {
        mainWindow.webContents.once("destroyed", () => {
            app.exit(count);
        });

        mainWindow.close();
    });
{'fraction_non_alphanumeric': 0.15966921119592875, 'fraction_numerical': 0.008905852417302799, 'mean_word_length': 2.3255813953488373, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '1124030', 'n_tokens_mistral': 490, 'n_tokens_neox': 462, 'n_words': 90}