<commit_before><% unless (current_user.feature_flags.include? 'new_dashboard') && params[:controller] == 'admin/visualizations' %>
<header>
  <div class="inner">
    <h1 class="left"><%= link_to "CartoDB", dashboard_path(user_domain: params[:user_domain], trailing_slash: true) %></h1>
    <ul class="right">
      <li><%= link_to 'tables', tables_index_path(user_domain: params[:user_domain]), :class => :tables %></a></li>
      <li><%= link_to 'visualizations', visualizations_index_path(user_domain: params[:user_domain]), :class => :visualizations %></a></li>
      <% if ( Cartodb.config[:account_host] == "cartodb.com") %>
        <li><%= link_to 'common data', dashboard_common_data_path(user_domain: params[:user_domain]), :class => selected_if(current_path.include? 'common_data') %></a></li>
      <% end %>
      <li><%= link_to 'documentation', Cartodb.config[:developers_host] %></a></li>
      <li>
        <a class="dropdown account separator" href="<%= account_url %>"><%= current_user.username %><span>|</span></a>
      </li>
    </ul>
  </div>
</header>
<%= yield :account_settings %>
<% end %><commit_msg>Checking username, host and api_key instead of account_host<commit_after><% unless (current_user.feature_flags.include? 'new_dashboard') && params[:controller] == 'admin/visualizations' %>
<header>
  <div class="inner">
    <h1 class="left"><%= link_to "CartoDB", dashboard_path(user_domain: params[:user_domain], trailing_slash: true) %></h1>
    <ul class="right">
      <li><%= link_to 'tables', tables_index_path(user_domain: params[:user_domain]), :class => :tables %></a></li>
      <li><%= link_to 'visualizations', visualizations_index_path(user_domain: params[:user_domain]), :class => :visualizations %></a></li>
      <% if ( ( Cartodb.config[:common_data]['username'] && (Cartodb.config[:common_data]['username'] != "")) && ( Cartodb.config[:common_data]['host'] && (Cartodb.config[:common_data]['host'] != "") ) && ( Cartodb.config[:common_data]['api_key'] && (Cartodb.config[:common_data]['api_key'] != "") ) 
        ) %>
        <li><%= link_to 'common data', dashboard_common_data_path(user_domain: params[:user_domain]), :class => selected_if(current_path.include? 'common_data') %></a></li>
      <% end %>
      <li><%= link_to 'documentation', Cartodb.config[:developers_host] %></a></li>
      <li>
        <a class="dropdown account separator" href="<%= account_url %>"><%= current_user.username %><span>|</span></a>
      </li>
    </ul>
  </div>
</header>
<%= yield :account_settings %>
<% end %>
{'fraction_non_alphanumeric': 0.21515508441303494, 'fraction_numerical': 0.0015704750687082843, 'mean_word_length': 5.229828850855745, 'pattern_counts': {'":': 0, '<': 79, '<?xml version=': 0, '>': 85, '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': '5511742', 'n_tokens_mistral': 879, 'n_tokens_neox': 822, 'n_words': 153}