<commit_before>function validate(formObj) {
  var alertText = "";
  var reg = /^\"?[\w-_\.]*\"?@rpi\.edu$/;
  if (formObj.username.value == "") {
    alertText += "\nYou must enter an email address.\n";
    formObj.username.focus();
  } else if (reg.test(formObj.username.value)){
      alertText == "";
  } else if (!reg.test(formObj.username.value)) {
      alertText += "\nYou must enter a valid RPI email address.\n";
  } if (formObj.password.value == "") {
       if (alertText == "") {
          formObj.password.focus();
       } alertText += "\nYou must enter a password.";
  } if (alertText != "") {
    // if the variable alertText is not empty
      alert(alertText);
      // send an alert containing alertText
      return false;
  } if (alertText == "") {
    // if the variable alertText is empty
      alert("Welcome!");
      // send an alert saying "Welcome!"
      return true;
  }
}


window.onload = function() {
    document.getElementById("username").focus();
    // focuses on the email address box when the page loads<commit_msg>indentation<commit_after>function validate(formObj) {
  var alertText = "";
  var reg = /^\"?[\w-_\.]*\"?@rpi\.edu$/;
  if (formObj.username.value == "") {
    alertText += "\nYou must enter an email address.\n";
    formObj.username.focus();
  } else if (reg.test(formObj.username.value)){
      alertText == "";
  } else if (!reg.test(formObj.username.value)) {
      alertText += "\nYou must enter a valid RPI email address.\n";
  } if (formObj.password.value == "") {
       if (alertText == "") {
          formObj.password.focus();
       } alertText += "\nYou must enter a password.";
  } if (alertText != "") {
    // if the variable alertText is not empty
      alert(alertText);
      // send an alert containing alertText
      return false;
  } if (alertText == "") {
    // if the variable alertText is empty
      alert("Welcome!");
      // send an alert saying "Welcome!"
      return true;
  }
}


window.onload = function() {
  document.getElementById("username").focus();
  // focuses on the email address box when the page loads
{'fraction_non_alphanumeric': 0.1636536631779258, 'fraction_numerical': 0.0, 'mean_word_length': 2.6447140381282495, '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': '1631943', 'n_tokens_mistral': 632, 'n_tokens_neox': 621, 'n_words': 179}