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

  .controller('OrgsignupController', function (OrgSignup, $state) {

    var vm = this;
    vm.orgnames = OrgSignup.getOrgs();

    vm.signupOrg = function () {
      if (vm.orgnames.indexOf(vm.nameOfOrgToAdd) === -1) {
        console.log('adding new room :', vm.nameOfOrgToAdd);
        OrgSignup.signupOrg(vm.nameOfOrgToAdd);
        vm.nameOfOrgToAdd = '';
      } else {
        console.log('org with this name already exists');
      }
    };

    vm.redirect = function () {
      if (vm.orgnames.indexOf(vm.nameOfOrgToGo) === -1) {
        console.log('go sign up for new org');
        vm.nameOfOrgToGo = '';
      } else {
        console.log('org with this name already exists');
        console.log('redirecting');
        console.log(vm.nameOfOrgToGo);
        $state.go('signin', {org: vm.nameOfOrgToGo});
        // $state.go('orgsignup');
      }
    };
<commit_msg>(cleanup) delete console.log lines<commit_after>angular.module('orgsignupCtrl', ['firebase'])

  .controller('OrgsignupController', function (OrgSignup, $state) {

    var vm = this;
    vm.orgnames = OrgSignup.getOrgs();

    vm.signupOrg = function () {
      if (vm.orgnames.indexOf(vm.nameOfOrgToAdd) === -1) {
        console.log('adding new room :', vm.nameOfOrgToAdd);
        OrgSignup.signupOrg(vm.nameOfOrgToAdd);
        vm.nameOfOrgToAdd = '';
      } else {
        console.log('org with this name already exists');
      }
    };

    vm.redirect = function () {
      if (vm.orgnames.indexOf(vm.nameOfOrgToGo) === -1) {
        console.log('go sign up for new org');
        vm.nameOfOrgToGo = '';
      } else {
        $state.go('signin', {org: vm.nameOfOrgToGo});
        // $state.go('orgsignup');
      }
    };

{'fraction_non_alphanumeric': 0.15990990990990991, 'fraction_numerical': 0.0022522522522522522, 'mean_word_length': 2.5469061876247503, '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': '4607491', 'n_tokens_mistral': 622, 'n_tokens_neox': 590, 'n_words': 103}