<commit_before>angular.module('cf-management-console', ['ngMaterial', 'md.data.table', 'controllers', 'directives' ,'services', 'routes',
    'ngMdIcons', 'ngClipboard', 'restangular','ngAnimate', 'environment','angular-loading-bar'
  ])
  .config(function(ngClipProvider, $mdThemingProvider, $mdIconProvider, envServiceProvider) {

    envServiceProvider.config({
        domains: {
            development: ['localhost', '127.0.0.1'],
            production: ['cfmc.172.16.58.3.xip.io']
        },
        vars: {
            development: {
                restApiUrl: 'http://localhost:8080/cfmc/api'
            },
            production: {
                restApiUrl: 'https://cfmc.172.16.58.3.xip.io/api'
            }
        }
    });
    envServiceProvider.check();
    ngClipProvider.setPath("bower_components/zeroclipboard/dist/ZeroClipboard.swf");

    $mdThemingProvider.definePalette('amazingPaletteName', {
      '50': 'ae2225',
      '100': 'ffcdd2',
      '200': 'ef9a9a',
      '300': 'e57373',
      '400': '467fd3',
      '500': '2b5086',
      '600': 'ae2225',
      '700': 'ae2225',
      '800': 'c62828',
      '900': 'b71c1c',
      'A100': 'ff8a80',
      'A200': 'ff5252',
      'A400': 'ff1744',
      'A700': '78a3e1',
      'contrastDefaultColor': 'light',
      'contrastDarkColors': ['50', '100',
        '200', '300', '400', 'A100'
      ],
      'contrastLightColors': undefined
    });

    $mdThemingProvider.theme('default')
      .primaryPalette('amazingPaletteName', {
        'default': '500'
      })
      .warnPalette('amazingPaletteName', {
        'default': '600'
      })
      .accentPalette('amazingPaletteName', {
        'default': '400'
      });

    $mdIconProvider
      .defaultIconSet("./../assets/svg/avatars.svg", 128)
      .icon("menu", "./../assets/svg/menu.svg", 24)
      .icon("info", "./../assets/svg/info.svg", 24)
      .icon("create", "./../assets/svg/create.svg", 24)
      .icon("share", "./../assets/svg/share.svg", 24)
      .icon("google_plus", "./..assets/svg/google_plus.svg", 512)
      .icon("hangouts", "./../assets/svg/hangouts.svg", 512)
      .icon("twitter", "./../assets/svg/twitter.svg", 512)
      .icon("phone", "./..assets/svg/phone.svg", 512);

  })
  .run(function($rootScope, $state, $http, $timeout, clientCacheService, Restangular, envService, authenticationService) {
    Restangular.setBaseUrl(envService.read('restApiUrl'))
    .setDefaultHeaders({
      "Content-Type": "application/json;charset=UTF-8",
      "Accept": "application/json;charset=UTF-8",
    })
    .setErrorInterceptor(function(response, deferred, responseHandler) {
      if([401,403].indexOf(response.status) != -1) {
        console.log("loginRequired - setErrorIntercetpor");
        authenticationService.authenticate();
<commit_msg>Verbose logging for error interceptor, after 401/403<commit_after>angular.module('cf-management-console', ['ngMaterial', 'md.data.table', 'controllers', 'directives' ,'services', 'routes',
    'ngMdIcons', 'ngClipboard', 'restangular','ngAnimate', 'environment','angular-loading-bar'
  ])
  .config(function(ngClipProvider, $mdThemingProvider, $mdIconProvider, envServiceProvider) {

    envServiceProvider.config({
        domains: {
            development: ['localhost', '127.0.0.1'],
            production: ['cfmc.172.16.58.3.xip.io']
        },
        vars: {
            development: {
                restApiUrl: 'http://localhost:8080/cfmc/api'
            },
            production: {
                restApiUrl: 'https://cfmc.172.16.58.3.xip.io/api'
            }
        }
    });
    envServiceProvider.check();
    ngClipProvider.setPath("bower_components/zeroclipboard/dist/ZeroClipboard.swf");

    $mdThemingProvider.definePalette('amazingPaletteName', {
      '50': 'ae2225',
      '100': 'ffcdd2',
      '200': 'ef9a9a',
      '300': 'e57373',
      '400': '467fd3',
      '500': '2b5086',
      '600': 'ae2225',
      '700': 'ae2225',
      '800': 'c62828',
      '900': 'b71c1c',
      'A100': 'ff8a80',
      'A200': 'ff5252',
      'A400': 'ff1744',
      'A700': '78a3e1',
      'contrastDefaultColor': 'light',
      'contrastDarkColors': ['50', '100',
        '200', '300', '400', 'A100'
      ],
      'contrastLightColors': undefined
    });

    $mdThemingProvider.theme('default')
      .primaryPalette('amazingPaletteName', {
        'default': '500'
      })
      .warnPalette('amazingPaletteName', {
        'default': '600'
      })
      .accentPalette('amazingPaletteName', {
        'default': '400'
      });

    $mdIconProvider
      .defaultIconSet("./../assets/svg/avatars.svg", 128)
      .icon("menu", "./../assets/svg/menu.svg", 24)
      .icon("info", "./../assets/svg/info.svg", 24)
      .icon("create", "./../assets/svg/create.svg", 24)
      .icon("share", "./../assets/svg/share.svg", 24)
      .icon("google_plus", "./..assets/svg/google_plus.svg", 512)
      .icon("hangouts", "./../assets/svg/hangouts.svg", 512)
      .icon("twitter", "./../assets/svg/twitter.svg", 512)
      .icon("phone", "./..assets/svg/phone.svg", 512);

  })
  .run(function($rootScope, $state, $http, $timeout, clientCacheService, Restangular, envService, authenticationService) {
    Restangular.setBaseUrl(envService.read('restApiUrl'))
    .setDefaultHeaders({
      "Content-Type": "application/json;charset=UTF-8",
      "Accept": "application/json;charset=UTF-8",
    })
    .setErrorInterceptor(function(response, deferred, responseHandler) {
      if([401,403].indexOf(response.status) != -1) {
        console.log("loginRequired - setErrorIntercetpor", response, deferred, responseHandler);
        authenticationService.authenticate();

{'fraction_non_alphanumeric': 0.19320183163085594, 'fraction_numerical': 0.06340260655160268, 'mean_word_length': 2.7141922825376064, 'pattern_counts': {'":': 4, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 6, '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': '4212997', 'n_tokens_mistral': 2116, 'n_tokens_neox': 1877, 'n_words': 269}