<commit_before>'use strict';


angular.module('pages').controller('HomeController', ['$scope', '$state', '$timeout', 'Authentication',
  function($scope, $state, $timeout, Authentication) {

    // Redirect logged-in users out from front page
    if( Authentication.user ) {
      $state.go('search');
    }
    else {
      $timeout(function(){
        alert('Hey! This is a demo and still work in progress. \n\nYou can click around but things are likely to break, change or data might disappear before we publish this widely. \n\nThanks & enjoy!');
      }, 1500);
    }

  }
]);
<commit_msg>Show demo alert only once per session<commit_after>'use strict';


angular.module('pages').controller('HomeController', ['$scope', '$rootScope', '$state', '$timeout', 'Authentication',
  function($scope, $rootScope, $state, $timeout, Authentication) {

    // Redirect logged-in users out from front page
    if( Authentication.user ) {
      $state.go('search');
    }
    else if(!$rootScope.demoNotificationDone) {
      $rootScope.demoNotificationDone = true;
      $timeout(function(){
        alert('Hey! This is a demo and still work in progress. \n\nYou can click around but things are likely to break, change or data might disappear before we publish this widely. \n\nThanks & enjoy!');
      }, 1000);
    }

  }
]);

{'fraction_non_alphanumeric': 0.14155942467827404, 'fraction_numerical': 0.006056018168054504, 'mean_word_length': 3.57439446366782, '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': '2366856', 'n_tokens_mistral': 379, 'n_tokens_neox': 364, 'n_words': 123}