<commit_before><% content_for :head do %>
  <%= csrf_meta_tag %>
  <%= stylesheet_link_tag 'application', media: 'all' %>

  <% if ENV['BUGMUNCHER_KEY'] %>
    <script type="text/javascript">
      var bugmuncher_options = {
        api_key: "<%= ENV['BUGMUNCHER_KEY'] %>"
      };
      (function(){
        var e = document.createElement("script");
        e.setAttribute("type", "text/javascript");
        var d = new Date(); var n = '?'+d.getFullYear()+(d.getMonth()+1)+d.getDate()+d.getHours();
        e.setAttribute("src", "//cdn.bugmuncher.com/bugmuncher.js"+n);
        document.getElementsByTagName("head")[0].appendChild(e);
      })();
    </script>
  <% end %>
<% end %>

<%= content_for :app_title do %>
  Planner
<% end %>

<%= content_for :navbar_items do %>
  <% if current_user.agent_manager? %>
  <li>
    <%= link_to 'Search', agent_search_index_path %>
  </li>
  <% end %>
  <% if current_user.booking_manager? %>
  <li>
    <%= link_to 'Booking Requests', root_path %>
  </li>
  <li>
    <%= link_to 'Appointments', appointments_path %>
  </li>
  <li>
    <%= link_to 'Schedules', schedules_path %>
  </li>
  <% end %>

  <% if current_user.administrator? %>
    <li class="dropdown quick-search t-quick-search" data-module="quick-search">
      <a href="#" class="dropdown-toggle js-quick-search-button" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
        <span class="sr-only">Find an appointment by reference</span>
        <span class="glyphicon glyphicon-search" aria-hidden="true"></span>
        <span class="caret"></span>
      </a>
      <div class="dropdown-menu quick-search__dropdown">
        <form method="get" action="/admin/search" class="form-inline">
          <div class="form-group quick-search__form-group">
            <label for="quick-search-input" class="quick-search__label"><span class="sr-only">Reference</span>
              <input type="text" id="quick-search-input" class="form-control input-sm quick-search__input js-quick-search-input" name="id" placeholder="Reference">
            </label>
          </div>
          <input type="submit" class="quick-search__button btn btn-primary btn-xs t-quick-search-button" value="Search">
        </form>
      </div>
    </li>

    <%= form_for current_user, html: { class: 'navbar-form navbar-right js-location-form' } do |f| %>
      <div class="form-group">
        <%= f.select :organisation_content_id,<commit_msg>Restore the link to booking requests<commit_after><% content_for :head do %>
  <%= csrf_meta_tag %>
  <%= stylesheet_link_tag 'application', media: 'all' %>

  <% if ENV['BUGMUNCHER_KEY'] %>
    <script type="text/javascript">
      var bugmuncher_options = {
        api_key: "<%= ENV['BUGMUNCHER_KEY'] %>"
      };
      (function(){
        var e = document.createElement("script");
        e.setAttribute("type", "text/javascript");
        var d = new Date(); var n = '?'+d.getFullYear()+(d.getMonth()+1)+d.getDate()+d.getHours();
        e.setAttribute("src", "//cdn.bugmuncher.com/bugmuncher.js"+n);
        document.getElementsByTagName("head")[0].appendChild(e);
      })();
    </script>
  <% end %>
<% end %>

<%= content_for :app_title do %>
  Planner
<% end %>

<%= content_for :navbar_items do %>
  <% if current_user.agent_manager? %>
  <li>
    <%= link_to 'Search', agent_search_index_path %>
  </li>
  <% end %>
  <% if current_user.booking_manager? %>
  <li>
    <%= link_to 'Booking Requests', booking_requests_path %>
  </li>
  <li>
    <%= link_to 'Appointments', appointments_path %>
  </li>
  <li>
    <%= link_to 'Schedules', schedules_path %>
  </li>
  <% end %>

  <% if current_user.administrator? %>
    <li class="dropdown quick-search t-quick-search" data-module="quick-search">
      <a href="#" class="dropdown-toggle js-quick-search-button" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
        <span class="sr-only">Find an appointment by reference</span>
        <span class="glyphicon glyphicon-search" aria-hidden="true"></span>
        <span class="caret"></span>
      </a>
      <div class="dropdown-menu quick-search__dropdown">
        <form method="get" action="/admin/search" class="form-inline">
          <div class="form-group quick-search__form-group">
            <label for="quick-search-input" class="quick-search__label"><span class="sr-only">Reference</span>
              <input type="text" id="quick-search-input" class="form-control input-sm quick-search__input js-quick-search-input" name="id" placeholder="Reference">
            </label>
          </div>
          <input type="submit" class="quick-search__button btn btn-primary btn-xs t-quick-search-button" value="Search">
        </form>
      </div>
    </li>

    <%= form_for current_user, html: { class: 'navbar-form navbar-right js-location-form' } do |f| %>
      <div class="form-group">
        <%= f.select :organisation_content_id,
{'fraction_non_alphanumeric': 0.1820020222446916, 'fraction_numerical': 0.0008088978766430738, 'mean_word_length': 3.2934027777777777, 'pattern_counts': {'":': 0, '<': 111, '<?xml version=': 0, '>': 109, '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': '352027', 'n_tokens_mistral': 1713, 'n_tokens_neox': 1616, 'n_words': 300}