<commit_before>'use strict';

angular.module('kalabox', [
  'ngRoute',
  'kalabox.nodewrappers',
  'kalabox.dashboard',
  'kalabox.initialize',
  'kalabox.installer',
  'ui.bootstrap',
  'mwl.bluebird'
])
// Override the default global error handler.
.factory('$exceptionHandler', function($window) {
  return function(exception, cause) {
    console.log('cause -> ' + cause);
    var err = exception;
    $window.alert(err.message + '\n' + err.stack);
    console.log(err.message);
    console.log(err.stack);
  };
})
// Global error handing.
.run(function($q, $window, $exceptionHandler) {
  // Global function for handling errors from bluebird promises.
  $q.onPossiblyUnhandledRejection($exceptionHandler);
})
.config(function ($routeProvider) {
  $routeProvider.otherwise({
    redirectTo: '/initialize'
  });
})
.value('version', '2.0');<commit_msg>Adding better stack trace unpacking to GUI.<commit_after>'use strict';

angular.module('kalabox', [
  'ngRoute',
  'kalabox.nodewrappers',
  'kalabox.dashboard',
  'kalabox.initialize',
  'kalabox.installer',
  'ui.bootstrap',
  'mwl.bluebird'
])
// Override the default global error handler.
.factory('$exceptionHandler', function($window, kbox) {
  return function(exception, cause) {
    return kbox.then(function(kbox) {
      var err = exception;
      var stack = kbox.getStackTrace(err);
      $window.alert(err.message + '\n' + stack);
      console.log(err.message);
      console.log(stack);
    });
  };
})
// Global error handing.
.run(function($q, $window, $exceptionHandler) {
  // Global function for handling errors from bluebird promises.
  $q.onPossiblyUnhandledRejection($exceptionHandler);
})
.config(function ($routeProvider) {
  $routeProvider.otherwise({
    redirectTo: '/initialize'
  });
})
.value('version', '2.0');
{'fraction_non_alphanumeric': 0.16583194212576516, 'fraction_numerical': 0.0022259321090706734, 'mean_word_length': 4.257309941520468, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '2951352', 'n_tokens_mistral': 589, 'n_tokens_neox': 580, 'n_words': 115}