<commit_before>/*
 * jQuery throttle / debounce - v1.1 - 3/7/2010
 * http://benalman.com/projects/jquery-throttle-debounce-plugin/
 * 
 * Copyright (c) 2010 "Cowboy" <NAME>
 * Dual licensed under the MIT and GPL licenses.
 * http://benalman.com/about/license/
 */
(function(b,c){var $=b.jQuery||b.Cowboy||(b.Cowboy={}),a;$.throttle=a=function(e,f,j,i){var h,d=0;if(typeof f!=="boolean"){i=j;j=f;f=c}function g(){var o=this,m=+new Date()-d,n=arguments;function l(){d=+new Date();j.apply(o,n)}function k(){h=c}if(i&&!h){l()}h&&clearTimeout(h);if(i===c&&m>e){l()}else{if(f!==true){h=setTimeout(i?k:l,i===c?e-m:e)}}}if($.guid){g.guid=j.guid=j.guid||$.guid++}return g};$.debounce=function(d,e,f){return f===c?a(d,e,false):a(d,f,e!==false)}})(this);


/*
 * Front page things
 */
(function () {

    /*
     * SVG map
     */
    function highlight(href, add) {
        var regionShapeLinks = document.getElementById('svgmap').getElementsByTagName('a');
        for (var i = 0; i < regionShapeLinks.length; i++) {
            if ('/regions/GB' === href || regionShapeLinks[i].getAttributeNS('http://www.w3.org/1999/xlink', 'href') === href) {
                if (add) {
                    regionShapeLinks[i].className += 'highlight';
                } else {
                    regionShapeLinks[i].className = '';
                }
            }
        }
    }

    var regionNameLinks = document.getElementById('regions').getElementsByTagName('a');

    for (var i = 0; i < regionNameLinks.length; i++) {
        regionNameLinks[i].onmouseover = regionNameLinks[i].onfocus = function(e) {
            highlight(this.getAttribute('href'), true);
        };
        regionNameLinks[i].onmouseout = regionNameLinks[i].onblur = function(e) {
            highlight(this.getAttribute('href'), false);
        };
    }
<commit_msg>some kind of fix for the SVG map hover behaviour<commit_after>/*
 * jQuery throttle / debounce - v1.1 - 3/7/2010
 * http://benalman.com/projects/jquery-throttle-debounce-plugin/
 * 
 * Copyright (c) 2010 "Cowboy" <NAME>
 * Dual licensed under the MIT and GPL licenses.
 * http://benalman.com/about/license/
 */
(function(b,c){var $=b.jQuery||b.Cowboy||(b.Cowboy={}),a;$.throttle=a=function(e,f,j,i){var h,d=0;if(typeof f!=="boolean"){i=j;j=f;f=c}function g(){var o=this,m=+new Date()-d,n=arguments;function l(){d=+new Date();j.apply(o,n)}function k(){h=c}if(i&&!h){l()}h&&clearTimeout(h);if(i===c&&m>e){l()}else{if(f!==true){h=setTimeout(i?k:l,i===c?e-m:e)}}}if($.guid){g.guid=j.guid=j.guid||$.guid++}return g};$.debounce=function(d,e,f){return f===c?a(d,e,false):a(d,f,e!==false)}})(this);


/*
 * Front page things
 */
(function () {

    /*
     * SVG map
     */
    function highlight(href, add) {
        var regionShapeLinks = document.getElementById('svgmap').getElementsByTagName('a');
        for (var i = 0; i < regionShapeLinks.length; i++) {
            if ('/regions/GB' === href || regionShapeLinks[i].getAttributeNS('http://www.w3.org/1999/xlink', 'href') === href) {
                if (add) {
                    $(regionShapeLinks[i]).attr('class', 'highlight');
                } else {
                    $(regionShapeLinks[i]).attr('class', '');
                }
            }
        }
    }

    var regionNameLinks = document.getElementById('regions').getElementsByTagName('a');

    for (var i = 0; i < regionNameLinks.length; i++) {
        regionNameLinks[i].onmouseover = regionNameLinks[i].onfocus = function(e) {
            highlight(this.getAttribute('href'), true);
        };
        regionNameLinks[i].onmouseout = regionNameLinks[i].onblur = function(e) {
            highlight(this.getAttribute('href'), false);
        };
    }

{'fraction_non_alphanumeric': 0.21045503791982664, 'fraction_numerical': 0.010834236186348862, 'mean_word_length': 3.1681715575620766, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '2239655', 'n_tokens_mistral': 1352, 'n_tokens_neox': 1293, 'n_words': 177}