<commit_before>String.prototype.ucfirst = function () {
    return this.length ? this.charAt(0).toUpperCase() + this.slice(1) : '';
};

function _get(name) {
    var match = RegExp('[?&]' + name + '=([^&]*)').exec(window.location.search);
    return match && decodeURIComponent(match[1].replace(/\+/g, ' '));
}


var storage = window.sessionStorage, key = '_uikit_style', keyinverse = '_uikit_inverse';

var styles = {
    core: '../css/uikit.core.css',
    theme: '../css/uikit.theme.css'
};

var component = location.pathname.split('/').pop().replace(/.html$/, '');
var components = [
    'tooltip',
    'sortable',
    'spinner'
];

if (_get('style') && _get('style').match(/\.(json|css)$/)) {
    styles.custom = _get('style');
}

storage[key] = storage[key] || 'core';
storage[keyinverse] = storage[keyinverse] || 'default';

// add UIkit core
document.writeln(`<link rel="stylesheet" href="${(styles[storage[key]] || '../css/uikit.theme.css')}">`);

// add  UIkit components
components.forEach(name => {
    if (name === component) {
        document.writeln(`<link rel="stylesheet" href="../css/components/${storage[key]}/${name}.css">`);
    }
});

document.writeln(`<script src="../vendor/jquery.js"></script>`);
document.writeln(`<script src="../js/uikit.js"></script>`);

// add  UIkit components
components.forEach(name => {
    if (name === component) {
        document.writeln(`<script src="../js/components/${name}.js"></script>`);
    }
});

document.addEventListener("DOMContentLoaded", () => {

    var $ = jQuery;

    var $container = $('<div class="uk-container"></div>').prependTo('body');
    var $tests = $('<select class="uk-select"></select>').css('margin', '20px 20px 20px 0').prependTo($container);
    var $styles = $('<select class="uk-select"></select>').css('margin', '20px').appendTo($container);
    var $inverse = $('<select class="uk-select"></select>').css('margin', '20px').appendTo($container);

    // Tests
    // ------------------------------

    [
        'accordion',
        'alert',
        'align',
        'animation',
        'article',
        'background',
        'badge',
        'base',
        'breadcrumb',
        'button',
        'card',
        'close',
        'column',
        'comment',
        'container',
        'cover',<commit_msg>fixed tests overview<commit_after>String.prototype.ucfirst = function () {
    return this.length ? this.charAt(0).toUpperCase() + this.slice(1) : '';
};

function _get(name) {
    var match = RegExp('[?&]' + name + '=([^&]*)').exec(window.location.search);
    return match && decodeURIComponent(match[1].replace(/\+/g, ' '));
}


var storage = window.sessionStorage, key = '_uikit_style', keyinverse = '_uikit_inverse';

var styles = {
    core: '../css/uikit.core.css',
    theme: '../css/uikit.theme.css'
};

var component = location.pathname.split('/').pop().replace(/.html$/, '');
var components = [
    'tooltip',
    'sortable',
    'spinner'
];

if (_get('style') && _get('style').match(/\.(json|css)$/)) {
    styles.custom = _get('style');
}

storage[key] = storage[key] || 'core';
storage[keyinverse] = storage[keyinverse] || 'default';

// add UIkit core
document.writeln(`<link rel="stylesheet" href="${(styles[storage[key]] || '../css/uikit.theme.css')}">`);

// add  UIkit components
components.forEach(name => {
    document.writeln(`<link rel="stylesheet" href="../css/components/${storage[key]}/${name}.css">`);
});

document.writeln(`<script src="../vendor/jquery.js"></script>`);
document.writeln(`<script src="../js/uikit.js"></script>`);

// add  UIkit components
components.forEach(name => {
    document.writeln(`<script src="../js/components/${name}.js"></script>`);
});

document.addEventListener("DOMContentLoaded", () => {

    var $ = jQuery;

    var $container = $('<div class="uk-container"></div>').prependTo('body');
    var $tests = $('<select class="uk-select"></select>').css('margin', '20px 20px 20px 0').prependTo($container);
    var $styles = $('<select class="uk-select"></select>').css('margin', '20px').appendTo($container);
    var $inverse = $('<select class="uk-select"></select>').css('margin', '20px').appendTo($container);

    // Tests
    // ------------------------------

    [
        'accordion',
        'alert',
        'align',
        'animation',
        'article',
        'background',
        'badge',
        'base',
        'breadcrumb',
        'button',
        'card',
        'close',
        'column',
        'comment',
        'container',
        'cover',
{'fraction_non_alphanumeric': 0.24354731965585705, 'fraction_numerical': 0.006176924773880432, 'mean_word_length': 3.1406392694063925, 'pattern_counts': {'":': 0, '<': 35, '<?xml version=': 0, '>': 41, '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': '65166', 'n_tokens_mistral': 1477, 'n_tokens_neox': 1446, 'n_words': 235}