<commit_before>ns = @edsc.map

ns.SpatialSelection = do (window,
                          document,
                          toastr,
                          L,
                          ShapefileLayer = ns.L.ShapefileLayer,
                          Proj = ns.L.Proj,
                          currentPage = @edsc.models.page.current) ->

  L.drawLocal.draw.toolbar.buttons.polygon = "Search by spatial polygon"
  L.drawLocal.draw.toolbar.buttons.rectangle = "Search by spatial rectangle"
  L.drawLocal.draw.toolbar.buttons.marker = "Search by spatial point"

  normalColor = '#00ffff'
  errorColor = '#990000'

  class SpatialSelection
    addTo: (map) ->
      @map = map
      drawnItems = @_drawnItems = new L.FeatureGroup()
      drawnItems.addTo(map)

      @_colorOptions = colorOptions =
        color: normalColor
        dashArray: null
      @_errorOptions = errorOptions =
        color: errorColor
        dashArray: null<commit_msg>Allow clicks to pass through shape objects<commit_after>ns = @edsc.map

ns.SpatialSelection = do (window,
                          document,
                          toastr,
                          L,
                          ShapefileLayer = ns.L.ShapefileLayer,
                          Proj = ns.L.Proj,
                          currentPage = @edsc.models.page.current) ->

  L.drawLocal.draw.toolbar.buttons.polygon = "Search by spatial polygon"
  L.drawLocal.draw.toolbar.buttons.rectangle = "Search by spatial rectangle"
  L.drawLocal.draw.toolbar.buttons.marker = "Search by spatial point"

  normalColor = '#00ffff'
  errorColor = '#990000'

  class SpatialSelection
    addTo: (map) ->
      @map = map
      drawnItems = @_drawnItems = new L.FeatureGroup()
      drawnItems.addTo(map)

      @_colorOptions = colorOptions =
        color: normalColor
        dashArray: null
        clickable: false
      @_errorOptions = errorOptions =
        color: errorColor
        dashArray: null
        clickable: false
{'fraction_non_alphanumeric': 0.08893380495199596, 'fraction_numerical': 0.00808489135927236, 'mean_word_length': 1.7926657263751764, 'pattern_counts': {'":': 0, '<': 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': '7248502', 'n_tokens_mistral': 578, 'n_tokens_neox': 546, 'n_words': 121}