<commit_before><% if current_user && !current_user.seen_the_tour && (can? :access, Ability::FactlinkWebapp) %>
  <% content_for :javascript do %>
    <script>$(document).ready(function(){$(".take-the-tour").click();});</script>
  <% end %>
<% end %>

<div class="navbar navbar-fixed-top">
  <div class="navbar-inner">
    <div class="container">
      <div class="row">
        <div class="span3">
          <h3>
            <a class="brand" href="/"><%= image_tag('factlink-logo-beta.png') %></a>
          </h3>
        </div>

        <div class="span9">
          <% if can? :index, Fact %>
            <%= render "facts/fact_search" %>
          <% end %>

          <ul class="nav secondary-nav pull-right">
            <% if current_user %>
              <% if can? :access, Ability::FactlinkWebapp %>
                <li>
                  <a class="take-the-tour" data-toggle="modal" href="first-tour-modal">Take the tour</a>
                </li>
              <% end %>
              <li class="divider-vertical"></li>

              <% if can? :access, Ability::AdminArea %>
                <li class="dropdown">
                  <a class="dropdown-toggle" data-toggle="dropdown">
                    Admin
                    <b class="caret"></b>
                  </a>
                  <ul class="dropdown-menu">
                    <li><%= link_to("Users", admin_users_path) %></li>
                    <li><%= link_to("Jobs", admin_jobs_path) %></li>
                  </ul>
                </li>
              <% end %>

              <li class="dropdown" id="notifications">
                <a class="dropdown-toggle" data-toggle="dropdown">
                  <%= image_tag("activities/icon-generic.png") %>
                  <span class="unread"></span>
                </a>
                <ul class="dropdown-menu"><commit_msg>Use the new Tour object to show the tour<commit_after><% if current_user && !current_user.seen_the_tour && (can? :access, Ability::FactlinkWebapp) %>
  <% content_for :javascript do %>
    <script>$(document).ready(function(){ Tour.show(); });</script>
  <% end %>
<% end %>

<div class="navbar navbar-fixed-top">
  <div class="navbar-inner">
    <div class="container">
      <div class="row">
        <div class="span3">
          <h3>
            <a class="brand" href="/"><%= image_tag('factlink-logo-beta.png') %></a>
          </h3>
        </div>

        <div class="span9">
          <% if can? :index, Fact %>
            <%= render "facts/fact_search" %>
          <% end %>

          <ul class="nav secondary-nav pull-right">
            <% if current_user %>
              <% if can? :access, Ability::FactlinkWebapp %>
                <li>
                  <a class="take-the-tour" data-toggle="modal">Take the tour</a>
                </li>
              <% end %>
              <li class="divider-vertical"></li>

              <% if can? :access, Ability::AdminArea %>
                <li class="dropdown">
                  <a class="dropdown-toggle" data-toggle="dropdown">
                    Admin
                    <b class="caret"></b>
                  </a>
                  <ul class="dropdown-menu">
                    <li><%= link_to("Users", admin_users_path) %></li>
                    <li><%= link_to("Jobs", admin_jobs_path) %></li>
                  </ul>
                </li>
              <% end %>

              <li class="dropdown" id="notifications">
                <a class="dropdown-toggle" data-toggle="dropdown">
                  <%= image_tag("activities/icon-generic.png") %>
                  <span class="unread"></span>
                </a>
                <ul class="dropdown-menu">
{'fraction_non_alphanumeric': 0.17529124898401519, 'fraction_numerical': 0.002167434299647792, 'mean_word_length': 1.5945186226282502, 'pattern_counts': {'":': 0, '<': 111, '<?xml version=': 0, '>': 111, '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': '5882933', 'n_tokens_mistral': 1146, 'n_tokens_neox': 1029, 'n_words': 208}