<commit_before><nav class="navbar navbar-toggleable-md fixed-top navbar-inverse bg-primary">
  <button class="navbar-toggler navbar-toggler-right" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
    <span class="navbar-toggler-icon"></span>
  </button>
  <div class="container">
   <a class="navbar-brand" href="/">{$SITE_NAME}</a>
    <div class="collapse navbar-collapse" id="navbarSupportedContent">
	  <ul class="navbar-nav mr-auto">
 	    {foreach from=$NAV_LINKS key=name item=item}
		  {if isset($item.items)}
		    {* Dropdown *}
			<li class="nav-item dropdown">
			  <a class="nav-link dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false">{$item.title}</a>
			    <div class="dropdown-menu">
				  {foreach from=$item.items item=dropdown}
				    <a class="dropdown-item" href="{$dropdown.link}" target="{$dropdown.target}">{$dropdown.title}</a>
				  {/foreach}
				</div>
			  </a>
			</li>
		  {else}
		    {* Normal link *}
			<li class="nav-item{if isset($item.active)} active{/if}">
			  <a class="nav-link{if isset($item.active)} white-text{/if}" href="{$item.link}" target="{$item.target}">{$item.title}</a></li>
		  {/if}
		{/foreach}
	  </ul>
	
	  <ul class="nav navbar-nav">
	    {if isset($MESSAGING_LINK)}
	    {* Private messages and alerts *}
		<li class="nav-item dropdown pm-dropdown">
		  <a href="#" class="nav-link dropdown-toggle no-caret" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"><span style="margin: -10px 0px; font-size: 16px;"><i class="fa fa-envelope"></i> <div style="display: inline;" id="pms"></div></span></a>
		  <div class="dropdown-menu pm-dropdown-menu">
		    <div id="pm_dropdown">{$LOADING}</div>
			<div class="dropdown-divider"></div>
			<a class="dropdown-item" href="{$MESSAGING_LINK}">{$VIEW_MESSAGES}</a>
		  </div>
		</li>
		
		<li class="nav-item dropdown alert-dropdown">
		  <a href="#" class="nav-link dropdown-toggle no-caret" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"><span style="margin: -10px 0px; font-size: 16px;"><i class="fa fa-flag"></i> <div style="display: inline;" id="alerts"></div></span></a>
		  <div class="dropdown-menu alert-dropdown-menu">
		    <div id="alert_dropdown">{$LOADING}</div>
		    <div class="dropdown-divider"></div>
			<a class="dropdown-item" href="{$ALERTS_LINK}">{$VIEW_ALERTS}</a>
		  </div>
		</li>
		{/if}
	  
		{foreach from=$USER_AREA key=name item=item}
		  {if isset($item.items)}
			{* Dropdown *}
			<li class="nav-item dropdown">
			  <a class="nav-link dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false">{$item.title}</a>
			  <div class="dropdown-menu">
				{foreach from=$item.items item=dropdown}
				  {if isset($dropdown.separator)}
				    <div class="dropdown-divider"></div>
				  {else}
				    <a class="dropdown-item" href="{$dropdown.link}" target="{$dropdown.target}">{$dropdown.title}</a>
				  {/if}
				{/foreach}
			  </div>
			</li>
		  {else}
			{* Normal link *}
			<li class="nav-item{if isset($item.active)} active{/if}" style="padding-right:10px;">
			  <a class="nav-link" href="{$item.link}" target="{$item.target}">{$item.title}</a>
			</li>
		  {/if}
		{/foreach}
	  </ul>
    </div>
  </div>
</nav>

<div class="container" style="padding-top: 5rem;">
  {* Global messages *}
  {if isset($MAINTENANCE_ENABLED)}
  <div class="alert alert-danger alert-dismissible" role="alert">
	  <button type="button" class="close" data-dismiss="alert" aria-label="Close"><commit_msg>Fix potential overflow in user dropdown<commit_after><nav class="navbar navbar-toggleable-md fixed-top navbar-inverse bg-primary">
  <button class="navbar-toggler navbar-toggler-right" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
    <span class="navbar-toggler-icon"></span>
  </button>
  <div class="container">
   <a class="navbar-brand" href="/">{$SITE_NAME}</a>
    <div class="collapse navbar-collapse" id="navbarSupportedContent">
	  <ul class="navbar-nav mr-auto">
 	    {foreach from=$NAV_LINKS key=name item=item}
		  {if isset($item.items)}
		    {* Dropdown *}
			<li class="nav-item dropdown">
			  <a class="nav-link dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false">{$item.title}</a>
			    <div class="dropdown-menu">
				  {foreach from=$item.items item=dropdown}
				    <a class="dropdown-item" href="{$dropdown.link}" target="{$dropdown.target}">{$dropdown.title}</a>
				  {/foreach}
				</div>
			  </a>
			</li>
		  {else}
		    {* Normal link *}
			<li class="nav-item{if isset($item.active)} active{/if}">
			  <a class="nav-link{if isset($item.active)} white-text{/if}" href="{$item.link}" target="{$item.target}">{$item.title}</a></li>
		  {/if}
		{/foreach}
	  </ul>
	
	  <ul class="nav navbar-nav">
	    {if isset($MESSAGING_LINK)}
	    {* Private messages and alerts *}
		<li class="nav-item dropdown pm-dropdown">
		  <a href="#" class="nav-link dropdown-toggle no-caret" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"><span style="margin: -10px 0px; font-size: 16px;"><i class="fa fa-envelope"></i> <div style="display: inline;" id="pms"></div></span></a>
		  <div class="dropdown-menu pm-dropdown-menu">
		    <div id="pm_dropdown">{$LOADING}</div>
			<div class="dropdown-divider"></div>
			<a class="dropdown-item" href="{$MESSAGING_LINK}">{$VIEW_MESSAGES}</a>
		  </div>
		</li>
		
		<li class="nav-item dropdown alert-dropdown">
		  <a href="#" class="nav-link dropdown-toggle no-caret" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"><span style="margin: -10px 0px; font-size: 16px;"><i class="fa fa-flag"></i> <div style="display: inline;" id="alerts"></div></span></a>
		  <div class="dropdown-menu alert-dropdown-menu">
		    <div id="alert_dropdown">{$LOADING}</div>
		    <div class="dropdown-divider"></div>
			<a class="dropdown-item" href="{$ALERTS_LINK}">{$VIEW_ALERTS}</a>
		  </div>
		</li>
		{/if}
	  
		{foreach from=$USER_AREA key=name item=item}
		  {if isset($item.items)}
			{* Dropdown *}
			<li class="nav-item dropdown">
			  <a class="nav-link dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false">{$item.title}</a>
			  <div class="dropdown-menu dropdown-menu-right">
				{foreach from=$item.items item=dropdown}
				  {if isset($dropdown.separator)}
				    <div class="dropdown-divider"></div>
				  {else}
				    <a class="dropdown-item" href="{$dropdown.link}" target="{$dropdown.target}">{$dropdown.title}</a>
				  {/if}
				{/foreach}
			  </div>
			</li>
		  {else}
			{* Normal link *}
			<li class="nav-item{if isset($item.active)} active{/if}" style="padding-right:10px;">
			  <a class="nav-link" href="{$item.link}" target="{$item.target}">{$item.title}</a>
			</li>
		  {/if}
		{/foreach}
	  </ul>
    </div>
  </div>
</nav>

<div class="container" style="padding-top: 5rem;">
  {* Global messages *}
  {if isset($MAINTENANCE_ENABLED)}
  <div class="alert alert-danger alert-dismissible" role="alert">
	  <button type="button" class="close" data-dismiss="alert" aria-label="Close">
{'fraction_non_alphanumeric': 0.21024403325288282, 'fraction_numerical': 0.0034861893268972916, 'mean_word_length': 4.249120337790289, 'pattern_counts': {'":': 0, '<': 167, '<?xml version=': 0, '>': 167, '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': '911219', 'n_tokens_mistral': 2882, 'n_tokens_neox': 2555, 'n_words': 471}