<commit_before>const {Menu} = require('electron');
const electron = require('electron');
const app = electron.app;

const baseTemplate = [
  {
    label: 'Edit',
    submenu: [
      {
        role: 'undo',
      },
      {
        role: 'redo',
      },
      {
        type: 'separator',
      },
      {
        role: 'cut',
      },
      {
        role: 'copy',
      },
      {
        role: 'paste',
      },
    ]
  },
  {
    label: 'Help',
    submenu: [
      {
        label: 'Help',
        click(item, focusedWindow) {
          if (focusedWindow) {
            focusedWindow.loadURL(`file://${__dirname}/../dist/index.html?help`);
          }
        }
      }
    ]
  }
];

const macOSAppMenuTemplate = {
  label: app.getName(),<commit_msg>Add Select All option to Edit menu<commit_after>const {Menu} = require('electron');
const electron = require('electron');
const app = electron.app;

const baseTemplate = [
  {
    label: 'Edit',
    submenu: [
      {
        role: 'undo',
      },
      {
        role: 'redo',
      },
      {
        type: 'separator',
      },
      {
        role: 'cut',
      },
      {
        role: 'copy',
      },
      {
        role: 'paste',
      },
      {
        role: 'selectall',
      },
    ]
  },
  {
    label: 'Help',
    submenu: [
      {
        label: 'Help',
        click(item, focusedWindow) {
          if (focusedWindow) {
            focusedWindow.loadURL(`file://${__dirname}/../dist/index.html?help`);
          }
        }
      }
    ]
  }
];

const macOSAppMenuTemplate = {
  label: app.getName(),
{'fraction_non_alphanumeric': 0.16423589093214966, 'fraction_numerical': 0.0, 'mean_word_length': 1.4389489953632149, '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': '5732734', 'n_tokens_mistral': 517, 'n_tokens_neox': 508, 'n_words': 87}