<commit_before>angular.module('indexCtrl', ['firebase', ])

  .controller('IndexController', function ($state, $firebaseAuth, Auth, Users, $rootScope, $stateParams) {

    var vm = this;
    vm.org = $stateParams.org;

    vm.logout = function () {
      $rootScope.logInfo = null;
      Auth.signout();
    };

  });<commit_msg>(fix) index controller handing org property for routing<commit_after>angular.module('indexCtrl', ['firebase', ])

  .controller('IndexController', function ($state, $firebaseAuth, Auth, Users, $rootScope, $stateParams) {

    var vm = this;

    // when the state changes, set the org property to the current location for routing purpose
    $rootScope.$on('$stateChangeSuccess', function() {
      vm.org = $stateParams.org;
    });

    vm.logout = function () {
      $rootScope.logInfo = null;
      Auth.signout();
    };

  });
{'fraction_non_alphanumeric': 0.1519721577726218, 'fraction_numerical': 0.0, 'mean_word_length': 3.542105263157895, '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': '6251103', 'n_tokens_mistral': 267, 'n_tokens_neox': 254, 'n_words': 64}