<commit_before><li class="nav-item dropdown <%= get_nav_link_class('reports') %>">
	<%= link_to reports_path, :class => "dropdown-toggle", :data => {"toggle" => "dropdown"} do %>
		<i class="fa fa-bar-chart-o fa-2x"></i><br/><span>Reports</span>
		<b class="caret"></b>
	<% end %>
	<ul class="dropdown-menu multi-level" role="menu">
		<li class="text-left">												
			<%= link_to reports_path  do %>
				<i class="fa fa-bar-chart-o fa-fw"></i> All			
			<% end %>
		</li>
		<li class="divider"></li>			
		<% ReportType.all.includes(:reports).each do | rt | %>
			<% if rt.reports.count > 0 %>
				<li class="text-left dropdown-submenu">												
					<%= link_to reports_path(:report_type => rt.id)  do %>
						<i class="<%= rt.display_icon_name %> fa-fw"></i> <%= rt.name.pluralize(2) %>								
					<% end %>
					<ul class="dropdown-menu">
						<% rt.reports.each do |report| %>
							<% if current_user.is_in_roles? report.role_names %>
								<li class="text-left">												
									<%= link_to report_path(report)  do %>
										<i class="<%= report.report_type.display_icon_name %> fa-fw"></i> <%= report.name %>								
									<% end %>
								</li>
							<% end %>
						<% end %>
					</ul>
				</li>
			<% end %>
		<% end %>
	</ul>				
</li>
<commit_msg>Only show reports in the nav that are marked for showing in the nav<commit_after><li class="nav-item dropdown <%= get_nav_link_class('reports') %>">
	<%= link_to reports_path, :class => "dropdown-toggle", :data => {"toggle" => "dropdown"} do %>
		<i class="fa fa-bar-chart-o fa-2x"></i><br/><span>Reports</span>
		<b class="caret"></b>
	<% end %>
	<ul class="dropdown-menu multi-level" role="menu">
		<li class="text-left">
			<%= link_to reports_path  do %>
				<i class="fa fa-bar-chart-o fa-fw"></i> All
			<% end %>
		</li>
		<li class="divider"></li>
		<% ReportType.all.includes(:reports).each do | rt | %>
			<% if rt.reports.count > 0 %>
				<li class="text-left dropdown-submenu">
					<%= link_to reports_path(:report_type => rt.id)  do %>
						<i class="<%= rt.display_icon_name %> fa-fw"></i> <%= rt.name.pluralize(2) %>
					<% end %>
					<ul class="dropdown-menu">
						<% rt.reports.active.each do |report| %>
							<% if current_user.is_in_roles? report.role_names %>
								<li class="text-left">
									<%= link_to report_path(report)  do %>
										<i class="<%= report.report_type.display_icon_name %> fa-fw"></i> <%= report.name %>
									<% end %>
								</li>
							<% end %>
						<% end %>
					</ul>
				</li>
			<% end %>
		<% end %>
	</ul>
</li>
{'fraction_non_alphanumeric': 0.21639471639471639, 'fraction_numerical': 0.002331002331002331, 'mean_word_length': 2.586350974930362, 'pattern_counts': {'":': 0, '<': 99, '<?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': '5092862', 'n_tokens_mistral': 1281, 'n_tokens_neox': 913, 'n_words': 181}