<commit_before><script src="//maps.google.com/maps/api/js?key=<%= ENV["APPID"] %>"></script>
<script src="//cdn.rawgit.com/mahnunchik/markerclustererplus/master/dist/markerclusterer.min.js"></script>
<script src='//cdn.rawgit.com/printercu/google-maps-utility-library-v3-read-only/master/infobox/src/infobox_packed.js' type='text/javascript'></script> <!-- only if you need custom infoboxes -->

<h1>Listing Landslides</h1>


<table>
  <thead>
    <tr>
	      <th><%= sort_link(@q, :country, default_order: :desc) %></th>
      <th>Latitude</th>
      <th>Longitude</th>
      <th>City</th>
      <th>Description</th>
      <th>Comment</th>
      <th>Weather</th>
      <th>Temp</th>
      <th>Humidity</th>
      <th>Date</th>
      <th colspan="3"></th>
    </tr>
  </thead>

  <tbody>
    <% @landslides.each do |landslide| %>
      <tr>
        <td><%= landslide.country %></td>
        <td><%= landslide.latitude %></td>
        <td><%= landslide.longitude %></td>
        <td><%= landslide.city %></td>
        <td><%= landslide.description %></td>
        <td><%= landslide.comment %></td>
        <td><%= landslide.weather %></td>
        <td><%= landslide.temp %></td>
        <td><%= landslide.humidity %></td>
        <td><%= landslide.date %></td>
        <td><%= link_to 'Show', landslide %></td>
        <td><%= link_to 'Edit', edit_landslide_path(landslide) %></td>
        <td><%= link_to 'Destroy', landslide, method: :delete, data: { confirm: 'Are you sure?' } %></td>
      </tr>
    <% end %>
  </tbody>
</table>

<br>

<%= link_to 'New Landslide', new_landslide_path %>

<div style='width: 800px;'>
  <div id="map" style='width: 800px; height: 400px;'></div>
</div>

<script type="text/javascript">
handler = Gmaps.build('Google');
handler.buildMap({ provider: {}, internal: {id: 'map'}}, function(){
  markers = handler.addMarkers(<%=raw @latlng.to_json %>);
  handler.bounds.extendWith(markers);
  handler.fitMapToBounds();
});
</script>
<commit_msg>add another sort<commit_after><script src="//maps.google.com/maps/api/js?key=<%= ENV["APPID"] %>"></script>
<script src="//cdn.rawgit.com/mahnunchik/markerclustererplus/master/dist/markerclusterer.min.js"></script>
<script src='//cdn.rawgit.com/printercu/google-maps-utility-library-v3-read-only/master/infobox/src/infobox_packed.js' type='text/javascript'></script> <!-- only if you need custom infoboxes -->

<h1>Listing Landslides</h1>


<table>
  <thead>
    <tr>
	      <th><%= sort_link(@q, :country, default_order: :desc) %></th>
      <th>Latitude</th>
      <th>Longitude</th>
      <th>City</th>
	      <th><%= sort_link(@q, :city, default_order: :desc) %></th>
      <th>Description</th>
      <th>Comment</th>
	      <th><%= sort_link(@q, :weather, default_order: :desc) %></th>
	      <th><%= sort_link(@q, :temp, default_order: :desc) %></th>
	      <th><%= sort_link(@q, :humidity, default_order: :desc) %></th>
	      <th><%= sort_link(@q, :date, default_order: :desc) %></th>
      <th colspan="3"></th>
    </tr>
  </thead>

  <tbody>
    <% @landslides.each do |landslide| %>
      <tr>
        <td><%= landslide.country %></td>
        <td><%= landslide.latitude %></td>
        <td><%= landslide.longitude %></td>
        <td><%= landslide.city %></td>
        <td><%= landslide.description %></td>
        <td><%= landslide.comment %></td>
        <td><%= landslide.weather %></td>
        <td><%= landslide.temp %></td>
        <td><%= landslide.humidity %></td>
        <td><%= landslide.date %></td>
        <td><%= link_to 'Show', landslide %></td>
        <td><%= link_to 'Edit', edit_landslide_path(landslide) %></td>
        <td><%= link_to 'Destroy', landslide, method: :delete, data: { confirm: 'Are you sure?' } %></td>
      </tr>
    <% end %>
  </tbody>
</table>

<br>

<%= link_to 'New Landslide', new_landslide_path %>

<div style='width: 800px;'>
  <div id="map" style='width: 800px; height: 400px;'></div>
</div>

<script type="text/javascript">
handler = Gmaps.build('Google');
handler.buildMap({ provider: {}, internal: {id: 'map'}}, function(){
  markers = handler.addMarkers(<%=raw @latlng.to_json %>);
  handler.bounds.extendWith(markers);
  handler.fitMapToBounds();
});
</script>

{'fraction_non_alphanumeric': 0.23195999047392235, 'fraction_numerical': 0.006191950464396285, 'mean_word_length': 3.3343653250773992, 'pattern_counts': {'":': 0, '<': 196, '<?xml version=': 0, '>': 196, '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': '229500', 'n_tokens_mistral': 1646, 'n_tokens_neox': 1575, 'n_words': 290}