<commit_before>(function ($, viewport) {
    'use strict';

    $(window).load(function () {

        /* Image cache */
        $('.gallery-item').each(function() {
            var src = $(this).attr('href');
            var img = document.createElement('img');

            img.src = src;
            $('#image-cache').append(img);
        });

    });

    $(document).ready(function () {

        /* Sticky Header */
        $(".sticky-header").sticky({topSpacing: 0});

        /* Slider Revolution */


        // Slider0 for John

        $("#slider0").revolution({
            sliderType: "standard",
            sliderLayout: "fullscreen",
            autoHeight: "on",
            delay: 9000,
            navigation: {
                keyboardNavigation: "on",
                keyboard_direction: "horizontal",
                mouseScrollNavigation: "off",
                onHoverStop: "on",
                touch: {
                    touchenabled: "on",
                    swipe_treshold: 75,
                    swipe_min_touches: 1,
                    drag_block_vertical: false,
                    swipe_direction: "horizontal"
                },
                arrows: {
                    style: "hades",
                    enable: true,
                    hide_onmobile: true,
                    hide_onleave: true,
                    tmp: '',
                    left: {
                        h_align: "left",
                        v_align: "center",
                        h_offset: 10,
                        v_offset: 0
                    },
                    right: {
                        h_align: "right",
                        v_align: "center",
                        h_offset: 10,
                        v_offset: 0
                    }
                },
                bullets: {
                    style: "",
                    enable: true,
                    hide_onmobile: false,
                    hide_onleave: true,
                    hide_delay: 200,
                    hide_delay_mobile: 1200,
                    hide_under: 0,
                    hide_over: 9999,
                    direction: "horizontal",
                    h_align: "center",
                    v_align: "bottom",
                    space: 7,
                    h_offset: 0,
                    v_offset: 40,
                    tmp: '<span class="tp-bullet-image"></span><span class="tp-bullet-title"></span>'
                }
            },

            lazyType: "smart",
            disableProgressBar: "off",
            responsiveLevels: [4000, 1200, 992, 768, 320],
            gridwidth: [1130, 910, 580, 300],
            gridheight: [600, 800, 1024, 568]
        });

        if( viewport.is('xs') ) {
          // change Slider1 text because of small screen
          $("#slide1").find(".cap-title").html("Adventurous <br> Developer");
          $("#slide1").find(".cap-subtitle").html("\"Just keep swimming, <br> just keep swimming!\" <br> — Dory");
          $("#slide1").find(".cap-subtitle").attr("data-voffset", "25");
          $("#slide1").find(".cap-sub-subtitle").attr("data-voffset", "75");

          $("#slide2").find(".cap-title").html("Loyal <br> Companion");
          $("#slide2").find(".cap-subtitle").html("\"Ohana means family. <br> Family means nobody gets <br> left behind.\" — Stitch");
          $("#slide2").find(".cap-sub-subtitle").html("Parque Arqueológico Nacional <br> de Pisac, Perú");
          $("#slide2").find(".cap-subtitle").attr("data-voffset", "25");
          $("#slide2").find(".cap-sub-subtitle").attr("data-voffset", "85");
          $("#slide2").find(".cap-title").attr("data-x", "left");
          $("#slide2").find(".cap-subtitle").attr("data-x", "left");
          $("#slide2").find(".cap-sub-subtitle").attr("data-x", "left");

          $("#slide3").find(".cap-title").html("Optimistic <br> Thinker");
          $("#slide3").find(".cap-subtitle").html("\"When life throws you <br> a rainy day, play <br> in the puddles.\" <br> — Winnie the Pooh");
          $("#slide3").find(".cap-subtitle").attr("data-voffset", "35");
          $("#slide3").find(".cap-sub-subtitle").attr("data-voffset", "100");
          $("#slide3").find(".cap-title").attr("data-x", "left");
          $("#slide3").find(".cap-subtitle").attr("data-x", "left");
          $("#slide3").find(".cap-sub-subtitle").attr("data-x", "left");
        }
<commit_msg>changed slider bg position based on screen size<commit_after>(function ($, viewport) {
    'use strict';

    $(window).load(function () {

        /* Image cache */
        $('.gallery-item').each(function() {
            var src = $(this).attr('href');
            var img = document.createElement('img');

            img.src = src;
            $('#image-cache').append(img);
        });

    });

    $(document).ready(function () {

        /* Sticky Header */
        $(".sticky-header").sticky({topSpacing: 0});

        /* Slider Revolution */


        // Slider0 for John

        $("#slider0").revolution({
            sliderType: "standard",
            sliderLayout: "fullscreen",
            autoHeight: "on",
            delay: 9000,
            navigation: {
                keyboardNavigation: "on",
                keyboard_direction: "horizontal",
                mouseScrollNavigation: "off",
                onHoverStop: "on",
                touch: {
                    touchenabled: "on",
                    swipe_treshold: 75,
                    swipe_min_touches: 1,
                    drag_block_vertical: false,
                    swipe_direction: "horizontal"
                },
                arrows: {
                    style: "hades",
                    enable: true,
                    hide_onmobile: true,
                    hide_onleave: true,
                    tmp: '',
                    left: {
                        h_align: "left",
                        v_align: "center",
                        h_offset: 10,
                        v_offset: 0
                    },
                    right: {
                        h_align: "right",
                        v_align: "center",
                        h_offset: 10,
                        v_offset: 0
                    }
                },
                bullets: {
                    style: "",
                    enable: true,
                    hide_onmobile: false,
                    hide_onleave: true,
                    hide_delay: 200,
                    hide_delay_mobile: 1200,
                    hide_under: 0,
                    hide_over: 9999,
                    direction: "horizontal",
                    h_align: "center",
                    v_align: "bottom",
                    space: 7,
                    h_offset: 0,
                    v_offset: 40,
                    tmp: '<span class="tp-bullet-image"></span><span class="tp-bullet-title"></span>'
                }
            },

            lazyType: "smart",
            disableProgressBar: "off",
            responsiveLevels: [4000, 1200, 992, 768, 320],
            gridwidth: [1130, 910, 580, 300],
            gridheight: [600, 800, 1024, 568]
        });

        if( viewport.is('xs') ) {
          // change Slider1 text and image position because of small
          $("#slide1").find(".tp-bgimg").css("background-position", "right center");
          $("#slide1").find(".cap-title").html("Adventurous <br> Developer");
          $("#slide1").find(".cap-subtitle").html("\"Just keep swimming, <br> just keep swimming!\" <br> — Dory");
          $("#slide1").find(".cap-subtitle").attr("data-voffset", "25");
          $("#slide1").find(".cap-sub-subtitle").attr("data-voffset", "75");

          $("#slide2").find(".tp-bgimg").css("background-position", "left center");
          $("#slide2").find(".cap-title").html("Loyal <br> Companion");
          $("#slide2").find(".cap-subtitle").html("\"Ohana means family. <br> Family means nobody gets <br> left behind.\" — Stitch");
          $("#slide2").find(".cap-sub-subtitle").html("Parque Arqueológico Nacional <br> de Pisac, Perú");
          $("#slide2").find(".cap-subtitle").attr("data-voffset", "25");
          $("#slide2").find(".cap-sub-subtitle").attr("data-voffset", "85");
          $("#slide2").find(".cap-title").attr("data-x", "left");
          $("#slide2").find(".cap-subtitle").attr("data-x", "left");
          $("#slide2").find(".cap-sub-subtitle").attr("data-x", "left");

          $("#slide3").find(".cap-title").html("Optimistic <br> Thinker");
          $("#slide3").find(".cap-subtitle").html("\"When life throws you <br> a rainy day, play <br> in the puddles.\" <br> — <NAME>");
          $("#slide3").find(".cap-subtitle").attr("data-voffset", "35");
          $("#slide3").find(".cap-sub-subtitle").attr("data-voffset", "100");
          $("#slide3").find(".cap-title").attr("data-x", "left");
          $("#slide3").find(".cap-subtitle").attr("data-x", "left");
          $("#slide3").find(".cap-sub-subtitle").attr("data-x", "left");
        }

{'fraction_non_alphanumeric': 0.17617264919621228, 'fraction_numerical': 0.024003523452983924, 'mean_word_length': 1.4548648648648648, 'pattern_counts': {'":': 0, '<': 34, '<?xml version=': 0, '>': 34, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7217484', 'n_tokens_mistral': 2672, 'n_tokens_neox': 2435, 'n_words': 465}