<commit_before>function dynamicPrep() {

    /*
          Multi-resource dynamic accordion. based on new page and resource clicks.
     *********************************************************************************/

    //new page click show/hide the correct metadata
    $('.other-page').on('click', 'img', function(){  //page click

        $('.resource-reset-icon').click(); //reset the image position

        //subject of observation stuffs.
        $('.subjects-table').each(function(){  //hide all tables
            $(this).css('display','none');
        });
        $('.soo-li').each(function(){   //hide all radio buttons
            $(this).css('display','none');
        });
        var pageKid = $(this).attr('id');
        var clickedFirst = 0;
        $(".soo-li").each(function(){  //show the matching radio buttons
            if( $(this).attr('data-pageKid').indexOf(pageKid) != -1 ){
                $(this).css('display','list-item');
                if( clickedFirst == 0 ){ //click the page's first soo radio button
                    $(this)[0].click();
                    clickedFirst = 1;
                }
            }
        })
    })
    //soo radio button clicked. change css and show the correct soo table.
    $('.soo-li').click(function () { //soo radio button click
        $('.soo-li').each(function(){  //unclick all radio button css
            $(this).css('background-color','#f9f9f9');
            $(this).css('color','#555555');<commit_msg>Fixed the issue with overlapping kids due to .indexof()<commit_after>function dynamicPrep() {

    /*
          Multi-resource dynamic accordion. based on new page and resource clicks.
     *********************************************************************************/

    //new page click show/hide the correct metadata
    $('.other-page').on('click', 'img', function(){  //page click
        $('.resource-reset-icon').click(); //reset the image position

        //subject of observation stuffs.
        $('.subjects-table').each(function(){  //hide all tables
            $(this).css('display','none');
        });
        $('.soo-li').each(function(){   //hide all radio buttons
            $(this).css('display','none');
        });
        var pageKid = $(this).attr('id');
        var clickedFirst = 0;
        $(".soo-li").each(function(){  //show the matching radio buttons
            if( $(this).attr('data-pageKid') == (pageKid)){
                $(this).css('display','list-item');
                if( clickedFirst == 0 ){ //click the page's first soo radio button
                    $(this)[0].click();
                    clickedFirst = 1;
                }
            }
        })
    })
    //soo radio button clicked. change css and show the correct soo table.
    $('.soo-li').click(function () { //soo radio button click
        $('.soo-li').each(function(){  //unclick all radio button css
            $(this).css('background-color','#f9f9f9');
            $(this).css('color','#555555');
{'fraction_non_alphanumeric': 0.22137150466045272, 'fraction_numerical': 0.008988015978695073, 'mean_word_length': 2.1237006237006235, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '3430914', 'n_tokens_mistral': 814, 'n_tokens_neox': 771, 'n_words': 203}