<commit_before><header>
		<div class="navbar">
			<div class="navbar-inner navbar-fixed-top">
				<div class="container">
			
	    <%= link_to "Ergo", "/about", id: "logo" %>
			
			<% if current_user && current_user.editor? %>
	      <div>
	        <ul class="nav">
						<% if (controller_name.in? ['submissions', 'archives', 'sent_emails']) ||
									(controller_name == "referee_assignments" &&
										(params[:submission_id] || params[:archive_id])) %>
							<li class="active">
						<% else %>
							<li>
						<% end %>
							<%= link_to fa_icon("inbox", text: "&nbsp;<b>Review</b>".html_safe), submissions_path %>
						</li>
						<% if controller_name == "users" %>
							<li class="active">
						<% else %>
							<li>
						<% end %>
							<%= link_to fa_icon("users", text: "&nbsp;<b>Users</b>".html_safe), users_path %>
						</li>
						<% if current_user.managing_editor? %>
							<% if controller_name == 'journal_settings' %>
								<li class="active">
							<% else %>
								<li>
							<% end %>
							<%= link_to fa_icon("cog", text: "&nbsp;<b>Settings</b>".html_safe), journal_settings_path %>
						</li>
						<% end %>
	        </ul>
				</div>
			<% elsif current_user && current_user.author? %>
	      <div>
	        <ul class="nav">
						<% if controller_name.in? ['author_center', 'revisions', 'referee_assignments'] %>
							<li class="active">
						<% else %>
							<li>
						<% end %>
							<%= link_to fa_icon("pencil", text: "&nbsp;<b>Author</b>".html_safe), author_center_index_path %>
						</li>
	          <li>
							<% if controller_name == "referee_center" %>
								<li class="active">
							<% else %>
								<li>
							<% end %>
							<%= link_to fa_icon("check-square-o", text: "&nbsp;<b>Referee</b>".html_safe), referee_center_index_path %>
						</li>
	        </ul>
				</div>
			<% end %>
			
			
      <nav>
        <ul class="nav pull-right">
          <% if signed_in? %>
            <li id="fat-menu" class="dropdown">
              <a href="#" class="dropdown-toggle" data-toggle="dropdown">
								<% user_icon = current_user.editor? ? "" : fa_icon("user")  %>
                <b><%= user_icon + " " + current_user.full_name %></b> <b><%= fa_icon("caret-down") %></b>
              </a>
              <ul class="dropdown-menu">
								<% if editor? %>
								<li><%= link_to "Editor's guide", guide_path %></li>
								<% end %>
                <li><%= link_to "My Profile", current_user %></li>
                <li class="divider"></li>
                <li><%= link_to "Sign out", signout_path, method: "delete" %></li>
              </ul>
            </li>
          <% else %><commit_msg>Fix a typo: consistent capitalization in the user menu.<commit_after><header>
		<div class="navbar">
			<div class="navbar-inner navbar-fixed-top">
				<div class="container">
			
	    <%= link_to "Ergo", "/about", id: "logo" %>
			
			<% if current_user && current_user.editor? %>
	      <div>
	        <ul class="nav">
						<% if (controller_name.in? ['submissions', 'archives', 'sent_emails']) ||
									(controller_name == "referee_assignments" &&
										(params[:submission_id] || params[:archive_id])) %>
							<li class="active">
						<% else %>
							<li>
						<% end %>
							<%= link_to fa_icon("inbox", text: "&nbsp;<b>Review</b>".html_safe), submissions_path %>
						</li>
						<% if controller_name == "users" %>
							<li class="active">
						<% else %>
							<li>
						<% end %>
							<%= link_to fa_icon("users", text: "&nbsp;<b>Users</b>".html_safe), users_path %>
						</li>
						<% if current_user.managing_editor? %>
							<% if controller_name == 'journal_settings' %>
								<li class="active">
							<% else %>
								<li>
							<% end %>
							<%= link_to fa_icon("cog", text: "&nbsp;<b>Settings</b>".html_safe), journal_settings_path %>
						</li>
						<% end %>
	        </ul>
				</div>
			<% elsif current_user && current_user.author? %>
	      <div>
	        <ul class="nav">
						<% if controller_name.in? ['author_center', 'revisions', 'referee_assignments'] %>
							<li class="active">
						<% else %>
							<li>
						<% end %>
							<%= link_to fa_icon("pencil", text: "&nbsp;<b>Author</b>".html_safe), author_center_index_path %>
						</li>
	          <li>
							<% if controller_name == "referee_center" %>
								<li class="active">
							<% else %>
								<li>
							<% end %>
							<%= link_to fa_icon("check-square-o", text: "&nbsp;<b>Referee</b>".html_safe), referee_center_index_path %>
						</li>
	        </ul>
				</div>
			<% end %>
			
			
      <nav>
        <ul class="nav pull-right">
          <% if signed_in? %>
            <li id="fat-menu" class="dropdown">
              <a href="#" class="dropdown-toggle" data-toggle="dropdown">
								<% user_icon = current_user.editor? ? "" : fa_icon("user")  %>
                <b><%= user_icon + " " + current_user.full_name %></b> <b><%= fa_icon("caret-down") %></b>
              </a>
              <ul class="dropdown-menu">
								<% if editor? %>
								<li><%= link_to "Editor's guide", guide_path %></li>
								<% end %>
                <li><%= link_to "My profile", current_user %></li>
                <li class="divider"></li>
                <li><%= link_to "Sign out", signout_path, method: "delete" %></li>
              </ul>
            </li>
          <% else %>
{'fraction_non_alphanumeric': 0.19925925925925925, 'fraction_numerical': 0.0, 'mean_word_length': 2.065266742338252, 'pattern_counts': {'":': 0, '<': 191, '<?xml version=': 0, '>': 191, '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': '227630', 'n_tokens_mistral': 2497, 'n_tokens_neox': 1765, 'n_words': 340}