<commit_before>$(document).on('map_display#map:loaded', function(){
    // Add geolocation button
    L.control.locate().addTo(map);

    /* ------- TIPS LOGIC ------- */
    var h = $('#main-container').height();
    $('#image-map').height() ;

    $( "#libraries-and-floors" ).click(function() {
        $(".optionsTopBar").slideToggle();
        $("#image-map").toggleClass("image-map-open");
    });

    $( "#qr-code" ).click(function() {
        $("#qr-container").toggle();
    });

    var state = "searching";

    $( "#help-info-yes" ).click(function() {
        if(state == "searching") {
            $("#help-info").slideToggle();
            $.ajax({
                url: "/save_statistics",
                type: "post",
                data: {found: true},
            });
        }else if(state == "floor-question"){
            $("#help-info-text").text("Have you checked the recent return shelf?");
            state = "recent-returns"
        }else if(state == "recent-returns"){
            $("#help-info-text").css("padding", "45px");
            $("#help-info-text").text("Apologies for the inconvenience. Please contact the help desk services in the library if you have further questions.");
            $.ajax({
                url: "/save_statistics",
                type: "post",
                data: {found: false},
            });
        }
    });

    $( "#help-info-not-yet" ).click(function() {
        $("#help-info").slideToggle();
        helpInfo(10000);<commit_msg>Add recent return shelves notice<commit_after>$(document).on('map_display#map:loaded', function(){
    // Add geolocation button
    L.control.locate().addTo(map);

    /* ------- TIPS LOGIC ------- */
    var h = $('#main-container').height();
    $('#image-map').height() ;

    $( "#libraries-and-floors" ).click(function() {
        $(".optionsTopBar").slideToggle();
        $("#image-map").toggleClass("image-map-open");
    });

    $( "#qr-code" ).click(function() {
        $("#qr-container").toggle();
    });

    var state = "searching";

    $( "#help-info-yes" ).click(function() {
        if(state == "searching") {
            $("#help-info").slideToggle();
            $.ajax({
                url: "/save_statistics",
                type: "post",
                data: {found: true},
            });
        }else if(state == "floor-question"){
            $("#help-info-text").text("Please check the recent return shelves (the blue ones on the map)?");
            state = "recent-returns"
        }else if(state == "recent-returns"){
            $("#help-info-text").css("padding", "45px");
            $("#help-info-text").text("Apologies for the inconvenience. Please contact the help desk services in the library if you have further questions.");
            $.ajax({
                url: "/save_statistics",
                type: "post",
                data: {found: false},
            });
        }
    });

    $( "#help-info-not-yet" ).click(function() {
        $("#help-info").slideToggle();
        helpInfo(10000);
{'fraction_non_alphanumeric': 0.20576671035386632, 'fraction_numerical': 0.0045871559633027525, 'mean_word_length': 1.9640776699029125, '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': '7232626', 'n_tokens_mistral': 889, 'n_tokens_neox': 847, 'n_words': 172}