<commit_before>import React from 'react';
import { connect } from 'react-redux';

import AppBar from 'material-ui/AppBar';
import MainMenu from './MainMenu.js';

import { Actions, ActionKeyStore } from './redux/actions';

import style from "./styles"


class NavBarView extends React.Component {
    render() {
        return (
            <div>
                <AppBar className="appBar" style={style.navBar} title={this.props.title} onLeftIconButtonTouchTap={this.props.onLeftIconButtonTouchTap} />
                <MainMenu />
            </div>
        );
    }
}


const mapStateToProps = (state) => ({
    title: state.interface.get(ActionKeyStore.NAV_BAR_TITLE)
});


const actionCreators = (dispatch) => ({
    onLeftIconButtonTouchTap: () => {
        dispatch(Actions.toggleMainMenu());
    },
    updateTitle: (aTitle) => {
        dispatch(Actions.updateTitle(aTitle));
    }
 });<commit_msg>Hide NavBar if context contains parameter "full"<commit_after>import React from 'react';
import { connect } from 'react-redux';

import AppBar from 'material-ui/AppBar';
import MainMenu from './MainMenu.js';

import { Actions, ActionKeyStore } from './redux/actions';
import { ActionKeyStore as InterfaceActionKeyStore } from "./redux/actions";

import style from "./styles"


class NavBarView extends React.Component {
    render() {
        const {
            context
        } = this.props;

        if (context && context.hasOwnProperty('full'))
            return (<div></div>);

        return (
            <div>
                <AppBar className="appBar" style={style.navBar} title={this.props.title} onLeftIconButtonTouchTap={this.props.onLeftIconButtonTouchTap} />
                <MainMenu />
            </div>
        );
    }
}


const mapStateToProps = (state) => ({
    title: state.interface.get(ActionKeyStore.NAV_BAR_TITLE),
    context: state.interface.get(InterfaceActionKeyStore.CONTEXT),
});


const actionCreators = (dispatch) => ({
    onLeftIconButtonTouchTap: () => {
        dispatch(Actions.toggleMainMenu());
    },
    updateTitle: (aTitle) => {
        dispatch(Actions.updateTitle(aTitle));
    }
 });
{'fraction_non_alphanumeric': 0.13744740532959326, 'fraction_numerical': 0.0, 'mean_word_length': 2.890909090909091, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 21, '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': '7122580', 'n_tokens_mistral': 641, 'n_tokens_neox': 622, 'n_words': 126}