<commit_before>remote = require 'remote'
windowManager = remote.require './lib/window'
{FontAwesome} = window

path = require 'path-extra'
i18n = require './node_modules/i18n'
i18n.configure
  locales: ['en-US', 'ja-JP', 'zh-CN', 'zh-TW'],
  defaultLocale: 'zh-CN',
  directory: path.join(__dirname, 'assets', 'i18n'),
  updateFiles: false,
  indent: '\t',
  extension: '.json'
i18n.setLocale(window.language)
{__} = i18n

window.battleDetailWindow = null
initialWindow = ->
  window.battleDetailWindow = windowManager.createWindow
    x: config.get 'poi.window.x', 0
    y: config.get 'poi.window.y', 0
    width: 850
    height: 650
  window.battleDetailWindow.loadURL "file://#{__dirname}/battle-detail.html"
  if process.env.DEBUG?
    window.battleDetailWindow.openDevTools
      detach: true
if config.get('plugin.BattleDetail.enable', true)
  initialWindow()<commit_msg>Change DEBUG env var.<commit_after>remote = require 'remote'
windowManager = remote.require './lib/window'
{FontAwesome} = window

path = require 'path-extra'
i18n = require './node_modules/i18n'
i18n.configure
  locales: ['en-US', 'ja-JP', 'zh-CN', 'zh-TW'],
  defaultLocale: 'zh-CN',
  directory: path.join(__dirname, 'assets', 'i18n'),
  updateFiles: false,
  indent: '\t',
  extension: '.json'
i18n.setLocale(window.language)
{__} = i18n

window.battleDetailWindow = null
initialWindow = ->
  window.battleDetailWindow = windowManager.createWindow
    x: config.get 'poi.window.x', 0
    y: config.get 'poi.window.y', 0
    width: 850
    height: 650
  window.battleDetailWindow.loadURL "file://#{__dirname}/battle-detail.html"
  if process.env.DEBUG_BATTLE_DETAIL?
    window.battleDetailWindow.openDevTools
      detach: true
if config.get('plugin.BattleDetail.enable', true)
  initialWindow()
{'fraction_non_alphanumeric': 0.15033783783783783, 'fraction_numerical': 0.02252252252252252, 'mean_word_length': 4.3685800604229605, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '162907', 'n_tokens_mistral': 650, 'n_tokens_neox': 618, 'n_words': 126}