<commit_before>const env = process.env.NODE_ENV || 'development';
const dev = env === 'development';

const path = require('path');
const url = require('url');
const isDevElectron = require('electron-is-dev'); // is dev electron (run from builded version)
const electron = require('electron'); // Module to control application life.
import * as logger from './logger';
import * as windowBounds from './windowBounds';
import getIcon from './icon';
// const autoUpdater = require('./autoUpdater') // comming soon

const { app, BrowserWindow, globalShortcut } = electron; // Module to create native browser window.

// 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 mainWindow;

function createWindow() {
  if (!isDevElectron) {
    // autoUpdater.checkForUpdates(); // comming soon
  }

  if (dev) {
    const installExtension = require('electron-devtools-installer');
    installExtension.default(installExtension.REDUX_DEVTOOLS)
      .then((name) => console.log(`Added Extension:  ${name}`))
      .catch((err) => console.log('An error occurred: ', err));

    installExtension.default(installExtension.REACT_DEVELOPER_TOOLS)
      .then((name) => console.log(`Added Extension:  ${name}`))
      .catch((err) => console.log('An error occurred: ', err));

    require('electron-debug')({showDevTools: true});
  }

  // Create the browser window.

  mainWindow = new BrowserWindow({
    ...windowBounds.get(),
    icon: getIcon()
  });

  logger.init(mainWindow);
  windowBounds.init(mainWindow);

  if (dev) {
    mainWindow.loadURL('http://localhost:4444');

    // Open the DevTools.
    mainWindow.webContents.openDevTools();
  } else {
    mainWindow.loadURL(url.format({
      pathname: path.join(app.getAppPath(), 'dist', 'renderer', `index.html`),
      protocol: 'file:',
      slashes: true<commit_msg>comment out redix devtools<commit_after>const env = process.env.NODE_ENV || 'development';
const dev = env === 'development';

const path = require('path');
const url = require('url');
const isDevElectron = require('electron-is-dev'); // is dev electron (run from builded version)
const electron = require('electron'); // Module to control application life.
import * as logger from './logger';
import * as windowBounds from './windowBounds';
import getIcon from './icon';
// const autoUpdater = require('./autoUpdater') // comming soon

const { app, BrowserWindow, globalShortcut } = electron; // Module to create native browser window.

// 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 mainWindow;

function createWindow() {
  if (!isDevElectron) {
    // autoUpdater.checkForUpdates(); // comming soon
  }

  if (dev) {
    // const installExtension = require('electron-devtools-installer');
    // installExtension.default(installExtension.REDUX_DEVTOOLS)
    //   .then((name) => console.log(`Added Extension:  ${name}`))
    //   .catch((err) => console.log('An error occurred: ', err));

    // installExtension.default(installExtension.REACT_DEVELOPER_TOOLS)
    //   .then((name) => console.log(`Added Extension:  ${name}`))
    //   .catch((err) => console.log('An error occurred: ', err));

    require('electron-debug')({showDevTools: true});
  }

  // Create the browser window.

  mainWindow = new BrowserWindow({
    ...windowBounds.get(),
    icon: getIcon()
  });

  logger.init(mainWindow);
  windowBounds.init(mainWindow);

  if (dev) {
    mainWindow.loadURL('http://localhost:4444');

    // Open the DevTools.
    mainWindow.webContents.openDevTools();
  } else {
    mainWindow.loadURL(url.format({
      pathname: path.join(app.getAppPath(), 'dist', 'renderer', `index.html`),
      protocol: 'file:',
      slashes: true
{'fraction_non_alphanumeric': 0.15074858027878163, 'fraction_numerical': 0.002065049044914817, 'mean_word_length': 3.86198243412798, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '3551610', 'n_tokens_mistral': 1151, 'n_tokens_neox': 1114, 'n_words': 306}