<commit_before>var app = require("app");
var BrowserWindow = require("browser-window");
var Menu = require("menu");
var mainWindow = null;

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

app.on("ready", function () {
  mainWindow = new BrowserWindow({
      width: 475,
      height: 370,
      "min-width": 475,
      "min-height": 370
  });
  mainWindow.loadUrl("https://usecamino.com");
  mainWindow.on("closed", function () {
      mainWindow =  null;
  });

  // Create the Application's main menu
  var template = [{
      label: "Application",
      submenu: [
          { label: "About Application", selector: "orderFrontStandardAboutPanel:" },
          { type: "separator" },
          { label: "Quit", accelerator: "Command+Q", click: function() { app.quit(); }}
      ]}, {
      label: "Edit",
      submenu: [
          { label: "Undo", accelerator: "CmdOrCtrl+Z", selector: "undo:" },
          { label: "Redo", accelerator: "Shift+CmdOrCtrl+Z", selector: "redo:" },
          { type: "separator" },
          { label: "Cut", accelerator: "CmdOrCtrl+X", selector: "cut:" },
          { label: "Copy", accelerator: "CmdOrCtrl+C", selector: "copy:" },
          { label: "Paste", accelerator: "CmdOrCtrl+V", selector: "paste:" },
          { label: "Select All", accelerator: "CmdOrCtrl+A", selector: "selectAll:" }
      ]}
  ];

  Menu.setApplicationMenu(Menu.buildFromTemplate(template));
});<commit_msg>Revert to docked app + keyboard shortcuts<commit_after>var menubar = require('menubar');
var electron = require('electron');
var Menu = require("menu");

var mb = menubar({
  "index": 'https://usecamino.com',
  "preloadWindow": true,
  "width": 475,
  "height": 370,
  "icon": "icon.png",
  "show-dock-icon": false
});

mb.on('ready', function ready () {
  console.log('app is running!');
});

mb.on('after-create-window', function() {
  // Add copy-paste, undo and quit keyboard shortcuts
  var shortcuts = [{
    label: "Shortcuts",
    submenu: [
        { label: "Undo", accelerator: "CmdOrCtrl+Z", selector: "undo:" },
        { label: "Redo", accelerator: "Shift+CmdOrCtrl+Z", selector: "redo:" },
        { type: "separator" },
        { label: "Cut", accelerator: "CmdOrCtrl+X", selector: "cut:" },
        { label: "Copy", accelerator: "CmdOrCtrl+C", selector: "copy:" },
        { label: "Paste", accelerator: "CmdOrCtrl+V", selector: "paste:" },
        { label: "Select All", accelerator: "CmdOrCtrl+A", selector: "selectAll:" },
        { label: "Quit", accelerator: "Command+Q", click: function() { app.quit(); }}
    ]}
  ];

  Menu.setApplicationMenu(Menu.buildFromTemplate(shortcuts));
})
{'fraction_non_alphanumeric': 0.19150549867273417, 'fraction_numerical': 0.006825938566552901, 'mean_word_length': 3.389351081530782, 'pattern_counts': {'":': 8, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '2284562', 'n_tokens_mistral': 885, 'n_tokens_neox': 827, 'n_words': 196}