<commit_before>"""\
<html>
<head>
	<title>RED: &lt;%(html_uri)s&gt;</title>
	<link rel="stylesheet" type='text/css' href="red_style.css">
	<meta http-equiv="content-type" content="text/html; charset=utf-8" />
	<meta name="ROBOTS" content="INDEX, NOFOLLOW" />
<script src="jquery.js"></script>
<script src="jquery.hoverIntent.js"></script>
<script language="JavaScript">

var tid = false;
jQuery.fn.hoverPopup = function(fnText, fnOver, fnOut) {
    var fnOverPopup = function(e) {
        if (tid != false) {
            clearTimeout(tid);
            tid = false;
        }
        var text = fnText.call(this, e);
        if (text) {
            var top = $(this).position().top + 15;
            var popup_width = 450;
            var popup_x;
            if (popup_width + 10 > window.innerWidth) {
                popup_x = 5;
                popup_width = window.innerWidth - 10;
            } else if (e.pageX + popup_width + 10 < window.innerWidth) {
                popup_x = e.pageX + 5;
            } else if (e.pageX - popup_width - 5 > 5) {
                popup_x = e.pageX - popup_width + 5;
            } else {
                popup_x = 5;
            }
            $("#popup")
                .fadeIn("fast")
                .css("top", top + "px")
                .css("left", popup_x + "px")
                .css("width", popup_width + "px")
                .html(text);
            var margin = 28;
            var height = $("#popup").height();
            var winheight = $(window).height();
            if (top + height > winheight - margin) {
                var placement = winheight - margin - height;
                $("#popup").animate({ top:placement });
            }
        } else {
            $("#popup").hide();
        }
        if (fnOver) {
            fnOver.call(this, e);
        }
    };
    var fnOutPopup = function(e) {
        tid = setTimeout(function(){
            $("#popup").fadeOut("fast");
        }, 350);
        if (fnOut) {
            fnOut.call(this, e);
        }
    };
    return jQuery.fn.hoverIntent.call(this, fnOverPopup, fnOutPopup);
};


$(document).ready(function(){
    var hidden_list = $("#hidden_list");

    /* popup */

    $("#popup").hoverIntent(function(){
        if (tid != false) {
            clearTimeout(tid);
            tid = false;
        }
    }, function(){
        $("#popup").fadeOut("fast");
    });


    /* single response display */

    $("span.hdr").hoverPopup(
        function(e){
            var name = $(this).attr('name');
            return $("li#" + name, hidden_list).html();
        },
        function(e){
            var name = $(this).attr('name');
            $("span." + name).css({"font-weight": "bold", "color": "white"});
            $("li.msg:not(." + name + ")").fadeTo(100, 0.15);
            $("li.msg." + name).fadeTo(50, 1.0);
        },
        function(e){
            var name = $(this).attr('name');
            $("span." + name).css({"font-weight": "normal", "color": "#ddd"});
            $("li.msg").fadeTo(100, 1.0);
        }
    );

    $("li.msg span").hoverPopup(
        function(e){
            return $("li#" + $(this).parent().attr('name'), hidden_list).html();
        },
        function(e){
            var classes = $(this).parent().attr("class").split(" ");
            for (var i=0; i < classes.length; i++) {
                var c = classes[i];
                $("span.hdr[name='" + c +"']").css({"font-weight": "bold", "color": "white"});
            }
        },
        function(e){
            var classes = $(this).parent().attr("class").split(" ");
            for (var i=0; i < classes.length; i++) {
                var c = classes[i];
                $("span.hdr[name='" + c +"']").css({"font-weight": "normal", "color": "#ddd"});
            }
        }
    );

    $("span.hdr").toggle(
        function(){
            var name = $(this).attr('name');
            $("li.msg." + name).slideDown("fast");
            $("li.msg:not('." + name + "')").slideUp("fast");
        },
        function(){
            $("li.msg").slideDown("fast", function(){
                $("li.msg").css('display', 'list-item')
            });
        }
    );

    $("h3").click(function(){
        $(this).next().slideToggle("normal");
    });

    $("a.link_view").click(function(){
        $("#details").html($("#link_list").html());
    });



    /* URI */

    var check_phrase = "Enter a HTTP URI to check";
    var uri = "%(js_uri)s";
    if (uri) {
        $("#uri").val(uri);<commit_msg>remove header toggle that slid messages; conflicted with clickable headers (e.g., Location).<commit_after>"""\
<html>
<head>
	<title>RED: &lt;%(html_uri)s&gt;</title>
	<link rel="stylesheet" type='text/css' href="red_style.css">
	<meta http-equiv="content-type" content="text/html; charset=utf-8" />
	<meta name="ROBOTS" content="INDEX, NOFOLLOW" />
<script src="jquery.js"></script>
<script src="jquery.hoverIntent.js"></script>
<script language="JavaScript">

var tid = false;
jQuery.fn.hoverPopup = function(fnText, fnOver, fnOut) {
    var fnOverPopup = function(e) {
        if (tid != false) {
            clearTimeout(tid);
            tid = false;
        }
        var text = fnText.call(this, e);
        if (text) {
            var top = $(this).position().top + 15;
            var popup_width = 450;
            var popup_x;
            if (popup_width + 10 > window.innerWidth) {
                popup_x = 5;
                popup_width = window.innerWidth - 10;
            } else if (e.pageX + popup_width + 10 < window.innerWidth) {
                popup_x = e.pageX + 5;
            } else if (e.pageX - popup_width - 5 > 5) {
                popup_x = e.pageX - popup_width + 5;
            } else {
                popup_x = 5;
            }
            $("#popup")
                .fadeIn("fast")
                .css("top", top + "px")
                .css("left", popup_x + "px")
                .css("width", popup_width + "px")
                .html(text);
            var margin = 28;
            var height = $("#popup").height();
            var winheight = $(window).height();
            if (top + height > winheight - margin) {
                var placement = winheight - margin - height;
                $("#popup").animate({ top:placement });
            }
        } else {
            $("#popup").hide();
        }
        if (fnOver) {
            fnOver.call(this, e);
        }
    };
    var fnOutPopup = function(e) {
        tid = setTimeout(function(){
            $("#popup").fadeOut("fast");
        }, 350);
        if (fnOut) {
            fnOut.call(this, e);
        }
    };
    return jQuery.fn.hoverIntent.call(this, fnOverPopup, fnOutPopup);
};


$(document).ready(function(){
    var hidden_list = $("#hidden_list");

    /* popup */

    $("#popup").hoverIntent(function(){
        if (tid != false) {
            clearTimeout(tid);
            tid = false;
        }
    }, function(){
        $("#popup").fadeOut("fast");
    });


    /* single response display */

    $("span.hdr").hoverPopup(
        function(e){
            var name = $(this).attr('name');
            return $("li#" + name, hidden_list).html();
        },
        function(e){
            var name = $(this).attr('name');
            $("span." + name).css({"font-weight": "bold", "color": "white"});
            $("li.msg:not(." + name + ")").fadeTo(100, 0.15);
            $("li.msg." + name).fadeTo(50, 1.0);
        },
        function(e){
            var name = $(this).attr('name');
            $("span." + name).css({"font-weight": "normal", "color": "#ddd"});
            $("li.msg").fadeTo(100, 1.0);
        }
    );

    $("li.msg span").hoverPopup(
        function(e){
            return $("li#" + $(this).parent().attr('name'), hidden_list).html();
        },
        function(e){
            var classes = $(this).parent().attr("class").split(" ");
            for (var i=0; i < classes.length; i++) {
                var c = classes[i];
                $("span.hdr[name='" + c +"']").css({"font-weight": "bold", "color": "white"});
            }
        },
        function(e){
            var classes = $(this).parent().attr("class").split(" ");
            for (var i=0; i < classes.length; i++) {
                var c = classes[i];
                $("span.hdr[name='" + c +"']").css({"font-weight": "normal", "color": "#ddd"});
            }
        }
    );

    $("h3").click(function(){
        $(this).next().slideToggle("normal");
    });

    $("a.link_view").click(function(){
        $("#details").html($("#link_list").html());
    });



    /* URI */

    var check_phrase = "Enter a HTTP URI to check";
    var uri = "%(js_uri)s";
    if (uri) {
        $("#uri").val(uri);
{'fraction_non_alphanumeric': 0.20082154267457783, 'fraction_numerical': 0.009356458238247376, 'mean_word_length': 1.6878258203005214, 'pattern_counts': {'":': 16, '<': 33, '<?xml version=': 0, '>': 33, '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': '2834830', 'n_tokens_mistral': 2824, 'n_tokens_neox': 2677, 'n_words': 537}