<commit_before>var app = require('app');
var BrowserWindow = require('browser-window');

require('electron-debug')();
require('crash-reporter').start();

var mainWindow = null;

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

app.on('ready', function() {

    mainWindow = new BrowserWindow({width: 1024, height: 728});

    if (process.env.HOT) {
        mainWindow.loadUrl('file://' + __dirname + '/app/hot-dev-app.html');
    } else {
        mainWindow.loadUrl('file://' + __dirname + '/app/app.html');
    }

    mainWindow.on('closed', function() {
        mainWindow = null;
    });

    if (process.env.NODE_ENV === 'development') {
        mainWindow.openDevTools();
    }

});<commit_msg>Fixed not quitting on mac & cleaned up main.js<commit_after>var app = require('app');
var BrowserWindow = require('browser-window');

require('electron-debug')();
require('crash-reporter').start();

var mainWindow = null;

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

app.on('ready', function() {
    mainWindow = new BrowserWindow({
        width: 1024,
        height: 576,
        "min-width": 768,
        "min-height": 432
    });

    mainWindow.loadUrl('file://' + __dirname + '/app/app.html');

    mainWindow.on('closed', function() {
        mainWindow = null;
    });

    if (process.env.NODE_ENV === 'development') {
        mainWindow.openDevTools();
    }
});
{'fraction_non_alphanumeric': 0.19257221458046767, 'fraction_numerical': 0.013755158184319119, 'mean_word_length': 3.0756302521008405, 'pattern_counts': {'":': 2, '<': 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': '3964039', 'n_tokens_mistral': 494, 'n_tokens_neox': 457, 'n_words': 87}