<commit_before>// Login Page

angular.module('healthCalculators')
  .controller('MainCtrl', function ($scope, $rootScope, $location, $window, loginFactory) {
    
    $scope.signIn = function() {
      loginFactory.signIn();
    };

});<commit_msg>remove params, add timeout to avoid null data<commit_after>// Login Page

angular.module('healthCalculators')
  .controller('MainCtrl', function ($scope, $rootScope, $timeout, loginFactory) {

    $scope.user = loginFactory.getUser();
    $scope.env = loginFactory.getEnv();

    $scope.signIn = function() {
      loginFactory.signIn();
    };
    $scope.signOut = function() {
      loginFactory.signOut();
    };

    loginFactory.registerObserverCallback(
      function() {
        $timeout(function() {
          $scope.user = loginFactory.getUser();
          $scope.env = loginFactory.getEnv();
          $scope.$apply();
        });
      }
    );

});
{'fraction_non_alphanumeric': 0.1573157315731573, 'fraction_numerical': 0.0, 'mean_word_length': 3.0265486725663715, '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': '329507', 'n_tokens_mistral': 269, 'n_tokens_neox': 265, 'n_words': 49}