<commit_before>﻿
@{
    ViewBag.Title = "Wide Word Web";
}

<div id="divSearch">
    <h3><label class="label label-primary">Search for Connections</label></h3>
    <input id="inputSearch" type="search" class="input-lg" />
    <button id="buttonRunSearch" class="btn btn-default">Go</button>
</div>
<script type="text/javascript">
    window.onload = function () {
        var button = document.getElementById('buttonRunSearch');
        if (button) {
            button.onclick = runSearch;
        }
        //try {
        //    $("#divSearch").css('display', 'none');
        //    $("#divSearch").fadeIn(1000);
        //} catch (e) {
        //    if (e) {

        //    }
        //}
    }
    function runSearch() {
        var search = document.getElementById('inputSearch');
        if (search) {
            var term = search.value;
            //var url = '@Url.Action("Test","Home")?Word=' + term;
            var url = '@Url.Action("Search","Home")?Word=' + term;
            //var url = '@Url.Action("Results","Home")?Word=' + term;
            location.href = url;
        }
    }
</script><commit_msg>Updated to include front page changes<commit_after>﻿
@{
    ViewBag.Title = "Wide Word Web";
}

<div id="divSearch">
    <h3><label class="label label-primary">Search for Connections</label></h3>
    <input id="inputSearch" type="search" class="input-lg" onkeypress= "return enterRunSearch()" />
    <button id="buttonRunSearch" class="btn btn-default">Go</button>
</div>
<script type="text/javascript">
    window.onload = function () {
        var button = document.getElementById('buttonRunSearch');
        if (button) {
            button.onclick = runSearch;
        }
    }
    function runSearch() {
        var search = document.getElementById('inputSearch');
        if (search) {
            var term = search.value;
            var url = '@Url.Action("Search","Home")?Word=' + term;
            location.href = url;
        }
    }
    function enterRunSearch() {
        if (event.which == 13 || event.keyCode == 13) {
            runSearch();
        }
    };
</script>
{'fraction_non_alphanumeric': 0.17134697762970014, 'fraction_numerical': 0.005711565920990005, 'mean_word_length': 2.2895148669796557, 'pattern_counts': {'":': 0, '<': 25, '<?xml version=': 0, '>': 25, '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': '7533761', 'n_tokens_mistral': 628, 'n_tokens_neox': 619, 'n_words': 129}