<commit_before>$(document).ready(function() {
    init_db("app");

    window.onhashchange = function() {
        show_def(location.hash.substring(1));
    };
    $(window).load(on_resize);
    $(window).resize(on_resize);

    $("#search_form").submit(function() {
        var word = $("#search_field").val();
        $("#search_field").select();
        query(word);
        return false;
    });

    $("#search").click(function() {
        $("#search_field").focus();
    });

    $("#button_add").click(function() {
        var word = location.hash.substring(1);
        storage_word(word);
        wordlist_add(word);
        $("li.current").removeClass("current");
        $("#wordlist_" + escape4id(word)).addClass("current");
        refresh_wordlist_trigger();
        $("#button_add").hide();
        $("#button_remove").show();
    });

    $("#button_remove").click(function() {<commit_msg>show querying word when hash changes<commit_after>$(document).ready(function() {
    init_db("app");

    window.onhashchange = function() {
        var word = location.hash.substring(1);
        $("#search_field").val(word);
        $("#search_field").select();

        show_def(word);
    };
    $(window).load(on_resize);
    $(window).resize(on_resize);

    $("#search_form").submit(function() {
        var word = $("#search_field").val();

        query(word);
        return false;
    });

    $("#search").click(function() {
        $("#search_field").focus();
    });

    $("#button_add").click(function() {
        var word = location.hash.substring(1);
        storage_word(word);
        wordlist_add(word);
        $("li.current").removeClass("current");
        $("#wordlist_" + escape4id(word)).addClass("current");
        refresh_wordlist_trigger();
        $("#button_add").hide();
        $("#button_remove").show();
    });

    $("#button_remove").click(function() {
{'fraction_non_alphanumeric': 0.21119324181626187, 'fraction_numerical': 0.0031678986272439284, 'mean_word_length': 2.89917695473251, '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': '7410738', 'n_tokens_mistral': 551, 'n_tokens_neox': 557, 'n_words': 69}