<commit_before>/*global define,document */
/*jslint sloppy:true,nomen:true */
/*
 | Copyright 2014 Esri
 |
 | Licensed under the Apache License, Version 2.0 (the "License");
 | you may not use this file except in compliance with the License.
 | You may obtain a copy of the License at
 |
 |    http://www.apache.org/licenses/LICENSE-2.0
 |
 | Unless required by applicable law or agreed to in writing, software
 | distributed under the License is distributed on an "AS IS" BASIS,
 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | See the License for the specific language governing permissions and
 | limitations under the License.
 */
define([
  "dojo/_base/declare",
  "dojo/window",
  "dojo/_base/array",
  "dojo/_base/Color",
  "dojo/promise/all",
  "dojo/Deferred",
  "dojo/_base/lang",
  "esri/domUtils",
  "esri/request",
  "esri/lang",
  "esri/arcgis/utils",
  "dojo/query",
  "dojo/dom",
  "dijit/registry",
  "dojo/dom-class",
  "dojo/dom-style",
  "dojo/dom-geometry",
  "dojo/dom-construct",
  "dojo/on",
  "esri/layers/FeatureLayer",
  "esri/graphic",
  "application/MapUrlParams",
  "dojo/domReady!"], function (
    declare,
    win,
    array,
    Color,
    all,
    Deferred,
    lang,
    domUtils,
    esriRequest,
    esriLang,
    arcgisUtils,
    query,
    dom,
    registry,
    domClass,
    domStyle,
    domGeometry,
    domConstruct,
    on,
    FeatureLayer,
    Graphic,
    MapUrlParams
  ) {
    return declare(null, {
        config: {},
        ovmap: null,
        map: null,
        editor: null,
        tableHandler: null,
        timeFormats: ["shortDateShortTime", "shortDateLEShortTime", "shortDateShortTime24", "shortDateLEShortTime24", "shortDateLongTime", "shortDateLELongTime", "shortDateLongTime24", "shortDateLELongTime24"],
        startup: function (config) {

            // config will contain application and user defined info for the template such as i18n strings, the web map id
            // and application id
            // any url parameters and any application specific configuration information.
            if (config) {
                this.config = config;
                window.config = config;

                //supply either the webmap id or, if available, the item info
                var itemInfo = this.config.webmap=a50024dc82444a3cb6e7d6e08e19e0c8;

                var mapParams = new MapUrlParams({
                       center: this.config.center || null,
                       extent: this.config.extent || null,
                       level: this.config.level || null,
                       marker: this.config.marker || null,
                       mapSpatialReference: itemInfo.itemData.spatialReference,<commit_msg>trying quotes around webmap id...<commit_after>/*global define,document */
/*jslint sloppy:true,nomen:true */
/*
 | Copyright 2014 Esri
 |
 | Licensed under the Apache License, Version 2.0 (the "License");
 | you may not use this file except in compliance with the License.
 | You may obtain a copy of the License at
 |
 |    http://www.apache.org/licenses/LICENSE-2.0
 |
 | Unless required by applicable law or agreed to in writing, software
 | distributed under the License is distributed on an "AS IS" BASIS,
 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | See the License for the specific language governing permissions and
 | limitations under the License.
 */
define([
  "dojo/_base/declare",
  "dojo/window",
  "dojo/_base/array",
  "dojo/_base/Color",
  "dojo/promise/all",
  "dojo/Deferred",
  "dojo/_base/lang",
  "esri/domUtils",
  "esri/request",
  "esri/lang",
  "esri/arcgis/utils",
  "dojo/query",
  "dojo/dom",
  "dijit/registry",
  "dojo/dom-class",
  "dojo/dom-style",
  "dojo/dom-geometry",
  "dojo/dom-construct",
  "dojo/on",
  "esri/layers/FeatureLayer",
  "esri/graphic",
  "application/MapUrlParams",
  "dojo/domReady!"], function (
    declare,
    win,
    array,
    Color,
    all,
    Deferred,
    lang,
    domUtils,
    esriRequest,
    esriLang,
    arcgisUtils,
    query,
    dom,
    registry,
    domClass,
    domStyle,
    domGeometry,
    domConstruct,
    on,
    FeatureLayer,
    Graphic,
    MapUrlParams
  ) {
    return declare(null, {
        config: {},
        ovmap: null,
        map: null,
        editor: null,
        tableHandler: null,
        timeFormats: ["shortDateShortTime", "shortDateLEShortTime", "shortDateShortTime24", "shortDateLEShortTime24", "shortDateLongTime", "shortDateLELongTime", "shortDateLongTime24", "shortDateLELongTime24"],
        startup: function (config) {

            // config will contain application and user defined info for the template such as i18n strings, the web map id
            // and application id
            // any url parameters and any application specific configuration information.
            if (config) {
                this.config = config;
                window.config = config;

                //supply either the webmap id or, if available, the item info
                var itemInfo = this.config.webmap="a50024dc82444a3cb6e7d6e08e19e0c8";

                var mapParams = new MapUrlParams({
                       center: this.config.center || null,
                       extent: this.config.extent || null,
                       level: this.config.level || null,
                       marker: this.config.marker || null,
                       mapSpatialReference: itemInfo.itemData.spatialReference,
{'fraction_non_alphanumeric': 0.10667396061269147, 'fraction_numerical': 0.013858497447118891, 'mean_word_length': 2.44535175879397, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, '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': '5339135', 'n_tokens_mistral': 1694, 'n_tokens_neox': 1635, 'n_words': 451}