<commit_before><!-- Leaflet.js -->
<link rel="stylesheet" href="//unpkg.com/leaflet@1.0.2/dist/leaflet.css" />
<script src="//unpkg.com/leaflet@1.0.2/dist/leaflet.js"></script>

<style>
  #map {
    width: 100%;
    height: 400px;
  }
</style>

<div id="wrapper">
  <h1><%= @title["en"] %></h1>
  <div id="map"></div>
</div>

<script>
var map = L.map('map').setView([39.74739, -105], 13);
L.tileLayer('https://api.tiles.mapbox.com/v4/{id}/{z}/{x}/{y}.png?access_token=<KEY>', {
	maxZoom: 18,
	attribution: 'Map data &copy; <a href="http://openstreetmap.org">OpenStreetMap</a> contributors, ' +
		'<a href="http://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>, ' +
		'Imagery © <a href="http://mapbox.com">Mapbox</a>',
	id: 'mapbox.light'
}).addTo(map);

$.getJSON(document.URL, function (json) {
  features = L.geoJSON(json.value)
  features.addTo(map);
  map.fitBounds(features.getBounds())
})
</script>
<commit_msg>Make map width and height 100%<commit_after><!-- Leaflet.js -->
<link rel="stylesheet" href="//unpkg.com/leaflet@1.0.2/dist/leaflet.css" />
<script src="//unpkg.com/leaflet@1.0.2/dist/leaflet.js"></script>

<style>
  body {
    padding: 0;
    margin: 0;
  }

  #map {
    width: 100%;
  }

  h1 {
    font-size: <%= @font_size %>;
    position: absolute;
    z-index: 5000;
    top: 0px;
    text-align: center;
    width: 100%;
  }
</style>

<div id="wrapper">
  <h1><%= @title["en"] %></h1>
  <div id="map"></div>
</div>

<script>
  var map = L.map('map').setView([0,0], 13);
  L.tileLayer('https://api.tiles.mapbox.com/v4/{id}/{z}/{x}/{y}.png?access_token=<KEY>', {
  	maxZoom: 18,
  	attribution: 'Map data &copy; <a href="http://openstreetmap.org">OpenStreetMap</a> contributors, ' +
  		'<a href="http://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>, ' +
  		'Imagery © <a href="http://mapbox.com">Mapbox</a>',
  	id: 'mapbox.light'
  }).addTo(map);

  $("#map").height($(window).height()).width($(window).width());
  map.invalidateSize();

  $.getJSON(document.URL, function (json) {
    features = L.geoJSON(json.value)
    features.addTo(map);
    map.fitBounds(features.getBounds())
  })
</script>

{'fraction_non_alphanumeric': 0.24929971988795518, 'fraction_numerical': 0.03034547152194211, 'mean_word_length': 3.699561403508772, 'pattern_counts': {'":': 0, '<': 48, '<?xml version=': 0, '>': 48, 'https://': 2, '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': '6672501', 'n_tokens_mistral': 937, 'n_tokens_neox': 884, 'n_words': 132}