<commit_before>function qs(el){
    return document.querySelector(el);
};

function qsa(el){
    return document.querySelectorAll(el);
};

var cabecalho = document.getElementById('header');

var sectionsIds = [
    "#sobre",
    "#palestrantes",
    "#programacao",
    "#parcerias",
    "#onde",
    "#ingressos",
    "#contato",
    "#dicas"
];
var sections = [];
for (var i = 0; i < sectionsIds.length; i++) {
    var id = sectionsIds[i];
    sections.push(qs(id));
}
function changeBodyClass(section){
    var idName = section.getAttribute('id');
}

var interval;

function animate(time,callback){
    var now = new Date();

    clearInterval(interval);
    var go = function (){
        var timePassed = new Date() - now;
        var prop = timePassed/time;
        
        if (timePassed < time){
            interval = setTimeout(function (){
                go();
            },1000/60)
        }else{
            prop = 1;
        }
        if (callback)
            callback( 1 - Math.pow(1 - prop,3));
    }
    go();
}

[].forEach.call(qsa("#header a, #banner .wrapper > a"),function (el){
    el.onclick=function (ev){
        ev.preventDefault();
        var sectionId = el.getAttribute('href');
        var sectionY = qs(sectionId).offsetTop - 60;
        var windowY = window.pageYOffset;
        var diff =  sectionY - windowY;

        qs("#header nav").setAttribute('class','');

        animate(1000,function (prop){
            var newScrollYValue = (diff*prop) + windowY;
            window.scrollTo(0,newScrollYValue);
        });
    }
});

document.onready=function (ev){
    qs("#sympla-widget-169502").style = '';

    [].forEach.call(qsa('.grade'), function (element) {
        element.onclick = function (event) {
            event.preventDefault();
            
            
            if (this.id == 'dia17') {
                qs('#grade-dia17').className = '';
                qs('#grade-dia18').className = 'esconder';

                qs('#dia17').className = 'active';
                qs('#dia18').className = 'grade';
            } else {
                qs('#grade-dia17').className = 'esconder';
                qs('#grade-dia18').className = '';

                qs('#dia17').className = 'grade';
                qs('#dia18').className = 'active';
            }
        }
    });
}

qs("#btnHamburgerMenu").onclick = function(ev){
    ev.preventDefault();
    var classValue = (qs("#header nav").getAttribute("class") == "opened")? "":"opened";
    qs("#header nav").setAttribute("class",classValue);
}

window.onscroll=function (ev){
    var 
    y = window.scrollY,
    menuHeight = qs("#header").offsetHeight;
    
    if (y > menuHeight){
        cabecalho.className = "active";
    }else{
        cabecalho.className = "";
    }
};

function _animarComClasse(collection){<commit_msg>Fix online button not being clickable<commit_after>function qs(el){
    return document.querySelector(el);
};

function qsa(el){
    return document.querySelectorAll(el);
};

var cabecalho = document.getElementById('header');

var sectionsIds = [
    "#sobre",
    "#palestrantes",
    "#programacao",
    "#parcerias",
    "#onde",
    "#ingressos",
    "#contato",
    "#dicas"
];
var sections = [];
for (var i = 0; i < sectionsIds.length; i++) {
    var id = sectionsIds[i];
    sections.push(qs(id));
}
function changeBodyClass(section){
    var idName = section.getAttribute('id');
}

var interval;

function animate(time,callback){
    var now = new Date();

    clearInterval(interval);
    var go = function (){
        var timePassed = new Date() - now;
        var prop = timePassed/time;

        if (timePassed < time){
            interval = setTimeout(function (){
                go();
            },1000/60)
        }else{
            prop = 1;
        }
        if (callback)
            callback( 1 - Math.pow(1 - prop,3));
    }
    go();
}

[].forEach.call(qsa("#header a"),function (el){
    el.onclick=function (ev){
        ev.preventDefault();
        var sectionId = el.getAttribute('href');
        var sectionY = qs(sectionId).offsetTop - 60;
        var windowY = window.pageYOffset;
        var diff =  sectionY - windowY;

        qs("#header nav").setAttribute('class','');

        animate(1000,function (prop){
            var newScrollYValue = (diff*prop) + windowY;
            window.scrollTo(0,newScrollYValue);
        });
    }
});

document.onready=function (ev){
    qs("#sympla-widget-169502").style = '';

    [].forEach.call(qsa('.grade'), function (element) {
        element.onclick = function (event) {
            event.preventDefault();

            if (this.id == 'dia17') {
                qs('#grade-dia17').className = '';
                qs('#grade-dia18').className = 'esconder';

                qs('#dia17').className = 'active';
                qs('#dia18').className = 'grade';
            } else {
                qs('#grade-dia17').className = 'esconder';
                qs('#grade-dia18').className = '';

                qs('#dia17').className = 'grade';
                qs('#dia18').className = 'active';
            }
        }
    });
}

qs("#btnHamburgerMenu").onclick = function(ev){
    ev.preventDefault();
    var classValue = (qs("#header nav").getAttribute("class") == "opened")? "":"opened";
    qs("#header nav").setAttribute("class",classValue);
}

window.onscroll=function (ev){
    var
    y = window.scrollY,
    menuHeight = qs("#header").offsetHeight;

    if (y > menuHeight){
        cabecalho.className = "active";
    }else{
        cabecalho.className = "";
    }
};

function _animarComClasse(collection){
{'fraction_non_alphanumeric': 0.1672002845962291, 'fraction_numerical': 0.014941302027748132, 'mean_word_length': 2.233467510063255, 'pattern_counts': {'":': 2, '<': 7, '<?xml version=': 0, '>': 6, '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': '3355726', 'n_tokens_mistral': 1797, 'n_tokens_neox': 1702, 'n_words': 327}