<commit_before>astun.layersHoverInfo = {

    // Add an entry for each layer. The layer name should be as found
    // in the mapfile.
    // Ensure that all lines except the last end with a comma
    "Wards" : "Ward boundaries maintained by the Office of National Statistics",
    "SchoolsPrim" : "Primary Schools maintained by the Local Authority"

};

// -- Do not edit past this point -- //

(function() {

    // Wait until all of our dependencies are
    // met such as jQuery being loaded, we're on
    // a map page and the layer control has loaded
    var timer = setInterval(function() {
        if (typeof jQuery != 'undefined') {
            if(jQuery('#atMyMaps').length) {
                if (jQuery('div#showmapcategories .atLayerSet').length) {
                    clearInterval(timer);
                    layerinfo();
                }
            } else {
                clearInterval(timer);
            }
        }
    }, 100);

    // Adds a tooltip to each of the layers in the
    // astun.layersHoverInfo list
    function layerinfo() {

        // Append the tooltip to the page and hide it
        jQuery('body').append(
            jQuery('<div/>')
                .hide()
                .addClass('atLayerInfoTooltip ui-state-default ui-corner-all')
                .append('<div><span class="ui-icon ui-icon-triangle-1-n"></span><div class="text"></div></div>')
        );

        // Add listeners to each layer in the list and decorate the
        // layer name with an info icon
        jQuery.each(astun.layersHoverInfo, function(key, value) {
            jQuery('li[aria-describedby="'+key+'"]')
                .find('a > span')
                .live('mouseover', function(){
                    var t = jQuery(this).offset().top + jQuery(this).parents('li').height() + 10;
                    var l = jQuery(this).parents('li').offset().left;
                    var w = jQuery(this).parents('li').width();
                    jQuery('.atLayerInfoTooltip')
                        .css({'top':t, 'left':l, 'width':w})
                        .show()
                        .find('.text').html(value);
                })
                .live('mouseout', function(){
                    jQuery('.atLayerInfoTooltip').hide();
                })
                .append('<span class="atLayerInfoIcon"></span>');
        });

    }
<commit_msg>Changed all occurences of astun. into Astun.<commit_after>Astun.layersHoverInfo = {

    // Add an entry for each layer. The layer name should be as found
    // in the mapfile.
    // Ensure that all lines except the last end with a comma
    "Wards" : "Ward boundaries maintained by the Office of National Statistics",
    "SchoolsPrim" : "Primary Schools maintained by the Local Authority"

};

// -- Do not edit past this point -- //

(function() {

    // Wait until all of our dependencies are
    // met such as jQuery being loaded, we're on
    // a map page and the layer control has loaded
    var timer = setInterval(function() {
        if (typeof jQuery != 'undefined') {
            if(jQuery('#atMyMaps').length) {
                if (jQuery('div#showmapcategories .atLayerSet').length) {
                    clearInterval(timer);
                    layerinfo();
                }
            } else {
                clearInterval(timer);
            }
        }
    }, 100);

    // Adds a tooltip to each of the layers in the
    // astun.layersHoverInfo list
    function layerinfo() {

        // Append the tooltip to the page and hide it
        jQuery('body').append(
            jQuery('<div/>')
                .hide()
                .addClass('atLayerInfoTooltip ui-state-default ui-corner-all')
                .append('<div><span class="ui-icon ui-icon-triangle-1-n"></span><div class="text"></div></div>')
        );

        // Add listeners to each layer in the list and decorate the
        // layer name with an info icon
        jQuery.each(Astun.layersHoverInfo, function(key, value) {
            jQuery('li[aria-describedby="'+key+'"]')
                .find('a > span')
                .live('mouseover', function(){
                    var t = jQuery(this).offset().top + jQuery(this).parents('li').height() + 10;
                    var l = jQuery(this).parents('li').offset().left;
                    var w = jQuery(this).parents('li').width();
                    jQuery('.atLayerInfoTooltip')
                        .css({'top':t, 'left':l, 'width':w})
                        .show()
                        .find('.text').html(value);
                })
                .live('mouseout', function(){
                    jQuery('.atLayerInfoTooltip').hide();
                })
                .append('<span class="atLayerInfoIcon"></span>');
        });

    }

{'fraction_non_alphanumeric': 0.1348361511166771, 'fraction_numerical': 0.002504696305572949, 'mean_word_length': 1.6519092418372994, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 23, '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': '2583328', 'n_tokens_mistral': 1286, 'n_tokens_neox': 1219, 'n_words': 352}