<commit_before>require([
    "esri/Map",
    "esri/views/SceneView",
    "esri/layers/FeatureLayer",
    "esri/Camera",
    "esri/geometry/Point",
    "dojo/domReady!"
], function(Map, SceneView, FeatureLayer, Camera, Point){

    var serviceUrl = "http://services1.arcgis.com/mRXrgD3LWwGHJmpS/arcgis/rest/services/noco_rec_sites/FeatureServer/4";
    var view;
    var map;
    var initialCamera = {
        "position": [
            -105.42775673320733,
            40.72251708321131,
            4716.164163470268
        ],
        "heading": 221.26084949235252,
        "tilt": 80.32454718245218
    }

    map = new Map({
        //basemap: "topo-vector",
        //basemap: "terrain",
        //basemap: "satellite",
        basemap: "hybrid",
        ground: "world-elevation"
    });

    view = new SceneView({
        container: "map",
        map: map,
        camera: initialCamera,
        constraints: {
            maxScale: 0  // User can overzoom tiles
        }
    });

    view.then(function() {
        displayCameraStuff();
    });

    var layer = new FeatureLayer({
        url: serviceUrl
    });
    map.layers.add(layer);

    view.on("drag", displayCameraStuff);
    view.on("mouse-wheel", displayCameraStuff);

    function displayCameraStuff() {
        document.getElementById("xValue").innerHTML = view.camera.position.latitude;
        document.getElementById("yValue").innerHTML = view.camera.position.longitude;
        document.getElementById("altitudeValue").innerHTML = view.camera.position.z;
        document.getElementById("headingValue").innerHTML = view.camera.heading;
        document.getElementById("tiltValue").innerHTML = view.camera.tilt;
    }

    var clipboard = new Clipboard('#copyCamera');
    clipboard.on('success', function(e) {
        e.clearSelection();
        var s = document.getElementById('copySuccess').style;
        s.display = "block";
        setTimeout(function() {s.display="none";},1500);<commit_msg>add search feature<commit_after>require([
    "esri/Map",
    "esri/views/SceneView",
    "esri/layers/FeatureLayer",
    "esri/Camera",
    "esri/geometry/Point",
    "esri/widgets/Search",
    "dojo/domReady!"
], function(Map, SceneView, FeatureLayer, Camera, Point, Search){

    var serviceUrl = "http://services1.arcgis.com/mRXrgD3LWwGHJmpS/arcgis/rest/services/noco_rec_sites/FeatureServer/4";
    var view;
    var map;
    var initialCamera = {
        "position": [
            -105.42775673320733,
            40.72251708321131,
            4716.164163470268
        ],
        "heading": 221.26084949235252,
        "tilt": 80.32454718245218
    }

    map = new Map({
        //basemap: "topo-vector",
        //basemap: "terrain",
        //basemap: "satellite",
        basemap: "hybrid",
        ground: "world-elevation"
    });

    view = new SceneView({
        container: "map",
        map: map,
        camera: initialCamera,
        constraints: {
            maxScale: 0  // User can overzoom tiles
        }
    });

    view.then(function() {
        displayCameraStuff();
    });

    var searchWidget = new Search({
        view: view
    });

    // Add the search widget to the very top left corner of the view
    view.ui.add(searchWidget, {
        position: "top-left",
        index: 0
    });

    var layer = new FeatureLayer({
        url: serviceUrl
    });
    map.layers.add(layer);

    view.on("drag", displayCameraStuff);
    view.on("mouse-wheel", displayCameraStuff);

    function displayCameraStuff() {
        document.getElementById("xValue").innerHTML = view.camera.position.latitude;
        document.getElementById("yValue").innerHTML = view.camera.position.longitude;
        document.getElementById("altitudeValue").innerHTML = view.camera.position.z;
        document.getElementById("headingValue").innerHTML = view.camera.heading;
        document.getElementById("tiltValue").innerHTML = view.camera.tilt;
    }

    var clipboard = new Clipboard('#copyCamera');
    clipboard.on('success', function(e) {
        e.clearSelection();
        var s = document.getElementById('copySuccess').style;
        s.display = "block";
        setTimeout(function() {s.display="none";},1500);
{'fraction_non_alphanumeric': 0.13797197815245785, 'fraction_numerical': 0.04298266445024935, 'mean_word_length': 2.495435684647303, 'pattern_counts': {'":': 6, '<': 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': '4588516', 'n_tokens_mistral': 1413, 'n_tokens_neox': 1274, 'n_words': 221}