<commit_before>{# base template #}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
	<head>
		<meta name="viewport" content="width=device-width, initial-scale=1.0"></meta>
		<title>{% block title %}{% if config.DEBUG %}[DEV] {% endif %}Mix-Mind BETA{% endblock %}</title>
		<!-- load jQuery -->
		<script src="https://code.jquery.com/jquery-3.3.1.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script>
		<!-- third-party stylesheets -->
		<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="<KEY>" crossorigin="anonymous"></link>
		<link rel="stylesheet" href="https://cdn.datatables.net/1.10.19/css/dataTables.bootstrap4.min.css" crossorigin="anonymous"></link>
		<link href="https://gitcdn.github.io/bootstrap-toggle/2.2.2/css/bootstrap-toggle.min.css" rel="stylesheet"></link>
		<link rel="stylesheet" href="/static/css/custom.css"></link>
		<!-- favicons -->
		<link rel="apple-touch-icon" sizes="180x180" href="/static/icons_outline/apple-touch-icon.png">
		<link rel="icon" type="image/png" sizes="32x32" href="/static/icons_outline/favicon-32x32.png">
		<link rel="icon" type="image/png" sizes="16x16" href="/static/icons_outline/favicon-16x16.png">
		<link rel="manifest" href="/static/icons_outline/site.webmanifest">
		<link rel="mask-icon" href="/static/icons_outline/safari-pinned-tab.svg" color="#5bbad5">
		<link rel="shortcut icon" href="/static/icons_outline/favicon.ico">
		<meta name="msapplication-TileColor" content="#da532c"></meta>
		<meta name="msapplication-config" content="/static/icons_outline/browserconfig.xml"></meta>
		<meta name="theme-color" content="#ffffff"></meta>
	</head>

	<body>
		<!-- navbar is shown at the top of every page -->
		{% block navbar %}
		<nav class="navbar navbar-expand-sm navbar-light bg-light p-0">
			{% block navbar_layout %}
			<div class="container-fluid pl-0">
			{% endblock navbar_layout %}
				<a class="navbar-brand btn py-0" href="/">
					<img src="/static/icons_outline/favicon.ico" style="margin-top:-10px" width="34" height="34" alt="">
					<span class="text" style="font-size: 30px;">{{ g.current_bar.name }}</span>
				</a>

				{# everything after this is in the toggler on xs #}
				<button class="navbar-toggler mr-2" type="button" data-toggle="collapse" data-target="#navbarToggler" aria-controls="navbarToggler" aria-expanded="false" aria-label="Toggle navigation">
					<span class="navbar-toggler-icon"></span>
				</button>
				<div class="collapse navbar-collapse navbar-nav " id="navbarToggler">

					<span class="navbar-text ml-sm-auto"></span>{# dummy element for alignment #}
					{% if current_user.is_authenticated %}
					<a class="nav-item nav-link" href={{ url_for('user_profile', user_id=current_user.id) }}>
						{{ current_user.get_name(short=True) }}</a>

						{% if current_user.has_role('admin') %}
						<div class="nav-item dropdown">
							<a class="nav-link dropdown-toggle" href="#" id="adminDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Admin</a>
							<div class="dropdown-menu" aria-labelledby="adminDropdown">
								<a class="dropdown-item" href="{{ url_for('admin_dashboard') }}">Dashboard</a>
								<div class="dropdown-divider"></div>
								<a class="dropdown-item" href="{{ url_for('menu_generator') }}">Menu Generator</a>
								<a class="dropdown-item" href="{{ url_for('recipe_library') }}">Recipe Library</a>
								<a class="dropdown-item" href="{{ url_for('ingredient_stock') }}">Ingredient Stock</a>
							</div>
						</div><!-- admin dropdown -->
						{% endif %}

						<a class="nav-item nav-link" href="/logout">Log out</a>
					{% endif %}

					{% block extra_navitems %}
						{% if not current_user.is_authenticated %}
						<a class="nav-item nav-link" href={{ url_for('security.login') }}>Log in</a>
						<a class="nav-item nav-link" href={{ url_for('security.register') }}>Register</a>
						{% endif %}
					{% endblock extra_navitems %}

				</div>{# navbar-toggle #}
			</div>{# overridable navbar_layout #}
		</nav>
		{% endblock navbar %}

		{% block body %}
		{% endblock body %}

		<div class="footer pb-3">
			{% block footer %}
			{% endblock footer %}
		</div>

		<!-- rest of the javascript  -->
		<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" integrity="<KEY>" crossorigin="anonymous"></script>
		<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js" integrity="<KEY>" crossorigin="anonymous"></script>
		<script src="https://gitcdn.github.io/bootstrap-toggle/2.2.2/js/bootstrap-toggle.min.js"></script>
	 	<script src="https://cdn.datatables.net/1.10.19/js/jquery.dataTables.min.js" crossorigin="anonymous"></script>
	 	<script src="https://cdn.datatables.net/1.10.19/js/dataTables.bootstrap4.min.js" crossorigin="anonymous"></script>

	</body>
</html>
<commit_msg>Coment<commit_after>{# base template #}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
	<head>
		<meta name="viewport" content="width=device-width, initial-scale=1.0"></meta>
		<title>{% block title %}{% if config.DEBUG %}[DEV] {% endif %}Mix-Mind BETA{% endblock %}</title>
		<!-- load jQuery -->
		<script src="https://code.jquery.com/jquery-3.3.1.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script>
		<!-- stylesheets -->
		<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="<KEY>" crossorigin="anonymous"></link>
		<link rel="stylesheet" href="https://cdn.datatables.net/1.10.19/css/dataTables.bootstrap4.min.css" crossorigin="anonymous"></link>
		<link href="https://gitcdn.github.io/bootstrap-toggle/2.2.2/css/bootstrap-toggle.min.css" rel="stylesheet"></link>
		<link rel="stylesheet" href="/static/css/custom.css"></link>
		<!-- favicons -->
		<link rel="apple-touch-icon" sizes="180x180" href="/static/icons_outline/apple-touch-icon.png">
		<link rel="icon" type="image/png" sizes="32x32" href="/static/icons_outline/favicon-32x32.png">
		<link rel="icon" type="image/png" sizes="16x16" href="/static/icons_outline/favicon-16x16.png">
		<link rel="manifest" href="/static/icons_outline/site.webmanifest">
		<link rel="mask-icon" href="/static/icons_outline/safari-pinned-tab.svg" color="#5bbad5">
		<link rel="shortcut icon" href="/static/icons_outline/favicon.ico">
		<meta name="msapplication-TileColor" content="#da532c"></meta>
		<meta name="msapplication-config" content="/static/icons_outline/browserconfig.xml"></meta>
		<meta name="theme-color" content="#ffffff"></meta>
	</head>

	<body>
		<!-- navbar is shown at the top of every page -->
		{% block navbar %}
		<nav class="navbar navbar-expand-sm navbar-light bg-light p-0">
			{% block navbar_layout %}
			<div class="container-fluid pl-0">
			{% endblock navbar_layout %}
				<a class="navbar-brand btn py-0" href="/">
					<img src="/static/icons_outline/favicon.ico" style="margin-top:-10px" width="34" height="34" alt="">
					<span class="text" style="font-size: 30px;">{{ g.current_bar.name }}</span>
				</a>

				{# everything after this is in the toggler on xs #}
				<button class="navbar-toggler mr-2" type="button" data-toggle="collapse" data-target="#navbarToggler" aria-controls="navbarToggler" aria-expanded="false" aria-label="Toggle navigation">
					<span class="navbar-toggler-icon"></span>
				</button>
				<div class="collapse navbar-collapse navbar-nav " id="navbarToggler">

					<span class="navbar-text ml-sm-auto"></span>{# dummy element for alignment #}
					{% if current_user.is_authenticated %}
					<a class="nav-item nav-link" href={{ url_for('user_profile', user_id=current_user.id) }}>
						{{ current_user.get_name(short=True) }}</a>

						{% if current_user.has_role('admin') %}
						<div class="nav-item dropdown">
							<a class="nav-link dropdown-toggle" href="#" id="adminDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Admin</a>
							<div class="dropdown-menu" aria-labelledby="adminDropdown">
								<a class="dropdown-item" href="{{ url_for('admin_dashboard') }}">Dashboard</a>
								<div class="dropdown-divider"></div>
								<a class="dropdown-item" href="{{ url_for('menu_generator') }}">Menu Generator</a>
								<a class="dropdown-item" href="{{ url_for('recipe_library') }}">Recipe Library</a>
								<a class="dropdown-item" href="{{ url_for('ingredient_stock') }}">Ingredient Stock</a>
							</div>
						</div><!-- admin dropdown -->
						{% endif %}

						<a class="nav-item nav-link" href="/logout">Log out</a>
					{% endif %}

					{% block extra_navitems %}
						{% if not current_user.is_authenticated %}
						<a class="nav-item nav-link" href={{ url_for('security.login') }}>Log in</a>
						<a class="nav-item nav-link" href={{ url_for('security.register') }}>Register</a>
						{% endif %}
					{% endblock extra_navitems %}

				</div>{# navbar-toggle #}
			</div>{# overridable navbar_layout #}
		</nav>
		{% endblock navbar %}

		{% block body %}
		{% endblock body %}

		<div class="footer pb-3">
			{% block footer %}
			{% endblock footer %}
		</div>

		<!-- rest of the javascript  -->
		<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" integrity="<KEY>" crossorigin="anonymous"></script>
		<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js" integrity="<KEY>" crossorigin="anonymous"></script>
		<script src="https://gitcdn.github.io/bootstrap-toggle/2.2.2/js/bootstrap-toggle.min.js"></script>
	 	<script src="https://cdn.datatables.net/1.10.19/js/jquery.dataTables.min.js" crossorigin="anonymous"></script>
	 	<script src="https://cdn.datatables.net/1.10.19/js/dataTables.bootstrap4.min.js" crossorigin="anonymous"></script>

	</body>
</html>

{'fraction_non_alphanumeric': 0.20151560474623592, 'fraction_numerical': 0.01854621597367634, 'mean_word_length': 4.254059717129387, 'pattern_counts': {'":': 0, '<': 193, '<?xml version=': 0, '>': 193, 'https://': 18, 'lorem ipsum': 0, 'www.': 2, 'xml': 2}, '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': '745758', 'n_tokens_mistral': 4099, 'n_tokens_neox': 3432, 'n_words': 579}