<commit_before>'use strict';

$(function(){
    $('.oldBio').tooltip();

    $('.bioButtons > .yes').click(function(){
        $('.slider > .setMsg').removeClass('btn-info');
        $('.slider').slideDown();
    });

    $('.slider > .setMsg').click(function(){
        $.ajax({
          url: "manage/",
          type: "POST",
          data: {"action":"msgSet","payload":$('.slider > textarea').val()},
          success: function( data ) {
            $('.slider > .setMsg').addClass('btn-info');
            $('.bioButtons > .yes').addClass('btn-info');
            $('.bioButtons > .no').removeClass('btn-info');
          }
        });
    });

    $('.bioButtons > .no').click(function(){
         $.ajax({
          url: "manage/",
          type: "POST",
          data: {"action":"msgSet","payload":""},
          success: function( data ) {
            $('.bioButtons > .yes').removeClass('btn-info');
            $('.slider > .setMsg').removeClass('btn-info');
            $(this).addClass('btn-info');
            $('.slider').slideUp();
          }
        });
    });




});<commit_msg>Added more ajax<commit_after>'use strict';

$(function(){
    $('.oldBio').click(function(){
        $.ajax({
          url: "manage/",
          type: "POST",
          data: {"action":"revertBio","payload":true},
          success: function( data ) {
            $('.oldBio').removeClass('btn-info').addClass('btn-success');
          }
        });
    }).tooltip();

    $('.deactivate').click(function(){
        $.ajax({
          url: "manage/",
          type: "POST",
          data: {"action":"deactivate","payload":true},
          success: function( data ) {
            console.log('Your account was deactivated. Do something here.');
          }
        });
    }).tooltip();

    $('.bioButtons > .yes').click(function(){
        $('.slider > .setMsg').removeClass('btn-info');
        $('.slider').slideDown();
    });

    $('.slider > .setMsg').click(function(){
        $.ajax({
          url: "manage/",
          type: "POST",
          data: {"action":"msgSet","payload":$('.slider > textarea').val()},
          success: function( data ) {
            $('.slider > .setMsg').addClass('btn-info');
            $('.bioButtons > .yes').addClass('btn-info');
            $('.bioButtons > .no').removeClass('btn-info');
          }
        });
    });

    $('.bioButtons > .no').click(function(){
         $.ajax({
          url: "manage/",
          type: "POST",
          data: {"action":"msgSet","payload":""},
          success: function( data ) {
            $('.bioButtons > .yes').removeClass('btn-info');
            $('.slider > .setMsg').removeClass('btn-info');
            $('.bioButtons > .no').addClass('btn-info');
            $('.slider').slideUp();
          }
        });
    });




});
{'fraction_non_alphanumeric': 0.2362093352192362, 'fraction_numerical': 0.0, 'mean_word_length': 1.8375125376128385, 'pattern_counts': {'":': 12, '<': 3, '<?xml version=': 0, '>': 24, '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': '7453210', 'n_tokens_mistral': 810, 'n_tokens_neox': 803, 'n_words': 126}