<commit_before>define [
  "cs!models/geo-locate-control"
], (GeoLocateControl) ->

  class Map extends Backbone.Model

    # constructor
    initialize: (divname) ->
      @divname = divname

      mapQuest = @setLayerMapQuest()
      osmCycle = @setLayerOsmCycle()
      mmlTaustakartta = @setLayerMmlTaustakartta()
      bingHybrid = @setLayerBingHybrid()

      mapPosition = @loadMapPosition()

      @geolocate = new GeoLocateControl().instance;
      @instance = new OpenLayers.Map
        div: @divname
        theme: null
        projection: defaults.projection
        controls: [
          new OpenLayers.Control.Attribution()
          new OpenLayers.Control.TouchNavigation({
            dragPanOptions: {
              enableKinetic: true
            }
          })
          @geolocate
          new OpenLayers.Control.Zoom()
        ]
        layers: [
          mmlTaustakartta
        ]
        eventListeners: { "moveend": @storeMapPosition }<commit_msg>yo dawg, no maps in your detail maps<commit_after>define [
  "cs!models/geo-locate-control"
], (GeoLocateControl) ->

  class Map extends Backbone.Model

    # constructor
    initialize: (divname) ->
      @divname = divname

      mapQuest = @setLayerMapQuest()
      osmCycle = @setLayerOsmCycle()
      mmlTaustakartta = @setLayerMmlTaustakartta()
      bingHybrid = @setLayerBingHybrid()

      mapPosition = @loadMapPosition()

      @geolocate = new GeoLocateControl().instance;

      @controls = []
      if(@divname == "map")
        @controls = [
          new OpenLayers.Control.Attribution()
          new OpenLayers.Control.TouchNavigation({
            dragPanOptions: {
              enableKinetic: true
            }
          })
          @geolocate
          new OpenLayers.Control.Zoom()
        ]

      @instance = new OpenLayers.Map
        div: @divname
        theme: null
        projection: defaults.projection
        controls: @controls
        layers: [
          mmlTaustakartta
        ]
        eventListeners: { "moveend": @storeMapPosition }
{'fraction_non_alphanumeric': 0.09619140625, 'fraction_numerical': 0.0, 'mean_word_length': 2.081203007518797, 'pattern_counts': {'":': 2, '<': 3, '<?xml version=': 0, '>': 7, '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': '2716811', 'n_tokens_mistral': 632, 'n_tokens_neox': 601, 'n_words': 112}