<commit_before>var userid = document.getElementById("userid"),
  password = document.getElementById("password"),
  confirm_password = document.getElementById("confirm_password"),
  singup = document.getElementById("signup");

function validatePassword() {
  if (password.value != confirm_password.value) {
    confirm_password.setCustomValidity("Passwords Don't Match");
  } else {
    confirm_password.setCustomValidity('');
  }
}

function onclickSignup() {
  redirect_url = "http://www.dexy.io/signup/create_account/" + userid.value + "/" + password.value;
  window.location.href = redirect_url;
}

password.onchange = validatePassword;
confirm_password.onkeyup = validatePassword;
signup.onclick = onclickSignup;

var getUrlParameter = function getUrlParameter(sParam) {
    var sPageURL = decodeURIComponent(window.location.search.substring(1)),
        sURLVariables = sPageURL.split('&'),
        sParameterName,
        i;

    for (i = 0; i < sURLVariables.length; i++) {
        sParameterName = sURLVariables[i].split('=');

        if (sParameterName[0] === sParam) {
            return sParameterName[1] === undefined ? true : sParameterName[1];
        }
    }
};

$(window, document, undefined).ready(function() {
    var head = document.getElementById("head");
    var email = getUrlParameter('email');
    head.innerHTML = "New account for '" + email + "'";
});<commit_msg>Add onclickSignup()<commit_after>var $head, email;

$(window, document, undefined).ready(function() {
    $head = document.getElementById("head");
    email = getUrlParameter('email');
    $head.innerHTML = "New account for '" + email + "'";
});

var userid = document.getElementById("userid"),
  password = document.getElementById("password"),
  confirm_password = document.getElementById("confirm_password"),
  singup = document.getElementById("signup");

function validatePassword() {
  if (password.value != confirm_password.value) {
    confirm_password.setCustomValidity("Passwords Don't Match");
  } else {
    confirm_password.setCustomValidity('');
  }
}

function onclickSignup() {
  redirect_url = "http://www.dexy.io/signup/create_account/"
    + email + "/" + userid.value + "/" + password.value;
    
  window.location.href = redirect_url;
}

password.onchange = validatePassword;
confirm_password.onkeyup = validatePassword;
signup.onclick = onclickSignup;

var getUrlParameter = function getUrlParameter(sParam) {
    var sPageURL = decodeURIComponent(window.location.search.substring(1)),
        sURLVariables = sPageURL.split('&'),
        sParameterName,
        i;

    for (i = 0; i < sURLVariables.length; i++) {
        sParameterName = sURLVariables[i].split('=');

        if (sParameterName[0] === sParam) {
            return sParameterName[1] === undefined ? true : sParameterName[1];
        }
    }
};
{'fraction_non_alphanumeric': 0.14386959603118354, 'fraction_numerical': 0.003543586109142452, 'mean_word_length': 4.114130434782608, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '3974069', 'n_tokens_mistral': 830, 'n_tokens_neox': 825, 'n_words': 151}