<commit_before>var electron = require('electron');  // Module to control application life.
var process = require('process');
const {app} = electron;
const {BrowserWindow} = electron;
let win;  // Ensure that our win isn't garbage collected

app.on('ready', function() {
  // Create the browser window.
  if (process.platform == 'win32')
    win = new BrowserWindow({width: 670, height: 510, frame: true, resizable: false});
  else
    win = new BrowserWindow({width: 640, height: 480, frame: true, resizable: false});

  // Load the main interface
  win.loadURL('file://' + __dirname + '/index.html');

  // Uncomment this line to open the DevTools upon launch. 
  //win.webContents.openDevTools({'mode':'undocked'});

  //Disable the menubar for dev versions
  win.setMenu(null);

  win.on('closed', function() {
    // Dereference the window object so our app exits
    win = null;<commit_msg>Enable electron-debug<commit_after>var electron = require('electron');  // Module to control application life.
var process = require('process');
require('electron-debug')({showDevTools: false});
const {app} = electron;
const {BrowserWindow} = electron;
let win;  // Ensure that our win isn't garbage collected

app.on('ready', function() {
  // Create the browser window.
  if (process.platform == 'win32')
    win = new BrowserWindow({width: 670, height: 510, frame: true, resizable: false});
  else
    win = new BrowserWindow({width: 640, height: 480, frame: true, resizable: false});

  // Load the main interface
  win.loadURL('file://' + __dirname + '/index.html');

  //Disable the menubar for dev versions
  win.setMenu(null);

  win.on('closed', function() {
    // Dereference the window object so our app exits
    win = null;
{'fraction_non_alphanumeric': 0.1426096997690531, 'fraction_numerical': 0.016166281755196306, 'mean_word_length': 3.9798850574712645, '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': '2686058', 'n_tokens_mistral': 542, 'n_tokens_neox': 498, 'n_words': 176}