<commit_before>﻿//Event
$(document).ready(function()
{
    document.loadSidebar();
});
//Account
document.popLogin = function()
{
  
    $("#cover").fadeIn(function ()
    {
        $("#form-signin-container").fadeIn();
    });
};
document.hideLogin = function ()
{
    $("#form-signin-container").fadeOut(function ()
    {
       $("#cover").fadeOut();
    });
   
   
};
document.login = function ()
{

    $.ajax({
        url: "Login.exec",
        cache: false,
        type: "POST",
        dataType :"json",
        data: {
            name: $("#form-signin-username").val(),
            password: $("#form-signin-password").val()
        },
        success: function (data)
        {
            $("#form-signin-notice").show();
            $("#form-signin-notice").removeClass();
            switch (data.status)
            {
                case 0:

                    $("#form-signin-notice").addClass("alert alert-success");
                    $("#form-signin-notice").text(data.text);
                    document.receiveUserData();
                    document.hideLogin();
                    break;
                case 1:

                    $("#form-signin-notice").addClass("alert alert-info");
                    $("#form-signin-notice").text(data.text);
                    break;

                case 2:

                    $("#form-signin-notice").addClass("alert alert-warning");
                    $("#form-signin-notice").text(data.text);
                    break;

                default:
                    $("#form-signin-notice").addClass("alert alert-danger");
                    $("#form-signin-notice").text(data.text);
                    break;
            }
            document.loadSidebar();
        }

    });
};

document.logout = function()
{
    $.removeCookie('identification');
    $.removeCookie('varify');
    $("#signin-block").show();
    $("#signed-block").hide();
};

document.receiveUserData = function ()
{
    $.ajax({
        url: "ReceiveUserData.exec",
        success: function (data)
        {
            $("#signin-block").hide();
            $("#signed-block").show();
        }
<commit_msg>Change parameter name<commit_after>﻿//Event
$(document).ready(function()
{
    document.loadSidebar();
});
//Account
document.popLogin = function()
{
  
    $("#cover").fadeIn(function ()
    {
        $("#form-signin-container").fadeIn();
    });
};
document.hideLogin = function ()
{
    $("#form-signin-container").fadeOut(function ()
    {
       $("#cover").fadeOut();
    });
   
   
};
document.login = function ()
{

    $.ajax({
        url: "Login.exec",
        cache: false,
        type: "POST",
        dataType :"json",
        data: {
            username: $("#form-signin-username").val(),
            password: $("#<PASSWORD>").val()
        },
        success: function (data)
        {
            $("#form-signin-notice").show();
            $("#form-signin-notice").removeClass();
            switch (data.status)
            {
                case 0:

                    $("#form-signin-notice").addClass("alert alert-success");
                    $("#form-signin-notice").text(data.text);
                    document.receiveUserData();
                    document.hideLogin();
                    document.loadSidebar();
                    break;
                case 1:

                    $("#form-signin-notice").addClass("alert alert-info");
                    $("#form-signin-notice").text(data.text);
                    break;

                case 2:

                    $("#form-signin-notice").addClass("alert alert-warning");
                    $("#form-signin-notice").text(data.text);
                    break;

                default:
                    $("#form-signin-notice").addClass("alert alert-danger");
                    $("#form-signin-notice").text(data.text);
                    break;
            }

        }

    });
};

document.logout = function()
{
    $.removeCookie('identification');
    $("#signin-block").show();
    $("#signed-block").hide();
};

document.receiveUserData = function ()
{
    $.ajax({
        url: "ReceiveUserData.exec",
        success: function (data)
        {
            $("#signin-block").hide();
            $("#signed-block").show();
        }

{'fraction_non_alphanumeric': 0.18264098398700396, 'fraction_numerical': 0.001392434439545138, 'mean_word_length': 1.526377491207503, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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': '925267', 'n_tokens_mistral': 1188, 'n_tokens_neox': 1151, 'n_words': 155}