<commit_before>﻿(function () {
    function getTranslation() {
        $("#results").html("");
        var latin = $("#latin-text").val();
        $.ajax({
            url: "/LatinService.svc/Translate",
            data: { latin: latin },
            cache: false,
            dataType: "json",
            success: function (data, status, response) {
                $("#results").html(JSON.stringify(data.d));
            },
            error: function (request, status, err) {
                $("#results").html("error: " + err);
            }
        });
    }

    $(document).ready(function () {
        $("#latin-text").keydown(function (event) {
            if (event.keyCode == 13) {
                getTranslation();
            }
        });
        $("#translate-button").click(function () {
            getTranslation();
        });
    });
})();<commit_msg>set focus on page load<commit_after>﻿(function () {
    function getTranslation() {
        $("#results").html("");
        var latin = $("#latin-text").val();
        $.ajax({
            url: "/LatinService.svc/Translate",
            data: { latin: latin },
            cache: false,
            dataType: "json",
            success: function (data, status, response) {
                $("#results").html(JSON.stringify(data.d));
            },
            error: function (request, status, err) {
                $("#results").html("error: " + err);
            }
        });
    }

    $(document).ready(function () {
        $("#latin-text").keydown(function (event) {
            if (event.keyCode == 13) {
                getTranslation();
            }
        });
        $("#translate-button").click(function () {
            getTranslation();
        });
        $("#latin-text").focus();
    });
})();
{'fraction_non_alphanumeric': 0.18858421936205932, 'fraction_numerical': 0.002238388360380526, 'mean_word_length': 1.5542857142857143, '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': '6978003', 'n_tokens_mistral': 481, 'n_tokens_neox': 479, 'n_words': 83}