<commit_before>var types = require('../util/types');

// Load app modules
require('../controllers/app.controller.js');
require('../controllers/navbar.controller.js');
require('../directives/charts.directive.js');
require('../directives/fields.directive.js');
require('../directives/effects.directive.js');
require('../directives/validators.directive.js');
require('../directives/accountExists.directive.js');
require('../directives/events.directive.js');
require('../directives/formatters.directive.js');
require('../directives/directives.directive.js');
require('../directives/addressPopover.directive.js');
require('../directives/datalinks.directive.js');
require('../directives/errors.directive.js');
require('../directives/marketchart.directive.js');
require('../filters/filters.filter.js');
require('../filters/amountHasIssuer.filter.js');
require('../validators/rpWebsocket.directive.js');
require('../services/globalwrappers.service.js');
require('../services/id.service.js');
require('../services/tracker.service.js');
require('../services/blobRemote.service.js');
require('../services/oldblob.service.js');
require('../services/txqueue.service.js');
require('../services/authflowRemote.service.js');
require('../services/keychain.service.js');
require('../services/network.service.js');
require('../services/books.service.js');
require('../services/popup.service.js');
require('../services/rippletxt.service.js');
require('../services/federation.service.js');
require('../services/domainalias.service.js');
require('../services/history.service.js');
require('../services/notifications.service.js');

require('../services/integration/appManager.service.js');
require('../services/integration/profileManager.service.js');
require('../services/integration/account.service.js');
require('../services/integration/history.service.js');
require('../services/integration/trust.service.js');
require('../services/integration/inboundBridge.service.js');

// Unused services
// require('../services/ledger.service.js');
// require('../services/transactions.service.js');

// Angular module dependencies
var appDependencies = [
  'ngRoute',
  // Controllers
  'app',
  'navbar',
  // Services
  'id',
  'tracker',
  'appManager',
  'history',
  // Directives
  'charts',
  'effects',
  'events',
  'fields',
  'formatters',
  'directives',
  'validators',
  'datalinks',
  'errors',
  'ngMessages',
  // Filters
  'filters',
  'ui.bootstrap',
  'ui.sortable',
  'notifications'
];

// Load tabs
var tabdefs = [
  require('../tabs/register.controller.js'),
  require('../tabs/login.controller.js'),
  require('../tabs/migrate.controller.js'),
  require('../tabs/recover.controller.js'),
  require('../tabs/balance.controller.js'),
  require('../tabs/history.controller.js'),
  require('../tabs/contacts.controller.js'),
  require('../tabs/exchange.controller.js'),
  require('../tabs/account.controller.js'),
  require('../tabs/trust.controller.js'),
  require('../tabs/send.controller.js'),
  require('../tabs/trade.controller.js'),
  require('../tabs/advanced.controller.js'),
  require('../tabs/security.controller.js'),
  require('../tabs/kyc.controller.js'),
  require('../tabs/tx.controller.js'),
  require('../tabs/xrp.controller.js'),
  require('../tabs/debug.controller.js'),
  require('../tabs/btc.controller.js'),
  require('../tabs/withdraw.controller.js'),
  require('../tabs/usd.controller.js'),
  require('../tabs/eur.controller.js'),
  require('../tabs/sgd.controller.js'),
  require('../tabs/gold.controller.js'),
  require('../tabs/tou.controller.js'),
  require('../tabs/privacypolicy.controller.js'),
  require('../tabs/twofa.controller.js'),
  require('../tabs/jpy.controller.js'),
  require('../tabs/mxn.controller.js'),
  require('../tabs/404.controller.js'),
  require('../tabs/brl.controller.js'),
  require('../tabs/settingstrade.controller.js'),
  require('../tabs/settingsgateway.controller.js'),
  require('../tabs/notifications.controller.js'),

  // Hidden tabs
  require('../tabs/apps.controller.js'),
  require('../tabs/su.controller.js')
];

// Language
var lang = (function(){
  var languages = _.pluck(require('../../../l10n/languages.json'), 'code');
  var resolveLanguage = function(lang) {
    if (!lang) return null;
    if (languages.indexOf(lang) != -1) return lang;
    if (lang.indexOf("_") != -1) {
      lang = lang.split("_")[0];
      if (languages.indexOf(lang) != -1) return lang;
    }
    return null;
  };
  return resolveLanguage(store.get('ripple_language')) ||
    resolveLanguage(window.navigator.userLanguage || window.navigator.language) ||
    'en';
})();
<commit_msg>[FIX] fix lang global var<commit_after>var types = require('../util/types');

// Load app modules
require('../controllers/app.controller.js');
require('../controllers/navbar.controller.js');
require('../directives/charts.directive.js');
require('../directives/fields.directive.js');
require('../directives/effects.directive.js');
require('../directives/validators.directive.js');
require('../directives/accountExists.directive.js');
require('../directives/events.directive.js');
require('../directives/formatters.directive.js');
require('../directives/directives.directive.js');
require('../directives/addressPopover.directive.js');
require('../directives/datalinks.directive.js');
require('../directives/errors.directive.js');
require('../directives/marketchart.directive.js');
require('../filters/filters.filter.js');
require('../filters/amountHasIssuer.filter.js');
require('../validators/rpWebsocket.directive.js');
require('../services/globalwrappers.service.js');
require('../services/id.service.js');
require('../services/tracker.service.js');
require('../services/blobRemote.service.js');
require('../services/oldblob.service.js');
require('../services/txqueue.service.js');
require('../services/authflowRemote.service.js');
require('../services/keychain.service.js');
require('../services/network.service.js');
require('../services/books.service.js');
require('../services/popup.service.js');
require('../services/rippletxt.service.js');
require('../services/federation.service.js');
require('../services/domainalias.service.js');
require('../services/history.service.js');
require('../services/notifications.service.js');

require('../services/integration/appManager.service.js');
require('../services/integration/profileManager.service.js');
require('../services/integration/account.service.js');
require('../services/integration/history.service.js');
require('../services/integration/trust.service.js');
require('../services/integration/inboundBridge.service.js');

// Unused services
// require('../services/ledger.service.js');
// require('../services/transactions.service.js');

// Angular module dependencies
var appDependencies = [
  'ngRoute',
  // Controllers
  'app',
  'navbar',
  // Services
  'id',
  'tracker',
  'appManager',
  'history',
  // Directives
  'charts',
  'effects',
  'events',
  'fields',
  'formatters',
  'directives',
  'validators',
  'datalinks',
  'errors',
  'ngMessages',
  // Filters
  'filters',
  'ui.bootstrap',
  'ui.sortable',
  'notifications'
];

// Load tabs
var tabdefs = [
  require('../tabs/register.controller.js'),
  require('../tabs/login.controller.js'),
  require('../tabs/migrate.controller.js'),
  require('../tabs/recover.controller.js'),
  require('../tabs/balance.controller.js'),
  require('../tabs/history.controller.js'),
  require('../tabs/contacts.controller.js'),
  require('../tabs/exchange.controller.js'),
  require('../tabs/account.controller.js'),
  require('../tabs/trust.controller.js'),
  require('../tabs/send.controller.js'),
  require('../tabs/trade.controller.js'),
  require('../tabs/advanced.controller.js'),
  require('../tabs/security.controller.js'),
  require('../tabs/kyc.controller.js'),
  require('../tabs/tx.controller.js'),
  require('../tabs/xrp.controller.js'),
  require('../tabs/debug.controller.js'),
  require('../tabs/btc.controller.js'),
  require('../tabs/withdraw.controller.js'),
  require('../tabs/usd.controller.js'),
  require('../tabs/eur.controller.js'),
  require('../tabs/sgd.controller.js'),
  require('../tabs/gold.controller.js'),
  require('../tabs/tou.controller.js'),
  require('../tabs/privacypolicy.controller.js'),
  require('../tabs/twofa.controller.js'),
  require('../tabs/jpy.controller.js'),
  require('../tabs/mxn.controller.js'),
  require('../tabs/404.controller.js'),
  require('../tabs/brl.controller.js'),
  require('../tabs/settingstrade.controller.js'),
  require('../tabs/settingsgateway.controller.js'),
  require('../tabs/notifications.controller.js'),

  // Hidden tabs
  require('../tabs/apps.controller.js'),
  require('../tabs/su.controller.js')
];

// Language
window.lang = (function(){
  var languages = _.pluck(require('../../../l10n/languages.json'), 'code');
  var resolveLanguage = function(lang) {
    if (!lang) return null;
    if (languages.indexOf(lang) != -1) return lang;
    if (lang.indexOf("_") != -1) {
      lang = lang.split("_")[0];
      if (languages.indexOf(lang) != -1) return lang;
    }
    return null;
  };
  return resolveLanguage(store.get('ripple_language')) ||
    resolveLanguage(window.navigator.userLanguage || window.navigator.language) ||
    'en';
})();

{'fraction_non_alphanumeric': 0.23048688329914716, 'fraction_numerical': 0.00194321494116377, 'mean_word_length': 4.172529313232831, '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': '7107791', 'n_tokens_mistral': 2948, 'n_tokens_neox': 2888, 'n_words': 319}