<commit_before>app.factory("AuthService", function($rootScope) {
  var isAuthenticated = function() {
    console.log("check you");
    if ($rootScope.user){
      return true;
    } else {
      return false;
    }
  },
  saveLogin = function(user) {
    console.log("Saving ... ", user);
    $rootScope.user = user;
    return true;
  };

  return {
    isAuthenticated: isAuthenticated,
    saveLogin: saveLogin
  };
});<commit_msg>Fix state in scope #21<commit_after>app.factory("AuthService", function($rootScope) {
  var isAuthenticated = function() {
    console.log("check you");
    if ($rootScope.user){
      return true;
    } else {
      return false;
    }
  },
  saveLogin = function(user) {
    console.log("Saving ... ", user);
    $rootScope.user = user;
    return true;
  },
  getToken = function() {
    return $rootScope.user.token;
  };

  return {
    isAuthenticated: isAuthenticated,
    saveLogin: saveLogin
  };
});
{'fraction_non_alphanumeric': 0.1472457627118644, 'fraction_numerical': 0.00211864406779661, 'mean_word_length': 2.872950819672131, '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': '910330', 'n_tokens_mistral': 309, 'n_tokens_neox': 305, 'n_words': 62}