<commit_before>const pack = require('../package.json');

module.exports = (mainWindow) => {
  return [
    {
      label: 'Electron',
      submenu: [
        {
          label: 'Quit',
          accelerator: 'Command+Q',
          click() {
            app.quit()
          }
        }
      ]
    },
    {
      label: 'Help',
      submenu: [
        {
          label: 'Version',
          click(item, focusedWindow) {
            focusedWindow.webContents.send('getVersion', pack);
          }
        },
        {
          label: 'Repository',
          click() {
            require('shell').openExternal('https://github.com/yasaricli/electron-nes')
          }
        }
      ]
    }
  ];
}<commit_msg>other menu version fix.<commit_after>const pack = require('../package.json');

module.exports = (mainWindow) => {
  return [
    {
      label: 'Electron',
      submenu: [
        {
          label: 'Quit',
          accelerator: 'Command+Q',
          click() {
            app.quit()
          }
        }
      ]
    },
    {
      label: 'Help',
      submenu: [
        {
          label: 'Version',
          click(item, focusedWindow) {
            focusedWindow.webContents.send('version', pack);
          }
        },
        {
          label: 'Repository',
          click() {
            require('shell').openExternal('https://github.com/yasaricli/electron-nes')
          }
        }
      ]
    }
  ];
}
{'fraction_non_alphanumeric': 0.15024458420684836, 'fraction_numerical': 0.0, 'mean_word_length': 1.2912, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '6569889', 'n_tokens_mistral': 427, 'n_tokens_neox': 421, 'n_words': 59}