<commit_before><script type="text/javascript">
  var isHovering = false;
  function closeExportWindow(force) {
    if (!isHovering || force) {
      jQuery('#export_window').hide();
    }
  }
  jQuery(document).ready(function() {

    jQuery("#export_window").hide();
    jQuery("#export_button").click(function() {
      var o = jQuery(this).offset();
      jQuery("#export_window").css({'position': 'absolute', 'left': o.left, 'top': o.top + 17});
      jQuery("#export_window").show();
    });

    jQuery("#export_window").mouseenter(function() {
      isHovering = true;
    }).mouseleave(function() {
      isHovering = false;
      setTimeout('closeExportWindow(false)', 700);
    });

    jQuery("#close_export_window").click(function() {
      closeExportWindow(true);
    });

  });
</script>

<div id="export_toolbox">|&nbsp;
  <a href="#" id="export_button" class="export_button"><%=image_tag("KML-logo-20x25.png", :height => '16')%>&nbsp;Export</a>
  <div id="export_window" class="export_float_div hidden" >
    <div id="export_window_inner">
      <div id="export_window_head">
        <span>Export Links</span>
        <a id="close_export_window" href="#" >X</a>
      </div>
      <div id="export_window_content" style="display: block;">
        <% unless @layer -%>
          <ul>
            <li> <%= link_to(image_tag("KML-logo-20x25.png")+"Download KML file",  map_url(:id => @map, :format => :kml)) %>  </li>
            <li>
              <%= image_tag("wms-20x25.png") %>
              WMS Capabilities URL: <%= url_for(wms_map_url(:id=>@map, :request => "GetCapabilities", :service => "WMS", :version => "1.1.1")) %>
            </li>
            <li>
              <% tile_url = url_for(tile_map_url(:y => "{y}", :x => "{x}", :z => "{z}", :format =>"png")) %>
              <%= image_tag("tiles-20x25.png") %>
              Tiles base URL: <%= URI.unescape(tile_url) %>
            </li>
            <% if user_signed_in? -%>
              <li><%= link_to(image_tag("image-icon-20x25.png")+"Download rectified GeoTiff", export_map_url(:id => @map, :format => :tif)) %> </li>
              <li><%= link_to(image_tag("image-icon-20x25.png")+"Download rectified PNG", export_map_url(:id => @map, :format => :png)) %></li>
              <li>&nbsp;</li>
            <% else -%>
              <li> Log in for</li>
            <% end -%>
            <li> <%= link_to_if(user_signed_in?, "More export options", map_path(:id=> @map,:anchor=>"Export_tab")) -%> </li>
          </ul>
        <% else  -%>
  <%#layer%>
          <ul>
            <li> <%= link_to(image_tag("KML-logo-20x25.png")+"Download KML file",  layer_url(:id => @layer, :format => :kml)) %>  </li>
            <li>
              <%= image_tag("wms-20x25.png") %>
              WMS Capabilities URL: <%= url_for(controller: 'layers', :action=>"wms", :id=>@layer, :request => "GetCapabilities", :service => "WMS", :version => "1.1.1" )%>
            </li>
            <li>
              <% tile_url = url_for(tile_layer_url(:y => "{y}", :x => "{x}", :z => "{z}", :format =>"png")) %>
              <%= image_tag("tiles-20x25.png") %>
              Tiles base URL: <%= URI.unescape(tile_url) %>
            </li><commit_msg>:space_invader: wms as link<commit_after><script type="text/javascript">
  var isHovering = false;
  function closeExportWindow(force) {
    if (!isHovering || force) {
      jQuery('#export_window').hide();
    }
  }
  jQuery(document).ready(function() {

    jQuery("#export_window").hide();
    jQuery("#export_button").click(function() {
      var o = jQuery(this).offset();
      jQuery("#export_window").css({'position': 'absolute', 'left': o.left, 'top': o.top + 17});
      jQuery("#export_window").show();
    });

    jQuery("#export_window").mouseenter(function() {
      isHovering = true;
    }).mouseleave(function() {
      isHovering = false;
      setTimeout('closeExportWindow(false)', 700);
    });

    jQuery("#close_export_window").click(function() {
      closeExportWindow(true);
    });

  });
</script>

<div id="export_toolbox">|&nbsp;
  <a href="#" id="export_button" class="export_button"><%=image_tag("KML-logo-20x25.png", :height => '16')%>&nbsp;Export</a>
  <div id="export_window" class="export_float_div hidden" >
    <div id="export_window_inner">
      <div id="export_window_head">
        <span>Export Links</span>
        <a id="close_export_window" href="#" >X</a>
      </div>
      <div id="export_window_content" style="display: block;">
        <% unless @layer -%>
          <ul>
            <li> <%= link_to(image_tag("KML-logo-20x25.png")+"Download KML file",  map_url(:id => @map, :format => :kml)) %>  </li>
            <li><%= link_to(image_tag("wms-20x25.png")+"WMS Capabilities URL",url_for(wms_map_url(:id=>@map, :request => "GetCapabilities", :service => "WMS", :version => "1.1.1")) )%> </li>
            <li>
              <% tile_url = url_for(tile_map_url(:y => "{y}", :x => "{x}", :z => "{z}", :format =>"png")) %>
              <%= image_tag("tiles-20x25.png") %>
              Tiles base URL: <%= URI.unescape(tile_url) %>
            </li>
            <% if user_signed_in? -%>
              <li><%= link_to(image_tag("image-icon-20x25.png")+"Download rectified GeoTiff", export_map_url(:id => @map, :format => :tif)) %> </li>
              <li><%= link_to(image_tag("image-icon-20x25.png")+"Download rectified PNG", export_map_url(:id => @map, :format => :png)) %></li>
              <li>&nbsp;</li>
            <% else -%>
              <li> Log in for</li>
            <% end -%>
            <li> <%= link_to_if(user_signed_in?, "More export options", map_path(:id=> @map,:anchor=>"Export_tab")) -%> </li>
          </ul>
        <% else  -%>
  <%#layer%>
          <ul>
            <li> <%= link_to(image_tag("KML-logo-20x25.png")+"Download KML file",  layer_url(:id => @layer, :format => :kml)) %>  </li>
            <li><%= link_to(image_tag("wms-20x25.png")+"WMS Capabilities URL", :action=>"wms", :id=>@layer, :request => "GetCapabilities", :service => "WMS", :version => "1.1.1" )%> </li>
            <li>
              <% tile_url = url_for(tile_layer_url(:y => "{y}", :x => "{x}", :z => "{z}", :format =>"png")) %>
              <%= image_tag("tiles-20x25.png") %>
              Tiles base URL: <%= URI.unescape(tile_url) %>
            </li>
{'fraction_non_alphanumeric': 0.22049984182220816, 'fraction_numerical': 0.015501423600126542, 'mean_word_length': 2.7347903130537508, 'pattern_counts': {'":': 0, '<': 123, '<?xml version=': 0, '>': 179, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5094636', 'n_tokens_mistral': 2304, 'n_tokens_neox': 2166, 'n_words': 365}