<commit_before>(function(View, Router, Sync, Conference, Session){
    
    var SyncScroll = (function(){
        var inited = false,
            lastTrigger = 0;
        
        return function(callback){
            if(inited === false){
                inited = true;
                $(document).on("scrollstop",function(e){
                    if( ( (Math.floor( ( ( (new Date()).getTime() + parseInt(Session.get("serverTimeDifference"),10) ) - parseInt(Session.get("lastSync"),10) ) /1000 /60 ) ) > 0) 
                        && ( (Math.floor( ( ( (new Date()).getTime() + parseInt(Session.get("serverTimeDifference"),10) ) - lastTrigger ) /1000 /60 ) ) > 0) ){
                        Sync(true, callback);
                        lastTrigger = (new Date()).getTime() + parseInt(Session.get("serverTimeDifference"),10);
                        console.log(lastTrigger);
                    }else
                        callback();
                });
            }
        };
    }()),
    
    template;
    
//    $(document).ready(function(){
//        $("#chooseconference_page .refresh").ham("click", function(){
//            Sync(true, function(){
//                Conference.read(function(d){
//                    $("#chooseconference_page .main").html(template(d));
//                });
//            });
//        });
//    });
    
    View.chooseconference_page = function(data){
        template = Handlebars.compile($("#chooseconference_page-template").html());
        $("#chooseconference_page .main").html(template(data));
        
//        $(document).ready(function(){
//            SyncScroll(function(){
//                Conference.read(function(d){
//                    $("#chooseconference_page .main").html(template(d));
//                });
//            });
//        });
    };
    
}(App.viewHelpers, App.Router, App.Widgets.sync, App.Models.Conference, App.Session));<commit_msg>tags bug fixed...and error in myhelpers fixed..also bgdync modified...also added the time comparation for updatetime<commit_after>(function(View, Router, Sync, Conference, Session){
    
    var SyncScroll = (function(){
        var inited = false,
            lastTrigger = 0;
        
        return function(callback){
            if(inited === false){
                inited = true;
                $(document).on("scrollstop",function(e){
                    if( ( (Math.floor( ( ( (new Date()).getTime() + parseInt(Session.get("serverTimeDifference"),10) ) - parseInt(Session.get("lastSync"),10) ) /1000 /60 ) ) > 0) 
                        && ( (Math.floor( ( ( (new Date()).getTime() + parseInt(Session.get("serverTimeDifference"),10) ) - lastTrigger ) /1000 /60 ) ) > 0) ){
                        Sync(true, callback);
                        lastTrigger = (new Date()).getTime() + parseInt(Session.get("serverTimeDifference"),10);
                        console.log(lastTrigger);
                    }else
                        callback();
                });
            }
        };
    }()),
    
    template;
    
    $(document).ready(function(){
        $("#chooseconference_page .refresh").ham("click", function(){
            if( ( (Math.floor( ( ( (new Date()).getTime() + parseInt(Session.get("serverTimeDifference"),10) ) - parseInt(Session.get("lastSync"),10) ) /1000 /60 ) ) > 0) )
                Sync(true, function(){
                    Conference.read(function(d){
                        $("#chooseconference_page .main").html(template(d));
                    });
                });
        });
    });
    
    View.chooseconference_page = function(data){
        template = Handlebars.compile($("#chooseconference_page-template").html());
        $("#chooseconference_page .main").html(template(data));
        
//        $(document).ready(function(){
//            SyncScroll(function(){
//                Conference.read(function(d){
//                    $("#chooseconference_page .main").html(template(d));
//                });
//            });
//        });
    };
    
}(App.viewHelpers, App.Router, App.Widgets.sync, App.Models.Conference, App.Session));
{'fraction_non_alphanumeric': 0.1718371303926321, 'fraction_numerical': 0.013814832767813864, 'mean_word_length': 1.7222955145118735, 'pattern_counts': {'":': 0, '<': 3, '<?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': '4254527', 'n_tokens_mistral': 1151, 'n_tokens_neox': 1085, 'n_words': 166}