<commit_before>require('sproutcore')
require('sensor-maps/libs/leaflet')
# Sensor Maps namespace
SM = {}
@SM = SM
SM.CLOUDMADE_API_KEY = 'a33ede6a9595478ba1025f20398c0341'

require('sensor-maps/polyline')
require('sensor-maps/marker')
require('sensor-maps/vehicle_marker')



SM.Map = SC.Object.extend
  init: ->
    @_super()
    map = new L.Map @get('divId')
    cloudmadeTiles = new L.TileLayer "http://{s}.tile.cloudmade.com/#{SM.CLOUDMADE_API_KEY}/998/256/{z}/{x}/{y}.png",
      maxZoom: 18
    map.addLayer cloudmadeTiles
    map.attributionControl.setPrefix('')
    @set('mapObject', map)
    @set('objects',[])
  addObject: (object) ->
    @get('objects').push object
    @mapObject.addLayer(object.mapObject)
    this
  addObjects: (objects) ->
    objects.forEach (object) => @addObject(object)<commit_msg>Added get to an options object in the maps constructor<commit_after>require('sproutcore')
require('sensor-maps/libs/leaflet')
# Sensor Maps namespace
SM = {}
@SM = SM
SM.CLOUDMADE_API_KEY = 'a33ede6a9595478ba1025f20398c0341'

require('sensor-maps/polyline')
require('sensor-maps/marker')
require('sensor-maps/vehicle_marker')

SM.Map = SC.Object.extend
  init: ->
    @_super()
    options = @get('options') || {}
    map = new L.Map(@get('divId'), options)
    cloudmadeTiles = new L.TileLayer "http://{s}.tile.cloudmade.com/#{SM.CLOUDMADE_API_KEY}/998/256/{z}/{x}/{y}.png",
      maxZoom: 18
    map.addLayer cloudmadeTiles
    map.attributionControl.setPrefix('')
    @set('mapObject', map)
    @set('objects',[])
  addObject: (object) ->
    @get('objects').push object
    @mapObject.addLayer(object.mapObject)
    this
  addObjects: (objects) ->
    objects.forEach (object) => @addObject(object)
{'fraction_non_alphanumeric': 0.17044793484584062, 'fraction_numerical': 0.03606748109365911, 'mean_word_length': 4.325077399380805, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '4069190', 'n_tokens_mistral': 659, 'n_tokens_neox': 611, 'n_words': 98}