<commit_before><!DOCTYPE html>
<html>
	<head>
	  <title>Questionr</title>
	  <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %>
	  <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
    <script src="//code.jquery.com/jquery-1.11.2.min.js"></script>
		<script src="//code.jquery.com/ui/1.11.4/jquery-ui.min.js"></script>
		<script src="//cdnjs.cloudflare.com/ajax/libs/blueimp-file-upload/9.5.7/jquery.iframe-transport.min.js"></script>
		<script src="//cdnjs.cloudflare.com/ajax/libs/blueimp-file-upload/9.5.7/jquery.fileupload.min.js"></script>
    <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js"></script>
    <script src="//cdnjs.cloudflare.com/ajax/libs/moment.js/2.10.1/moment.min.js"></script>
		<script src="//cdnjs.cloudflare.com/ajax/libs/bootstrap-datetimepicker/4.7.14/js/bootstrap-datetimepicker.min.js"></script>

	  <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootswatch/3.3.4/cerulean/bootstrap.min.css"/>		
	  <link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/bootstrap-datetimepicker/4.7.14/css/bootstrap-datetimepicker.min.css"/>
	  <%= csrf_meta_tags %>
		<style>
			#logo { width: 150px; }
		</style>
	</head>
	<body>
		<nav class="navbar navbar-inverse">
		  <div class="container-fluid">
		    <div class="navbar-header">
		      <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-2">
		        <span class="sr-only">Toggle navigation</span>
		        <span class="icon-bar"></span>
		        <span class="icon-bar"></span>
		        <span class="icon-bar"></span>
		      </button>
		      <%= link_to image_tag('questionr-logo.png', { id: 'logo' }), '/', class: 'navbar-brand' %></a>
		    </div>
		    <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-2">
		      <ul class="nav navbar-nav">
		        <li<%= URI(request.url).path.starts_with?('/events') ? ' class=active' : '' %>><%= link_to 'Events', :events %></li>
		        <li<%= URI(request.url).path.starts_with?('/candidates') ? ' class=active' : '' %>><%= link_to 'Candidates', :candidates %></li>
		      </ul>
		      <ul class="nav navbar-nav navbar-right">
		        <li class="dropdown">
		          <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">Admin <span class="caret"></span></a>
		          <ul class="dropdown-menu" role="menu">
		            <li><%=link_to 'Attendees', :attendees%></li>
		            <li><%=link_to 'Campaigns', :campaigns%></li>
		            <li><%=link_to 'Candidates', :candidates%></li>
		            <li><%=link_to 'Elections', :elections%></li>
		            <li><%=link_to 'Event Days', :event_days%></li>
		            <li><%=link_to 'Events', :events%></li>
		            <li><%=link_to 'People', :people%></li>
		            <li><%=link_to 'Statements', :statements%></li>
		            <li><%=link_to 'Users', :users%></li>
		            <li><%=link_to 'Venues', :venues%></li>
								<li class="divider"></li>
		            <li><%=link_to 'Resque Web Console', 'resque_web', target: '_blank'%></li>								
		          </ul>
		        </li>
		      </ul>
		    </div>
		  </div>
		</nav>
		<div id="content" class="container-fluid">
			<%= yield %>
		</div>
	</body>
</html><commit_msg>shows admin nav only to admins<commit_after><!DOCTYPE html>
<html>
	<head>
	  <title>Questionr</title>
	  <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %>
	  <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
    <script src="//code.jquery.com/jquery-1.11.2.min.js"></script>
		<script src="//code.jquery.com/ui/1.11.4/jquery-ui.min.js"></script>
		<script src="//cdnjs.cloudflare.com/ajax/libs/blueimp-file-upload/9.5.7/jquery.iframe-transport.min.js"></script>
		<script src="//cdnjs.cloudflare.com/ajax/libs/blueimp-file-upload/9.5.7/jquery.fileupload.min.js"></script>
    <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js"></script>
    <script src="//cdnjs.cloudflare.com/ajax/libs/moment.js/2.10.1/moment.min.js"></script>
		<script src="//cdnjs.cloudflare.com/ajax/libs/bootstrap-datetimepicker/4.7.14/js/bootstrap-datetimepicker.min.js"></script>

	  <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootswatch/3.3.4/cerulean/bootstrap.min.css"/>		
	  <link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/bootstrap-datetimepicker/4.7.14/css/bootstrap-datetimepicker.min.css"/>
	  <%= csrf_meta_tags %>
		<style>
			#logo { width: 150px; }
		</style>
	</head>
	<body>
		<nav class="navbar navbar-inverse">
		  <div class="container-fluid">
		    <div class="navbar-header">
		      <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-2">
		        <span class="sr-only">Toggle navigation</span>
		        <span class="icon-bar"></span>
		        <span class="icon-bar"></span>
		        <span class="icon-bar"></span>
		      </button>
		      <%= link_to image_tag('questionr-logo.png', { id: 'logo' }), '/', class: 'navbar-brand' %></a>
		    </div>
		    <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-2">
		      <ul class="nav navbar-nav">
		        <li<%= URI(request.url).path.starts_with?('/events') ? ' class=active' : '' %>><%= link_to 'Events', :events %></li>
		        <li<%= URI(request.url).path.starts_with?('/candidates') ? ' class=active' : '' %>><%= link_to 'Candidates', :candidates %></li>
		      </ul>
          <% if @user.admin? %>
  		      <ul class="nav navbar-nav navbar-right">
  		        <li class="dropdown">
  		          <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">Admin <span class="caret"></span></a>
  		          <ul class="dropdown-menu" role="menu">
  		            <li><%=link_to 'Attendees', :attendees%></li>
  		            <li><%=link_to 'Campaigns', :campaigns%></li>
  		            <li><%=link_to 'Candidates', :candidates%></li>
  		            <li><%=link_to 'Elections', :elections%></li>
  		            <li><%=link_to 'Event Days', :event_days%></li>
  		            <li><%=link_to 'Events', :events%></li>
  		            <li><%=link_to 'People', :people%></li>
  		            <li><%=link_to 'Statements', :statements%></li>
  		            <li><%=link_to 'Users', :users%></li>
  		            <li><%=link_to 'Venues', :venues%></li>
  								<li class="divider"></li>
  		            <li><%=link_to 'Resque Web Console', 'resque_web', target: '_blank'%></li>								
  		          </ul>
  		        </li>
  		      </ul>
          <% end %>
		    </div>
		  </div>
		</nav>
		<div id="content" class="container-fluid">
			<%= yield %>
		</div>
	</body>
</html>
{'fraction_non_alphanumeric': 0.21638624725676664, 'fraction_numerical': 0.010826627651792245, 'mean_word_length': 2.8973774230330673, 'pattern_counts': {'":': 0, '<': 221, '<?xml version=': 0, '>': 225, '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': '6255704', 'n_tokens_mistral': 2717, 'n_tokens_neox': 2374, 'n_words': 339}