<commit_before>if window.i18n?.data?
  __ = window.i18n.data.__.bind(window.i18n.data)
else
  path = require 'path-extra'
  i18n = new (require 'i18n-2')
    locales: ['en-US', 'ja-JP', 'zh-CN', 'zh-TW']
    defaultLocale: 'zh-CN'
    directory: path.join ROOT, 'i18n', 'data'
    updateFiles: false
    indent: "\t"
    extension: '.json'
    devMode: false
  i18n.setLocale(window.language)
  __ = i18n.__.bind(i18n)

types =
  "api_taik": "HP"
  "api_souk": "Armor"
  "api_houg": "Firepower"
  "api_raig": "Torpedo"
  "api_soku": "Speed"
  "api_baku": "Bombing"
  "api_tyku": "AA"
  "api_tais": "ASW"
  "api_houm": "Accuracy"
  "api_raim": "Torpedo Accuracy"
  "api_houk": "Evasion"
  "api_raik": "Torpedo Evasion"
  "api_bakk": "Bombing Evasion"
  "api_saku": "LOS"
  "api_sakb": "Anti-LOS"
  "api_luck": "Luck"
  "api_leng": "Range"
range = ['Short', 'Medium', 'Long', 'Very Long']

module.exports =
  getItemData: (slotitem) ->
    data = []
    for type of types
      if slotitem[type]? && slotitem[type] != 0
        if type != "api_leng"
          if slotitem[type] > 0
            data.push "#{__ types[type]} +#{slotitem[type]}"
          else
            data.push "#{__ types[type]} #{slotitem[type]}"
        else
          data.push "#{__ types[type]} #{__ range[slotitem[type] - 1]}"
    return data<commit_msg>Remove useless data<commit_after>if window.i18n?.data?
  __ = window.i18n.data.__.bind(window.i18n.data)
else
  path = require 'path-extra'
  i18n = new (require 'i18n-2')
    locales: ['en-US', 'ja-JP', 'zh-CN', 'zh-TW']
    defaultLocale: 'zh-CN'
    directory: path.join ROOT, 'i18n', 'data'
    updateFiles: false
    indent: "\t"
    extension: '.json'
    devMode: false
  i18n.setLocale(window.language)
  __ = i18n.__.bind(i18n)

types =
  "api_taik": "HP"
  "api_souk": "Armor"
  "api_houg": "Firepower"
  "api_raig": "Torpedo"
  "api_soku": "Speed"
  "api_baku": "Bombing"
  "api_tyku": "AA"
  "api_tais": "ASW"
  "api_houm": "Accuracy"
  #"api_raim": "Torpedo Accuracy"
  "api_houk": "Evasion"
  #"api_raik": "Torpedo Evasion"
  #"api_bakk": "Bombing Evasion"
  "api_saku": "LOS"
  #"api_sakb": "Anti-LOS"
  "api_luck": "Luck"
  "api_leng": "Range"
range = ['Short', 'Medium', 'Long', 'Very Long']

module.exports =
  getItemData: (slotitem) ->
    data = []
    for type of types
      if slotitem[type]? && slotitem[type] != 0
        if type != "api_leng"
          if slotitem[type] > 0
            data.push "#{__ types[type]} +#{slotitem[type]}"
          else
            data.push "#{__ types[type]} #{slotitem[type]}"
        else
          data.push "#{__ types[type]} #{__ range[slotitem[type] - 1]}"
    return data
{'fraction_non_alphanumeric': 0.18529632408102026, 'fraction_numerical': 0.016504126031507877, 'mean_word_length': 3.1221020092735703, 'pattern_counts': {'":': 34, '<': 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': '2884527', 'n_tokens_mistral': 1145, 'n_tokens_neox': 1106, 'n_words': 219}