<commit_before>$(document).ready(function(){

    $("li#icon-task a").css("background-color","#192532");
    $("li#icon-task a").css("color", "#e9d460");

    var addTaskButton = $(".task-button");

   $('.uncompleted').show();
   $('.completed').hide();

    $('#uncompleted-button').prop("disabled",true);

    addTaskButton.click(function () {

        var clickBtnValue = $(this).val();
        console.log(clickBtnValue);
        var ajaxurl = '../api/tasks/create-task.php',
            data =  {'action': clickBtnValue};
        $.post(ajaxurl, data, function (response) {
            var data = JSON.parse(response);
            console.log(data);
            var tasklist = document.getElementById('task-list');
            var row = tasklist.insertRow();
            row.setAttribute("class", "task");
            row.setAttribute("id", data[0].id);
            var cell1 = row.insertCell(0);
            var cell2 = row.insertCell(1);
            var cell3 = row.insertCell(2);
            cell1.innerHTML = "<i class='fa fa-check-circle-o' id='complete-button' onclick='completeTask("+data[0].id+")'></i>";
            cell2.innerHTML = "<div><textarea onclick='toggle("+data[0].id+");' id="+data[0].id+">New Task</textarea></div>";
            cell3.innerHTML = "<i id='delete-button' onclick='deleteTask("+data[0].id+")' name='delete-task' class='fa fa-times'></i>";
        });

    });

    $('.input-group.date').datepicker();

    $('.select2-assign').select2({
        tags: true,
        maximumSelectionLength: 1
    });

    $('.select2-tags').select2({
        maximumSelectionLength: 1,
        tags: true
    });


    $("#task-name").keyup(function(e) {

        var m=$("input#task-name");
        var value= m.val();
        var taskId = $("#task-name").attr("name");
        $("#"+taskId + " textarea").val(value);<commit_msg>task<commit_after>$(document).ready(function(){

    $("li#icon-task a").css("background-color","#192532");
    $("li#icon-task a").css("color", "#e9d460");

    var addTaskButton = $(".task-button");

   $('.uncompleted').show();
   $('.completed').hide();

    $('#uncompleted-button').prop("disabled",true);

    addTaskButton.click(function () {

        var clickBtnValue = $(this).val();
        console.log(clickBtnValue);
        var ajaxurl = '../api/tasks/create-task.php',
            data =  {'action': clickBtnValue};
        $.post(ajaxurl, data, function (response) {
            var data = JSON.parse(response);
            console.log(data);
            var tasklist = document.getElementById('task-list');
            var row = tasklist.insertRow();
            row.setAttribute("class", "task");
            row.setAttribute("id", data[0].id);
            var cell1 = row.insertCell(0);
            var cell2 = row.insertCell(1);
            var cell3 = row.insertCell(2);
            cell1.innerHTML = "<i class='fa fa-check-circle-o' id='complete-button' onclick='completeTask("+data[0].id+")'></i>";
            cell2.innerHTML = "<div onclick='toggle("+data[0].id+");'><textarea onclick='toggle("+data[0].id+");' id="+data[0].id+" disabled='true'>New Task</textarea></div>";
            cell3.innerHTML = "<i id='delete-button' onclick='deleteTask("+data[0].id+")' name='delete-task' class='fa fa-times'></i>";
        });

    });

    $('.input-group.date').datepicker();

    $('.select2-assign').select2({
        tags: true,
        maximumSelectionLength: 1
    });

    $('.select2-tags').select2({
        maximumSelectionLength: 1,
        tags: true
    });


    $("#task-name").keyup(function(e) {

        var m=$("input#task-name");
        var value= m.val();
        var taskId = $("#task-name").attr("name");
        $("#"+taskId + " textarea").val(value);
{'fraction_non_alphanumeric': 0.2143428419088243, 'fraction_numerical': 0.01626233004532125, 'mean_word_length': 2.649805447470817, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 19, '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': '2455098', 'n_tokens_mistral': 1181, 'n_tokens_neox': 1138, 'n_words': 181}