<commit_before>angular.module('authCtrl',['firebase','ui.bootstrap'])

  .controller('SignupController', function ($state, $firebaseAuth, Auth, Users, $rootScope, $stateParams, LinkedinAuth){
    var vm = this;
    vm.org = $stateParams.org;
    vm.alerts = [];
    vm.addAlert = function(message) {
      message = message.toLowerCase();
      message = message.charAt(0).toUpperCase() + message.slice(1);
      vm.alerts.push({type:'danger',msg: message});
    };
    vm.closeAlert = function(index) {
      vm.alerts.splice(index, 1);
    };
    vm.setupUser = function(name, email, uid, pictureUrl){
      Auth.setupUser(name, vm.org, email, uid, pictureUrl, function(error,logInfo){
        if(error){
          vm.addAlert(error.replace('_',' '));
          return;
        }
        $rootScope.logInfo = logInfo;
        LinkedinAuth.setOrg(logInfo.org);
        // redirect to main page in the organization after setting  logInfo on the rootscope of  signed-up user
        $state.go('main.room', {org: vm.org, roomname:'General'});
      });
    };

    vm.email = null;
    vm.password = <PASSWORD>;
    vm.orgCode = null;
    vm.name = null;

    vm.signup = function(){
      Auth.signup(vm.email, vm.password, vm.orgId, vm.org, function(error, data){
        if(error){
          vm.addAlert(error.replace('_',' '));
          return;
        }<commit_msg>(fix) lint<commit_after>angular.module('authCtrl',['firebase','ui.bootstrap'])

  .controller('SignupController', function ($state, $firebaseAuth, Auth, Users, $rootScope, $stateParams, LinkedinAuth){
    var vm = this;
    vm.org = $stateParams.org;
    vm.alerts = [];
    vm.addAlert = function(message) {
      message = message.toLowerCase();
      message = message.charAt(0).toUpperCase() + message.slice(1);
      vm.alerts.push({type:'danger',msg: message});
    };
    vm.closeAlert = function(index) {
      vm.alerts.splice(index, 1);
    };
    vm.setupUser = function(name, email, uid, pictureUrl){
      Auth.setupUser(name, vm.org, email, uid, pictureUrl, function(error,logInfo){
        if(error){
          vm.addAlert(error.replace('_',' '));
          return;
        }
        $rootScope.logInfo = logInfo;
        LinkedinAuth.setOrg(logInfo.org);
        // redirect to main page in the organization after setting  logInfo on the rootscope of  signed-up user
        $state.go('main.room', {org: vm.org, roomName:'General'});
      });
    };

    vm.email = null;
    vm.password = <PASSWORD>;
    vm.orgCode = null;
    vm.name = null;

    vm.signup = function(){
      Auth.signup(vm.email, vm.password, vm.orgId, vm.org, function(error, data){
        if(error){
          vm.addAlert(error.replace('_',' '));
          return;
        }
{'fraction_non_alphanumeric': 0.15941499085923216, 'fraction_numerical': 0.0021937842778793418, 'mean_word_length': 2.768595041322314, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '3602830', 'n_tokens_mistral': 878, 'n_tokens_neox': 868, 'n_words': 171}