<commit_before>define([
    'agrc/widgets/map/BaseMap',
    'agrc/widgets/map/BaseMapSelector',

    'app/config',

    'dojo/_base/lang',
    'dojo/dom-style',
    'dojo/topic',

    'esri/geometry/Point',
    'esri/graphic',
    'esri/layers/ArcGISDynamicMapServiceLayer'
], function(
    BaseMap,
    BaseMapSelector,

    config,

    lang,
    domStyle,
    topic,

    Point,
    Graphic,
    ArcGISDynamicMapServiceLayer
) {
    return {
        // map: BaseMap
        map: null,

        // dLayers: Object
        //      dynamic layers
        dLayers: {},

        // childWidgets: Object[]
        childWidgets: [],

        initMap: function(mapDiv) {
            // summary:
            //      Sets up the map
            console.info('app/mapController:initMap', arguments);

            this.map = new BaseMap(mapDiv, {
                useDefaultBaseMap: false,
                showAttribution: false,
                center: new Point(config.initialExtent.center, {
                    wkid: 26912
                }),
                scale: config.initialExtent.scale
            });
            this.map.disableScrollWheelZoom();

            this.childWidgets.push(
                new BaseMapSelector({
                    map: this.map,
                    id: 'claro',
                    position: 'TL'
                })
            );
            this.childWidgets.push(this.map);

            // force map to auto height
            // required for proper alignment in firefox
            domStyle.set(mapDiv, 'height', 'auto');
            this.map.resize();

            topic.subscribe(config.topics.layers.resize, 
                lang.hitch(this.map, 'resize'));

            topic.subscribe(config.topics.addLayer,
                lang.hitch(this, 'addLayer'));

            topic.subscribe(config.topics.layer.toggleDynamicLayer, 
                lang.hitch(this, 'toggleDynamicLayer'));

            topic.subscribe(config.topics.slider.change,
                lang.hitch(this, 'onSliderChange'));

            var that = this;
            this.map.on('load', function () {
                topic.subscribe('agrc.widgets.locate.FindAddress.OnFindStart',
                    lang.hitch(that.map.graphics, 'clear'));<commit_msg>disable mac smart navigation<commit_after>define([
    'agrc/widgets/map/BaseMap',
    'agrc/widgets/map/BaseMapSelector',

    'app/config',

    'dojo/_base/lang',
    'dojo/dom-style',
    'dojo/topic',

    'esri/geometry/Point',
    'esri/graphic',
    'esri/layers/ArcGISDynamicMapServiceLayer'
], function(
    BaseMap,
    BaseMapSelector,

    config,

    lang,
    domStyle,
    topic,

    Point,
    Graphic,
    ArcGISDynamicMapServiceLayer
) {
    return {
        // map: BaseMap
        map: null,

        // dLayers: Object
        //      dynamic layers
        dLayers: {},

        // childWidgets: Object[]
        childWidgets: [],

        initMap: function(mapDiv) {
            // summary:
            //      Sets up the map
            console.info('app/mapController:initMap', arguments);

            this.map = new BaseMap(mapDiv, {
                useDefaultBaseMap: false,
                showAttribution: false,
                center: new Point(config.initialExtent.center, {
                    wkid: 26912
                }),
                scale: config.initialExtent.scale,
                smartNavigation: false
            });

            this.childWidgets.push(
                new BaseMapSelector({
                    map: this.map,
                    id: 'claro',
                    position: 'TL'
                })
            );
            this.childWidgets.push(this.map);

            // force map to auto height
            // required for proper alignment in firefox
            domStyle.set(mapDiv, 'height', 'auto');
            this.map.resize();

            topic.subscribe(config.topics.layers.resize, 
                lang.hitch(this.map, 'resize'));

            topic.subscribe(config.topics.addLayer,
                lang.hitch(this, 'addLayer'));

            topic.subscribe(config.topics.layer.toggleDynamicLayer, 
                lang.hitch(this, 'toggleDynamicLayer'));

            topic.subscribe(config.topics.slider.change,
                lang.hitch(this, 'onSliderChange'));

            var that = this;
            this.map.on('load', function () {
                topic.subscribe('agrc.widgets.locate.FindAddress.OnFindStart',
                    lang.hitch(that.map.graphics, 'clear'));
                that.map.disableScrollWheelZoom();
{'fraction_non_alphanumeric': 0.11525867714472822, 'fraction_numerical': 0.0021829294913774284, 'mean_word_length': 1.5203520352035202, 'pattern_counts': {'":': 0, '<': 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': '2939705', 'n_tokens_mistral': 1331, 'n_tokens_neox': 1228, 'n_words': 208}