<commit_before>'use strict';

function AccountController($rootScope, $location, $scope, AccountService, AnalyticsService, UserSessionService) {

  $scope.isUserVerified = false;
  AnalyticsService.visit('account');

  $scope.settings = {};

  AccountService.getAccount().then(function(accountResponse) {
    $scope.isUserVerified = accountResponse.emailVerified ? true : false;
    $scope.email = accountResponse.email;
    var userPreferences = UserSessionService.getPreferences();
    if (userPreferences.ui && userPreferences.ui.hidePlus !== undefined){
      $scope.settings.hidePlus = userPreferences.ui.hidePlus;
    }
  });

  $scope.gotoChangePassword = function gotoChangePassword() {
    $location.path('/my/account/password');
  };

  $scope.showOnboardingChecked = function() {
    var userPreferences = UserSessionService.getPreferences();
    if ($scope.settings.showOnboarding){
      UserSessionService.setPreference('onboarded', undefined);
    }else{
      UserSessionService.setPreference('onboarded', $rootScope.packaging);<commit_msg>Fixed hide footer not sticky<commit_after>'use strict';

function AccountController($rootScope, $location, $scope, AccountService, AnalyticsService, UserSessionService) {

  $scope.isUserVerified = false;
  AnalyticsService.visit('account');

  $scope.settings = {};

  AccountService.getAccount().then(function(accountResponse) {
    $scope.isUserVerified = accountResponse.emailVerified ? true : false;
    $scope.email = accountResponse.email;
    var userPreferences = UserSessionService.getPreferences();
    if (userPreferences.ui){
      if (userPreferences.ui.hidePlus !== undefined){
        $scope.settings.hidePlus = userPreferences.ui.hidePlus;
      }
      if (userPreferences.ui.hideFooter !== undefined){
        $scope.settings.hideFooter = userPreferences.ui.hideFooter;
      }
    }

  });

  $scope.gotoChangePassword = function gotoChangePassword() {
    $location.path('/my/account/password');
  };

  $scope.showOnboardingChecked = function() {
    var userPreferences = UserSessionService.getPreferences();
    if ($scope.settings.showOnboarding){
      UserSessionService.setPreference('onboarded', undefined);
    }else{
      UserSessionService.setPreference('onboarded', $rootScope.packaging);
{'fraction_non_alphanumeric': 0.12472551602986386, 'fraction_numerical': 0.0, 'mean_word_length': 4.767088607594936, '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': '1464415', 'n_tokens_mistral': 637, 'n_tokens_neox': 617, 'n_words': 99}