<commit_before><html lang="{{currentLanguage}}">
    <head>
        <title>PacNEM - {{t "meta.title"}}</title>
        <meta http-equiv="content-type" content="text/html; charset=utf-8" />
        <meta name="description" content="{{t "meta.description"}}" />
        <meta name="keywords" content="{{t "meta.keywords"}}" />
        <meta name="author" content="<NAME> (https://github.com/evias)" />
        <meta name="robots" content="index, follow" />

        <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
        <link rel="icon" href="/favicon.ico" type="image/x-icon">

        <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css" />
        <link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet">
        <link href="css/style.css" type="text/css" rel="stylesheet" media="all" />

        <script src="/js/3rdparty/jquery.min.js"></script>
        <script src="/js/3rdparty/bootstrap.min.js"></script>
        <script src="/js/3rdparty/i18next.min.js" ></script>
        <script src="/js/3rdparty/i18next-xhr-backend.min.js" ></script>
        <script src="/js/3rdparty/i18next-jquery.min.js" ></script>
        <script src="/js/3rdparty/handlebars.min.js"></script>

        <script src="/socket.io/socket.io.js"></script>
        <script src="/js/nem-sdk.js"></script>
        <script src="/js/pacman.js"></script>

        <script type="text/javascript">
/**
 * Specification for i18next object so that Asynchronously
 * loaded Templates can also contain translations and use
 * the t() custom handlebars template from pacNEM.
 *
 * Requires i18nextXHRBackend and i18nextJquery plugins
 * to function correctly.
 * @link    https://github.com/evias/pacNEM
 */
window.i18next.use(window.i18nextXHRBackend).init({
    lng: "{{currentLanguage}}",
    fallbackLng: "en",
    defaultNS: "translation",
    whitelist: ["en", "de", "fr"],
    nonExplicitWhitelist: true,
    preload: ["en", "de", "fr"],
    backend: {
        loadPath: "/locales/\{\{lng\}\}"
    }
}, function(err, t) {
    window.i18nextJquery.init(window.i18next, $);
});

/**
 * Handlebars t() helper implementation for frontend
 * templates.
 */
Handlebars.registerHelper('t', function(key, sub)
{
    if (typeof sub != "undefined" && sub !== undefined && typeof sub === "string" && sub.length)
        // dynamic subnamespace
        var key = key + "." + sub;

    return new Handlebars.SafeString(window.i18next.t(key));
});<commit_msg>no need to preload all languages<commit_after><html lang="{{currentLanguage}}">
    <head>
        <title>PacNEM - {{t "meta.title"}}</title>
        <meta http-equiv="content-type" content="text/html; charset=utf-8" />
        <meta name="description" content="{{t "meta.description"}}" />
        <meta name="keywords" content="{{t "meta.keywords"}}" />
        <meta name="author" content="<NAME> (https://github.com/evias)" />
        <meta name="robots" content="index, follow" />

        <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
        <link rel="icon" href="/favicon.ico" type="image/x-icon">

        <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css" />
        <link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet">
        <link href="css/style.css" type="text/css" rel="stylesheet" media="all" />

        <script src="/js/3rdparty/jquery.min.js"></script>
        <script src="/js/3rdparty/bootstrap.min.js"></script>
        <script src="/js/3rdparty/i18next.min.js" ></script>
        <script src="/js/3rdparty/i18next-xhr-backend.min.js" ></script>
        <script src="/js/3rdparty/i18next-jquery.min.js" ></script>
        <script src="/js/3rdparty/handlebars.min.js"></script>

        <script src="/socket.io/socket.io.js"></script>
        <script src="/js/nem-sdk.js"></script>
        <script src="/js/pacman.js"></script>

        <script type="text/javascript">
/**
 * Specification for i18next object so that Asynchronously
 * loaded Templates can also contain translations and use
 * the t() custom handlebars template from pacNEM.
 *
 * Requires i18nextXHRBackend and i18nextJquery plugins
 * to function correctly.
 *
 * @author  <NAME> <<EMAIL>> (https://github.com/evias)
 * @link    https://github.com/evias/pacNEM
 */
window.i18next.use(window.i18nextXHRBackend).init({
    lng: "{{currentLanguage}}",
    fallbackLng: "en",
    defaultNS: "translation",
    whitelist: ["en", "de", "fr"],
    nonExplicitWhitelist: true,
    preload: ["{{currentLanguage}}"],
    backend: {
        loadPath: "/locales/\{\{lng\}\}"
    }
}, function(err, t) {
    window.i18nextJquery.init(window.i18next, $);
});

/**
 * Handlebars t() helper implementation for frontend
 * templates.
 */
Handlebars.registerHelper('t', function(key, sub)
{
    if (typeof sub != "undefined" && sub !== undefined && typeof sub === "string" && sub.length)
        // dynamic subnamespace
        var key = key + "." + sub;

    return new Handlebars.SafeString(window.i18next.t(key));
});
{'fraction_non_alphanumeric': 0.1900647948164147, 'fraction_numerical': 0.012566267425878658, 'mean_word_length': 3.2627615062761506, 'pattern_counts': {'":': 0, '<': 74, '<?xml version=': 0, '>': 74, 'https://': 9, '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': '6928298', 'n_tokens_mistral': 1710, 'n_tokens_neox': 1645, 'n_words': 313}