<commit_before>var app = require('app');
var BrowserWindow = require('browser-window');
var ipc = require('ipc');
global.app_root = __dirname+'/app';
global.storage = require(app_root+'/lib/storage/storage');
global.i18n = require(app_root+'/lib/i18n');
var environment = storage.get('environment');
require('crash-reporter').start();

var mainWindow = null;

var Menu = require("menu");

app.on('window-all-closed', function(){
  if (process.platform != 'darwin') {
    app.quit();
  }
});
app.on('ready', function(){
  mainWindow = new BrowserWindow({width: 800, height: 600});
  mainWindow.loadUrl('file://'+ app_root +'/views/index.html');
  if (environment == 'development')
    mainWindow.openDevTools();

  var template = require(app_root+'/lib/menus/main_menu')(app, BrowserWindow, mainWindow);

  Menu.setApplicationMenu(Menu.buildFromTemplate(template));
  mainWindow.on('closed', function() {
    mainWindow = null;
  });<commit_msg>MOD(refactoring) : remove testing<commit_after>var app = require('app');
var BrowserWindow = require('browser-window');
var ipc = require('ipc');
global.app_root = __dirname+'/app';
global.storage = require(app_root+'/lib/storage/storage');
global.i18n = require(app_root+'/lib/i18n');
var environment = storage.get('environment');
require('crash-reporter').start();

var mainWindow = null;

var Menu = require("menu");

app.on('window-all-closed', function(){
  if (process.platform != 'darwin') {
    app.quit();
  }
});
app.on('ready', function(){
  mainWindow = new BrowserWindow({width: 800, height: 600});
  mainWindow.loadUrl('file://'+ app_root +'/views/index.html');

  var template = require(app_root+'/lib/menus/main_menu')(app, BrowserWindow, mainWindow);

  Menu.setApplicationMenu(Menu.buildFromTemplate(template));
  mainWindow.on('closed', function() {
    mainWindow = null;
  });
{'fraction_non_alphanumeric': 0.18848451928299836, 'fraction_numerical': 0.010863661053775122, 'mean_word_length': 5.7226277372262775, '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': '267372', 'n_tokens_mistral': 616, 'n_tokens_neox': 584, 'n_words': 110}