<commit_before>import '../rendererEmitter';
import './core';

import SettingsController from '../../main/utils/Settings';

if (process.env['TEST_SPEC']) { // eslint-disable-line
  global.Settings = new SettingsController('.test', true);
} else {
  global.Settings = new SettingsController();
}
Settings.uncouple();

require(`./${process.platform}`);
require('./translations');

document.addEventListener('DOMContentLoaded', () => {
  require('./windowThemeHandler');

  const nativeFrameAtLaunch = Settings.get('nativeFrame');

  document.body.classList.toggle('native-frame', nativeFrameAtLaunch);

  Emitter.on('window:fullscreen', (event, state) => {
    if (nativeFrameAtLaunch) return;<commit_msg>Set NODE_ENV correctly in prod to speed up React<commit_after>import { remote } from 'electron';
import '../rendererEmitter';
import './core';

import SettingsController from '../../main/utils/Settings';

if (process.env['TEST_SPEC']) { // eslint-disable-line
  global.Settings = new SettingsController('.test', true);
} else {
  global.Settings = new SettingsController();
}
Settings.uncouple();

require(`./${process.platform}`);
require('./translations');

process.env['NODE_ENV'] = remote.getGlobal('DEV_MODE') ? 'development' : 'production';

document.addEventListener('DOMContentLoaded', () => {
  require('./windowThemeHandler');

  const nativeFrameAtLaunch = Settings.get('nativeFrame');

  document.body.classList.toggle('native-frame', nativeFrameAtLaunch);

  Emitter.on('window:fullscreen', (event, state) => {
    if (nativeFrameAtLaunch) return;
{'fraction_non_alphanumeric': 0.17477592829705504, 'fraction_numerical': 0.0, 'mean_word_length': 5.594936708860759, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '900787', 'n_tokens_mistral': 441, 'n_tokens_neox': 437, 'n_words': 85}