<commit_before>/* global angular:false */

angular
.module('ndslabs')
/**
 * The controller for our "Sign-Up" Modal Window
 * 
 * @author lambert8
 * @see https://opensource.ncsa.illinois.edu/confluence/display/~lambert8/3.%29+Controllers%2C+Scopes%2C+and+Partial+Views
 */
.controller('SignUpController', [ '$scope', '$log', '$location', '_', 'NdsLabsApi', 'Project', 'ProductName', 'AuthInfo', 'HomeRoute', 'HelpLinks',
    function($scope, $log, $location, _, NdsLabsApi, Project, ProductName, AuthInfo, HomeRoute, HelpLinks) {
      
  if (AuthInfo.get().token) {
    $location.path(HomeRoute);
  }   
  
  $scope.forms = {};
  
  $scope.eulaLink = _.find(HelpLinks, [ 'name', 'Acceptable Use Policy' ]);
  
  $scope.productName = ProductName;
  
  $scope.newProject = Project.create();
  $scope.progressMessage = '';
  $scope.showVerify = false;
  
  $scope.ok = function(account) {
    if (account.password !== <PASSWORD>) {
      return false;
    }
    
    $scope.progressMessage = 'Please wait...';
    $scope.errorMessage = '';
    <commit_msg>Somehow the signUp function was improperly wired...<commit_after>/* global angular:false */

angular
.module('ndslabs')
/**
 * The controller for our "Sign-Up" Modal Window
 * 
 * @author lambert8
 * @see https://opensource.ncsa.illinois.edu/confluence/display/~lambert8/3.%29+Controllers%2C+Scopes%2C+and+Partial+Views
 */
.controller('SignUpController', [ '$scope', '$log', '$location', '_', 'NdsLabsApi', 'Project', 'ProductName', 'AuthInfo', 'HomeRoute', 'HelpLinks',
    function($scope, $log, $location, _, NdsLabsApi, Project, ProductName, AuthInfo, HomeRoute, HelpLinks) {
      
  if (AuthInfo.get().token) {
    $location.path(HomeRoute);
  }   
  
  $scope.forms = {};
  
  $scope.eulaLink = _.find(HelpLinks, [ 'name', 'Acceptable Use Policy' ]);
  
  $scope.productName = ProductName;
  
  $scope.newProject = Project.create();
  $scope.progressMessage = '';
  $scope.showVerify = false;
  
  $scope.signUp = function(account) {
    if (account.password !== account.password<PASSWORD>) {
      return false;
    }
    
    $scope.progressMessage = 'Please wait...';
    $scope.errorMessage = '';
    
{'fraction_non_alphanumeric': 0.1752767527675277, 'fraction_numerical': 0.006457564575645757, 'mean_word_length': 3.8523489932885906, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, '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': '6257993', 'n_tokens_mistral': 737, 'n_tokens_neox': 727, 'n_words': 132}