<commit_before>function  login() {

    var uName = document.getElementById('uuname').value;
    var uEmail = document.getElementById('uemail').value;
    var password = document.getElementById('upsw').value;
    var passwordrepeat = document.getElementById('upsw-repeat').value;




    var data = {};
    data.username=uName;
    data.email = uEmail;
    data.password = password;
    data.passwordrepeat = <PASSWORD>;
    alert(JSON.stringify(data));
    $.ajax({
        type: 'POST',
        data: JSON.stringify(data),
        contentType: 'application/json',
        url: '/user/register',
        success: function (data) {
            console.log('success');
            //console.log(window.open('/final/public/maplocation/HTML/location.html'));
            alert('please login to continue');
            console.log(JSON.stringify(data));
        },
        error:function(err){
            alert(err);
        }
    });




}<commit_msg>message fixed<commit_after>function login() {

    var uName = document.getElementById('uuname').value;
    var uEmail = document.getElementById('uemail').value;
    var password = document.getElementById('upsw').value;
    var passwordrepeat = document.getElementById('upsw-repeat').value;




    var data = {};
    data.username = uName;
    data.email = uEmail;
    data.password = password;
    data.passwordrepeat = <PASSWORD>;
    alert(JSON.stringify(data));
    $.ajax({
        type: 'POST',
        data: JSON.stringify(data),
        contentType: 'application/json',
        url: '/user/register',
        success: function (data) {
            console.log('success');
            if (data.state) {
                alert('please login to continue');
            } else {
                alert(data.msg);
            }
            console.log(JSON.stringify(data));
        },
        error: function (err) {
            alert(err);
        }
    });




}
{'fraction_non_alphanumeric': 0.1430062630480167, 'fraction_numerical': 0.0, 'mean_word_length': 2.2218487394957984, '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': '2114639', 'n_tokens_mistral': 537, 'n_tokens_neox': 516, 'n_words': 97}