<commit_before>$(function(){
    var sticky_navigation_offset_top = $('.subnav').offset().top;
    var sticky_navigation = function(){
        var scroll_top = $(window).scrollTop();
        if (scroll_top > sticky_navigation_offset_top) {
            $('.subnav').addClass('subnav-fixed');
        } else {
            $('.subnav').removeClass('subnav-fixed');
        }  
    };

    sticky_navigation();
    $(window).scroll(function() {
        sticky_navigation();
    });

    $('.busca').focusin(function(){
        $(".busca").switchClass( "input-small", "input-big", 300 );
        return false;
    });

    $('.busca').focusout(function(){
        $(".busca").switchClass( "input-big", "input-small", 300 );
        return false;
    });

    option = {
        title: '@andrenano',<commit_msg>(layout) JS para melhorar navegação e masonry para widgets dinâmicos<commit_after>$(function(){
    var sticky_navigation_offset_top = $('.subnav').offset().top;
    var sticky_navigation = function(){
        var scroll_top = $(window).scrollTop();
        if (scroll_top > sticky_navigation_offset_top) {
            $('.subnav').addClass('subnav-fixed');
        } else {
            $('.subnav').removeClass('subnav-fixed');
        }  
    };

    sticky_navigation();
    $(window).scroll(function() {
        sticky_navigation();
    });

    $('.busca').focusin(function(){
        $(".busca").switchClass( "input-small", "input-big", 300 );
        return false;
    });

    $('.busca').focusout(function(){
        $(".busca").switchClass( "input-big", "input-small", 300 );
        return false;
    });

    $('a[href^="#"]').not('.carousel-control').bind('click.smoothscroll',function (e) {
        e.preventDefault();
        var target = this.hash,
        $target = $(target);
        $('html, body').stop().animate({
            'scrollTop': $target.offset().top
        }, 500, 'swing', function () {
            window.location.hash = target;
        });
    });

    var $container = $('.widgets');
    $container.imagesLoaded( function(){
        $container.masonry({
            itemSelector : '.thumbnails>li',
            columnWidth: function( containerWidth ) {
                console.log(containerWidth / 12);
                return containerWidth / 12;
            }
        });
    });

    option = {
        title: '@andrenano',
{'fraction_non_alphanumeric': 0.18554522400676246, 'fraction_numerical': 0.008030431107354184, 'mean_word_length': 2.301255230125523, 'pattern_counts': {'":': 0, '<': 3, '<?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': '2106590', 'n_tokens_mistral': 716, 'n_tokens_neox': 676, 'n_words': 113}