<commit_before>const {app, BrowserWindow, Menu} = require('electron')
const argparse = require('argparse')
const path = require('path')
const url = require('url')

// Keep a global reference of the window object, if you don't, the window will
// be closed automatically when the JavaScript object is garbage collected.
let win;
var cliArgs;

try {
  var parser = new argparse.ArgumentParser({
    version: '1.0.0',
    addHelp: true,
    description: 'AOM Analyzer'
  });
  parser.addArgument(['--frames'], { defaultValue: 4, help: 'Number of frames to decode.' });
  parser.addArgument(['--dev'], { action: 'storeTrue', help: 'Developer mode.' });
  parser.addArgument(['--zoomFactor'], { defaultValue: 1, help: 'Default browser zoom. 1 default, 0.75 small, 0.5 tiny' });
  parser.addArgument(['--split'], { defaultValue: 0, help: 'Split mode: 0 none, 4 vertical' });
  parser.addArgument(['file'], { nargs: '*', help: 'Decoder or IVF file path (local path or url).' });
  if (process.argv[0].endsWith('AOMAnalyzer')) {
    cliArgs = parser.parseArgs(process.argv.slice(1));
  } else {
    cliArgs = parser.parseArgs();
  }
} catch (x) {
  // ArgumentParser throws an exception when packaged as an electron app
  // and no arguments are passed.
  cliArgs = {
    file: [],
    zoomFactor: 1,
    split: 0,
    dev: false
  }<commit_msg>Fix windows.<commit_after>const {app, BrowserWindow, Menu} = require('electron')
const argparse = require('argparse')
const path = require('path')
const url = require('url')

// Keep a global reference of the window object, if you don't, the window will
// be closed automatically when the JavaScript object is garbage collected.
let win;
var cliArgs;

try {
  var parser = new argparse.ArgumentParser({
    version: '1.0.0',
    addHelp: true,
    description: 'AOM Analyzer'
  });
  parser.addArgument(['--frames'], { defaultValue: 4, help: 'Number of frames to decode.' });
  parser.addArgument(['--dev'], { action: 'storeTrue', help: 'Developer mode.' });
  parser.addArgument(['--zoomFactor'], { defaultValue: 1, help: 'Default browser zoom. 1 default, 0.75 small, 0.5 tiny' });
  parser.addArgument(['--split'], { defaultValue: 0, help: 'Split mode: 0 none, 4 vertical' });
  parser.addArgument(['file'], { nargs: '*', help: 'Decoder or IVF file path (local path or url).' });
  if (process.argv[0].endsWith('AOMAnalyzer') || process.argv[0].endsWith('AOMAnalyzer.exe')) {
    cliArgs = parser.parseArgs(process.argv.slice(1));
  } else {
    cliArgs = parser.parseArgs();
  }
} catch (x) {
  // ArgumentParser throws an exception when packaged as an electron app
  // and no arguments are passed.
  cliArgs = {
    file: [],
    zoomFactor: 1,
    split: 0,
    dev: false
  }
{'fraction_non_alphanumeric': 0.1588235294117647, 'fraction_numerical': 0.013602941176470588, 'mean_word_length': 3.911552346570397, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2413824', 'n_tokens_mistral': 878, 'n_tokens_neox': 825, 'n_words': 274}