<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="../dist/themes/css/cartodb.css" />
    <link href='https://fonts.googleapis.com/css?family=Open+Sans:400,300,600,700' rel='stylesheet' type='text/css'>
  </head>
  <body>
    <div id="map"></div>

    <!-- include cartodb.js library -->
    <script src="../dist/cartodb.uncompressed.js"></script>

    <script>
      function main() {
      	var vizjson = {
          "id":"2b13c956-e7c1-11e2-806b-5404a6a683d5",
          "version":"0.1.0",
          "title":"european_countries_e 0",
          "likes":0,
          "description":null,
          "scrollwheel":true,
          "legends":true,
          "url":null,
          "map_provider":"leaflet",
          "bounds":[
            [
              -18.979025953255253,
              -155.7421875
            ],
            [
              80.58972691308571,
              261.2109375
            ]
          ],
          "center":"[52.5897007687178, 52.734375]",
          "zoom":2,
          "updated_at":"2015-03-13T11:24:37+00:00",
          "layers":[
            {
              "options":{
                "id":"0a3d9104-99c6-482b-9f8c-7c6134bddcdc",
                "order":0,
                "visible":true,
                "type":"Tiled",
                "name":"Positron",
                "className":"default positron_rainbow",
                "base_type":"positron_rainbow",
                "urlTemplate":"http://{s}.basemaps.cartocdn.com/light_all/{z}/{x}/{y}.png",
                "read_only":true,
                "minZoom":"0",
                "maxZoom":"18",
                "attribution":"\u00a9 <a href=\"http://www.openstreetmap.org/copyright\">OpenStreetMap</a> contributors \u00a9 <a href= \"http://cartodb.com/attributions#basemaps\">CartoDB</a>",
                "subdomains":"abcd",
                "category":"CartoDB"
              },
              "infowindow":null,
              "tooltip":null,
              "id":"0a3d9104-99c6-482b-9f8c-7c6134bddcdc",
              "order":0,
              "type":"tiled"
            },
            {
              "type":"layergroup",
              "options":{
                "user_name":"documentation",
                "maps_api_template":"http://{user}.cartodb.com:80",
                "sql_api_template":"http://{user}.cartodb.com:80",
                "tiler_protocol":"http",
                "tiler_domain":"cartodb.com",
                "tiler_port":"80",
                "sql_api_protocol":"http",
                "sql_api_domain":"cartodb.com",
                "sql_api_endpoint":"/api/v2/sql",
                "sql_api_port":80,
                "filter":"mapnik",
                "layer_definition":{
                  "stat_tag":"2b13c956-e7c1-11e2-806b-5404a6a683d5",
                  "version":"1.0.1",
                  "layers":[
                    {
                      "id":"923b7812-2d56-41c6-ac15-3ce430db090f",
                      "type":"CartoDB",
                      "infowindow":{
                        "fields":[
                          {
                            "name":"area",
                            "title":true,
                            "position":0
                          },
                          {
                            "name":"gmi_cntry",
                            "title":true,
                            "position":1
                          },
                          {
                            "name":"iso_2_code",
                            "title":true,
                            "position":2
                          },
                          {
                            "name":"iso_3_code",
                            "title":true,
                            "position":3
                          },
                          {
                            "name":"name",
                            "title":true,
                            "position":4
                          },
                          {
                            "name":"name_1",
                            "title":true,
                            "position":5
                          },
                          {
                            "name":"name_12",
                            "title":true,
                            "position":6
                          },
                          {
                            "name":"pop2005",
                            "title":true,
                            "position":7
                          },
                          {
                            "name":"region",
                            "title":true,
                            "position":8
                          }
                        ],
                        "template_name":"table/views/infowindow_light",
                        template: "<div class=\"CDB-infowindow CDB-infowindow--light js-infowindow\" data-cover=\"true\"><div class=\"CDB-infowindow-container\"><div class=\"CDB-infowindow-header CDB-infowindow-headerMedia js-cover\"><img src=\"http://i.imgur.com/njD36iC.gif\"></div><div class=\"CDB-hook-image\"> <div class=\"CDB-hook-image-inner js-hook\"></div></div></div></div>",
                        "alternative_names":{},
                        "width":226,
                        "maxHeight":180
                      },
                      "tooltip":{
                        "fields": [
                          {
                            "name": "iso_2_code",
                            "title": true,
                            "position": 1
                          }
                        ],
                        "template_name":"tooltip_light",
                        "template": ' '+
                            '<div class="CDB-Tooltip CDB-Tooltip--isDark js-content">'+
                              '<ul class="CDB-Tooltip-list">'+
                                '{{#fields}}'+
                                '<li class="CDB-Tooltip-listItem">'+
                                  '<h3 class="CDB-Tooltip-listTitle">ISO CODE</h3>'+
                                  '<h4 class="CDB-Tooltip-listText">{{value}}</h4>'+
                                '</li>'+
                                '{{/fields}}'+
                              '</ul>'+
                            '</div>',
                        "alternative_names":{},
                        "maxHeight":180
                      },
                      "legend":{<commit_msg>Makes template easier to read<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="../dist/themes/css/cartodb.css" />
    <link href='https://fonts.googleapis.com/css?family=Open+Sans:400,300,600,700' rel='stylesheet' type='text/css'>
  </head>
  <body>
    <div id="map"></div>

    <!-- include cartodb.js library -->
    <script src="../dist/cartodb.uncompressed.js"></script>

    <script>
      function main() {
      	var vizjson = {
          "id":"2b13c956-e7c1-11e2-806b-5404a6a683d5",
          "version":"0.1.0",
          "title":"european_countries_e 0",
          "likes":0,
          "description":null,
          "scrollwheel":true,
          "legends":true,
          "url":null,
          "map_provider":"leaflet",
          "bounds":[
            [
              -18.979025953255253,
              -155.7421875
            ],
            [
              80.58972691308571,
              261.2109375
            ]
          ],
          "center":"[52.5897007687178, 52.734375]",
          "zoom":2,
          "updated_at":"2015-03-13T11:24:37+00:00",
          "layers":[
            {
              "options":{
                "id":"0a3d9104-99c6-482b-9f8c-7c6134bddcdc",
                "order":0,
                "visible":true,
                "type":"Tiled",
                "name":"Positron",
                "className":"default positron_rainbow",
                "base_type":"positron_rainbow",
                "urlTemplate":"http://{s}.basemaps.cartocdn.com/light_all/{z}/{x}/{y}.png",
                "read_only":true,
                "minZoom":"0",
                "maxZoom":"18",
                "attribution":"\u00a9 <a href=\"http://www.openstreetmap.org/copyright\">OpenStreetMap</a> contributors \u00a9 <a href= \"http://cartodb.com/attributions#basemaps\">CartoDB</a>",
                "subdomains":"abcd",
                "category":"CartoDB"
              },
              "infowindow":null,
              "tooltip":null,
              "id":"0a3d9104-99c6-482b-9f8c-7c6134bddcdc",
              "order":0,
              "type":"tiled"
            },
            {
              "type":"layergroup",
              "options":{
                "user_name":"documentation",
                "maps_api_template":"http://{user}.cartodb.com:80",
                "sql_api_template":"http://{user}.cartodb.com:80",
                "tiler_protocol":"http",
                "tiler_domain":"cartodb.com",
                "tiler_port":"80",
                "sql_api_protocol":"http",
                "sql_api_domain":"cartodb.com",
                "sql_api_endpoint":"/api/v2/sql",
                "sql_api_port":80,
                "filter":"mapnik",
                "layer_definition":{
                  "stat_tag":"2b13c956-e7c1-11e2-806b-5404a6a683d5",
                  "version":"1.0.1",
                  "layers":[
                    {
                      "id":"923b7812-2d56-41c6-ac15-3ce430db090f",
                      "type":"CartoDB",
                      "infowindow":{
                        "fields":[
                          {
                            "name":"area",
                            "title":true,
                            "position":0
                          },
                          {
                            "name":"gmi_cntry",
                            "title":true,
                            "position":1
                          },
                          {
                            "name":"iso_2_code",
                            "title":true,
                            "position":2
                          },
                          {
                            "name":"iso_3_code",
                            "title":true,
                            "position":3
                          },
                          {
                            "name":"name",
                            "title":true,
                            "position":4
                          },
                          {
                            "name":"name_1",
                            "title":true,
                            "position":5
                          },
                          {
                            "name":"name_12",
                            "title":true,
                            "position":6
                          },
                          {
                            "name":"pop2005",
                            "title":true,
                            "position":7
                          },
                          {
                            "name":"region",
                            "title":true,
                            "position":8
                          }
                        ],
                        "template_name":"table/views/infowindow_light",
                        template: '' +
                        '<div class=\"CDB-infowindow CDB-infowindow--light js-infowindow\" data-cover=\"true\">' +
                        '  <div class=\"CDB-infowindow-container\">' +
                        '    <div class=\"CDB-infowindow-header CDB-infowindow-headerMedia js-cover\">' +
                        '      <img src=\"http://i.imgur.com/njD36iC.gif\"></div><div class=\"CDB-hook-image\">' +
                        '      <div class=\"CDB-hook-image-inner js-hook\"></div>'+
                        '    </div>' +
                        '  </div>' +
                        '</div>',
                        "alternative_names":{},
                        "width":226,
                        "maxHeight":180
                      },
                      "tooltip":{
                        "fields": [
                          {
                            "name": "iso_2_code",
                            "title": true,
                            "position": 1
                          }
                        ],
                        "template_name":"tooltip_light",
                        "template": ' '+
                            '<div class="CDB-Tooltip CDB-Tooltip--isDark js-content">'+
                              '<ul class="CDB-Tooltip-list">'+
                                '{{#fields}}'+
                                '<li class="CDB-Tooltip-listItem">'+
                                  '<h3 class="CDB-Tooltip-listTitle">ISO CODE</h3>'+
                                  '<h4 class="CDB-Tooltip-listText">{{value}}</h4>'+
                                '</li>'+
                                '{{/fields}}'+
                              '</ul>'+
                            '</div>',
                        "alternative_names":{},
                        "maxHeight":180
                      },
                      "legend":{
{'fraction_non_alphanumeric': 0.14251138952164008, 'fraction_numerical': 0.040432801822323464, 'mean_word_length': 0.9003111050994184, 'pattern_counts': {'":': 192, '<': 93, '<?xml version=': 0, '>': 93, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4198215', 'n_tokens_mistral': 4098, 'n_tokens_neox': 3668, 'n_words': 403}