<commit_before>/**
 * Various
 */
(function ($) {

	$(document).ready(function () {

	    // hightlight nav items based on scroll area
	    $('body').scrollspy({ target: '#toc', offset: 50 });
	    
	    var id;
	    $(window).resize(function() {
            clearTimeout(id);
            id = setTimeout(function() { $('body').scrollspy('refresh'); }, 500);
        });
        
        // shows 'open in frameset' link if opened separately
		if(window == window.parent && window.name != 'list') {
        	$('#content').prepend('<div class="open-in-frame alert alert-info"><a href="index.html?p=' + $('html').attr('data-page') + window.location.hash + '"><strong>Looking for a different entry?</strong> Unhide the navigation bar and start your search.</a></div>'); 
        }
        
        // if loaded in a frame, checks the URI's p parameter and uses it to load the
        // specified page in the right frame
        // (e.g. docs.seqan.de/index.html?p=String#Example will open the example section of the class String in the main frame) 
        if(window != window.parent && window.name == 'list') {
            try {
                var redirectTo = null;
                var hash = $.urlHash(window.parent.location);
                if($.urlParam('p', window.parent.location)) {
                    var p = $.urlParam('p', window.parent.location).split('/')[0];
                    if (p.indexOf('::') != -1)
                    {
                        var tmp = p;
                        p = tmp.split('::')[0];
                        hash = '::' + tmp.split('::')[1];
                        console.log('p == ' + p + ' -- hash = ' + hash);
                    }

                    if(window.lookup.hasOwnProperty(p+hash)) { // eg. "enum_*.html"
                        redirectTo = window.lookup[p+hash] + '.html'
                    }
                    else if(window.lookup.hasOwnProperty(p)) { // valid for entries in "class_*.html"
                        redirectTo = window.lookup[p] + '.html#' + encodeURIComponent(p + hash);
                    } else {
                        $(window.parent['main'].document).find('#content').prepend('<div class="open-in-frame alert alert-danger">Could not find page for <strong>' + p + '</strong></div>'); 
                        // TODO: start search using search form for p
                    }
                } else {
                    if(hash.length > 1) {
                        redirectTo = hash.substr(1) + '.html';
                    }
                }

                if(redirectTo) {
                    window.parent['main'].location = redirectTo;
                }<commit_msg>an empty line was removed<commit_after>/**
 * Various
 */
(function ($) {

	$(document).ready(function () {

	    // hightlight nav items based on scroll area
	    $('body').scrollspy({ target: '#toc', offset: 50 });
	    
	    var id;
	    $(window).resize(function() {
            clearTimeout(id);
            id = setTimeout(function() { $('body').scrollspy('refresh'); }, 500);
        });
        
        // shows 'open in frameset' link if opened separately
		if(window == window.parent && window.name != 'list') {
        	$('#content').prepend('<div class="open-in-frame alert alert-info"><a href="index.html?p=' + $('html').attr('data-page') + window.location.hash + '"><strong>Looking for a different entry?</strong> Unhide the navigation bar and start your search.</a></div>'); 
        }
        
        // if loaded in a frame, checks the URI's p parameter and uses it to load the
        // specified page in the right frame
        // (e.g. docs.seqan.de/index.html?p=String#Example will open the example section of the class String in the main frame) 
        if(window != window.parent && window.name == 'list') {
            try {
                var redirectTo = null;
                var hash = $.urlHash(window.parent.location);
                if($.urlParam('p', window.parent.location)) {
                    var p = $.urlParam('p', window.parent.location).split('/')[0];
                    if (p.indexOf('::') != -1)
                    {
                        var tmp = p;
                        p = tmp.split('::')[0];
                        hash = '::' + tmp.split('::')[1];
                        console.log('p == ' + p + ' -- hash = ' + hash);
                    }
                    if(window.lookup.hasOwnProperty(p+hash)) { // eg. "enum_*.html"
                        redirectTo = window.lookup[p+hash] + '.html'
                    }
                    else if(window.lookup.hasOwnProperty(p)) { // valid for entries in "class_*.html"
                        redirectTo = window.lookup[p] + '.html#' + encodeURIComponent(p + hash);
                    } else {
                        $(window.parent['main'].document).find('#content').prepend('<div class="open-in-frame alert alert-danger">Could not find page for <strong>' + p + '</strong></div>'); 
                        // TODO: start search using search form for p
                    }
                } else {
                    if(hash.length > 1) {
                        redirectTo = hash.substr(1) + '.html';
                    }
                }

                if(redirectTo) {
                    window.parent['main'].location = redirectTo;
                }
{'fraction_non_alphanumeric': 0.15534344001497286, 'fraction_numerical': 0.004117536964252292, 'mean_word_length': 1.5112781954887218, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 25, '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': '3504948', 'n_tokens_mistral': 1472, 'n_tokens_neox': 1371, 'n_words': 346}