<commit_before>import { View, __, Sidebar, ViewManager, NavBar } from 'erste';
import MainView from '../main-view';


class LoggedInView extends View {
    constructor() {
        super();
        this.navBar = new NavBar({
            title: __('Welcome to beveteran'),
            hasMenuButton: true,
            hasBackButton: true
        });

        this.hasSidebar = true;
    }

    onActivation() {
        if (cfg.PLATFORM == 'device')
            StatusBar.styleDefault();
    }

    finderButtonTap(e) {
        var finderView = new FinderView();
        finderView.vm = this.vm;
        this.vm.pull(finderView, true);
    };

    hiderButtonTap(e) {
        var hinderView = new HinderView();
        hinderView.vm = this.vm;
        this.vm.pull(hinderView, true);

    };

    get events() {
        return {
            'tap': {
                '.finder': this.finderButtonTap,
                '.hider': this.hiderButtonTap,

            }
        }
    }

    template() {
        return `
<view>
    ${this.navBar}
    <div class="logedin"><commit_msg>Add an empty line at end of loggedin-view.js<commit_after>import { View, __, Sidebar, ViewManager, NavBar } from 'erste';
import MainView from '../main-view';


class LoggedInView extends View {
    constructor() {
        super();
        this.navBar = new NavBar({
            title: __('Welcome to beveteran'),
            hasMenuButton: true,
            hasBackButton: true
        });

        this.hasSidebar = true;
    }

    onActivation() {
        if (cfg.PLATFORM == 'device')
            StatusBar.styleDefault();
    }

    finderButtonTap(e) {
        var finderView = new FinderView();
        finderView.vm = this.vm;
        this.vm.pull(finderView, true);
    };

    hiderButtonTap(e) {
        var hinderView = new HinderView();
        hinderView.vm = this.vm;
        this.vm.pull(hinderView, true);
    };

    get events() {
        return {
            'tap': {
                '.finder': this.finderButtonTap,
                '.hider': this.hiderButtonTap,

            }
        }
    }

    template() {
        return `
<view>
    ${this.navBar}
    <div class="logedin">
{'fraction_non_alphanumeric': 0.12695492180312787, 'fraction_numerical': 0.0, 'mean_word_length': 1.7358490566037736, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '3850926', 'n_tokens_mistral': 693, 'n_tokens_neox': 657, 'n_words': 140}