<commit_before>$(document).ready(function() {
    var $LoginButton = $("#login-button"),
        $RegisterButton = $("#register-button"),
        oUserData = null,
        oRegisterData = null;

    $LoginButton.click(function() {
        oUserData = {
            user: $("#login-email").val(),
            password: $("#login-password").val()
        };

        $.ajax({
            url: 'rest/user/login',
            type: "POST",
            contentType: "application/json",
            data: JSON.stringify(oUserData),
            statusCode: {
                401: function() {
                    alert("Authentication failed");
                },
                200: function() {
                    alert("Authentication is fine!");
                }
            }
        });
    });

    $RegisterButton.click(function() {
        oRegisterData = {
            user: $("#register-email").val(),
            firstName: $("#register-firstName").val(),
            lastName: $("#register-lastName").val(),
            password: <PASSWORD>").<PASSWORD>()
        };

        $.ajax({
                url: 'rest/user/register',
                type: "POST",<commit_msg>login post method fixed<commit_after>$(document).ready(function() {
    var $LoginButton = $("#login-button"),
        $RegisterButton = $("#register-button"),
        oUserData = null,
        oRegisterData = null;

    $LoginButton.click(function() {
        oUserData = {
            user: {
                email: $("#login-email").val(),
                password: <PASSWORD>").<PASSWORD>()
            }
        };

        $.ajax({
            url: 'rest/user/login',
            type: "POST",
            contentType: "application/json",
            data: JSON.stringify(oUserData),
            statusCode: {
                401: function() {
                    alert("Authentication failed");
                },
                200: function() {
                    alert("Authentication is fine!");
                }
            }
        });
    });

    $RegisterButton.click(function() {
        oRegisterData = {
            user: $("#register-email").val(),
            firstName: $("#register-firstName").val(),
            lastName: $("#register-lastName").val(),
            password: <PASSWORD>()
        };

        $.ajax({
                url: 'rest/user/register',
                type: "POST",
{'fraction_non_alphanumeric': 0.15991649269311065, 'fraction_numerical': 0.005010438413361169, 'mean_word_length': 1.43248730964467, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 8, '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': '5079432', 'n_tokens_mistral': 613, 'n_tokens_neox': 582, 'n_words': 103}