<commit_before>import * as electron from 'electron';
import * as path from 'path';

let mainWindow: Electron.BrowserWindow | undefined = undefined;

electron.app.on('window-all-closed', () => {
    if (process.platform !== 'darwin') {
        electron.app.quit();
    }
});

electron.app.on('ready', () => {
    require("../app"); // start the express server
    mainWindow = new electron.BrowserWindow({ width: 1024, height: 728 });
    mainWindow.loadURL(`file://${path.join(__dirname, 'index.html')}`);
    mainWindow.on('closed', () => {
        mainWindow = undefined;
    });
});<commit_msg>Made sure dev-tools is available in electron app.<commit_after>import * as electron from 'electron';
import * as path from 'path';

let mainWindow: Electron.BrowserWindow | undefined = undefined;

electron.app.on('window-all-closed', () => {
    if (process.platform !== 'darwin') {
        electron.app.quit();
    }
});

electron.app.on('ready', () => {
    require("../app"); // start the express server
    mainWindow = new electron.BrowserWindow({ width: 1024, height: 728 });
    mainWindow.webContents.openDevTools();
    mainWindow.loadURL(`file://${path.join(__dirname, 'index.html')}`);
    mainWindow.on('closed', () => {
        mainWindow = undefined;
    });
});
{'fraction_non_alphanumeric': 0.1861743912018853, 'fraction_numerical': 0.010997643362136685, 'mean_word_length': 3.632727272727273, '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': '3297099', 'n_tokens_mistral': 397, 'n_tokens_neox': 375, 'n_words': 84}