<commit_before><#include "/lib/common.html" >
<#include "/lib/security.html" >

<#macro layout_title page title="">
	<#if title == "">
		<@lh key = page />
	<#else>
		${title?html}
	</#if>
</#macro>

<#macro layout_root page style=false script=false scripts=[] modules=[] title="">
	<!DOCTYPE html>
	<html lang="${locSelected()}">
		<head>
			<base href="${baseURL}/" />
			<#assign base = "resources/v" + loc('app.version') />
			<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
			<link href="${base}/bootstrap/css/bootstrap.min.css" rel="stylesheet" media="screen" />			
			<link rel="stylesheet" type="text/css" href="${base}/jquery/ui/css/smoothness/jquery-ui-1.9.2.custom.min.css" />
			<style>
				body {
					padding-top: 40px;
				}
			</style>
			<link href="${base}/css/general.css" rel="stylesheet" />
			<#if style>
				<link rel="stylesheet" type="text/css" href="${base}/css/${page}.css" />
			</#if>

            <script src="${base}/jquery/jquery-1.9.0.min.js" type="text/javascript"></script>
            <script src="${base}/jquery/jquery.mustache.js" type="text/javascript"></script>
			<script src="${base}/jquery/ui/js/jquery-ui-1.9.2.custom.min.js" type="text/javascript"></script>
			<script src="${base}/bootstrap/js/bootstrap.min.js" type="text/javascript"></script>
			<script src="${base}/js/application.js" type="text/javascript"></script>	
			<script src="${base}/js/template.js" type="text/javascript"></script>	
			<script src="localization/${locSelected()}/<@lh key='app.version'/>" type="text/javascript"></script>
			
			<#list modules as module>
				<!-- Module: ${module} -->
				<#include "/lib/" + module + ".html" >
			</#list>
			
			<#if script>
				<script src="${base}/js/${page}.js" type="text/javascript"></script>
			</#if>
			
			<#list scripts as scriptfile>
				<script src="${base}/js/${scriptfile}.js" type="text/javascript"></script>
			</#list>
			
			<title><@lh key="app.title"/> - <@lh key="app.version" /> - <@layout_title page=page title=title /></title>
	    </head>
		<body><commit_msg>Puts the page title before the application title in the browser title<commit_after><#include "/lib/common.html" >
<#include "/lib/security.html" >

<#macro layout_title page title="">
	<#if title == "">
		<@lh key = page />
	<#else>
		${title?html}
	</#if>
</#macro>

<#macro layout_root page style=false script=false scripts=[] modules=[] title="">
	<!DOCTYPE html>
	<html lang="${locSelected()}">
		<head>
			<base href="${baseURL}/" />
			<#assign base = "resources/v" + loc('app.version') />
			<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
			<link href="${base}/bootstrap/css/bootstrap.min.css" rel="stylesheet" media="screen" />			
			<link rel="stylesheet" type="text/css" href="${base}/jquery/ui/css/smoothness/jquery-ui-1.9.2.custom.min.css" />
			<style>
				body {
					padding-top: 40px;
				}
			</style>
			<link href="${base}/css/general.css" rel="stylesheet" />
			<#if style>
				<link rel="stylesheet" type="text/css" href="${base}/css/${page}.css" />
			</#if>

            <script src="${base}/jquery/jquery-1.9.0.min.js" type="text/javascript"></script>
            <script src="${base}/jquery/jquery.mustache.js" type="text/javascript"></script>
			<script src="${base}/jquery/ui/js/jquery-ui-1.9.2.custom.min.js" type="text/javascript"></script>
			<script src="${base}/bootstrap/js/bootstrap.min.js" type="text/javascript"></script>
			<script src="${base}/js/application.js" type="text/javascript"></script>	
			<script src="${base}/js/template.js" type="text/javascript"></script>	
			<script src="localization/${locSelected()}/<@lh key='app.version'/>" type="text/javascript"></script>
			
			<#list modules as module>
				<!-- Module: ${module} -->
				<#include "/lib/" + module + ".html" >
			</#list>
			
			<#if script>
				<script src="${base}/js/${page}.js" type="text/javascript"></script>
			</#if>
			
			<#list scripts as scriptfile>
				<script src="${base}/js/${scriptfile}.js" type="text/javascript"></script>
			</#list>
			
			<title><@layout_title page=page title=title /> - <@lh key="app.title"/> - <@lh key="app.version" /></title>
	    </head>
		<body>
{'fraction_non_alphanumeric': 0.23473282442748092, 'fraction_numerical': 0.0057251908396946565, 'mean_word_length': 3.7006726457399104, 'pattern_counts': {'":': 0, '<': 117, '<?xml version=': 0, '>': 117, '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': '1690072', 'n_tokens_mistral': 1626, 'n_tokens_neox': 1431, 'n_words': 250}