<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 extension=false style=false noscript=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" />
            <link rel="icon"
                  type="image/png"
                  href="${base}/images/logo.png">
			<style>
				body {
					padding-top: 40px;
				}
			</style>
			<link href="${base}/css/general.css" rel="stylesheet" />
			<#if style>
                <#if extension>
                    <link rel="stylesheet" type="text/css" href="extension/${page}.css" />
                <#else>
				    <link rel="stylesheet" type="text/css" href="${base}/css/${page}.css" />
                </#if>
			</#if>

            <script src="${base}/js/require.js" data-main="${base}/js/boot" type="text/javascript"></script>

            <!-- Loading the page specific script -->
            <#if noscript>
                <script type="text/javascript">
                    require(['boot']);
                </script>
            <#else>
                <#if extension>
                    <script type="text/javascript">
                        require(['boot'], function (main) {
                            require(['extension/${page}']);
                        });
                    </script>
                <#else>
                    <script type="text/javascript">
                        require(['boot'], function (main) {
                            require(['app/${page}']);
                        });
                    </script>
                </#if>
            </#if>
<commit_msg>requirejs: versioning for the configuration<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 extension=false style=false noscript=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" />
            <link rel="icon"
                  type="image/png"
                  href="${base}/images/logo.png">
			<style>
				body {
					padding-top: 40px;
				}
			</style>
			<link href="${base}/css/general.css" rel="stylesheet" />
			<#if style>
                <#if extension>
                    <link rel="stylesheet" type="text/css" href="extension/${page}.css" />
                <#else>
				    <link rel="stylesheet" type="text/css" href="${base}/css/${page}.css" />
                </#if>
			</#if>

            <script src="${base}/js/require.js" type="text/javascript"></script>

            <!-- Loading the page specific script -->
            <script type="text/javascript">
                var noscript = '${noscript?string}';
                var extension = '${extension?string}';
                // General configuration
                require.config({
                    baseUrl: '${base}/js/lib',
                    paths: {
                        'app': '../app',
                        'template': '../app/template',
                        'bootstrap': '../../bootstrap/js/bootstrap.min',
                        'jquery-ui': '../../jquery/ui/js/jquery-ui-1.9.2.custom.min'
                    },
                    shim: {
                        'jquery-ui': {
                            deps: ['jquery']
                        },
                        'bootstrap': {
                            deps: ['jquery-ui']
                        }
                    }
                });
                // What to load?
                var boot = ['jquery','jquery-ui','bootstrap','app/controller/information-message','common','dynamic','app/controller/header'];
                if (noscript != 'true') {
                    if (extension == 'true') {
                        boot.push('extension/${page}');
                    } else {
                        boot.push('app/${page}');
                    }
                }
                // Loading
                require(boot);
            </script>

{'fraction_non_alphanumeric': 0.18213058419243985, 'fraction_numerical': 0.0030321406913280777, 'mean_word_length': 1.5219164118246686, 'pattern_counts': {'":': 0, '<': 79, '<?xml version=': 0, '>': 79, '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': '4667041', 'n_tokens_mistral': 1498, 'n_tokens_neox': 1346, 'n_words': 246}