<commit_before><!DOCTYPE html>
<html>
  <head>
    <style>
      html, body, #map {
        height: 100%;
        padding: 0;
        margin: 0;
      }
    </style>

    <link rel="stylesheet" href="http://libs.cartocdn.com/cartodb.js/v2/themes/css/cartodb.css" />
    <!--[if lte IE 8]>
        <link rel="stylesheet" href="http://libs.cartocdn.com/cartodb.js/v2/themes/css/cartodb.ie.css" />
    <![endif]-->

  </head>
    
  <body>
    <div id="map"></div>
  </body>

  <!-- include cartodb.js library -->
  <script src="http://libs.cartocdn.com/cartodb.js/v2/cartodb.js"></script>

  <script>

    function main() {
      var vis = new cartodb.vis.Vis({el: document.getElementById('map') });
      vis
        .load('http://examples-beta.cartodb.com/api/v1/viz/791/viz.json', {
          shareable: true,
          title: true,
          description: true,
          search: true,
          tiles_loader: true,
          center_lat: 0,
          center_lon: 0,
          zoom: 2
        })
        .done(function(vis, layers) {
          // layer 0 is the base layer, layer 1 is cartodb layer
          layers[1].on('featureOver', function(e, pos, latlng, data) {
            cartodb.log.log(e, pos, latlng, data);
          });

          // you can get the native map to work with it
          // depending if you use google maps or leaflet
          map = vis.getNativeMap();
          // map.setZoom(3)
          // map.setCenter(new google.maps.Latlng(...))
        })
        .error(function(err) {
          console.log(err);
        });


    }

    window.onload = main;

  </script>


</html><commit_msg>improved easy example<commit_after><!DOCTYPE html>
<html>
  <head>
    <style>
      html, body, #map {
        height: 100%;
        padding: 0;
        margin: 0;
      }
    </style>

    <link rel="stylesheet" href="http://libs.cartocdn.com/cartodb.js/v2/themes/css/cartodb.css" />
    <!--[if lte IE 8]>
        <link rel="stylesheet" href="http://libs.cartocdn.com/cartodb.js/v2/themes/css/cartodb.ie.css" />
    <![endif]-->

  </head>
    
  <body>
    <div id="map"></div>
  </body>

  <!-- include cartodb.js library -->
  <script src="http://libs.cartocdn.com/cartodb.js/v2/cartodb.js"></script>

  <script>

    function main() {
      cartodb.createVis('map', 'http://examples-beta.cartodb.com/api/v1/viz/791/viz.json', {
          shareable: true,
          title: true,
          description: true,
          search: true,
          tiles_loader: true,
          center_lat: 0,
          center_lon: 0,
          zoom: 2
      })
      .done(function(vis, layers) {
        // layer 0 is the base layer, layer 1 is cartodb layer
        layers[1].on('featureOver', function(e, pos, latlng, data) {
          cartodb.log.log(e, pos, latlng, data);
        });

        // you can get the native map to work with it
        // depending if you use google maps or leaflet
        map = vis.getNativeMap();
        // map.setZoom(3)
        // map.setCenter(new google.maps.Latlng(...))
      })
      .error(function(err) {
        console.log(err);
      });


    }

    window.onload = main;

  </script>


</html>
{'fraction_non_alphanumeric': 0.16354398221657668, 'fraction_numerical': 0.012702445220704985, 'mean_word_length': 1.830188679245283, 'pattern_counts': {'":': 0, '<': 43, '<?xml version=': 0, '>': 43, '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': '7275658', 'n_tokens_mistral': 1139, 'n_tokens_neox': 1051, 'n_words': 222}