<commit_before><!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
    xmlns:s="http://jboss.com/products/seam/taglib"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:rich="http://richfaces.org/rich"
    xmlns:a4j="http://richfaces.org/a4j"
    xmlns:p4s="http://play4science.org/facelets">

    <div id="logo">
    	<ui:include src="logoMIT.xhtml" />
	</div>
	
	<div>
		<ul id="navMain">
			<s:fragment rendered="#{s:hasPermission('metropolitalia', 'view-admin-interface')}">
        		<li>
					<s:link view="/admin/index.xhtml" value="#{messages['admin.menu.index']}" propagation="none"/>
        		</li>
        	</s:fragment>
    		<li>
    			<s:link view="/recognize.xhtml" value="#{messages['menu.recognize']}" propagation="none" />
    		</li>
			<li>
        		<s:link view="/highscore.xhtml" value="#{messages['menu.highscore']}"/>
        	</li>
        	<s:fragment rendered="#{identity.loggedIn}">
				<li>
		        	<s:link view="/bets.xhtml" value="#{messages['menu.bets']}" propagation="none" includePageParams="false"/>
	        	</li>
        	</s:fragment>
    		<li>
    			<s:link view="/newstatement.xhtml" value="#{messages['menu.newstatement']}" propagation="none" rendered="#{mitCoins.canEnterStatement()}" />
    		</li>
        </ul>
    	<ul id="navSub">
    	<s:fragment rendered="#{!hideSubmenu}">
        	<li>
        		<a href="http://blog.metropolitalia.org"><h:outputText value="#{messages['menu.blog']}" /></a>
        	</li>
    	</s:fragment>
    	</ul>

		<s:fragment rendered="#{!hideSubmenu}">
		    <div id="search">  	
				<h:form>
					<h:inputText value="#{queryBean.queryString}" id="searchField" required="true" placeholder="#{messages['menu.search.placeholder']}" />
					<h:commandButton id="resourceSearch-submit"
					                   type="submit"
					                   action="#{mitSearchBean.search()}"
					                   value=" " >
						<s:defaultAction />
					</h:commandButton>
				</h:form>
			</div>
			<div class="clear" style="height:10px;"/>
			
			<rich:messages styleClass="messages" globalOnly="true"
		       	errorClass="errormsg" infoClass="infomsg" warnClass="warnmsg"
	    	   	rendered="#{showGlobalMessages != 'false'}"
	    	/>
		</s:fragment>
    	
    </div>
</ui:composition><commit_msg>metropolitalia menu fix<commit_after><!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
    xmlns:s="http://jboss.com/products/seam/taglib"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:rich="http://richfaces.org/rich"
    xmlns:a4j="http://richfaces.org/a4j"
    xmlns:p4s="http://play4science.org/facelets">

    <div id="logo">
    	<ui:include src="logoMIT.xhtml" />
	</div>
	
	<div>
		<s:fragment rendered="#{!hideSubmenu}">
			<ul id="navMain">
				<s:fragment rendered="#{s:hasPermission('metropolitalia', 'view-admin-interface')}">
	        		<li>
						<s:link view="/admin/index.xhtml" value="#{messages['admin.menu.index']}" propagation="none"/>
	        		</li>
	        	</s:fragment>
	    		<li>
	    			<s:link view="/recognize.xhtml" value="#{messages['menu.recognize']}" propagation="none" />
	    		</li>
				<li>
	        		<s:link view="/highscore.xhtml" value="#{messages['menu.highscore']}"/>
	        	</li>
	        	<s:fragment rendered="#{identity.loggedIn}">
					<li>
			        	<s:link view="/bets.xhtml" value="#{messages['menu.bets']}" propagation="none" includePageParams="false"/>
		        	</li>
	        	</s:fragment>
	    		<li>
	    			<s:link view="/newstatement.xhtml" value="#{messages['menu.newstatement']}" propagation="none" rendered="#{mitCoins.canEnterStatement()}" />
	    		</li>
	        </ul>
	    	<ul id="navSub">
	        	<li>
	        		<a href="http://blog.metropolitalia.org"><h:outputText value="#{messages['menu.blog']}" /></a>
	        	</li>
	    	</ul>

		    <div id="search">  	
				<h:form>
					<h:inputText value="#{queryBean.queryString}" id="searchField" required="true" placeholder="#{messages['menu.search.placeholder']}" />
					<h:commandButton id="resourceSearch-submit"
					                   type="submit"
					                   action="#{mitSearchBean.search()}"
					                   value=" " >
						<s:defaultAction />
					</h:commandButton>
				</h:form>
			</div>
			<div class="clear" style="height:10px;"/>
			
			<rich:messages styleClass="messages" globalOnly="true"
		       	errorClass="errormsg" infoClass="infomsg" warnClass="warnmsg"
	    	   	rendered="#{showGlobalMessages != 'false'}"
	    	/>
		</s:fragment>
    	
    </div>
</ui:composition>
{'fraction_non_alphanumeric': 0.2045728038507822, 'fraction_numerical': 0.00681909346169274, 'mean_word_length': 2.8097784568372806, 'pattern_counts': {'":': 0, '<': 101, '<?xml version=': 0, '>': 101, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, 'xml': 16}, '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': '3383650', 'n_tokens_mistral': 1975, 'n_tokens_neox': 1728, 'n_words': 216}