<commit_before><!DOCTYPE html>
<html lang="en">
  <head>
    <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="/favicons/favicon.ico" />
    <title><%= @table.name.gsub(/_/," ") %> | CartoDB</title>
    <meta name="description" content="<%= @table.description || @table.name.gsub(/_/," ") %>">
    <meta name="keywords" content="Map,cartodb,<%= @table.name.gsub(/_/,",").gsub(/ /,",") %>">
    <meta name="author" content="CartoDB">
    <meta name="DC.title" content="<%= @table.description %> | CartoDB">
    <meta property="og:title" content="<%= @table.name.gsub(/_/," ") %> | CartoDB"/>
    <meta property="og:description" content="<%= @table.description || @table.name.gsub(/_/," ") %>"/> 
    <meta property="og:type" content="Visualization"/>
    <meta property="og:url" content="<%= request.fullpath %>" />
    <meta property="og:image" content="<%= asset_path "layout/cartofante_blue.png" %>"/>

    <style type="text/css">
      html, body {height: 100%; padding: 0; margin: 0;}
      #map {position:absolute; width:100%; top:0; right:0; bottom:0; left:0;}
    </style>

    <% if Rails.env.development? %>
        <%= stylesheet_link_tag 'cdb/themes/css/cartodb' %>
        <!--[if lte IE 8]>
            <%= stylesheet_link_tag 'cdb/themes/css/cartodb.ie' %>
        <![endif]-->
    <% else %>
        <link rel="stylesheet" href="http://libs.cartodb.com/cartodb.js/v2/themes/css/cartodb.css" />
        <!--[if lte IE 8]>
            <link rel="stylesheet" href="http://libs.cartodb.com/cartodb.js/v2/themes/css/cartodb.ie.css" />
        <![endif]-->
    <% end %>

  </head>
  <body>
    <% if @table.public? %>
    <div id="map"></div>
    <% end %>

    <% if @table.map.provider == 'googlemaps' %>
      <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>
    <% else %>
      <!-- if you are using google maps, uncomment the following line -->
      <!-- <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script> -->
    <% end %>

    <% if Rails.env.development? %>
      <%= javascript_include_tag :jquery ,:cdb %>
    <% else %>
      <script src="http://libs.cartocdn.com/cartodb.js/v2/cartodb.js"></script>
    <% end %>

    <script>

      function get_url_params(conversion) {
        conversion = conversion || {};
        var tokens = location.search.slice(1).split('&');
        var params = {};
        for(var i = 0; i < tokens.length; ++i) {
          var tk = tokens[i].split('=');
          var fn = conversion[tk[0]] || function(v) { return v };
          if(tk.length === 2) {
            params[tk[0]] = fn(decodeURIComponent(tk[1]));
          }
        }
        return params;
      }


      $(document).ready(function(){
        var bool_fn = function(v) { return v == 'true' }
          , is_custom_install = <%= Cartodb.config[:cartodb_com_hosted].present? %>
          , logo_fn = function(v) { return ("<%= @table.owner.account_type.downcase %>" != "coronelli" || is_custom_install) ? true : v == 'true' };

        var opt = get_url_params({
          'search': bool_fn,
          'title': bool_fn,
          'description': bool_fn,
          'shareable': bool_fn,
          'cartodb_logo': logo_fn
        });

        <% if Rails.env.development? %>
          opt.no_cdn = true;
        <% end %>

        cartodb.createVis('map', '<%= v1_vizjson_url(@tabla) %>', opt, function(vis) {
          // add here your code
        });
      });
    </script>

    <%= render 'shared/analytics', ua: Cartodb.config[:google_analytics]["embeds"] %>
  </body>
</html>
<commit_msg>Sends the scrollwheel param to the vis<commit_after><!DOCTYPE html>
<html lang="en">
  <head>
    <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="/favicons/favicon.ico" />
    <title><%= @table.name.gsub(/_/," ") %> | CartoDB</title>
    <meta name="description" content="<%= @table.description || @table.name.gsub(/_/," ") %>">
    <meta name="keywords" content="Map,cartodb,<%= @table.name.gsub(/_/,",").gsub(/ /,",") %>">
    <meta name="author" content="CartoDB">
    <meta name="DC.title" content="<%= @table.description %> | CartoDB">
    <meta property="og:title" content="<%= @table.name.gsub(/_/," ") %> | CartoDB"/>
    <meta property="og:description" content="<%= @table.description || @table.name.gsub(/_/," ") %>"/> 
    <meta property="og:type" content="Visualization"/>
    <meta property="og:url" content="<%= request.fullpath %>" />
    <meta property="og:image" content="<%= asset_path "layout/cartofante_blue.png" %>"/>

    <style type="text/css">
      html, body {height: 100%; padding: 0; margin: 0;}
      #map {position:absolute; width:100%; top:0; right:0; bottom:0; left:0;}
    </style>

    <% if Rails.env.development? %>
        <%= stylesheet_link_tag 'cdb/themes/css/cartodb' %>
        <!--[if lte IE 8]>
            <%= stylesheet_link_tag 'cdb/themes/css/cartodb.ie' %>
        <![endif]-->
    <% else %>
        <link rel="stylesheet" href="http://libs.cartodb.com/cartodb.js/v2/themes/css/cartodb.css" />
        <!--[if lte IE 8]>
            <link rel="stylesheet" href="http://libs.cartodb.com/cartodb.js/v2/themes/css/cartodb.ie.css" />
        <![endif]-->
    <% end %>

  </head>
  <body>
    <% if @table.public? %>
    <div id="map"></div>
    <% end %>

    <% if @table.map.provider == 'googlemaps' %>
      <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>
    <% else %>
      <!-- if you are using google maps, uncomment the following line -->
      <!-- <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script> -->
    <% end %>

    <% if Rails.env.development? %>
      <%= javascript_include_tag :jquery ,:cdb %>
    <% else %>
      <script src="http://libs.cartocdn.com/cartodb.js/v2/cartodb.js"></script>
    <% end %>

    <script>

      function get_url_params(conversion) {
        conversion = conversion || {};
        var tokens = location.search.slice(1).split('&');
        var params = {};
        for(var i = 0; i < tokens.length; ++i) {
          var tk = tokens[i].split('=');
          var fn = conversion[tk[0]] || function(v) { return v };
          if(tk.length === 2) {
            params[tk[0]] = fn(decodeURIComponent(tk[1]));
          }
        }
        return params;
      }


      $(document).ready(function(){
        var bool_fn = function(v) { return v == 'true' }
          , is_custom_install = <%= Cartodb.config[:cartodb_com_hosted].present? %>
          , logo_fn = function(v) { return ("<%= @table.owner.account_type.downcase %>" != "coronelli" || is_custom_install) ? true : v == 'true' };

        var opt = get_url_params({
          'search': bool_fn,
          'title': bool_fn,
          'description': bool_fn,
          'shareable': bool_fn,
          'cartodb_logo': logo_fn,
          'scrollwheel': bool_fn
        });

        <% if Rails.env.development? %>
          opt.no_cdn = true;
        <% end %>

        cartodb.createVis('map', '<%= v1_vizjson_url(@tabla) %>', opt, function(vis) {
          // add here your code
        });
      });
    </script>

    <%= render 'shared/analytics', ua: Cartodb.config[:google_analytics]["embeds"] %>
  </body>
</html>

{'fraction_non_alphanumeric': 0.20949089458992423, 'fraction_numerical': 0.007177987504984713, 'mean_word_length': 2.6684544124817164, 'pattern_counts': {'":': 0, '<': 143, '<?xml version=': 0, '>': 141, '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': '7474568', 'n_tokens_mistral': 2733, 'n_tokens_neox': 2503, 'n_words': 448}