<commit_before><metal:block use-macro="main_template">

  <div metal:fill-slot="javascript">
    <script src="http://openlayers.org/api/OpenLayers.js"></script>
    <script type="text/javascript">
      $(document).ready(function() {
        console.log("init map");
        var map = new OpenLayers.Map('map-id');
        var wms = new OpenLayers.Layer.WMS( "OpenLayers WMS",
            "http://vmap0.tiles.osgeo.org/wms/vmap0", {layers: 'basic'} );
        map.addLayer(wms);
        map.zoomToMaxExtent();
        console.log("map: " + map);
        $('#map').html(map);
      });
    </script>
  </div>

  <div metal:fill-slot="content">
    <div id="map-id"></div>
  </div>

</metal:block><commit_msg>initial working example with map integration<commit_after><metal:block use-macro="main_template">

  <div metal:fill-slot="css">
    <style>
      #map {
      width: 512px;
      height: 256px;
      }
    </style>
  </div>

  <div metal:fill-slot="javascript">
    <script src="http://openlayers.org/api/OpenLayers.js"></script>
    <script type="text/javascript">
      $(document).ready(function() {
        console.log("init map");
        var map = new OpenLayers.Map('map');
        var wms = new OpenLayers.Layer.WMS( "OpenLayers WMS",
            "http://vmap0.tiles.osgeo.org/wms/vmap0", {layers: 'basic'} );
        map.addLayer(wms);
        map.zoomToMaxExtent();
        console.log("map: " + map);
      });
    </script>
  </div>

  <div metal:fill-slot="content">
    <div id="map"></div>
  </div>

</metal:block>
{'fraction_non_alphanumeric': 0.19258295380611581, 'fraction_numerical': 0.006506180871828237, 'mean_word_length': 2.714975845410628, 'pattern_counts': {'":': 0, '<': 31, '<?xml version=': 0, '>': 31, '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': '481920', 'n_tokens_mistral': 552, 'n_tokens_neox': 527, 'n_words': 87}