<commit_before>

/*
 *  Copyright (C) 2017 <NAME> <<EMAIL>>
 *
 *  This program is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation, version 3 of the License.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

import * as debug from 'debug';
import { SPAN, DIV } from './elements';
import langSwitch from './lang-switch';
import tr from '../locale';
// import button from './button';
// import events from '../events/app';
// import queries from '../queries/app';
// import { AppLayout } from '../shape';

const logger = debug('sdi:header');


// const dashboardButton = button('settings', 'dashboard');

// const renderDashboardButton =
//     () => {
//         if (AppLayout.Dashboard === queries.getLayout()) {
//             return DIV();
//         }
//         return (
//             DIV({ className: 'dashboard-link-wrapper' },
//                 DIV({ className: 'dashboard-link' },
//                     dashboardButton(() => events.setLayout(AppLayout.Dashboard))))
//         );
//     };

const render =
    () => {
        return DIV({ className: 'header' },
            DIV({ className: 'be-logo' },
                DIV({ className: 'be-tree' }),
                DIV({ className: 'be-name'})),
            // renderDashboardButton(),
            DIV({ className: 'header-toolbar' },
                SPAN({ className: 'login' }, tr('login')),
                langSwitch()));

    };

export default render;


logger('loaded');<commit_msg>[login] header<commit_after>/*
 *  Copyright (C) 2017 <NAME>graphique <<EMAIL>>
 *
 *  This program is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation, version 3 of the License.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

import * as debug from 'debug';
import { DIV } from './elements';
import langSwitch from './lang-switch';
// import tr from '../locale';
// import button from './button';
// import events from '../events/app';
// import queries from '../queries/app';
// import { AppLayout } from '../shape';

const logger = debug('sdi:header');


// const dashboardButton = button('settings', 'dashboard');

// const renderDashboardButton =
//     () => {
//         if (AppLayout.Dashboard === queries.getLayout()) {
//             return DIV();
//         }
//         return (
//             DIV({ className: 'dashboard-link-wrapper' },
//                 DIV({ className: 'dashboard-link' },
//                     dashboardButton(() => events.setLayout(AppLayout.Dashboard))))
//         );
//     };

const render =
    () => {
        return DIV({ className: 'header' },
            DIV({ className: 'be-logo' },
                DIV({ className: 'be-tree' }),
                DIV({ className: 'be-name' })),
            // renderDashboardButton(),
            DIV({ className: 'header-toolbar' },
                // SPAN({ className: 'login' }, tr('login')),
                langSwitch()));

    };

export default render;


logger('loaded');
{'fraction_non_alphanumeric': 0.1469440832249675, 'fraction_numerical': 0.002600780234070221, 'mean_word_length': 2.321243523316062, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 17, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '7295541', 'n_tokens_mistral': 1043, 'n_tokens_neox': 1011, 'n_words': 363}