<commit_before>{#Jquery Ui Tabs#}
<script>
    $(function () {
        $("#tabs").tabs();
    });
</script>
<commit_msg>flexslider in jquery ui tabs now works<commit_after>{#Jquery Ui Tabs#}
<script>
    $(function () {
        var slider2_initialized = false;
        var slider3_initialized = false;

        $("#tabs").tabs({
            activate: function (event, ui) {
                //console.log("ui = ");console.log(ui);
                var tab_id = $(ui.newPanel).attr('id');//alert(tab_id);

                if (tab_id == "tabs-2" && slider2_initialized == false)
                {
                    $('#carousel2').flexslider({
                        animation: "slide",
                        controlNav: false,
                        animationLoop: false,
                        slideshow: false,
                        itemWidth: 210,
                        itemMargin: 5,
                        asNavFor: '#slider2'
                    });

                    $('#slider2').flexslider({
                        animation: "slide",
                        controlNav: false,
                        animationLoop: false,
                        slideshow: false,
                        sync: "#carousel2"
                    });
                    //update initialization flag to true
                    slider2_initialized = true;
                } else if (tab_id == "tabs-3" && slider3_initialized == false)
                {
                    $('#carousel3').flexslider({
                        animation: "slide",
                        controlNav: false,
                        animationLoop: false,
                        slideshow: false,
                        itemWidth: 210,
                        itemMargin: 5,
                        asNavFor: '#slider3'
                    });

                    $('#slider3').flexslider({
                        animation: "slide",
                        controlNav: false,
                        animationLoop: false,
                        slideshow: false,
                        sync: "#carousel3"
                    });
                    //update initialization flag to true
                    slider3_initialized = true;
                }
            }
        });
    });
</script>

{'fraction_non_alphanumeric': 0.10804899387576553, 'fraction_numerical': 0.010498687664041995, 'mean_word_length': 0.9447278911564626, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '7303882', 'n_tokens_mistral': 547, 'n_tokens_neox': 501, 'n_words': 112}