<commit_before>'use strict';
const {shell} = require('electron');
const {activate} = require('./../win');
const {is} = require('./../util');
const {setAcc} = require('./../keymap');
const dialog = require('./../dialog');
const file = require('./../file');
const settings = require('./../settings');

module.exports = {
  label: 'File',
  submenu: [
    {
      label: 'Search',
      accelerator: 'CmdorCtrl+F',
      click() {
        activate('search');
      }
    }, {
      type: 'separator'
    }, {
      label: 'List',
      submenu: [
        {
          label: 'New List',
          accelerator: setAcc('new-list', 'CmdorCtrl+L'),
          click() {
            activate('new-list');
          }
        }, {
          label: 'Delete List',
          accelerator: setAcc('delete-list', 'CmdorCtrl+Shift+D'),
          click() {
            activate('delete-list');
          }
        }, {
          label: 'Rename List',
          accelerator: setAcc('rename-list', 'CmdorCtrl+Y'),
          click() {
            activate('rename-list');
          }
        }, {
          type: 'separator'
        }, {
          label: 'Hide Completed Todos',
          accelerator: setAcc('hide-todo', 'CmdorCtrl+Shift+H'),
          click() {
            activate('hide-todo');
          }
        }
      ]
    }, {
      label: 'Todo',
      submenu: [
        {
          label: 'New Todo',
          accelerator: setAcc('new-todo', 'CmdorCtrl+N'),
          click() {
            activate('new-todo');
          }
        }, {
          label: 'Delete Todo',
          accelerator: setAcc('delete-todo', 'CmdorCtrl+D'),
          click() {
            activate('delete-todo');
          }
        }, {
          label: 'Rename Todo',
          accelerator: setAcc('rename-todo', 'CmdorCtrl+T'),
          click() {
            activate('rename-todo');
          }
        }, {
          type: 'separator'
        }, {
          label: 'Add to My Day',
          accelerator: setAcc('add-my-day', 'CmdorCtrl+K'),
          click() {
            activate('add-my-day');
          }
        }, {
          label: 'Complete Todo',
          accelerator: setAcc('complete-todo', 'CmdorCtrl+Shift+N'),
          click() {
            activate('complete-todo');
          }
        }, {
          type: 'separator'
        }, {
          label: 'Set Reminder',
          accelerator: setAcc('set-reminder', 'CmdorCtrl+Shift+E'),
          click() {
            activate('set-reminder');
          }
        }, {
          label: 'Add Due Date',
          accelerator: setAcc('add-due-date', 'CmdorCtrl+Shift+T'),
          click() {
            activate('add-due-date');
          }
        }
      ]
    }, {
      type: 'separator'
    }, {
      label: 'My Day',
      accelerator: setAcc('my-day', 'CmdorCtrl+M'),
      click() {
        activate('my-day');
      }
    }, {
      label: 'Toggle Cortana',
      accelerator: setAcc('toggle-cortana', 'CmdorCtrl+E'),
      click() {
        activate('toggle-cortana');
      }
    }, {
      label: 'Return to Todos',
      accelerator: setAcc('return', 'Esc'),
      click() {
        activate('return');
      }
    }, {
      type: 'separator'
    }, {
      label: 'To-Do Settings',
      accelerator: setAcc('settings', 'CmdorCtrl+,'),
      click() {
        activate('settings');
      }
    }, {
      label: 'Launch on Start',
      type: 'checkbox',
      checked: settings.get('autoLaunch'),
      click(item) {
        settings.set('autoLaunch', item.checked);
        activate('auto-launch');
      }
    }, {
      type: 'separator'
    }, {
      label: 'Edit Shortcut Keys',
      accelerator: 'CmdorCtrl+.',
      click() {
        shell.openExternal(file.localConfig);
      }
    }, {<commit_msg>Removed deprecated `Toggle Cortana` options<commit_after>'use strict';
const {shell} = require('electron');
const {activate} = require('./../win');
const {is} = require('./../util');
const {setAcc} = require('./../keymap');
const dialog = require('./../dialog');
const file = require('./../file');
const settings = require('./../settings');

module.exports = {
  label: 'File',
  submenu: [
    {
      label: 'Search',
      accelerator: 'CmdorCtrl+F',
      click() {
        activate('search');
      }
    }, {
      type: 'separator'
    }, {
      label: 'List',
      submenu: [
        {
          label: 'New List',
          accelerator: setAcc('new-list', 'CmdorCtrl+L'),
          click() {
            activate('new-list');
          }
        }, {
          label: 'Delete List',
          accelerator: setAcc('delete-list', 'CmdorCtrl+Shift+D'),
          click() {
            activate('delete-list');
          }
        }, {
          label: 'Rename List',
          accelerator: setAcc('rename-list', 'CmdorCtrl+Y'),
          click() {
            activate('rename-list');
          }
        }, {
          type: 'separator'
        }, {
          label: 'Hide Completed Todos',
          accelerator: setAcc('hide-todo', 'CmdorCtrl+Shift+H'),
          click() {
            activate('hide-todo');
          }
        }
      ]
    }, {
      label: 'Todo',
      submenu: [
        {
          label: 'New Todo',
          accelerator: setAcc('new-todo', 'CmdorCtrl+N'),
          click() {
            activate('new-todo');
          }
        }, {
          label: 'Delete Todo',
          accelerator: setAcc('delete-todo', 'CmdorCtrl+D'),
          click() {
            activate('delete-todo');
          }
        }, {
          label: 'Rename Todo',
          accelerator: setAcc('rename-todo', 'CmdorCtrl+T'),
          click() {
            activate('rename-todo');
          }
        }, {
          type: 'separator'
        }, {
          label: 'Add to My Day',
          accelerator: setAcc('add-my-day', 'CmdorCtrl+K'),
          click() {
            activate('add-my-day');
          }
        }, {
          label: 'Complete Todo',
          accelerator: setAcc('complete-todo', 'CmdorCtrl+Shift+N'),
          click() {
            activate('complete-todo');
          }
        }, {
          type: 'separator'
        }, {
          label: 'Set Reminder',
          accelerator: setAcc('set-reminder', 'CmdorCtrl+Shift+E'),
          click() {
            activate('set-reminder');
          }
        }, {
          label: 'Add Due Date',
          accelerator: setAcc('add-due-date', 'CmdorCtrl+Shift+T'),
          click() {
            activate('add-due-date');
          }
        }
      ]
    }, {
      type: 'separator'
    }, {
      label: 'My Day',
      accelerator: setAcc('my-day', 'CmdorCtrl+M'),
      click() {
        activate('my-day');
      }
    }, {
      label: 'Return to Todos',
      accelerator: setAcc('return', 'Esc'),
      click() {
        activate('return');
      }
    }, {
      type: 'separator'
    }, {
      label: 'To-Do Settings',
      accelerator: setAcc('settings', 'CmdorCtrl+,'),
      click() {
        activate('settings');
      }
    }, {
      label: 'Launch on Start',
      type: 'checkbox',
      checked: settings.get('autoLaunch'),
      click(item) {
        settings.set('autoLaunch', item.checked);
        activate('auto-launch');
      }
    }, {
      type: 'separator'
    }, {
      label: 'Edit Shortcut Keys',
      accelerator: 'CmdorCtrl+.',
      click() {
        shell.openExternal(file.localConfig);
      }
    }, {
{'fraction_non_alphanumeric': 0.17513513513513512, 'fraction_numerical': 0.0, 'mean_word_length': 1.5742608695652174, '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': '4392965', 'n_tokens_mistral': 2216, 'n_tokens_neox': 2237, 'n_words': 392}