<commit_before><html>
    <head>
        <title>Test RPC</title>
        <script src="../../libraries/JSChannel/jschannel.js"></script>
        <script src="../../libraries/OskariRPC/OskariRPC.js"></script>
        <style>
            iframe {
                border: none;
                border-radius: 10px;
                box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.15);
                clear: both;
                display: block;
                margin-bottom: 12px;
            }
        </style>
    </head>

    <body>
        <iframe id="Oskari" src="http://dev.paikkatietoikkuna.fi/published/fi/6043" style="width: 700px; height: 525px;"></iframe>
        <button id="helsinki">Helsinkiin</button>
        <button id="lehka">M&ouml;kille</button>
        <output id="coords"></output>
        <script>
        var channel = OskariRPC.connect(
                document.getElementById("Oskari"),
                "http://dev.paikkatietoikkuna.fi"
            ),
            coords = document.getElementById('coords'),
            setCoords = function(x, y) {
                coords.textContent = x + ", " + y;
            },
            moveMap = function(centerX, centerY) {
                channel.postRequest(
                    "MapMoveRequest",
                    [centerX, centerY, 8],
                    function(data) {
                        console.log("MapMoveRequest posted");
                    },
                    function(error, message) {
                        console.log("error", error, message);
                    }
                );
            };

        // Get current map position
        channel.getMapPosition(
            function(data) {<commit_msg>[AH-1855] Cleanup<commit_after><html>
    <head>
        <title>Test RPC</title>
        <script src="../../libraries/JSChannel/jschannel.js"></script>
        <script src="../../libraries/OskariRPC/OskariRPC.js"></script>
        <style>
            iframe {
                background-clip: padding-box;
                border: none;
                border-radius: 12px;
                box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.15);
                clear: both;
                display: block;
                margin-bottom: 12px;
            }
        </style>
    </head>

    <body>
        <iframe id="Oskari" src="http://dev.paikkatietoikkuna.fi/published/fi/6043" style="width: 700px; height: 525px;"></iframe>
        <button id="helsinki">Helsinkiin</button>
        <button id="lehka">M&ouml;kille</button>
        <output id="coords"></output>
        <script>
        var channel = OskariRPC.connect(
                document.getElementById("Oskari"),
                'http://dev.paikkatietoikkuna.fi'
            ),
            coords = document.getElementById('coords'),
            setCoords = function(x, y) {
                coords.textContent = x + ", " + y;
            },
            moveMap = function(centerX, centerY) {
                channel.postRequest(
                    "MapMoveRequest",
                    [centerX, centerY, 8],
                    function(data) {
                        console.log("MapMoveRequest posted");
                    },
                    function(error, message) {
                        console.log("error", error, message);
                    }
                );
            };

        // Get current map position
        channel.getMapPosition(
            function(data) {
{'fraction_non_alphanumeric': 0.1316860465116279, 'fraction_numerical': 0.015116279069767442, 'mean_word_length': 1.3392250169952413, 'pattern_counts': {'":': 0, '<': 45, '<?xml version=': 0, '>': 45, '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': '3074086', 'n_tokens_mistral': 1027, 'n_tokens_neox': 922, 'n_words': 163}