<commit_before><!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">  <!-- Use Chrome Frame in IE -->
    <meta name="viewport" content="width=device-width, height=device-height, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no">
    <meta name="description" content="Visualize worldwide, high-resolution terrain.">
    <meta name="cesium-sandcastle-labels" content="Tutorials, Showcases">
    <title>Cesium Demo</title>
    <script type="text/javascript" src="../Sandcastle-header.js"></script>
    <script type="text/javascript" src="../../../ThirdParty/requirejs-2.1.9/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" data-sandcastle-title="Cesium + require.js">
<style>
    @import url(../templates/bucket.css);
</style>
<div id="cesiumContainer" class="fullSize"></div>
<div id="loadingOverlay"><h1>Loading...</h1></div>
<div id="toolbar">
<div id="terrainMenu"></div>
<div id="zoomButtons"></div>
<div id="sampleButtons"></div>
</div>
<script id="cesium_sandcastle_script">
require(['Cesium'], function(Cesium) {
    "use strict";

    function createTerrainMenu(terrainProviders) {
        var terrainProviderOptions = terrainProviders.map(function(terrainProvider) {
            return {
                text : terrainProvider.name
            };
        });

        Sandcastle.addToolbarMenu(terrainProviderOptions, function() {
            scene.terrainProvider = terrainProviders[this.selectedIndex].provider;
        }, 'terrainMenu');

        Sandcastle.addToolbarButton('Mount Everest', function() {
            var eye, target, up;

            if (scene.mode === Cesium.SceneMode.SCENE3D) {
                eye = new Cesium.Cartesian3(294572.0645397696, 5637826.573008351, 2978624.6868285);
                target = Cesium.Cartesian3.add(eye, new Cesium.Cartesian3(0.9028130862217908, -0.42449297750082904, -0.06880583840911567));
                up = new Cesium.Cartesian3(0.40668971896562117, 0.790807045510862, 0.45741413322152297);
                scene.camera.lookAt(eye, target, up);
            } else if (scene.mode === Cesium.SceneMode.COLUMBUS_VIEW) {
                eye = new Cesium.Cartesian3(9684590.891310014, 3114799.076252769, 9849.375792522824);
                target = Cesium.Cartesian3.add(eye, new Cesium.Cartesian3(-0.8929328433855669, -0.00005779973945286486, -0.45018988645076763));
                up = new Cesium.Cartesian3(-0.4501898855076042, -0.0000291369789812141, 0.8929328452557279);
                scene.camera.lookAt(eye, target, up);
            } else {
                scene.camera.viewRectangle(new Cesium.Rectangle(1.516102969, 0.48744464, 1.518102969, 0.48944464));
            }
        }, 'zoomButtons');

        Sandcastle.addToolbarButton('Half Dome', function() {
            var eye, target, up;

            if (scene.mode === Cesium.SceneMode.SCENE3D) {
                eye = new Cesium.Cartesian3(-2496304.1498512086, -4391818.97382059, 3884176.4503971986);
                target = Cesium.Cartesian3.add(eye, new Cesium.Cartesian3(0.9279518715011381, -0.29488412129953234, -0.22792252890604328));
                up = new Cesium.Cartesian3(-0.11836693744723503, -0.8130611584421428, 0.5700182635106171);
                scene.camera.lookAt(eye, target, up);
            } else if (scene.mode === Cesium.SceneMode.COLUMBUS_VIEW) {
                eye = new Cesium.Cartesian3(-13314946.646404704, 4200941.442507448, 2468.225945515426);
                target = Cesium.Cartesian3.add(eye, new Cesium.Cartesian3(0.9624895834866811, 0.04124314776883213, -0.26816562874787864));
                up = new Cesium.Cartesian3(0.2679197697914868, 0.011480478929947842, 0.9633728227203466);
                scene.camera.lookAt(eye, target, up);
            } else {
                scene.camera.viewRectangle(new Cesium.Rectangle(-2.08724538, 0.6577939, -2.08524538, 0.6597939));
            }
        }, 'zoomButtons');

        Sandcastle.addToolbarButton('San Francisco Bay', function() {
            var eye, target, up;

            if (scene.mode === Cesium.SceneMode.SCENE3D) {
                eye = new Cesium.Cartesian3(-2674718.9291375633, -4332137.224608461, 3888180.6614196445);
                target = Cesium.Cartesian3.add(eye, new Cesium.Cartesian3(-0.40034097132786534, 0.9155843741828319, 0.03784653786617176));
                up = new Cesium.Cartesian3(-0.6502679490649945, -0.3129458646313862, 0.6922546353438556);
                scene.camera.lookAt(eye, target, up);
            } else if (scene.mode === Cesium.SceneMode.COLUMBUS_VIEW) {
                eye = new Cesium.Cartesian3(-13562569.113918452, 4176598.9965795614, 37656.37201701476);
                target = Cesium.Cartesian3.add(eye, new Cesium.Cartesian3(-0.8108519561707095, 0.4023795334200999, -0.42498213639958615));
                up = new Cesium.Cartesian3(-0.3806859699462094, 0.18891270085627615, 0.905201736488051);
                scene.camera.lookAt(eye, target, up);
            } else {
                scene.camera.viewRectangle(new Cesium.Rectangle(-2.147621889, 0.64829691, -2.125621889, 0.67029691));
            }
        }, 'zoomButtons');

        var terrainSamplePositions;
        var billboards;
        var labels;

        function sampleTerrainSuccess() {
            var ellipsoid = Cesium.Ellipsoid.WGS84;

            if (typeof billboards === 'undefined') {
                billboards = new Cesium.BillboardCollection();

                Cesium.when(Cesium.loadImage('../images/facility.gif'), function(image) {
                    var textureAtlas = new Cesium.TextureAtlas({
                        scene : scene,
                        images : [image]
                    });
                    billboards.textureAtlas = textureAtlas;
                });
            } else {
                billboards.removeAll();
            }

            if (typeof labels === 'undefined') {
                labels = new Cesium.LabelCollection();<commit_msg>sandcastle<commit_after><!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">  <!-- Use Chrome Frame in IE -->
    <meta name="viewport" content="width=device-width, height=device-height, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no">
    <meta name="description" content="Visualize worldwide, high-resolution terrain.">
    <meta name="cesium-sandcastle-labels" content="Tutorials, Showcases">
    <title>Cesium Demo</title>
    <script type="text/javascript" src="../Sandcastle-header.js"></script>
    <script type="text/javascript" src="../../../ThirdParty/requirejs-2.1.9/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" data-sandcastle-title="Cesium + require.js">
<style>
    @import url(../templates/bucket.css);
</style>
<div id="cesiumContainer" class="fullSize"></div>
<div id="loadingOverlay"><h1>Loading...</h1></div>
<div id="toolbar">
<div id="terrainMenu"></div>
<div id="zoomButtons"></div>
<div id="sampleButtons"></div>
</div>
<script id="cesium_sandcastle_script">
require(['Cesium'], function(Cesium) {
    "use strict";

    function createTerrainMenu(terrainProviders) {
        var terrainProviderOptions = terrainProviders.map(function(terrainProvider) {
            return {
                text : terrainProvider.name
            };
        });

        Sandcastle.addToolbarMenu(terrainProviderOptions, function() {
            scene.terrainProvider = terrainProviders[this.selectedIndex].provider;
        }, 'terrainMenu');

        Sandcastle.addToolbarButton('Mount Everest', function() {
            var eye, target, up;

            if (scene.mode === Cesium.SceneMode.SCENE3D) {
                eye = new Cesium.Cartesian3(294572.0645397696, 5637826.573008351, 2978624.6868285);
                target = Cesium.Cartesian3.add(eye, new Cesium.Cartesian3(0.9028130862217908, -0.42449297750082904, -0.06880583840911567), new Cesium.Cartesian3());
                up = new Cesium.Cartesian3(0.40668971896562117, 0.790807045510862, 0.45741413322152297);
                scene.camera.lookAt(eye, target, up);
            } else if (scene.mode === Cesium.SceneMode.COLUMBUS_VIEW) {
                eye = new Cesium.Cartesian3(9684590.891310014, 3114799.076252769, 9849.375792522824);
                target = Cesium.Cartesian3.add(eye, new Cesium.Cartesian3(-0.8929328433855669, -0.00005779973945286486, -0.45018988645076763), new Cesium.Cartesian3());
                up = new Cesium.Cartesian3(-0.4501898855076042, -0.0000291369789812141, 0.8929328452557279);
                scene.camera.lookAt(eye, target, up);
            } else {
                scene.camera.viewRectangle(new Cesium.Rectangle(1.516102969, 0.48744464, 1.518102969, 0.48944464));
            }
        }, 'zoomButtons');

        Sandcastle.addToolbarButton('Half Dome', function() {
            var eye, target, up;

            if (scene.mode === Cesium.SceneMode.SCENE3D) {
                eye = new Cesium.Cartesian3(-2496304.1498512086, -4391818.97382059, 3884176.4503971986);
                target = Cesium.Cartesian3.add(eye, new Cesium.Cartesian3(0.9279518715011381, -0.29488412129953234, -0.22792252890604328), new Cesium.Cartesian3());
                up = new Cesium.Cartesian3(-0.11836693744723503, -0.8130611584421428, 0.5700182635106171);
                scene.camera.lookAt(eye, target, up);
            } else if (scene.mode === Cesium.SceneMode.COLUMBUS_VIEW) {
                eye = new Cesium.Cartesian3(-13314946.646404704, 4200941.442507448, 2468.225945515426);
                target = Cesium.Cartesian3.add(eye, new Cesium.Cartesian3(0.9624895834866811, 0.04124314776883213, -0.26816562874787864), new Cesium.Cartesian3());
                up = new Cesium.Cartesian3(0.2679197697914868, 0.011480478929947842, 0.9633728227203466);
                scene.camera.lookAt(eye, target, up);
            } else {
                scene.camera.viewRectangle(new Cesium.Rectangle(-2.08724538, 0.6577939, -2.08524538, 0.6597939));
            }
        }, 'zoomButtons');

        Sandcastle.addToolbarButton('San Francisco Bay', function() {
            var eye, target, up;

            if (scene.mode === Cesium.SceneMode.SCENE3D) {
                eye = new Cesium.Cartesian3(-2674718.9291375633, -4332137.224608461, 3888180.6614196445);
                target = Cesium.Cartesian3.add(eye, new Cesium.Cartesian3(-0.40034097132786534, 0.9155843741828319, 0.03784653786617176), new Cesium.Cartesian3());
                up = new Cesium.Cartesian3(-0.6502679490649945, -0.3129458646313862, 0.6922546353438556);
                scene.camera.lookAt(eye, target, up);
            } else if (scene.mode === Cesium.SceneMode.COLUMBUS_VIEW) {
                eye = new Cesium.Cartesian3(-13562569.113918452, 4176598.9965795614, 37656.37201701476);
                target = Cesium.Cartesian3.add(eye, new Cesium.Cartesian3(-0.8108519561707095, 0.4023795334200999, -0.42498213639958615), new Cesium.Cartesian3());
                up = new Cesium.Cartesian3(-0.3806859699462094, 0.18891270085627615, 0.905201736488051);
                scene.camera.lookAt(eye, target, up);
            } else {
                scene.camera.viewRectangle(new Cesium.Rectangle(-2.147621889, 0.64829691, -2.125621889, 0.67029691));
            }
        }, 'zoomButtons');

        var terrainSamplePositions;
        var billboards;
        var labels;

        function sampleTerrainSuccess() {
            var ellipsoid = Cesium.Ellipsoid.WGS84;

            if (typeof billboards === 'undefined') {
                billboards = new Cesium.BillboardCollection();

                Cesium.when(Cesium.loadImage('../images/facility.gif'), function(image) {
                    var textureAtlas = new Cesium.TextureAtlas({
                        scene : scene,
                        images : [image]
                    });
                    billboards.textureAtlas = textureAtlas;
                });
            } else {
                billboards.removeAll();
            }

            if (typeof labels === 'undefined') {
                labels = new Cesium.LabelCollection();
{'fraction_non_alphanumeric': 0.13407378024593417, 'fraction_numerical': 0.1712019040063467, 'mean_word_length': 2.540016849199663, 'pattern_counts': {'":': 0, '<': 75, '<?xml version=': 0, '>': 75, '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': '506632', 'n_tokens_mistral': 5431, 'n_tokens_neox': 4067, 'n_words': 629}