<commit_before>xml.instruct!
@prevent_cache = "?prevent=#{rand(1024)}"

xml.kml "xmlns" => "http://www.opengis.net/kml/2.2" do

  xml.NetworkLinkControl do

    xml.minRefreshPeriod("5")
    xml.linkName(@net_hash[:name])
    xml.linkDescription(@net_hash[:description])
    xml.linkSnippet(@net_hash[:snippet], :maxLines=>"2")

  end

  xml.Document do
    xml << render(:partial => "observation", :collection => @observations)
  end
end
<commit_msg>Fixed another KML bug when there are no obs within the query bounds.<commit_after>xml.instruct!
@prevent_cache = "?prevent=#{rand(1024)}"

xml.kml "xmlns" => "http://www.opengis.net/kml/2.2" do

  xml.NetworkLinkControl do

    xml.minRefreshPeriod("5")
    xml.linkName(@net_hash[:name])
    xml.linkDescription(@net_hash[:description])
    xml.linkSnippet(@net_hash[:snippet], :maxLines=>"2")

  end

  xml.Document do
    unless @observations.blank?
      xml << render(:partial => "observation", :collection => @observations)
    end
  end
end

{'fraction_non_alphanumeric': 0.16216216216216217, 'fraction_numerical': 0.016016016016016016, 'mean_word_length': 4.4945054945054945, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 20}, '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': '1774550', 'n_tokens_mistral': 358, 'n_tokens_neox': 343, 'n_words': 63}