<commit_before>

const electron = require('electron');
const app = electron.app;
const Menu = electron.Menu;

const windowProps = { width: 400,
                      height: 400,
                      frame: true,
                      transparent:false,
                      resizable:false,
                      webPreferences: {
                        nodeIntegration: true
                      }
};

let mainWindow;
let template = [
  {
      label: 'File',
      submenu: [{
          label: 'Open...',
          accelerator: 'CmdOrCtrl+O',
          click: function (item, focusedWindow) {
              var fileList = electron.dialog.showOpenDialog({properties: ['openFile', 'openDirectory', 'multiSelections']});
              console.log("fileList = " + fileList.length);
              mainWindow.webContents.send('file-menu',fileList);
          }<commit_msg>only open .ipa files from file dialog. catch no result error.<commit_after>

const electron = require('electron');
const app = electron.app;
const Menu = electron.Menu;

const windowProps = { width: 400,
                      height: 400,
                      frame: true,
                      transparent:false,
                      resizable:false,
                      webPreferences: {
                        nodeIntegration: true
                      }
};

let mainWindow;
let template = [
{
      label: 'File',
      submenu: [{
          label: 'Open...',
          accelerator: 'CmdOrCtrl+O',
          click: function (item, focusedWindow) {
              var dialogProps = {
                                    properties: ['openFile', 'multiSelections'],
                                    filters: [{
                                                  name: 'iOS Apps',
                                                  extensions: ['ipa']
                                              }]
                                };
              var fileList = electron.dialog.showOpenDialog(dialogProps);
              if(fileList) {
                  console.log("fileList = " + fileList.length);
                  mainWindow.webContents.send('file-menu',fileList);
              }
          }
{'fraction_non_alphanumeric': 0.1005048187241854, 'fraction_numerical': 0.005507113354749885, 'mean_word_length': 1.202020202020202, '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': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4278920', 'n_tokens_mistral': 518, 'n_tokens_neox': 485, 'n_words': 113}