<commit_before>
$(->
  # map setup
  map_div  = document.getElementById("map")
  map_data = $(map_div).data()
  mode     = map_data.mode

  map = L.map(map_div)

  tiles = L.tileLayer('http://{s}.tiles.mapbox.com/v3/eikes.he4660k4/{z}/{x}/{y}.png', {
    attribution: 'Map data &copy; <a href="http://openstreetmap.org">OpenStreetMap</a> contributors, <a href="http://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>, Imagery © <a href="http://mapbox.com">Mapbox</a>',
    maxZoom: 18
  })

  tiles.addTo map<commit_msg>fix error that showed on pages without map<commit_after>
$(->
  # map setup
  map_div  = document.getElementById("map")
  return unless map_div
  map_data = $(map_div).data()
  mode     = map_data.mode

  map = L.map(map_div)

  tiles = L.tileLayer('http://{s}.tiles.mapbox.com/v3/eikes.he4660k4/{z}/{x}/{y}.png', {
    attribution: 'Map data &copy; <a href="http://openstreetmap.org">OpenStreetMap</a> contributors, <a href="http://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>, Imagery © <a href="http://mapbox.com">Mapbox</a>',
    maxZoom: 18
  })

  tiles.addTo map
{'fraction_non_alphanumeric': 0.20308250226654578, 'fraction_numerical': 0.01813236627379873, 'mean_word_length': 3.779220779220779, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 17, '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': '2742284', 'n_tokens_mistral': 449, 'n_tokens_neox': 432, 'n_words': 69}