<commit_before>'use strict';

const path = require('path');
const electron = require('electron');

const app = electron.app;
require('electron-debug')({ enabled: true });

let mainWindow;

function createMainWindow () {
  const win = new electron.BrowserWindow({
    title: app.getName(),
    height: 550,
    width: 960,
    backgroundColor: '#263238',
    icon: __dirname + '/assets/logo.png'
  });
  win.loadURL('file://' + __dirname + '/src/index.html');
  win.setMenu(null);
  return win;
}
app.on('ready', function() {
  mainWindow = createMainWindow();
});<commit_msg>Close all window instances on quit - closes #22<commit_after>'use strict';

const path = require('path');
const electron = require('electron');

const app = electron.app;
require('electron-debug')({ enabled: true });

let mainWindow;

function createMainWindow () {
  const win = new electron.BrowserWindow({
    title: app.getName(),
    height: 550,
    width: 960,
    backgroundColor: '#263238',
    icon: __dirname + '/assets/logo.png'
  });
  win.loadURL('file://' + __dirname + '/src/index.html');
  win.setMenu(null);
  return win;
}
app.on('ready', function() {
  mainWindow = createMainWindow();
});

app.on('window-all-closed', function() {
  app.quit();
});
{'fraction_non_alphanumeric': 0.17765273311897106, 'fraction_numerical': 0.02090032154340836, 'mean_word_length': 4.23109243697479, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '3881343', 'n_tokens_mistral': 416, 'n_tokens_neox': 394, 'n_words': 96}