<commit_before><!DOCTYPE html>
<html>
  <head>
    <title>Easy example | CartoDB.js</title>
    <meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
    <meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
    <link rel="shortcut icon" href="http://cartodb.com/assets/favicon.ico" />
    <style>
      html, body, #map {
        height: 100%;
        padding: 0;
        margin: 0;
      }
    </style>

    <link rel="stylesheet" href="http://development.localhost.lan:3000/assets/2.15.8/stylesheets/embeds.css" />
  </head>
  <body>
    <div id="map"></div>

    <!-- include cartodb.js library -->
    <script src="http://development.localhost.lan:3000/assets/2.15.8/javascripts/cdb.js"></script>

    <script>
      function main() {
        cartodb.createVis('map', 'http://documentation.cartodb.com/api/v2/viz/2b13c956-e7c1-11e2-806b-5404a6a683d5/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
          // setInteraction is disabled by default
          layers[1].setInteraction(true);
          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();

          var annotation = new cdb.geo.ui.Annotation({
            latlng:[20, 4],
            text: "This works with <strong>HTML</strong>",
            mapView: vis.mapView,
            style: {
              "z-index": 1000,
              "color": "#FFF",
              "text-align": "right",
              "font-size": "13",
              "font-family-name": "Helvetica",
              "box-color": "#F84F40",
              "box-opacity": 0.7,
              "box-padding": 10,
              "line-color": "#F84F40",
              "line-width": 50
            }
          });

          this.mapView.$el.append(annotation.render().$el);

          window.annotation = annotation = new cdb.geo.ui.Annotation({
            latlng:[14, 3],
            text: "Oh, nice",
            mapView: vis.mapView
          });

          this.mapView.$el.append(annotation.render().$el);

          // now, perform any operations you need
          // map.setZoom(3)
          // map.setCenter(new google.maps.Latlng(...))
        })
        .error(function(err) {
          console.log(err);
        });
      }

      window.onload = main;
    </script>
  </body>
</html><commit_msg>removes commented code<commit_after><!DOCTYPE html>
<html>
  <head>
    <title>Easy example | CartoDB.js</title>
    <meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
    <meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
    <link rel="shortcut icon" href="http://cartodb.com/assets/favicon.ico" />
    <style>
      html, body, #map {
        height: 100%;
        padding: 0;
        margin: 0;
      }
    </style>

    <link rel="stylesheet" href="http://development.localhost.lan:3000/assets/2.15.8/stylesheets/embeds.css" />
  </head>
  <body>
    <div id="map"></div>

    <!-- include cartodb.js library -->
    <script src="http://development.localhost.lan:3000/assets/2.15.8/javascripts/cdb.js"></script>

    <script>
      function main() {
        cartodb.createVis('map', 'http://documentation.cartodb.com/api/v2/viz/2b13c956-e7c1-11e2-806b-5404a6a683d5/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
          // setInteraction is disabled by default
          layers[1].setInteraction(true);
          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();

          var annotation = new cdb.geo.ui.Annotation({
            latlng:[20, 4],
            text: "This works with <strong>HTML</strong>",
            mapView: vis.mapView,
            style: {
              "z-index": 1000,
              "color": "#FFF",
              "text-align": "right",
              "font-size": "13",
              "font-family-name": "Helvetica",
              "box-color": "#F84F40",
              "box-opacity": 0.7,
              "box-padding": 10,
              "line-color": "#F84F40",
              "line-width": 50
            }
          });

          this.mapView.$el.append(annotation.render().$el);

          window.annotation = annotation = new cdb.geo.ui.Annotation({
            latlng:[14, 3],
            text: "Oh, nice",
            mapView: vis.mapView
          });

          this.mapView.$el.append(annotation.render().$el);

        })
        .error(function(err) {
          console.log(err);
        });
      }

      window.onload = main;
    </script>
  </body>
</html>
{'fraction_non_alphanumeric': 0.15347897925463558, 'fraction_numerical': 0.029924729208738756, 'mean_word_length': 1.718562874251497, 'pattern_counts': {'":': 20, '<': 51, '<?xml version=': 0, '>': 51, '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': '5416632', 'n_tokens_mistral': 1828, 'n_tokens_neox': 1677, 'n_words': 340}