<commit_before><% content_for :left_menu do %>
<%= link_to_function t('site.key.map_key'), "showKey();" %>
<% end %>

<script type="text/javascript">
<!--
  function showKey() {
    var zoomlevel = map.getZoom();

    if (zoomlevel<7 )      { var imgname = 'keymapnik6.png'; }
    else if (zoomlevel<13) { var imgname = 'keymapnik'+zoomlevel+'.png'; }
    else if (zoomlevel<15) { var imgname = 'keymapnik13.png'; }
    else                   { var imgname = 'keymapnik15.png'; }

    updateSidebar("<%= t('site.key.map_key') %>", "<p><img src='images/"+imgname+"' /><\/p>");
    openSidebar({ width: "210px" });
  }

  function updateKey() {
    if (sidebarOpen("Map key")) 
    {
      showKey();
    }
  }
// -->
</script><commit_msg>Update key when the zoom changes, even if the language is not english.<commit_after><% content_for :left_menu do %>
<%= link_to_function t('site.key.map_key'), "showKey();" %>
<% end %>

<script type="text/javascript">
<!--
  function showKey() {
    var zoomlevel = map.getZoom();

    if (zoomlevel<7 )      { var imgname = 'keymapnik6.png'; }
    else if (zoomlevel<13) { var imgname = 'keymapnik'+zoomlevel+'.png'; }
    else if (zoomlevel<15) { var imgname = 'keymapnik13.png'; }
    else                   { var imgname = 'keymapnik15.png'; }

    updateSidebar("<%= t('site.key.map_key') %>", "<p><img src='images/"+imgname+"' /><\/p>");
    openSidebar({ width: "210px" });
  }

  function updateKey() {
    if (sidebarOpen("<%= t('site.key.map_key') %>")) 
    {
      showKey();
    }
  }
// -->
</script>
{'fraction_non_alphanumeric': 0.20940721649484537, 'fraction_numerical': 0.01675257731958763, 'mean_word_length': 3.0548302872062663, 'pattern_counts': {'":': 0, '<': 30, '<?xml version=': 0, '>': 24, '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': '324845', 'n_tokens_mistral': 590, 'n_tokens_neox': 550, 'n_words': 113}