<commit_before>define([
    'bluebird',
    'kb_common/html'
], function (
    Promise,
    html
) {
    var t = html.tag,
        div = t('div'),
        a = t('a');

    function buildNavStripButton(cfg) {
        var icon = 'fa-' + cfg.icon;
        return a({
            href: '#' + cfg.path,
            class: '-nav-button',
            id: cfg.id,
            style: {
                width: '75px',
                textAlign: 'center',
                padding: '3px',
                margin: '6px 0',
                display: 'block',
                color: '#000',
                textDecoration: 'none'
            }
        }, [
            div({
                class: 'fa fa-3x ' + icon
            }),
            div({}, cfg.label)
        ]);
    }

    function factory(config) {
        var hostNode, container, runtime = config.runtime;

        var buttons = [{
                icon: 'dashboard',
                label: 'Dashboard',
                path: 'dashboard',
                authRequired: true
            }, {
                icon: 'book',
                label: 'Catalog',
                path: 'appcatalog',
                authRequired: false
            },
            // {
            //     icon: 'search',
            //     label: 'Search',
            //     path: 'reske/search',
            //     authRequired: true
            // },
            {
                icon: 'files-o',
                label: 'Narratives',
                path: 'reske/search/narrative',
                authRequired: true
            },
            {
                icon: 'search',
                label: 'Search Data',
                path: 'reske/search/data',
                authRequired: true
            }, {
                //icon: 'user',
                icon: 'user-circle-o',
                label: 'Account',
                path: 'auth2/account',
                authRequired: true
            }
        ];

        var currentButtons = [];
        var currentPath;

        function buildNavStrip(buttons) {
            var loggedIn = runtime.service('session').isLoggedIn();
            currentButtons = buttons
                .filter(function (button) {<commit_msg>sidebar nav testing entries omitted for prod - need a better way of managing sidebar nav items, but this will do for now<commit_after>define([
    'bluebird',
    'kb_common/html'
], function (
    Promise,
    html
) {
    var t = html.tag,
        div = t('div'),
        a = t('a');

    function buildNavStripButton(cfg) {
        var icon = 'fa-' + cfg.icon;
        return a({
            href: '#' + cfg.path,
            class: '-nav-button',
            id: cfg.id,
            style: {
                width: '75px',
                textAlign: 'center',
                padding: '3px',
                margin: '6px 0',
                display: 'block',
                color: '#000',
                textDecoration: 'none'
            }
        }, [
            div({
                class: 'fa fa-3x ' + icon
            }),
            div({}, cfg.label)
        ]);
    }

    function factory(config) {
        var hostNode, container, runtime = config.runtime;

        // TODO: this really needs to be in configuration!
        var buttons = [{
                icon: 'dashboard',
                label: 'Dashboard',
                path: 'dashboard',
                authRequired: true
            }, {
                icon: 'book',
                label: 'Catalog',
                path: 'appcatalog',
                authRequired: false
            },
            // {
            //     icon: 'search',
            //     label: 'Search',
            //     path: 'reske/search',
            //     authRequired: true
            // },
            (function () {
                if (runtime.config('deploy.environment') === 'prod') {
                    return;
                }
                return {
                    icon: 'files-o',
                    label: 'Narratives',
                    path: 'reske/search/narrative',
                    authRequired: true
                };
            }()),
            (function () {
                if (runtime.config('deploy.environment') === 'prod') {
                    return;
                }
                return {
                    icon: 'search',
                    label: 'Search Data',
                    path: 'reske/search/data',
                    authRequired: true
                };
            }()), {
                //icon: 'user',
                icon: 'user-circle-o',
                label: 'Account',
                path: 'auth2/account',
                authRequired: true
            }
        ].filter(function (item) {
            return item;
        });

        var currentButtons = [];
        var currentPath;

        function buildNavStrip(buttons) {
            var loggedIn = runtime.service('session').isLoggedIn();
            currentButtons = buttons
                .filter(function (button) {
{'fraction_non_alphanumeric': 0.12109141605257917, 'fraction_numerical': 0.003983270264887473, 'mean_word_length': 0.990487514863258, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '3017503', 'n_tokens_mistral': 1314, 'n_tokens_neox': 1235, 'n_words': 291}