<commit_before>function EventMonitor()
{
    this.before = before;
    this.after = after;

    this.monitor = document.getElementById("monitorId");
    this.count = 0;

    post_fun_arg = {
                  msg:"Your Request Was Comleted Successfully!"
                }

    post_fun = function(obj){
                alert(obj.msg);
                };


    function before(evt)
    {
        if (this.count == 0){
            //this.monitor.style.position = "relative";
            //this.monitor.style.pixelTop= event.clientX;
            //this.monitor.style.pixelLeft = event.clientY;
            //$("#monitorId").css( { "left": 100 + "px", "top":100 + "px" } );
            $('#body').css("cursor","wait");
            //this.monitor.style.display = "block";
        }

        this.count++;
    }

    function after(evt)
    {
        if (this.count == 0){
            return; // to avoid some pending event before registering
        }

        this.count--;

        if (this.count == 0) {
            $('#body').css("cursor","default");
            //this.monitor.style.display = "none";
        }

        post_fun(post_fun_arg);
    }

    post_fun_arg = {
                }

    post_fun = function(obj){
                };

}<commit_msg>task runner diplay added<commit_after>    bef =  function(){
		$.blockUI()
		};

    aft = function(){
		$.unblockUI()
		};

function EventMonitor()
{
    this.before = before;
    this.after = after;

    this.monitor = document.getElementById("monitorId");
    this.count = 0;

    post_fun_arg = {
                  msg:"Your Request Was Completed Successfully!"
                }

    post_fun = function(obj){
                 //alert(obj.msg);
                };


    function before(evt)
    {
        if (this.count == 0){
            //this.monitor.style.position = "relative";
            //this.monitor.style.pixelTop= event.clientX;
            //this.monitor.style.pixelLeft = event.clientY;
            //this.monitor.style.display = "block";
            $('#monitorId').show();
        }

        this.count++;
        //bef();
    }

    function after(evt)
    {
        if (this.count == 0){
            return; // to avoid some pending event before registering
        }

        this.count--;

        if (this.count == 0) {
            //this.monitor.style.display = "none";
            $('#monitorId').hide();
        }

        post_fun(post_fun_arg);
    }

    post_fun_arg = {
                }

    post_fun = function(obj){
                };

}
{'fraction_non_alphanumeric': 0.1486753657572163, 'fraction_numerical': 0.0055357848952155, 'mean_word_length': 1.5024727992087044, 'pattern_counts': {'":': 2, '<': 3, '<?xml version=': 0, '>': 3, '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': '3003965', 'n_tokens_mistral': 771, 'n_tokens_neox': 723, 'n_words': 133}