<commit_before><%#
  # $HeadURL$
  # $Id$
  #
  # Copyright (c) 2009-2012 by Public Library of Science, a non-profit corporation
  # http://www.plos.org/
  #
  # Licensed under the Apache License, Version 2.0 (the "License");
  # you may not use this file except in compliance with the License.
  # You may obtain a copy of the License at
  #
  #     http://www.apache.org/licenses/LICENSE-2.0
  #
  # Unless required by applicable law or agreed to in writing, software
  # distributed under the License is distributed on an "AS IS" BASIS,
  # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  # See the License for the specific language governing permissions and
  # limitations under the License.
-%>

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <title>
    <% unless Rails.env.production? %>
        <%= "(#{Rails.env})"  %>
    <% end %>
    <%= APP_CONFIG['useragent'] %>
  </title>
  
  <!--[if lt IE 9]>
    <script src="http://html5shim.googlecode.com/svn/trunk/html5.js" type="text/javascript"></script>
  <![endif]-->

  <%= favicon_link_tag %>
  <%= stylesheet_link_tag "plos" %>
  <%= javascript_include_tag "application" %>
  <%= csrf_meta_tags %>
</head>

<body>
  <div class="container">
    <header>
      <%= image_tag "plos/plos.png" %>
    </header>
    <div class="navbar">
  	  <div class="navbar-inner">
				<ul class="nav">
					<li><%= link_to "Articles", articles_path %></li>
          <li><%= link_to "Sources", sources_path %></li>
        </ul>
			  <% if ["articles"].include?(controller.controller_name) and ["index"].include?(controller.action_name) %>
		      <%= form_tag({:controller => controller.controller_name, :action => "index"}, :method => "get", :class => "navbar-search pull-left") do %>
          <%= search_field_tag :query, params[:query], :placeholder => "Search", :class => "search-query" %>
		      <% end %>
        <% end %>
        <ul class="nav pull-right"><commit_msg>ALM-31 enabled search for articles in toolbar on all pages<commit_after><%#
  # $HeadURL$
  # $Id$
  #
  # Copyright (c) 2009-2012 by Public Library of Science, a non-profit corporation
  # http://www.plos.org/
  #
  # Licensed under the Apache License, Version 2.0 (the "License");
  # you may not use this file except in compliance with the License.
  # You may obtain a copy of the License at
  #
  #     http://www.apache.org/licenses/LICENSE-2.0
  #
  # Unless required by applicable law or agreed to in writing, software
  # distributed under the License is distributed on an "AS IS" BASIS,
  # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  # See the License for the specific language governing permissions and
  # limitations under the License.
-%>

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <title>
    <% unless Rails.env.production? %>
        <%= "(#{Rails.env})"  %>
    <% end %>
    <%= APP_CONFIG['useragent'] %>
  </title>
  
  <!--[if lt IE 9]>
    <script src="http://html5shim.googlecode.com/svn/trunk/html5.js" type="text/javascript"></script>
  <![endif]-->

  <%= favicon_link_tag %>
  <%= stylesheet_link_tag "plos" %>
  <%= javascript_include_tag "application" %>
  <%= csrf_meta_tags %>
</head>

<body>
  <div class="container">
    <header>
      <%= image_tag "plos/plos.png" %>
    </header>
    <div class="navbar">
  	  <div class="navbar-inner">
				<ul class="nav">
					<li><%= link_to "Articles", articles_path %></li>
          <li><%= link_to "Sources", sources_path %></li>
        </ul>
	      <%= form_tag({:controller => "/articles", :action => "index"}, :method => "get", :class => "navbar-search pull-left") do %>
          <%= search_field_tag :query, params[:query], :placeholder => "Search for Article", :class => "search-query" %>
	      <% end %>
        <ul class="nav pull-right">
{'fraction_non_alphanumeric': 0.16990920881971466, 'fraction_numerical': 0.008819714656290532, 'mean_word_length': 3.214207650273224, 'pattern_counts': {'":': 0, '<': 83, '<?xml version=': 0, '>': 95, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, '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': '2466374', 'n_tokens_mistral': 1361, 'n_tokens_neox': 1239, 'n_words': 349}