<commit_before>const { autoUpdater } = require('electron-updater');
const { dialog } = require('electron');
const { ipcMain } = require('electron');
const IPFSBox = require('./IPFSBox.js');
const logger = require('electron-log');
const menubar = require('menubar');
const { __DEV__, ICON_PATH, INDEX_PATH } = require('./constants');

autoUpdater.logger = logger;
autoUpdater.logger.transports.file.level = 'info';

const ipfsBox = new IPFSBox();

const mb = menubar({
    icon: ICON_PATH,
    index: INDEX_PATH,
    preloadWindow: true,
    alwaysOnTop: __DEV__,
    width: 350,
    height: 400,
});

mb.on('ready', () => {
    if (__DEV__) {
        mb.showWindow();
        return;
    }

    autoUpdater.checkForUpdates();
});
<commit_msg>Show the window on launch<commit_after>const { autoUpdater } = require('electron-updater');
const { dialog } = require('electron');
const { ipcMain } = require('electron');
const IPFSBox = require('./IPFSBox.js');
const logger = require('electron-log');
const menubar = require('menubar');
const { __DEV__, ICON_PATH, INDEX_PATH } = require('./constants');

autoUpdater.logger = logger;
autoUpdater.logger.transports.file.level = 'info';

const ipfsBox = new IPFSBox();

const mb = menubar({
    icon: ICON_PATH,
    index: INDEX_PATH,
    preloadWindow: true,
    alwaysOnTop: __DEV__,
    width: 350,
    height: 400,
});

mb.on('ready', () => {
    mb.showWindow();

    if (__DEV__) {
        return;
    }

    autoUpdater.checkForUpdates();
});

{'fraction_non_alphanumeric': 0.1620897521768252, 'fraction_numerical': 0.008037508372404554, 'mean_word_length': 3.947019867549669, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '2931229', 'n_tokens_mistral': 516, 'n_tokens_neox': 504, 'n_words': 108}