<commit_before><div class="container-fluid">
	<%= form_tag({}, {method: 'get'}) do %>
		<%= collection_select(:site, :id, Odania::Site.order('name ASC'), :id, :name, selected: session[:site_id]) %>
		<%= submit_tag 'Select' %>
	<% end %>
	<br/>
	<%= form_tag(select_odania_menu_admin_odania_menus_path(return_to: request.path)) do %>
		<%= collection_select(:menu, :id, Odania::Menu.order('title ASC'), :id, :title, selected: @odania_menu.id) %>
		<%= submit_tag 'Select' %>
	<% end %>
	<br/>
	<%= content_for?(:admin_selection) ? yield(:admin_selection) : '' %>

	<div class="nav-collapse">
		<ul class="nav nav-list">
			<% Odania.admin.admin_pages.each do |admin_page| %>
				<li><%= link_to admin_page[:name], admin_page[:path] %></li>
			<% end %>
		</ul>
	</div>
</div>
<commit_msg>Fixed selected if no menu available<commit_after><div class="container-fluid">
	<%= form_tag({}, {method: 'get'}) do %>
		<%= collection_select(:site, :id, Odania::Site.order('name ASC'), :id, :name, selected: session[:site_id]) %>
		<%= submit_tag 'Select' %>
	<% end %>
	<br/>
	<%= form_tag(select_odania_menu_admin_odania_menus_path(return_to: request.path)) do %>
		<%= collection_select(:menu, :id, Odania::Menu.order('title ASC'), :id, :title, selected: (@odania_menu.nil? ? nil : @odania_menu.id)) %>
		<%= submit_tag 'Select' %>
	<% end %>
	<br/>
	<%= content_for?(:admin_selection) ? yield(:admin_selection) : '' %>

	<div class="nav-collapse">
		<ul class="nav nav-list">
			<% Odania.admin.admin_pages.each do |admin_page| %>
				<li><%= link_to admin_page[:name], admin_page[:path] %></li>
			<% end %>
		</ul>
	</div>
</div>

{'fraction_non_alphanumeric': 0.22939729397293973, 'fraction_numerical': 0.0, 'mean_word_length': 5.233716475095785, 'pattern_counts': {'":': 0, '<': 47, '<?xml version=': 0, '>': 47, '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': '6709810', 'n_tokens_mistral': 691, 'n_tokens_neox': 610, 'n_words': 111}