<commit_before>{% if not POWERSTRIP.nav_pills and POWERSTRIP.show_navbar %}
<!--
Set UserConfig::$powerStripShowNavbar to FALSE if you want to use your own navbar around power strip
You can also swith navbar to "pills" mode (no navbar) by setting UserConfig::$powerStripNavPills to TRUE
-->
<!-- Navnar -->
<nav class="navbar {% if POWERSTRIP.inverted_navbar %}navbar-inverse{% else %}navbar-default{% endif %}" role="navigation">
	<div class="container-fluid">
		<div class="navbar-header">
			<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
				<span class="sr-only">Toggle navigation</span>
				<span class="icon-bar"></span>
				<span class="icon-bar"></span>
				<span class="icon-bar"></span>
			</button>
			<a class="navbar-brand" href="{{ UserConfig.SITEROOTURL }}">
				{% if UserConfig.appIconURL %}
					<img class="startupapi-logo" width="20" height="20" hspace="5" src="{{ UserConfig.appIconURL }}"/>
				{% elseif UserConfig.appName %}
					{{UserConfig.appName}}
				{% else %}
					<img class="startupapi-logo" width="20" height="20" hspace="5" src="{{ UserConfig.USERSROOTURL }}/images/header_icon.png"/>
				{% endif %}
			</a>
		</div>
		<div id="navbar" class="navbar-collapse collapse">
			<!-- // app navigation
			<ul class="nav navbar-nav">
				<li><a href="#">Dashboard</a></li>
			</ul>
			-->
{% endif %}

<!-- Power Strip Start -->
<ul class="nav navbar-nav {% if POWERSTRIP.nav_pills %} nav-pills{% endif %}{% if POWERSTRIP.pull_right %} navbar-right{% endif %}">
	{% if UserConfig.DEVMODE %}
		<li class="dropdown">
			<a href="#" title="Change Bootstrap Theme" class="dropdown-toggle" data-toggle="dropdown">
				<span class="label label-warning">
					theme:
					<span id="startupapi-bootstrap-theme-switcher-current">
						{{ UserConfig.bootstrapTheme|default("default")}}
					</span>
				</span>
			</a>

			<ul class="dropdown-menu" role="menu" aria-labelledby="dLabel" id="startupapi-bootstrap-theme-switcher">
				<li {% if not UserConfig.bootstrapTheme %} class="active"{% endif %}>
					<a tabindex="-1" href="#" data-theme-swtich-to="default">Default</a>
				</li>
				<li role="presentation" class="divider"></li>
				<li role="presentation" class="dropdown-header">Bootswatch Themes</li>
				{% for theme in UserConfig.availableBootstrapThemes %}
					<li data-toggle="popover"
						data-trigger="hover"
						data-html="true"
						data-content="<img src='{{UserConfig.USERSROOTURL}}/bootswatch/{{ theme }}/thumbnail.png' style='width: 15em'/>"
						{% if UserConfig.bootstrapTheme == theme %} class="active"{% endif %}>
						<a tabindex="-1" href="#" data-theme-swtich-to="{{ theme }}">
							{{ theme }}
						</a>
					</li>
				{% endfor %}
			</ul>
			<script>
			(function() {
				var themes = {{UserConfig.availableBootstrapThemes|json_encode|raw}};
				themes.unshift('default');

				$('[data-toggle="popover"]').popover();

				var switchToTheme = function(theme_swtich_to) {
					var bootstrap_css_url = '{{UserConfig.USERSROOTURL}}/bootstrap3/css/bootstrap.min.css';

					if (theme_swtich_to !== 'default') {
						bootstrap_css_url = '{{UserConfig.USERSROOTURL}}/bootswatch/' + theme_swtich_to + '/bootstrap.min.css';
					}

					$('#startupapi-dev-theme-switcher').attr('href', bootstrap_css_url);

					$('#startupapi-bootstrap-theme-switcher-current').text(theme_swtich_to);

					$('#startupapi-bootstrap-theme-switcher li').each(function(num, el) {
						$(el).removeClass('active');
						if ($(el).find('a').data('theme-swtich-to') == theme_swtich_to) {
							$(el).addClass('active');
						}
					});

					// hoping to trigger repaint with a new CSS
					setTimeout(function() {
						$('body').height;
					}, 1000);
				};

				$('#startupapi-bootstrap-theme-switcher a').click(function(e) {
					var theme_swtich_to = $(this).data('theme-swtich-to');

					if (typeof(theme_swtich_to) !== 'undefined') {
						switchToTheme(theme_swtich_to);
					}

					$('#startupapi-bootstrap-theme-switcher').dropdown('toggle');

					return false;
				});

				$(document).keypress(function(event) {
					if (event.which == 63234 || event.which == 63235) {
						var current = $('#startupapi-bootstrap-theme-switcher-current').text().trim();

						var index = $.inArray(current, themes);

						// next
						if (event.which == 63235) {
							index++;

							if (index >= themes.length - 1) {
								index = 0;
							}
						}

						// prev
						if (event.which == 63234) {
							index--;
							if (index < 0) {
								index = themes.length - 1;
							}
						}

						switchToTheme(themes[index]);
						event.preventDefault();
					}
				});
			})();
			</script>
	{% endif %}

	{% if AUTH.current_user.is_logged_in %}
		{% if AUTH.current_user.is_admin %}
			<li><a id="startupapi-navbox-admin" href="{{ UserConfig.USERSROOTURL }}/admin/">Admin</a></li>
		{% endif %}

		{% if AUTH.accounts|length > 1 %}
			<li class="dropdown">
				<a href="#" title="Change account" class="dropdown-toggle" data-toggle="dropdown">
					{{ AUTH.current_account.name }}
					{% if AUTH.current_plan %}
						<span class="label label-default" style="margin-left: 0.5em" title="{{ AUTH.current_plan.description }}">
							{{ AUTH.current_plan.name }}
						</span>
					{% endif %}
					<b class="caret"></b>
				</a>
				<ul class="dropdown-menu" role="menu" aria-labelledby="dLabel" id="startupapi-account-switcher">
					{% for account in AUTH.accounts %}
						<li>
							<a tabindex="-1" href="#" data-account-swtich-to="{{ account.id }}">
								{{ account.name }}
								{% if account.plan %}
									<span class="label label-default" style="margin-left: 0.5em" title="{{ account.plan.description }}">
										{{ account.plan.name }}
									</span>
								{% else%}
									<span class="label label-warning" style="margin-left: 0.5em" title="No plan set for this account">
										NO PLAN
									</span>
								{% endif %}
							</a>
						</li>
					{% endfor %}
				</ul>
				<script>
					$('#startupapi-account-switcher a').click(function(e) {
						var account_swtich_to = $(this).data('account-swtich-to');

						{% if UserConfig.accountSwitchDestination %}
							var destination = {{ UserConfig.accountSwitchDestination|json_encode()|raw}};
						{% else %}
							var destination = document.location;
						{% endif %}

						if (typeof(account_swtich_to) !== 'undefined') {
							document.location.href = '{{ UserConfig.USERSROOTURL }}/change_account.php?return=' + encodeURIComponent(destination) + '&account=' + account_swtich_to;
						}

						return false;
					});
				</script>
			</li>
		{% endif %}

		{% for link in PAGE.extralinks %}
			<li{% if link.id %} id="{{ link.id }}"{% endif %}>
				<a href="{{ link.url }}"
					{% if link.title %}
						title="{{ link.title }}"
					{% endif %}
					{% if link.target %}
						target="{{ link.target }}"
					{% endif %}
				>{{ link.text }}</a>
			</li>
		{% endfor %}

		<li id="startupapi-navbox-username"><a href="{{ UserConfig.USERSROOTURL }}/edit.php" title="{{ AUTH.current_user.name }}'s user information">{{ AUTH.current_user.name }}</a></li>
		<li id="startupapi-navbox-logout"><a href="{{ UserConfig.USERSROOTURL }}/logout.php">Logout</a></li>
	{% else %}
		<li id="startupapi-navbox-signup"><a href="{{ UserConfig.USERSROOTURL }}/register.php">Sign Up</a></li>
		<li id="startupapi-navbox-login"><a href="{{ UserConfig.USERSROOTURL }}/login.php">Log in</a></li>
	{% endif %}

</ul>

{% if AUTH.current_user.is_logged_in and AUTH.current_user.is_impersonated %}
<form class="nav navbar-form {% if POWERSTRIP.nav_pills %} nav-pills{% endif %}{% if POWERSTRIP.pull_right %} navbar-right{% endif %}">
	<a class="btn btn-danger"
	   id="startupapi-navbox-impersonating"
	   href="{{ UserConfig.USERSROOTURL }}/admin/stopimpersonation.php"
	   title="Impersonated by {{AUTH.impersonator.name}}">
		Stop Impersonation
	</a>
</form>
{% endif %}
<!-- Power Strip End -->

{% if not POWERSTRIP.nav_pills and POWERSTRIP.show_navbar %}
		</div>
	</div>
</nav>
<!-- Navbar ends -->
{% endif %}<commit_msg>Trying to trigger reflow as hard as we can<commit_after>{% if not POWERSTRIP.nav_pills and POWERSTRIP.show_navbar %}
<!--
Set UserConfig::$powerStripShowNavbar to FALSE if you want to use your own navbar around power strip
You can also swith navbar to "pills" mode (no navbar) by setting UserConfig::$powerStripNavPills to TRUE
-->
<!-- Navnar -->
<nav class="navbar {% if POWERSTRIP.inverted_navbar %}navbar-inverse{% else %}navbar-default{% endif %}" role="navigation">
	<div class="container-fluid">
		<div class="navbar-header">
			<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
				<span class="sr-only">Toggle navigation</span>
				<span class="icon-bar"></span>
				<span class="icon-bar"></span>
				<span class="icon-bar"></span>
			</button>
			<a class="navbar-brand" href="{{ UserConfig.SITEROOTURL }}">
				{% if UserConfig.appIconURL %}
					<img class="startupapi-logo" width="20" height="20" hspace="5" src="{{ UserConfig.appIconURL }}"/>
				{% elseif UserConfig.appName %}
					{{UserConfig.appName}}
				{% else %}
					<img class="startupapi-logo" width="20" height="20" hspace="5" src="{{ UserConfig.USERSROOTURL }}/images/header_icon.png"/>
				{% endif %}
			</a>
		</div>
		<div id="navbar" class="navbar-collapse collapse">
			<!-- // app navigation
			<ul class="nav navbar-nav">
				<li><a href="#">Dashboard</a></li>
			</ul>
			-->
{% endif %}

<!-- Power Strip Start -->
<ul class="nav navbar-nav {% if POWERSTRIP.nav_pills %} nav-pills{% endif %}{% if POWERSTRIP.pull_right %} navbar-right{% endif %}">
	{% if UserConfig.DEVMODE %}
		<li class="dropdown">
			<a href="#" title="Change Bootstrap Theme" class="dropdown-toggle" data-toggle="dropdown">
				<span class="label label-warning">
					theme:
					<span id="startupapi-bootstrap-theme-switcher-current">
						{{ UserConfig.bootstrapTheme|default("default")}}
					</span>
				</span>
			</a>

			<ul class="dropdown-menu" role="menu" aria-labelledby="dLabel" id="startupapi-bootstrap-theme-switcher">
				<li {% if not UserConfig.bootstrapTheme %} class="active"{% endif %}>
					<a tabindex="-1" href="#" data-theme-swtich-to="default">Default</a>
				</li>
				<li role="presentation" class="divider"></li>
				<li role="presentation" class="dropdown-header">Bootswatch Themes</li>
				{% for theme in UserConfig.availableBootstrapThemes %}
					<li data-toggle="popover"
						data-trigger="hover"
						data-html="true"
						data-content="<img src='{{UserConfig.USERSROOTURL}}/bootswatch/{{ theme }}/thumbnail.png' style='width: 15em'/>"
						{% if UserConfig.bootstrapTheme == theme %} class="active"{% endif %}>
						<a tabindex="-1" href="#" data-theme-swtich-to="{{ theme }}">
							{{ theme }}
						</a>
					</li>
				{% endfor %}
			</ul>
			<script>
			(function() {
				var themes = {{UserConfig.availableBootstrapThemes|json_encode|raw}};
				themes.unshift('default');

				$('[data-toggle="popover"]').popover();

				var switchToTheme = function(theme_swtich_to) {
					var bootstrap_css_url = '{{UserConfig.USERSROOTURL}}/bootstrap3/css/bootstrap.min.css';

					if (theme_swtich_to !== 'default') {
						bootstrap_css_url = '{{UserConfig.USERSROOTURL}}/bootswatch/' + theme_swtich_to + '/bootstrap.min.css';
					}

					$('#startupapi-dev-theme-switcher').attr('href', bootstrap_css_url);

					$('#startupapi-bootstrap-theme-switcher-current').text(theme_swtich_to);

					$('#startupapi-bootstrap-theme-switcher li').each(function(num, el) {
						$(el).removeClass('active');
						if ($(el).find('a').data('theme-swtich-to') == theme_swtich_to) {
							$(el).addClass('active');
						}
					});

					// hoping to trigger repaint with a new CSS
					setTimeout(function() {
						$('footer').height;
						$('footer').width;
					}, 1000);
				};

				$('#startupapi-bootstrap-theme-switcher a').click(function(e) {
					var theme_swtich_to = $(this).data('theme-swtich-to');

					if (typeof(theme_swtich_to) !== 'undefined') {
						switchToTheme(theme_swtich_to);
					}

					$('#startupapi-bootstrap-theme-switcher').dropdown('toggle');

					return false;
				});

				$(document).keypress(function(event) {
					if (event.which == 63234 || event.which == 63235) {
						var current = $('#startupapi-bootstrap-theme-switcher-current').text().trim();

						var index = $.inArray(current, themes);

						// next
						if (event.which == 63235) {
							index++;

							if (index >= themes.length - 1) {
								index = 0;
							}
						}

						// prev
						if (event.which == 63234) {
							index--;
							if (index < 0) {
								index = themes.length - 1;
							}
						}

						switchToTheme(themes[index]);
						event.preventDefault();
					}
				});
			})();
			</script>
	{% endif %}

	{% if AUTH.current_user.is_logged_in %}
		{% if AUTH.current_user.is_admin %}
			<li><a id="startupapi-navbox-admin" href="{{ UserConfig.USERSROOTURL }}/admin/">Admin</a></li>
		{% endif %}

		{% if AUTH.accounts|length > 1 %}
			<li class="dropdown">
				<a href="#" title="Change account" class="dropdown-toggle" data-toggle="dropdown">
					{{ AUTH.current_account.name }}
					{% if AUTH.current_plan %}
						<span class="label label-default" style="margin-left: 0.5em" title="{{ AUTH.current_plan.description }}">
							{{ AUTH.current_plan.name }}
						</span>
					{% endif %}
					<b class="caret"></b>
				</a>
				<ul class="dropdown-menu" role="menu" aria-labelledby="dLabel" id="startupapi-account-switcher">
					{% for account in AUTH.accounts %}
						<li>
							<a tabindex="-1" href="#" data-account-swtich-to="{{ account.id }}">
								{{ account.name }}
								{% if account.plan %}
									<span class="label label-default" style="margin-left: 0.5em" title="{{ account.plan.description }}">
										{{ account.plan.name }}
									</span>
								{% else%}
									<span class="label label-warning" style="margin-left: 0.5em" title="No plan set for this account">
										NO PLAN
									</span>
								{% endif %}
							</a>
						</li>
					{% endfor %}
				</ul>
				<script>
					$('#startupapi-account-switcher a').click(function(e) {
						var account_swtich_to = $(this).data('account-swtich-to');

						{% if UserConfig.accountSwitchDestination %}
							var destination = {{ UserConfig.accountSwitchDestination|json_encode()|raw}};
						{% else %}
							var destination = document.location;
						{% endif %}

						if (typeof(account_swtich_to) !== 'undefined') {
							document.location.href = '{{ UserConfig.USERSROOTURL }}/change_account.php?return=' + encodeURIComponent(destination) + '&account=' + account_swtich_to;
						}

						return false;
					});
				</script>
			</li>
		{% endif %}

		{% for link in PAGE.extralinks %}
			<li{% if link.id %} id="{{ link.id }}"{% endif %}>
				<a href="{{ link.url }}"
					{% if link.title %}
						title="{{ link.title }}"
					{% endif %}
					{% if link.target %}
						target="{{ link.target }}"
					{% endif %}
				>{{ link.text }}</a>
			</li>
		{% endfor %}

		<li id="startupapi-navbox-username"><a href="{{ UserConfig.USERSROOTURL }}/edit.php" title="{{ AUTH.current_user.name }}'s user information">{{ AUTH.current_user.name }}</a></li>
		<li id="startupapi-navbox-logout"><a href="{{ UserConfig.USERSROOTURL }}/logout.php">Logout</a></li>
	{% else %}
		<li id="startupapi-navbox-signup"><a href="{{ UserConfig.USERSROOTURL }}/register.php">Sign Up</a></li>
		<li id="startupapi-navbox-login"><a href="{{ UserConfig.USERSROOTURL }}/login.php">Log in</a></li>
	{% endif %}

</ul>

{% if AUTH.current_user.is_logged_in and AUTH.current_user.is_impersonated %}
<form class="nav navbar-form {% if POWERSTRIP.nav_pills %} nav-pills{% endif %}{% if POWERSTRIP.pull_right %} navbar-right{% endif %}">
	<a class="btn btn-danger"
	   id="startupapi-navbox-impersonating"
	   href="{{ UserConfig.USERSROOTURL }}/admin/stopimpersonation.php"
	   title="Impersonated by {{AUTH.impersonator.name}}">
		Stop Impersonation
	</a>
</form>
{% endif %}
<!-- Power Strip End -->

{% if not POWERSTRIP.nav_pills and POWERSTRIP.show_navbar %}
		</div>
	</div>
</nav>
<!-- Navbar ends -->
{% endif %}
{'fraction_non_alphanumeric': 0.19246274126557536, 'fraction_numerical': 0.0062301490349376985, 'mean_word_length': 3.2406112406112406, 'pattern_counts': {'":': 0, '<': 221, '<?xml version=': 0, '>': 223, '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': '5822973', 'n_tokens_mistral': 7100, 'n_tokens_neox': 5408, 'n_words': 1021}