<commit_before>// Electron entrypoint
'use strict';
const electron = require('electron');
const app = electron.app;
const BrowserWindow = electron.BrowserWindow;

let mainWindow;

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

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

  mainWindow = new BrowserWindow();
  mainWindow.maximize();

  mainWindow.loadURL('file://' + __dirname + '/static/index.html');
  if (process.env.NODE_ENV === 'development') {
    mainWindow.webContents.openDevTools(); // Open dev tools
  }
  mainWindow.on('closed', function() {
    mainWindow = null;
  });
});<commit_msg>Add copy/cut/paste<commit_after>// Electron entrypoint
'use strict';
const electron = require('electron');
const app = electron.app;
const BrowserWindow = electron.BrowserWindow;
const Menu = electron.Menu;

let template = [
  {
    label: 'Edit',
    submenu: [
      {
        label: 'Cut',
        accelerator: 'CommandOrControl+X',
        role: 'cut'
      },
      {
        label: 'Copy',
        accelerator: 'CommandOrControl+C',
        role: 'copy'
      },
      {
        label: 'Paste',
        accelerator: 'CommandOrControl+V',
        role: 'paste'
      }
    ]
  }
];

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

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

  mainWindow = new BrowserWindow();
  mainWindow.maximize();

  mainWindow.loadURL('file://' + __dirname + '/static/index.html');
  if (process.env.NODE_ENV === 'development') {
    mainWindow.webContents.openDevTools(); // Open dev tools
  }
  mainWindow.on('closed', function() {
    mainWindow = null;
  });

  let menu = Menu.buildFromTemplate(template);
  Menu.setApplicationMenu(menu);
});
{'fraction_non_alphanumeric': 0.16751269035532995, 'fraction_numerical': 0.0, 'mean_word_length': 3.213776722090261, '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': '595304', 'n_tokens_mistral': 578, 'n_tokens_neox': 561, 'n_words': 115}