<commit_before># Place all the behaviors and hooks related to the matching controller here.
# All this logic will automatically be available in application.js.
# You can use CoffeeScript in this file: http://coffeescript.org/

$(->
  if window.cities
    $.each window.cities, (index, city) ->
      L.marker(city.latlng).bindPopup(city.popup).addTo(map);
)<commit_msg>improve cities.js<commit_after># Place all the behaviors and hooks related to the matching controller here.
# All this logic will automatically be available in application.js.
# You can use CoffeeScript in this file: http://coffeescript.org/

$(->
  if window.cities
    for city in window.cities
      m = L.marker city.latlng
      m.bindPopup city.popup
      m.on "mouseover", (e) ->
        this.openPopup()
      m.addTo map
)
{'fraction_non_alphanumeric': 0.10237203495630462, 'fraction_numerical': 0.0, 'mean_word_length': 3.3825136612021858, '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': '2215095', 'n_tokens_mistral': 240, 'n_tokens_neox': 239, 'n_words': 85}