<commit_before>const electron = require('electron');
// module that controls app lifecycle
const {app} = electron;
// <commit_msg>wrote main.js from electron quik start<commit_after>const electron = require('electron');
// module that controls app lifecycle
const {app} = electron;
// module to create native window
const {BrowserWindow} = electron;

// global reference of the window obj (for grbge coll. reasons)
let win;

function createWindow() {
  // create new window
  win = new BrowserWindow({width: 500, height: 500});
  // load index.html
  win.loadURL(`file://${__dirname}/index.html`);

  // handle window close
  win.on('closed', () => {
    win = null;
  });
}

// READY - when the app is ready..call this
app.on('ready', createWindow);

// WHEN ALL WINDOWS CLOSED
app.on('window-all-closed', () => {
  // if you're on mac, keep open unless user quits w/ Cmd + Q
  if (process.platform !== 'darwin') {
    app.quit()
  }
});

// ON REOPEN
app.on('activate', () => {
  if (win === null) {
    createWindow();
  }
});
{'fraction_non_alphanumeric': 0.16229348882410108, 'fraction_numerical': 0.0058309037900874635, 'mean_word_length': 3.4588744588744587, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 6, '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': '3880190', 'n_tokens_mistral': 335, 'n_tokens_neox': 321, 'n_words': 104}