<commit_before>import {app, BrowserWindow} from 'electron';

let mainWindow = null;

app.on('window-all-closed', () => {
  app.quit();
});

app.on('ready', () => {
  mainWindow = new BrowserWindow({
    width: 1920,
    height: 1080,
    resizable: false, // keep it in FullHD!
  });

  mainWindow.loadURL(`file://${__dirname}/renderer/index.html`);
});
<commit_msg>Don't show the window until everything is loaded<commit_after>import {app, BrowserWindow} from 'electron';

let mainWindow = null;

app.on('window-all-closed', () => {
  app.quit();
});

app.on('ready', () => {
  mainWindow = new BrowserWindow({
    width: 1920,
    height: 1080,
    resizable: false, // keep it in FullHD!
    show: false, // don't show the window until everything is loaded
  });

  mainWindow.loadURL(`file://${__dirname}/renderer/index.html`);

  mainWindow.on('ready-to-show', () => {
    mainWindow.show();
    mainWindow.focus();
  });
});

{'fraction_non_alphanumeric': 0.18796992481203006, 'fraction_numerical': 0.017185821697099892, 'mean_word_length': 3.707070707070707, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 8, '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': '1393460', 'n_tokens_mistral': 331, 'n_tokens_neox': 305, 'n_words': 70}