<commit_before>$(function () {
    
    /**************************************************************************
    **                                                          Declare vars
    */
    var 
        /*
        ** Internal vars
        */
        OP_READ = 'read',
        OP_SAVED = 'saved',
        MODE_EXPANDED = 'expanded',
        MODE_LIST = 'list',
        
        $scroller = $(window),
        $con = $('#yarr_con'),
        $control = $('.yarr_control'),
        $content = $('.yarr_content'),
        $entries = $('.yarr_entry'),
        $status = $('<div id="yarr_status" />')
            .appendTo($con)
            .hide()
        ,
        $feedList = $('.yarr_feed_list'),
        pkAvailable = $con.data('available-pks'),
        apiEntryGet = $con.data('api-entry-get'),
        apiEntrySet = $con.data('api-entry-set'),
        
        statusTimeout,
        $controlFixed, controlIsFixed = false,
        controlTop, controlHeight, controlBottom,
        scrollCutoff, entryBottoms, entryMargin, scrollInfiniteTrigger,
        infiniteLoading = false, infiniteFinished = false,
        current, $current,
        
        
        /*
        ** Settings
        */
        
        // Display mode; one of:
        //      expanded    Traditional list of titles and bodies
        //      list        List of titles, with expanding bodies
        displayMode = getCookie('yarr-displayMode', MODE_EXPANDED),<commit_msg>Fixed javascript bug when data-available-pks had a single entry<commit_after>$(function () {
    
    /**************************************************************************
    **                                                          Declare vars
    */
    var 
        /*
        ** Internal vars
        */
        OP_READ = 'read',
        OP_SAVED = 'saved',
        MODE_EXPANDED = 'expanded',
        MODE_LIST = 'list',
        
        $scroller = $(window),
        $con = $('#yarr_con'),
        $control = $('.yarr_control'),
        $content = $('.yarr_content'),
        $entries = $('.yarr_entry'),
        $status = $('<div id="yarr_status" />')
            .appendTo($con)
            .hide()
        ,
        $feedList = $('.yarr_feed_list'),
        pkAvailable = String($con.data('available-pks')),
        apiEntryGet = $con.data('api-entry-get'),
        apiEntrySet = $con.data('api-entry-set'),
        
        statusTimeout,
        $controlFixed, controlIsFixed = false,
        controlTop, controlHeight, controlBottom,
        scrollCutoff, entryBottoms, entryMargin, scrollInfiniteTrigger,
        infiniteLoading = false, infiniteFinished = false,
        current, $current,
        
        
        /*
        ** Settings
        */
        
        // Display mode; one of:
        //      expanded    Traditional list of titles and bodies
        //      list        List of titles, with expanding bodies
        displayMode = getCookie('yarr-displayMode', MODE_EXPANDED),
{'fraction_non_alphanumeric': 0.17081371889710828, 'fraction_numerical': 0.0, 'mean_word_length': 1.6633840644583706, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7369847', 'n_tokens_mistral': 788, 'n_tokens_neox': 771, 'n_words': 159}