<commit_before><html>
<head>
  <link rel="stylesheet" href="http://libs.cartocdn.com/cartodb.js/v3/themes/css/cartodb.css" />
  <script src="http://libs.cartocdn.com/cartodb.js/v3/cartodb.js"></script>
  <!--[if lte IE 8]>
    <link rel="stylesheet" href="http://libs.cartocdn.com/cartodb.js/v2/themes/css/cartodb.ie.css" />
  <![endif]-->
  <style>
    html, body {width:100%; height:100%; padding: 0; margin: 0;}
    #cartodb-map { width: 100%; height:100%; background: black;}
  </style>

  <script>
    var map;
    function init(){
      // initiate leaflet map
      map = new L.Map('cartodb-map', {
        center: [40,-98],
        zoom: 4
      })

      L.tileLayer('https://dnv9my2eseobd.cloudfront.net/v3/cartodb.map-4xtxp73f/{z}/{x}/{y}.png', {
        attribution: 'Mapbox <a href="http://mapbox.com/about/maps" target="_blank">Terms &amp; Feedback</a>'
      }).addTo(map);

      var layerUrl = 'http://viz2.cartodb.com/api/v2/viz/ccd8b458-e9de-11e2-aacb-5404a6a683d5/viz.json';

      cartodb.createLayer(map, layerUrl)
       .on('done', function(layer) {
        map.addLayer(layer);

        // change the query for the first layer
        var subLayerOptions = {
            sql: "SELECT * FROM example_cartodbjs_1 where adm0_a3 = 'USA'",
            cartocss: "#example_cartodbjs_1{marker-fill: #109DCD; marker-width: 5; marker-line-color: white; marker-line-width: 0;}"
          }

        layer.getSubLayer(0).set(subLayerOptions);
      }).on('error', function() {
        //log the error
      });
    }
  </script>
</head>

<body onload="init()">
  <div id='cartodb-map'></div>
</body>
</html><commit_msg>fixed example with addTo<commit_after><html>
<head>
  <link rel="stylesheet" href="http://libs.cartocdn.com/cartodb.js/v3/themes/css/cartodb.css" />
  <script src="http://libs.cartocdn.com/cartodb.js/v3/cartodb.js"></script>
  <!--[if lte IE 8]>
    <link rel="stylesheet" href="http://libs.cartocdn.com/cartodb.js/v2/themes/css/cartodb.ie.css" />
  <![endif]-->
  <style>
    html, body {width:100%; height:100%; padding: 0; margin: 0;}
    #cartodb-map { width: 100%; height:100%; background: black;}
  </style>

  <script>
    var map;
    function init(){
      // initiate leaflet map
      map = new L.Map('cartodb-map', {
        center: [40,-98],
        zoom: 4
      })

      L.tileLayer('https://dnv9my2eseobd.cloudfront.net/v3/cartodb.map-4xtxp73f/{z}/{x}/{y}.png', {
        attribution: 'Mapbox <a href="http://mapbox.com/about/maps" target="_blank">Terms &amp; Feedback</a>'
      }).addTo(map);

      var layerUrl = 'http://viz2.cartodb.com/api/v2/viz/ccd8b458-e9de-11e2-aacb-5404a6a683d5/viz.json';

      cartodb.createLayer(map, layerUrl)
       .addTo(map)
       .on('done', function(layer) {
        // change the query for the first layer
        var subLayerOptions = {
          sql: "SELECT * FROM example_cartodbjs_1 where adm0_a3 = 'USA'",
          cartocss: "#example_cartodbjs_1{marker-fill: #109DCD; marker-width: 5; marker-line-color: white; marker-line-width: 0;}"
        }

        layer.getSubLayer(0).set(subLayerOptions);
      }).on('error', function() {
        //log the error
      });
    }
  </script>
</head>

<body onload="init()">
  <div id='cartodb-map'></div>
</body>
</html>
{'fraction_non_alphanumeric': 0.18987730061349692, 'fraction_numerical': 0.03558282208588957, 'mean_word_length': 2.8095794392523366, 'pattern_counts': {'":': 0, '<': 43, '<?xml version=': 0, '>': 43, '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': '7039110', 'n_tokens_mistral': 1318, 'n_tokens_neox': 1208, 'n_words': 206}