<commit_before>import platform from 'common/utils/platform';
import $ from 'browser/menus/expressions';

export default {
  label: '&View',
  submenu: [{
    label: 'Zoom In',
    accelerator: 'CmdOrCtrl+plus',
    needsWindow: true,
    click: $.all(
      $.setPref('zoom-level', $.sum($.pref('zoom-level'), $.val(1))),
      $.sendToWebView('zoom-level', $.pref('zoom-level'))
    )
  }, {
    label: 'Zoom Out',
    accelerator: 'CmdOrCtrl+-',
    needsWindow: true,
    click: $.all(
      $.setPref('zoom-level', $.sum($.pref('zoom-level'), $.val(-1))),
      $.sendToWebView('zoom-level', $.pref('zoom-level'))
    )
  }, {
    label: 'Reset Zoom',
    accelerator: 'CmdOrCtrl+0',
    needsWindow: true,
    click: $.all(
      $.sendToWebView('zoom-level', $.val(0)),
      $.unsetPref('zoom-level')
    )
  }, {
    type: 'separator'
  }, {
    needsWindow: true,
    role: 'togglefullscreen'
  }, {
    label: 'Toggle &Developer Tools',
    accelerator: 'Alt+CmdOrCtrl+I',
    needsWindow: true,
    click: $.toggleDevTools()
  }, {
    label: 'Toggle &Menu Bar',
    accelerator: 'Alt+Ctrl+B',
    needsWindow: true,
    allow: platform.isNonDarwin,
    click: $.toggleMenuBar()
  }, {
    type: 'separator'
  }, {
    type: 'checkbox',
    label: 'Auto Hide Sidebar',
    needsWindow: true,
    click: $.all(
      $.styleCss('auto-hide-sidebar', (css) =>
        $.sendToWebView('apply-sidebar-auto-hide', $.key('checked'), $.val(css))
      ),
      $.setPref('sidebar-auto-hide', $.key('checked'))
    ),
    parse: $.all(
      $.setLocal('checked', $.pref('sidebar-auto-hide'))
    )
  }, {
    type: 'separator'
  }, {
    label: 'N&ew Conversation',
    accelerator: 'CmdOrCtrl+N',
    needsWindow: true,
    click: $.sendToWebView('new-conversation')
  }, {
    label: 'Search &Chats',
    accelerator: 'CmdOrCtrl+F',
    needsWindow: true,
    click: $.sendToWebView('search-chats')
  // }, {
  //   type: 'separator'
  // }, {
  //   label: '&Next Conversation',
  //   accelerator: 'CmdOrCtrl+Down',
  //   needsWindow: true,
  //   click: $.sendToWebView('switch-conversation', $.val(+1))
  // }, {
  //   label: '&Previous Conversation',
  //   accelerator: 'CmdOrCtrl+Up',
  //   needsWindow: true,
  //   click: $.sendToWebView('switch-conversation', $.val(-1))
  // }, {
  //   label: 'Switch to Conversation',
  //   submenu: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10].map((index) => ({
  //     label: 'Conversation ' + index,
  //     accelerator: 'CmdOrCtrl+' + (index % 10),
  //     needsWindow: true,
  //     click: $.sendToWebView('switch-conversation', $.val(1000 + index))
  //   }))
  }/*, {
    type: 'separator'
  }, {
    label: 'Send Photo or &Video',
    accelerator: 'CmdOrCtrl+O',
    needsWindow: true,
    click: $.sendToWebView('send-photo-video')
  }, {
    label: '&Take Photo',
    accelerator: 'CmdOrCtrl+P',
    needsWindow: true,
    click: $.sendToWebView('take-photo')
  }*/]
};
<commit_msg>Change kb shortcut for dev tools on non darwin<commit_after>import platform from 'common/utils/platform';
import $ from 'browser/menus/expressions';

export default {
  label: '&View',
  submenu: [{
    label: 'Zoom In',
    accelerator: 'CmdOrCtrl+plus',
    needsWindow: true,
    click: $.all(
      $.setPref('zoom-level', $.sum($.pref('zoom-level'), $.val(1))),
      $.sendToWebView('zoom-level', $.pref('zoom-level'))
    )
  }, {
    label: 'Zoom Out',
    accelerator: 'CmdOrCtrl+-',
    needsWindow: true,
    click: $.all(
      $.setPref('zoom-level', $.sum($.pref('zoom-level'), $.val(-1))),
      $.sendToWebView('zoom-level', $.pref('zoom-level'))
    )
  }, {
    label: 'Reset Zoom',
    accelerator: 'CmdOrCtrl+0',
    needsWindow: true,
    click: $.all(
      $.sendToWebView('zoom-level', $.val(0)),
      $.unsetPref('zoom-level')
    )
  }, {
    type: 'separator'
  }, {
    needsWindow: true,
    role: 'togglefullscreen'
  }, {
    label: 'Toggle &Developer Tools',
    accelerator: platform.isNonDarwin ? 'Ctrl+Shift+Alt+I' : 'Alt+Cmd+I',
    needsWindow: true,
    click: $.toggleDevTools()
  }, {
    label: 'Toggle &Menu Bar',
    accelerator: 'Alt+Ctrl+B',
    needsWindow: true,
    allow: platform.isNonDarwin,
    click: $.toggleMenuBar()
  }, {
    type: 'separator'
  }, {
    type: 'checkbox',
    label: 'Auto Hide Sidebar',
    needsWindow: true,
    click: $.all(
      $.styleCss('auto-hide-sidebar', (css) =>
        $.sendToWebView('apply-sidebar-auto-hide', $.key('checked'), $.val(css))
      ),
      $.setPref('sidebar-auto-hide', $.key('checked'))
    ),
    parse: $.all(
      $.setLocal('checked', $.pref('sidebar-auto-hide'))
    )
  }, {
    type: 'separator'
  }, {
    label: 'N&ew Conversation',
    accelerator: 'CmdOrCtrl+N',
    needsWindow: true,
    click: $.sendToWebView('new-conversation')
  }, {
    label: 'Search &Chats',
    accelerator: 'CmdOrCtrl+F',
    needsWindow: true,
    click: $.sendToWebView('search-chats')
  // }, {
  //   type: 'separator'
  // }, {
  //   label: '&Next Conversation',
  //   accelerator: 'CmdOrCtrl+Down',
  //   needsWindow: true,
  //   click: $.sendToWebView('switch-conversation', $.val(+1))
  // }, {
  //   label: '&Previous Conversation',
  //   accelerator: 'CmdOrCtrl+Up',
  //   needsWindow: true,
  //   click: $.sendToWebView('switch-conversation', $.val(-1))
  // }, {
  //   label: 'Switch to Conversation',
  //   submenu: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10].map((index) => ({
  //     label: 'Conversation ' + index,
  //     accelerator: 'CmdOrCtrl+' + (index % 10),
  //     needsWindow: true,
  //     click: $.sendToWebView('switch-conversation', $.val(1000 + index))
  //   }))
  }/*, {
    type: 'separator'
  }, {
    label: 'Send Photo or &Video',
    accelerator: 'CmdOrCtrl+O',
    needsWindow: true,
    click: $.sendToWebView('send-photo-video')
  }, {
    label: '&Take Photo',
    accelerator: 'CmdOrCtrl+P',
    needsWindow: true,
    click: $.sendToWebView('take-photo')
  }*/]
};

{'fraction_non_alphanumeric': 0.2064906675634774, 'fraction_numerical': 0.007734992433159576, 'mean_word_length': 2.7597977243994944, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3219259', 'n_tokens_mistral': 2154, 'n_tokens_neox': 2122, 'n_words': 400}