<commit_before>'use strict';

angular.module('mosquitoApp', []).run(function($rootScope, $http, $window) {

  var isLive = false; // change if on server

  if (isLive === true) {
    $rootScope.server = 'https://zodo.asu.edu/mosquito';
  }
  else {
    $rootScope.server = location.protocol + '//' + location.hostname + ':' + location.port;
  }

  $rootScope.logout = function() {
    $http.delete($rootScope.server+'/account/logout')
    .success(function(response) {
      $window.location.href = $rootScope.server+'/';
    })
    .error(function(response) {
      console.log("Failed to log out: ", response);
    });<commit_msg>fixing log out call<commit_after>'use strict';

angular.module('mosquitoApp', []).run(function($rootScope, $http, $window) {

  var isLive = false; // change if on server

  if (isLive === true) {
    $rootScope.server = 'https://zodo.asu.edu/mosquito';
  }
  else {
    $rootScope.server = location.protocol + '//' + location.hostname + ':' + location.port;
  }

  $rootScope.logout = function() {
    $http.delete($rootScope.server+'/account/logout').then(function(response) {
      if (response.status === 200) {
        $window.location.href = $rootScope.server+'/';
      }
      else {
        console.log("Failed to log out: ", response);
      }
    });
{'fraction_non_alphanumeric': 0.1848414539829853, 'fraction_numerical': 0.002320185614849188, 'mean_word_length': 3.1877022653721685, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '2728127', 'n_tokens_mistral': 435, 'n_tokens_neox': 423, 'n_words': 75}