<commit_before>//Highlight Effect
var notLocked = true;
$.fn.animateHighlight = function() {
    var current = this.css( 'background-color' );
    this.animate({backgroundColor: "#FFFFCC"}).animate({backgroundColor: current});
};
var importResume = function(obj, cb){
    //Import Projects
    var projecttemplate = Handlebars.compile($("#project-template").html());
    $("#projects").html(projecttemplate(obj.projects));
    //Import work experience
    var jobtemplate = Handlebars.compile($("#job-template").html());
    $("#extracurricular").html(jobtemplate(obj.extracurricular));
    $("#work").html(jobtemplate(obj.work));
    //Import Publications
    var publicationstemplate = Handlebars.compile($("#publications-template").html());
    $("#publications").html(publicationstemplate(obj.publications));
    cb(obj);
};
var initPlugins = function(obj){
    //Setup Modal
    $("#hopeinfo").leanModal({overlay : 0.95, closeButton: ".modal_close"});
    //SMOOTH SCROLLING
    $('a[href^="#"]').click(function (e) {
        e.preventDefault();
        var target = this.hash;
        var $target = $(target);
        var highlight = $(this).attr("data-highlight");
        $('html, body').stop().animate({
            'scrollTop': $target.offset().top
        }, 900, 'swing', function () {
            window.location.hash = target;
            if(highlight){
                $(highlight).animateHighlight();
            }
            $target.children(".sectionToggle").click();
        });
    });
    //Project Overlays
    $(".projimg").hover(function(){
        $(this).children(".projoverlay").finish().slideDown();
    }, function(){
        $(this).children(".projoverlay").finish().slideUp();
    });
    //Slick Carosel
    $("#publicationsContainer").slick({
        infinite: true,
        slidesToShow: 3,
        slidesToScroll: 1,
        variableWidth: false,
        mobileFirst: true,
        autoplay: true,
        autoplaySpeed: 4000,
        prevArrow: "<a type='button' class='glyphicon glyphicon-chevron-left' style='color: #FFF; position: absolute; height: 100%; left:-40px; font-size: 35px; line-height: 400px; padding-left: 25px;'></a>",
        nextArrow: "<a type='button' class='glyphicon glyphicon-chevron-right' style='color: #FFF; position: absolute; height: 100%; right:-40px; font-size: 35px; line-height: 400px; padding-right: 25px;'></a>",
        responsive: [
            {
                breakpoint: 1200,
                settings: {
                    slidesToShow: 3,
                    slidesToScroll: 1,
                    infinite: true
                }
            },
            {
                breakpoint: 1024,
                settings: {
                    slidesToShow: 3,
                    slidesToScroll: 1,
                    infinite: true
                }
            },
            {
                breakpoint: 0,
                settings: {
                    slidesToShow: 1,
                    slidesToScroll: 1,
                    infinite: true
                }
            }
        ]
    });
    $("#projectsContainer").slick({
        infinite: true,
        slidesToShow: 3,
        slidesToScroll: 1,
        variableWidth: false,
        mobileFirst: true,
        autoplay: true,
        autoplaySpeed: 4000,
        prevArrow: "<a type='button' class='glyphicon glyphicon-chevron-left' style='position: absolute; height: 100%; left:-40px; font-size: 35px; line-height: 350px; padding-left: 25px;'></a>",
        nextArrow: "<a type='button' class='glyphicon glyphicon-chevron-right' style='position: absolute; height: 100%; right:-40px; font-size: 35px; line-height: 350px; padding-right: 25px;'></a>",
        responsive: [
            {
                breakpoint: 1200,
                settings: {
                    slidesToShow: 4,
                    slidesToScroll: 1,
                    infinite: true
                }
            },
            {
                breakpoint: 1024,
                settings: {
                    slidesToShow: 3,
                    slidesToScroll: 1,
                    infinite: true
                }
            },
            {
                breakpoint: 0,
                settings: {
                    slidesToShow: 1,
                    slidesToScroll: 1,
                    infinite: true
                }
            }
        ]
    });
    //Scroll Spy: Changes navbar with scrolling
    $('body').scrollspy({ target: '#navbar' });
    //Tooltips
    $(".tooltippable").tooltip();
};
$(function(){
    resumedata = $.getJSON("resume.json", function(obj){
        importResume(obj, initPlugins);
    });
});
<commit_msg>Fixed a carousel display issue.<commit_after>//Highlight Effect
var notLocked = true;
$.fn.animateHighlight = function() {
    var current = this.css( 'background-color' );
    this.animate({backgroundColor: "#FFFFCC"}).animate({backgroundColor: current});
};
var importResume = function(obj, cb){
    //Import Projects
    var projecttemplate = Handlebars.compile($("#project-template").html());
    $("#projects").html(projecttemplate(obj.projects));
    //Import work experience
    var jobtemplate = Handlebars.compile($("#job-template").html());
    $("#extracurricular").html(jobtemplate(obj.extracurricular));
    $("#work").html(jobtemplate(obj.work));
    //Import Publications
    var publicationstemplate = Handlebars.compile($("#publications-template").html());
    $("#publications").html(publicationstemplate(obj.publications));
    cb(obj);
};
var initPlugins = function(obj){
    //Setup Modal
    $("#hopeinfo").leanModal({overlay : 0.95, closeButton: ".modal_close"});
    //SMOOTH SCROLLING
    $('a[href^="#"]').click(function (e) {
        e.preventDefault();
        var target = this.hash;
        var $target = $(target);
        var highlight = $(this).attr("data-highlight");
        $('html, body').stop().animate({
            'scrollTop': $target.offset().top
        }, 900, 'swing', function () {
            window.location.hash = target;
            if(highlight){
                $(highlight).animateHighlight();
            }
            $target.children(".sectionToggle").click();
        });
    });
    //Project Overlays
    $(".projimg").hover(function(){
        $(this).children(".projoverlay").finish().slideDown();
    }, function(){
        $(this).children(".projoverlay").finish().slideUp();
    });
    //Slick Carosel
    $("#publicationsContainer").slick({
        infinite: true,
        slidesToShow: 3,
        slidesToScroll: 1,
        variableWidth: false,
        mobileFirst: true,
        autoplay: true,
        autoplaySpeed: 4000,
        prevArrow: "<a type='button' class='glyphicon glyphicon-chevron-left' style='color: #FFF; position: absolute; height: 100%; left:-40px; font-size: 35px; line-height: 400px; padding-left: 25px;'></a>",
        nextArrow: "<a type='button' class='glyphicon glyphicon-chevron-right' style='color: #FFF; position: absolute; height: 100%; right:-40px; font-size: 35px; line-height: 400px; padding-right: 25px;'></a>",
        responsive: [
            {
                breakpoint: 1200,
                settings: {
                    slidesToShow: 3,
                    slidesToScroll: 1,
                    infinite: true
                }
            },
            {
                breakpoint: 1024,
                settings: {
                    slidesToShow: 3,
                    slidesToScroll: 1,
                    infinite: true
                }
            },
            {
                breakpoint: 0,
                settings: {
                    slidesToShow: 1,
                    slidesToScroll: 1,
                    infinite: true
                }
            }
        ]
    });
    $("#projectsContainer").slick({
        infinite: true,
        slidesToShow: 3,
        slidesToScroll: 1,
        variableWidth: false,
        mobileFirst: true,
        autoplay: true,
        autoplaySpeed: 4000,
        prevArrow: "<a type='button' class='glyphicon glyphicon-chevron-left' style='position: absolute; height: 100%; left:-40px; font-size: 35px; line-height: 350px; padding-left: 25px;'></a>",
        nextArrow: "<a type='button' class='glyphicon glyphicon-chevron-right' style='position: absolute; height: 100%; right:-40px; font-size: 35px; line-height: 350px; padding-right: 25px;'></a>",
        responsive: [
            {
                breakpoint: 1400,
                settings: {
                    slidesToShow: 4,
                    slidesToScroll: 1,
                    infinite: true
                }
            },
            {
                breakpoint: 1024,
                settings: {
                    slidesToShow: 3,
                    slidesToScroll: 1,
                    infinite: true
                }
            },
            {
                breakpoint: 600,
                settings: {
                    slidesToShow: 2,
                    slidesToScroll: 1,
                    infinite: true
                }
            },
            {
                breakpoint: 0,
                settings: {
                    slidesToShow: 1,
                    slidesToScroll: 1,
                    infinite: true
                }
            }
        ]
    });
    //Scroll Spy: Changes navbar with scrolling
    $('body').scrollspy({ target: '#navbar' });
    //Tooltips
    $(".tooltippable").tooltip();
};
$(function(){
    resumedata = $.getJSON("resume.json", function(obj){
        importResume(obj, initPlugins);
    });
});

{'fraction_non_alphanumeric': 0.14391490249243924, 'fraction_numerical': 0.020544373761601835, 'mean_word_length': 1.7376534399086496, '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': '282260', 'n_tokens_mistral': 2833, 'n_tokens_neox': 2566, 'n_words': 519}