<commit_before><html>

<head>
    <title>Test Page</title>
</head>

<body>

    <img id="stream-window" src="http://192.168.1.171:9090/feed">

    <br>

    <a onclick="move('forward')">forward</a>
    <a onclick="move('back')">back</a>
    <a onclick="move('left')">left</a>
    <a onclick="move('right')">right</a>
    <a onclick="move('stop')">stop</a>

    <br>

    <a onclick="look('up')">up</a>
    <a onclick="look('down')">down</a>
    <a onclick="look('left')">left</a>
    <a onclick="look('right')">right</a>
    <a onclick="look('center')">center</a>

    <br>

    <a onclick="distance()">distance</a>

</body>

<script>
function simple_command(command, direction)
{
    var url = "http://192.168.1.171:8080/" + command + "/" + direction;
    var xmlHttp = new XMLHttpRequest();

    xmlHttp.onreadystatechange = function()
    {
        if (xmlHttp.readyState==4) {

            console.log(url + " : " + xmlHttp.status);
        }
    }

    xmlHttp.open("GET", url, true);
    xmlHttp.send();
}

function move(direction)
{
    simple_command("move", direction);
}

function look(direction)
{
    simple_command("look", direction);
}

function distance()
{
    var url = "http://192.168.1.171:8080/distance"<commit_msg>forgot to commit test page changes<commit_after><html>

<head>
    <title>Test Page</title>
</head>

<body>

    <img id="stream-window" src="http://192.168.1.171:9090/feed">

    <br>

    <a onclick="move('forward')">forward</a>
    <a onclick="move('back')">back</a>
    <a onclick="move('left')">left</a>
    <a onclick="move('right')">right</a>
    <a onclick="move('stop')">stop</a>

    <br>

    <a onclick="look('up')">up</a>
    <a onclick="look('down')">down</a>
    <a onclick="look('left')">left</a>
    <a onclick="look('right')">right</a>
    <a onclick="look('center')">center</a>

    <br>

    <a onclick="distance()">distance</a>

    <br>

    green led: <a onclick="ledOn('green')">on</a> / <a onclick="ledOff('green')">off</a>

</body>

<script>
function simple_command(command, direction, method)
{
    var url = "http://192.168.1.171:8080/" + command + "/" + direction;
    var xmlHttp = new XMLHttpRequest();

    xmlHttp.onreadystatechange = function()
    {
        if (xmlHttp.readyState==4) {

            console.log(url + " : " + xmlHttp.status);
        }
    }

    xmlHttp.open(method, url, false);
    xmlHttp.send();
}

function move(direction)
{
    simple_command("move", direction, "GET");
}

function look(direction)
{
    simple_command("look", direction, "GET");
}

function ledOn(color)
{
    simple_command("leds", color, "POST")
}

function ledOff(color)
{
    simple_command("leds", color, "DELETE")
}

function distance()
{
    var url = "http://192.168.1.171:8080/distance"
{'fraction_non_alphanumeric': 0.21734397677793904, 'fraction_numerical': 0.031204644412191583, 'mean_word_length': 3.446774193548387, 'pattern_counts': {'":': 0, '<': 76, '<?xml version=': 0, '>': 76, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 12}, 'pii_count': 6, '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': '3037265', 'n_tokens_mistral': 1062, 'n_tokens_neox': 983, 'n_words': 166}