<commit_before>/* 
 * Copyright (c) 2016 <NAME> <<EMAIL>>.
 * Released under the MIT License
 * http://www.opensource.org/licenses/mit-license.php
 */

/**
 * Layers content module
 *
 * @param {type} ko
 * @param {type} $
 * @returns {LayersViewModel}
 */
/**
 * 
 * @param {Constants} constants
 * @param {Log} log
 * @param {Dragula} dragula
 * @param {Knockout} ko 
 * @param {JQeury} $
 * @returns {LayersViewModel}
 */
define([
    'model/Constants',
    'model/util/Log',
    'dragula',
    'knockout',
    'jquery',
    'jqueryui',
    'bootstrap'],
    function (constants, log, dragula, ko, $) {
        "use strict";
        /**
         * The view model for the Layers panel.
         * @constructor
         * @param {Globe} globe The globe that provides the layer manager.
         * @param {String} viewFragment
         * @param {String} appendToId
         * @returns {LayersViewModel}
         */
        function LayersViewModel(globe, viewFragment, appendToId) {
            var self = this,
                layerManager = globe.layerManager,
                domNodes = $.parseHTML(viewFragment);

            // Load the view html into the specified DOM element
            $(appendToId ? '#' + appendToId : 'body').append(domNodes);
            this.view = domNodes[0];

            // Create view data sources from the LayerManager's observable arrays
            this.baseLayers = layerManager.baseLayers;
            this.overlayLayers = layerManager.overlayLayers;
            this.dataLayers = layerManager.dataLayers;
            this.effectsLayers = layerManager.effectsLayers;
            this.widgetLayers = layerManager.widgetLayers;
            this.selectedLayer = ko.observable();
            // Layer type options
            this.optionValues = ["WMS Layer", "WMTS Layer", "KML file", "Shapefile"];
            this.selectedOptionValue = ko.observable(self.optionValues[0]);
            /**
             * An observable array of servers
             */
            this.servers = layerManager.servers;

            // Setting a default server address to some interesting data

            this.serverAddress = ko.observable();
            this.serverAddresses = ko.observableArray([
                {name: "NASA Earth Observations", url: "https://neowms.sci.gsfc.nasa.gov/wms/wms"},
                {name: "European Centre for Medium-Range Weather Forecast", url: "http://apps.ecmwf.int/wms/?token=public"}
//                {name: "NOAA nowCOAST Observations", url: "https://nowcoast.noaa.gov/arcgis/services/nowcoast/obs_meteocean_insitu_sfc_time/MapServer/WMSServer"},
//                {name: "NOAA nowCOAST Radar Imagery", url: "https://nowcoast.noaa.gov/arcgis/services/nowcoast/radar_meteo_imagery_nexrad_time/MapServer/WMSServer"},
//                {name: "NOAA nowCOAST Surface Analysis", url: "https://nowcoast.noaa.gov/arcgis/services/nowcoast/analysis_meteohydro_sfc_rtma_time/MapServer/WMSServer"},
//                {name: "GEOMac Wildfire Support", url: "https://wildfire.cr.usgs.gov/arcgis/services/geomac_dyn/MapServer/WMSServer"}
            ]);<commit_msg>Added Sentinel-2 cloudless by EOX IT Services GmbH to servers list. - Re: #75<commit_after>/* 
 * Copyright (c) 2016 <NAME> <<EMAIL>>.
 * Released under the MIT License
 * http://www.opensource.org/licenses/mit-license.php
 */

/**
 * Layers content module
 *
 * @param {type} ko
 * @param {type} $
 * @returns {LayersViewModel}
 */
/**
 * 
 * @param {Constants} constants
 * @param {Log} log
 * @param {Dragula} dragula
 * @param {Knockout} ko 
 * @param {JQeury} $
 * @returns {LayersViewModel}
 */
define([
    'model/Constants',
    'model/util/Log',
    'dragula',
    'knockout',
    'jquery',
    'jqueryui',
    'bootstrap'],
    function (constants, log, dragula, ko, $) {
        "use strict";
        /**
         * The view model for the Layers panel.
         * @constructor
         * @param {Globe} globe The globe that provides the layer manager.
         * @param {String} viewFragment
         * @param {String} appendToId
         * @returns {LayersViewModel}
         */
        function LayersViewModel(globe, viewFragment, appendToId) {
            var self = this,
                layerManager = globe.layerManager,
                domNodes = $.parseHTML(viewFragment);

            // Load the view html into the specified DOM element
            $(appendToId ? '#' + appendToId : 'body').append(domNodes);
            this.view = domNodes[0];

            // Create view data sources from the LayerManager's observable arrays
            this.baseLayers = layerManager.baseLayers;
            this.overlayLayers = layerManager.overlayLayers;
            this.dataLayers = layerManager.dataLayers;
            this.effectsLayers = layerManager.effectsLayers;
            this.widgetLayers = layerManager.widgetLayers;
            this.selectedLayer = ko.observable();
            // Layer type options
            this.optionValues = ["WMS Layer", "WMTS Layer", "KML file", "Shapefile"];
            this.selectedOptionValue = ko.observable(self.optionValues[0]);
            /**
             * An observable array of servers
             */
            this.servers = layerManager.servers;

            // Setting a default server address to some interesting data

            this.serverAddress = ko.observable();
            this.serverAddresses = ko.observableArray([
                {name: "NASA Earth Observations", url: "https://neowms.sci.gsfc.nasa.gov/wms/wms"},
                {name: "European Centre for Medium-Range Weather Forecast", url: "http://apps.ecmwf.int/wms/?token=public"},
                {name: "Sentinel-2 cloudless by EOX IT Services GmbH", url: " https://tiles.maps.eox.at/wms"}
//                {name: "NOAA nowCOAST Observations", url: "https://nowcoast.noaa.gov/arcgis/services/nowcoast/obs_meteocean_insitu_sfc_time/MapServer/WMSServer"},
//                {name: "NOAA nowCOAST Radar Imagery", url: "https://nowcoast.noaa.gov/arcgis/services/nowcoast/radar_meteo_imagery_nexrad_time/MapServer/WMSServer"},
//                {name: "NOAA nowCOAST Surface Analysis", url: "https://nowcoast.noaa.gov/arcgis/services/nowcoast/analysis_meteohydro_sfc_rtma_time/MapServer/WMSServer"},
//                {name: "GEOMac Wildfire Support", url: "https://wildfire.cr.usgs.gov/arcgis/services/geomac_dyn/MapServer/WMSServer"}
            ]);
{'fraction_non_alphanumeric': 0.12607405092954227, 'fraction_numerical': 0.002499609436025621, 'mean_word_length': 2.39268680445151, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 11, 'lorem ipsum': 0, 'www.': 2, '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': '1672575', 'n_tokens_mistral': 2017, 'n_tokens_neox': 1892, 'n_words': 420}