<commit_before><%= content_for(:js) do %>

  <script type="text/javascript" src="//maps.google.com/maps/api/js?sensor=false&v=3.12"></script>

    <% if !Rails.env.production? %>
      <%= javascript_include_tag 'cdb.js', 'public_dashboard' %>
    <% else %>
      <script src="//cartodb-libs.global.ssl.fastly.net/cartodb.js/v3/cartodb.js"></script>
      <%= javascript_include_tag 'public_dashboard' %>
    <% end %>

  <!--[if lt IE 9]>
  <%= javascript_include_tag "respond.js" %>
  <script>
    document.createElement('header');
    document.createElement('nav');
    document.createElement('footer');
  </script>
  <![endif]-->

<% end %>

<%= content_for(:css) do %>

  <%= stylesheet_link_tag "common", "dashboard", "public_dashboard" %>
  <link rel="stylesheet" href="//cartodb-libs.global.ssl.fastly.net/cartodb.js/v3/themes/css/cartodb.css" />
  <!--[if lte IE 8]>
  <%= stylesheet_link_tag "public_dashboard_ie" %>
  <![endif]-->
<% end %>


<div class="content<%= " empty" if @public_org_visualizations.count == 0 %>">

  <div class="inner">
    <%= render(:partial => 'organization_info') %>
  </div>

  <div class="visualizations">
    <% if @public_org_visualizations.count == 0 %>
      <div class="empty_placeholder">
        <%= @name %> doesn't have any public maps
      </div>
    <% end %>

    <% if @public_org_visualizations.count > 0 %>
      <ul>
        <% @public_org_visualizations.each_with_index do |vis, i| %>
          <li>
            <div class="map-wrapper headless">

              <a href="<%= public_visualizations_public_map_url(user_domain: params[:user_domain], id: vis[:id]) %>?<%= vis[:url_options].presence %>" class="backdrop"></a>
              <div id="map_<%= i %>" class="map"></div>

              <div class="title">
                <h3><%= vis[:title] %></h3>
                <p><%= raw (vis[:description] ? vis[:description] : "") %></p>
              </div>
              <div class="gradient"></div>
            </div>
          </li>
        <% end %>
      </ul>
    <% end %>

    <% if @public_org_visualizations.count > 0 %>
      <div class="pagination">
        <% if @pages > 1 %>

          <% if @pages > 1 && params[:page].to_i > 1 %>
            <% p = params[:page] || 1 %><commit_msg>organizatino name appearing correctly in public org profile<commit_after><%= content_for(:js) do %>

  <script type="text/javascript" src="//maps.google.com/maps/api/js?sensor=false&v=3.12"></script>

    <% if !Rails.env.production? %>
      <%= javascript_include_tag 'cdb.js', 'public_dashboard' %>
    <% else %>
      <script src="//cartodb-libs.global.ssl.fastly.net/cartodb.js/v3/cartodb.js"></script>
      <%= javascript_include_tag 'public_dashboard' %>
    <% end %>

  <!--[if lt IE 9]>
  <%= javascript_include_tag "respond.js" %>
  <script>
    document.createElement('header');
    document.createElement('nav');
    document.createElement('footer');
  </script>
  <![endif]-->

<% end %>

<%= content_for(:css) do %>

  <%= stylesheet_link_tag "common", "dashboard", "public_dashboard" %>
  <link rel="stylesheet" href="//cartodb-libs.global.ssl.fastly.net/cartodb.js/v3/themes/css/cartodb.css" />
  <!--[if lte IE 8]>
  <%= stylesheet_link_tag "public_dashboard_ie" %>
  <![endif]-->
<% end %>


<div class="content<%= " empty" if @public_org_visualizations.count == 0 %>">

  <div class="inner">
    <%= render(:partial => 'organization_info') %>
  </div>

  <div class="visualizations">
    <% if @public_org_visualizations.count == 0 %>
      <div class="empty_placeholder">
        <%= ( @organization.display_name.present? ? @organization.name : @organization.display_name ) %> doesn't have any public maps
      </div>
    <% end %>

    <% if @public_org_visualizations.count > 0 %>
      <ul>
        <% @public_org_visualizations.each_with_index do |vis, i| %>
          <li>
            <div class="map-wrapper headless">

              <a href="<%= public_visualizations_public_map_url(user_domain: params[:user_domain], id: vis[:id]) %>?<%= vis[:url_options].presence %>" class="backdrop"></a>
              <div id="map_<%= i %>" class="map"></div>

              <div class="title">
                <h3><%= vis[:title] %></h3>
                <p><%= raw (vis[:description] ? vis[:description] : "") %></p>
              </div>
              <div class="gradient"></div>
            </div>
          </li>
        <% end %>
      </ul>
    <% end %>

    <% if @public_org_visualizations.count > 0 %>
      <div class="pagination">
        <% if @pages > 1 %>

          <% if @pages > 1 && params[:page].to_i > 1 %>
            <% p = params[:page] || 1 %>
{'fraction_non_alphanumeric': 0.20176571920757969, 'fraction_numerical': 0.007321274763135229, 'mean_word_length': 2.7580906148867315, 'pattern_counts': {'":': 0, '<': 135, '<?xml version=': 0, '>': 147, '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': '4933323', 'n_tokens_mistral': 1718, 'n_tokens_neox': 1509, 'n_words': 271}