<commit_before>/****************************************************************************
 * main.js
 * openacousticdevices.info
 * June 2017
 *****************************************************************************/

'use strict';

/*jslint nomen: true*/

var electron = require('electron');
var app = electron.app;

var BrowserWindow = electron.BrowserWindow;

var Menu = electron.Menu;
var shell = electron.shell;

var path = require('path');

require('electron-debug')({
    showDevTools: "undocked"
});

function openAboutWindow() {

    var aboutWindow = new BrowserWindow({
        width: 400,
        height: 300,
        resizable: false,
        fullscreenable: false,
        icon: path.join(__dirname, "/build/icon.ico")
    });

    aboutWindow.setMenu(null);
    aboutWindow.loadURL("file://" + __dirname + "/about.html");

}

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

    var menu, mainWindow, menuTemplate, windowHeight = 880;

    if (process.platform === 'darwin') {
        windowHeight = 828;
    }

    mainWindow = new BrowserWindow({
        width: 565,
        height: windowHeight,
        resizable: false,
        fullscreenable: false,
        icon: path.join(__dirname, "/build/icon.ico")
    });

    menuTemplate = [{
        label: "File",
        submenu: [{
            label: "Open configuration",
            accelerator: "CommandOrControl+O",
            click: function () {
                mainWindow.webContents.send("load");
            }
        }, {
            label: "Save configuration",
            accelerator: "CommandOrControl+S",
            click: function () {
                mainWindow.webContents.send("save");
            }
        }, {
            label: "Quit",
            accelerator: "CommandOrControl+Q",
            click: function () {
                app.quit();
            }
        }]
    }, {
        label: "Help",
        submenu: [{
            label: "Open Acoustic Devices website",
            click: function () {
                shell.openExternal("https://openacousticdevices.info");
            }
        }, {
            label: "About",
            click: function () {
                openAboutWindow();
            }
        }]
    }];

    menu = Menu.buildFromTemplate(menuTemplate);

    Menu.setApplicationMenu(menu);<commit_msg>Add link to support forum<commit_after>/****************************************************************************
 * main.js
 * openacousticdevices.info
 * June 2017
 *****************************************************************************/

'use strict';

/*jslint nomen: true*/

var electron = require('electron');
var app = electron.app;

var BrowserWindow = electron.BrowserWindow;

var Menu = electron.Menu;
var shell = electron.shell;

var path = require('path');

require('electron-debug')({
    showDevTools: "undocked"
});

function openAboutWindow() {

    var aboutWindow = new BrowserWindow({
        width: 400,
        height: 300,
        resizable: false,
        fullscreenable: false,
        icon: path.join(__dirname, "/build/icon.ico")
    });

    aboutWindow.setMenu(null);
    aboutWindow.loadURL("file://" + __dirname + "/about.html");

}

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

    var menu, mainWindow, menuTemplate, windowHeight = 880;

    if (process.platform === 'darwin') {
        windowHeight = 828;
    }

    mainWindow = new BrowserWindow({
        width: 565,
        height: windowHeight,
        resizable: false,
        fullscreenable: false,
        icon: path.join(__dirname, "/build/icon.ico")
    });

    menuTemplate = [{
        label: "File",
        submenu: [{
            label: "Open configuration",
            accelerator: "CommandOrControl+O",
            click: function () {
                mainWindow.webContents.send("load");
            }
        }, {
            label: "Save configuration",
            accelerator: "CommandOrControl+S",
            click: function () {
                mainWindow.webContents.send("save");
            }
        }, {
            label: "Quit",
            accelerator: "CommandOrControl+Q",
            click: function () {
                app.quit();
            }
        }]
    }, {
        label: "Help",
        submenu: [{
            label: "Open Acoustic Devices website",
            click: function () {
                shell.openExternal("https://openacousticdevices.info");
            }
        }, {
            label: "Support forum",
            click: function () {
                shell.openExternal("https://www.openacousticdevices.info/support");
            }
        }, {
            label: "About",
            click: function () {
                openAboutWindow();
            }
        }]
    }];

    menu = Menu.buildFromTemplate(menuTemplate);

    Menu.setApplicationMenu(menu);
{'fraction_non_alphanumeric': 0.18762972187629723, 'fraction_numerical': 0.0078870900788709, 'mean_word_length': 2.019423558897243, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 3, 'lorem ipsum': 0, 'www.': 1, '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': '5137665', 'n_tokens_mistral': 1322, 'n_tokens_neox': 1236, 'n_words': 259}