<commit_before>var globalSpeed  = 500;

$(document).ready(function() {
    function csrfSafeMethod(method) {
        // these HTTP methods do not require CSRF protection
        return (/^(GET|HEAD|OPTIONS|TRACE)$/.test(method));
    }
//    $.ajaxSetup({
//        crossDomain: false, // obviates need for sameOrigin test
//        beforeSend: function(xhr, settings) {
//        if (!csrfSafeMethod(settings.type)) {
//            xhr.setRequestHeader("X-CSRFToken", $.cookie('csrftoken'));
//        }
//        }
//    });
	var myTimer=false;
	$("#userOptions").hover(function(){ clearTimeout(myTimer);});
	$("#guestOptions").hover(function(){ clearTimeout(myTimer);});
    $('#user').click(function() {
        $("#userOptions").show({easing: "easeInOutQuad"});
        $(this).find('#userOptions').addClass( "open", globalSpeed, "easeInOutQuad");
    });
    $('#user').mouseleave(function() {
		myTimer = setTimeout(function(){
			$("#userOptions").hide({easing: "easeInOutQuad"});
			$(this).find('#userOptions').removeClass( "open", globalSpeed, "easeInOutQuad");
		}, 500)
    });
    $('#guest').click(function() {
        $("#guestOptions").show({easing: "easeInOutQuad"});
        $(this).find('#guestOptions').addClass( "open", globalSpeed, "easeInOutQuad");
    });
    $('#guest').mouseleave(function() {
		myTimer = setTimeout(function(){
			$("#guestOptions").hide({easing: "easeInOutQuad"});
			$(this).find('#guestOptions').removeClass( "open", globalSpeed, "easeInOutQuad");
		}, 500)
    });

    $("#searchbox").autocomplete({
        source: "/carnatic/searchcomplete",
        minlength: 2,
        select: function(event, ui) {
            console.debug("select");
            console.debug(ui);
        }
    });

    // When you click on the (+) on a badge, expand it open
    $(".inforight .desc .plus").click(function(){
        $(this).parent().parent().toggleClass("open");
        $('.scrollblock').isotope('reLayout');
    });

});
<commit_msg>try and fix flyout stuff<commit_after>var globalSpeed  = 500;

$(document).ready(function() {
    function csrfSafeMethod(method) {
        // these HTTP methods do not require CSRF protection
        return (/^(GET|HEAD|OPTIONS|TRACE)$/.test(method));
    }
//    $.ajaxSetup({
//        crossDomain: false, // obviates need for sameOrigin test
//        beforeSend: function(xhr, settings) {
//        if (!csrfSafeMethod(settings.type)) {
//            xhr.setRequestHeader("X-CSRFToken", $.cookie('csrftoken'));
//        }
//        }
//    });
	var myTimer=false;
	$("#userOptions").hover(function(){ clearTimeout(myTimer);});
	$("#guestOptions").hover(function(){ clearTimeout(myTimer);});
    $('#user').click(function() {
        $("#userOptions").show({easing: "easeInOutQuad"});
        $(this).find('#userOptions').addClass( "open", globalSpeed, "easeInOutQuad");
    });
    $('#user').mouseleave(function() {
		myTimer = setTimeout(function(){
			$("#userOptions").hide({easing: "easeInOutQuad"});
			$(this).find('#userOptions').removeClass( "open", globalSpeed, "easeInOutQuad");
		}, 500)
    });
    $('#guest').click(function() {
        $("#guestOptions").show({easing: "easeInOutQuad"});
        $(this).find('#guestOptions').addClass( "open", globalSpeed, "easeInOutQuad");
    });
    $('#guest').mouseleave(function() {
		myTimer = setTimeout(function(){
			$("#guestOptions").hide({easing: "easeInOutQuad"});
			$(this).find('#guestOptions').removeClass( "open", globalSpeed, "easeInOutQuad");
		}, 500)
    });

    $("#searchbox").autocomplete({
        source: "/carnatic/searchcomplete",
        minlength: 2,
        select: function(event, ui) {
            console.debug("select");
            console.debug(ui);
        }
    });

    // When you click on the (+) on a badge, expand it open
    $(".inforight .desc .plus").click(function(){
        $(this).parent().parent().toggleClass("open");
        $(this).parents(".scrollblock").isotope('reLayout');
    });

});

{'fraction_non_alphanumeric': 0.21225822657623714, 'fraction_numerical': 0.005023863350916855, 'mean_word_length': 3.3188720173535793, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '4314058', 'n_tokens_mistral': 1273, 'n_tokens_neox': 1238, 'n_words': 198}