<commit_before><!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset=utf-8 />
    <title>CartoDB  Embed Map</title>
    <style type="text/css">
      html {width:100%; height:100%; padding:0; margin:0; border:none;}
      body {width:100%; height:100%; padding:0; margin:0; background:none;}
      div#outer_map_cartodb_container {position:relative; width:100%; height:100%; background:white; border-radius:3px; -moz-border-radius:3px; -webkit-border-radius:3px;}
      div#map_cartodb_container {position:absolute; top:5px; left:5px; right:5px; bottom:5px;}
      a.cartodb_logo {position:absolute; bottom:14px; left:75px; display:block; width:70px; height:15px; background:url('http://vizzuality.s3.amazonaws.com/cartodb_tumblr_files/logo.png') no-repeat 0 0;
        text-indent:-9999px; line-height:0; font-size:0;}
      span.map_controls {position:absolute; top:10px; left:10px; width:26px; height:auto;}
      span.map_controls a.zoom_in {width:26px; height:26px; background:url('/images/admin/map/zoomin.png') no-repeat 0 0;}
      span.map_controls a.zoom_in:hover {background-position:0 -26px; cursor:pointer;}
      span.map_controls a.zoom_out {width:26px; height:26px; margin:5px 0 0 0; background:url('/images/admin/map/zoomout.png') no-repeat 0 0;}
      span.map_controls a.zoom_out:hover {background-position:0 -26px; cursor:pointer;}
    </style>

    <% if @table.public? %>
      <script type="text/javascript">
        var table_name = "<%= @table.name %>",
            table_id = "<%= @table.id %>",
            user_name = "<%= @subdomain %>";
      </script>

      <script type="text/javascript" src="https://maps.google.com/maps/api/js?sensor=true"></script>
      <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js"></script>
      <script type="text/javascript">

        $(function() {
          var cartodbMapOptions = {
            zoom: 2,
            center: new google.maps.LatLng(0,0),
            disableDefaultUI: true,
            mapTypeId: google.maps.MapTypeId.ROADMAP
          }

          var carto_embed_map = new google.maps.Map(document.getElementById("map_cartodb_container"),cartodbMapOptions);


          // var cartodb_layer = {
          //   getTileUrl: function(coord, zoom) {
          //     return TILEHTTP + '://' + user_name + '.' + TILESERVER + '/tiles/' + 'afds' + '/'+zoom+'/'+coord.x+'/'+coord.y+'.png8?map_key='+map_key;
          //   },
          //   tileSize: new google.maps.Size(256, 256)
          // };
          // var cartodb_imagemaptype = new google.maps.ImageMapType(cartodb_layer);
          // carto_embed_map.overlayMapTypes.insertAt(0, cartodb_imagemaptype);


          //
          //
          //         var me = this;
          //         $.ajax({
          //             method: "GET",
          //             url: global_api_url+'queries?sql='+escape('select ST_Extent(the_geom) from '+ table_name),
          //             headers: {"cartodbclient":"true"},
          //             success: function(data) {
          //               if (data.rows[0].st_extent!=null) {
          //                 var coordinates = data.rows[0].st_extent.replace('BOX(','').replace(')','').split(',');
          //
          //                 var coor1 = coordinates[0].split(' ');
          //                 var coor2 = coordinates[1].split(' ');
          //                 var bounds = new google.maps.LatLngBounds();
          //
          //                 bounds.extend(new google.maps.LatLng(coor1[1],coor1[0]));
          //                 bounds.extend(new google.maps.LatLng(coor2[1],coor2[0]));
          //
          //                 embed_map.fitBounds(bounds);
          //               }
          //<commit_msg>embed_map 2<commit_after><!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset=utf-8 />
    <title>CartoDB  Embed Map</title>
    <style type="text/css">
      html {width:100%; height:100%; padding:0; margin:0; border:none;}
      body {width:100%; height:100%; padding:0; margin:0; background:none;}
      div#outer_map_cartodb_container {position:relative; width:100%; height:100%; background:white; border-radius:3px; -moz-border-radius:3px; -webkit-border-radius:3px;}
      div#map_cartodb_container {position:absolute; top:5px; left:5px; right:5px; bottom:5px;}
      a.cartodb_logo {position:absolute; bottom:14px; left:75px; display:block; width:70px; height:15px; background:url('http://vizzuality.s3.amazonaws.com/cartodb_tumblr_files/logo.png') no-repeat 0 0;
        text-indent:-9999px; line-height:0; font-size:0;}
      span.map_controls {position:absolute; top:10px; left:10px; width:26px; height:auto;}
      span.map_controls a.zoom_in {width:26px; height:26px; background:url('/images/admin/map/zoomin.png') no-repeat 0 0;}
      span.map_controls a.zoom_in:hover {background-position:0 -26px; cursor:pointer;}
      span.map_controls a.zoom_out {width:26px; height:26px; margin:5px 0 0 0; background:url('/images/admin/map/zoomout.png') no-repeat 0 0;}
      span.map_controls a.zoom_out:hover {background-position:0 -26px; cursor:pointer;}
    </style>

    <% if @table.public? %>
      <script type="text/javascript">
        var table_name = "<%= @table.name %>",
            table_id = "<%= @table.id %>",
            user_name = "<%= @subdomain %>";
      </script>

      <script type="text/javascript" src="https://maps.google.com/maps/api/js?sensor=true"></script>
      <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js"></script>
      <script type="text/javascript">

        $(function() {
          var cartodbMapOptions = {
            zoom: 2,
            center: new google.maps.LatLng(0,0),
            disableDefaultUI: true,
            mapTypeId: google.maps.MapTypeId.ROADMAP
          }

          var carto_embed_map = new google.maps.Map(document.getElementById("map_cartodb_container"),cartodbMapOptions);


          var cartodb_layer = {
            getTileUrl: function(coord, zoom) {
              return 'http' + '://' + user_name + '.cartodb.com/tiles/' + table_name + '/'+zoom+'/'+coord.x+'/'+coord.y+'.png8?map_key=';
            },
            tileSize: new google.maps.Size(256, 256)
          };
          var cartodb_imagemaptype = new google.maps.ImageMapType(cartodb_layer);
          carto_embed_map.overlayMapTypes.insertAt(0, cartodb_imagemaptype);


          //
          //
          //         var me = this;
          //         $.ajax({
          //             method: "GET",
          //             url: global_api_url+'queries?sql='+escape('select ST_Extent(the_geom) from '+ table_name),
          //             headers: {"cartodbclient":"true"},
          //             success: function(data) {
          //               if (data.rows[0].st_extent!=null) {
          //                 var coordinates = data.rows[0].st_extent.replace('BOX(','').replace(')','').split(',');
          //
          //                 var coor1 = coordinates[0].split(' ');
          //                 var coor2 = coordinates[1].split(' ');
          //                 var bounds = new google.maps.LatLngBounds();
          //
          //                 bounds.extend(new google.maps.LatLng(coor1[1],coor1[0]));
          //                 bounds.extend(new google.maps.LatLng(coor2[1],coor2[0]));
          //
          //                 embed_map.fitBounds(bounds);
          //               }
          //
{'fraction_non_alphanumeric': 0.1620253164556962, 'fraction_numerical': 0.027581612258494335, 'mean_word_length': 2.1954022988505746, 'pattern_counts': {'":': 2, '<': 41, '<?xml version=': 0, '>': 41, 'https://': 4, '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': '964039', 'n_tokens_mistral': 2501, 'n_tokens_neox': 2348, 'n_words': 364}