<commit_before><!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no">
    <meta name="description" content="Create 3D models using glTF.">
    <meta name="cesium-sandcastle-labels" content="Development">
    <title>Cesium Demo</title>
    <script type="text/javascript" src="../Sandcastle-header.js"></script>
    <script type="text/javascript" src="../../../ThirdParty/requirejs-2.1.20/require.js"></script>
    <script type="text/javascript">
        require.config({
            baseUrl: '../../../Source',
            waitSeconds: 60
        });
    </script>
</head>

<body class="sandcastle-loading" data-sandcastle-bucket="bucket-requirejs.html">
    <style>
        @import url(../templates/bucket.css);
    </style>
    <div id="cesiumContainer" class="fullSize"></div>
    <div id="loadingOverlay">
        <h1>Loading...</h1></div>
    <div id="toolbar">
        <table>
            <tbody>
                <tr>
                    <td>Heading: <span id='heading'></span>°</td>
                </tr>
                <tr>
                    <td>&larr; to left/&rarr; to right</td>
                </tr>
                <tr>
                    <td>Pitch: <span id='pitch'></span>°</td>
                </tr>
                <tr>
                    <td>&uarr; to up/&darr; to down</td>
                </tr>
                <tr>
                    <td>roll: <span id='roll'></span>°</td>
                </tr>
                <tr>
                    <td>&larr; + &#8679; left/&rarr; + &#8679; right</td>
                </tr>
                <tr>
                    <td>Speed: <span id='speed'></span>m/s</td>
                </tr>
                <tr>
                    <td>&uarr; + &#8679; to speed up/&darr; + &#8679; to speed down</td>
                </tr>
                <tr>
                    <td>following aircraft
                        <input id='fromBehind' type='checkbox'></input>
                    </td>
                </tr>

            </tbody>
        </table>
    </div>
    <script id="cesium_sandcastle_script">
        function startup(Cesium) {
            'use strict';
            //Sandcastle_Begin
            var viewer = new Cesium.Viewer('cesiumContainer');
            var scene = viewer.scene;
            // viewer.extend(Cesium.viewerCesiumInspectorMixin);

            var pathPosition = new Cesium.SampledPositionProperty();
            var entityPath = viewer.entities.add({
                position: pathPosition,
                name: 'path',
                path: {
                    show: true,
                    leadTime: 0,
                    trailTime: 60,
                    width: 10,
                    resolution: 1,
                    material: new Cesium.PolylineGlowMaterialProperty({
                        glowPower: 0.3,
                        color: Cesium.Color.PALEGOLDENROD
                    })
                }
            });

            var camera = viewer.camera;
            var controller = scene.screenSpaceCameraController;
            var r = 0;
            var center = new Cesium.Cartesian3();

            var hpRoll = new Cesium.HeadingPitchRoll();
            var hpRange = new Cesium.HeadingPitchRange();<commit_msg>hack to obtain the focus in the canvas<commit_after><!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no">
    <meta name="description" content="Create 3D models using glTF.">
    <meta name="cesium-sandcastle-labels" content="Development">
    <title>Cesium Demo</title>
    <script type="text/javascript" src="../Sandcastle-header.js"></script>
    <script type="text/javascript" src="../../../ThirdParty/requirejs-2.1.20/require.js"></script>
    <script type="text/javascript">
        require.config({
            baseUrl: '../../../Source',
            waitSeconds: 60
        });
    </script>
</head>

<body class="sandcastle-loading" data-sandcastle-bucket="bucket-requirejs.html">
    <style>
        @import url(../templates/bucket.css);
    </style>
    <div id="cesiumContainer" class="fullSize"></div>
    <div id="loadingOverlay">
        <h1>Loading...</h1></div>
    <div id="toolbar">
        <table>
            <tbody>
                <tr>
                    <td>Heading: <span id='heading'></span>°</td>
                </tr>
                <tr>
                    <td>&larr; to left/&rarr; to right</td>
                </tr>
                <tr>
                    <td>Pitch: <span id='pitch'></span>°</td>
                </tr>
                <tr>
                    <td>&uarr; to up/&darr; to down</td>
                </tr>
                <tr>
                    <td>roll: <span id='roll'></span>°</td>
                </tr>
                <tr>
                    <td>&larr; + &#8679; left/&rarr; + &#8679; right</td>
                </tr>
                <tr>
                    <td>Speed: <span id='speed'></span>m/s</td>
                </tr>
                <tr>
                    <td>&uarr; + &#8679; to speed up/&darr; + &#8679; to speed down</td>
                </tr>
                <tr>
                    <td>following aircraft
                        <input id='fromBehind' type='checkbox'></input>
                    </td>
                </tr>

            </tbody>
        </table>
    </div>
    <script id="cesium_sandcastle_script">
        function startup(Cesium) {
            'use strict';
            //Sandcastle_Begin
            var viewer = new Cesium.Viewer('cesiumContainer');
            var canvas = viewer.canvas;
            canvas.setAttribute('tabindex', '0'); // needed to put focus on the canvas
            canvas.onclick = function() {
                    canvas.focus();
                    };

            var scene = viewer.scene;
            // viewer.extend(Cesium.viewerCesiumInspectorMixin);

            var pathPosition = new Cesium.SampledPositionProperty();
            var entityPath = viewer.entities.add({
                position: pathPosition,
                name: 'path',
                path: {
                    show: true,
                    leadTime: 0,
                    trailTime: 60,
                    width: 10,
                    resolution: 1,
                    material: new Cesium.PolylineGlowMaterialProperty({
                        glowPower: 0.3,
                        color: Cesium.Color.PALEGOLDENROD
                    })
                }
            });

            var camera = viewer.camera;
            var controller = scene.screenSpaceCameraController;
            var r = 0;
            var center = new Cesium.Cartesian3();

            var hpRoll = new Cesium.HeadingPitchRoll();
            var hpRange = new Cesium.HeadingPitchRange();
{'fraction_non_alphanumeric': 0.14416572717023676, 'fraction_numerical': 0.011133032694475761, 'mean_word_length': 1.3775544388609715, 'pattern_counts': {'":': 0, '<': 161, '<?xml version=': 0, '>': 161, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7056363', 'n_tokens_mistral': 2135, 'n_tokens_neox': 1959, 'n_words': 399}