<commit_before>import React, { Component } from 'react';
import Drawer from 'material-ui/Drawer';
import MenuItem from 'material-ui/MenuItem';

import AppBar from 'material-ui/AppBar';

import './NavBar.css';

class NavBar extends Component {

  constructor(props) {
    super(props);
    this.state = {
      open: false
    };
  }

  toggleDrawer() {
    this.setState({
      open: !this.state.open
    })
  }

  handleEnterStaging() {
    this.setState({
      open: false
    });
    this.props.onStructuredFieldEntered("staging");
  }

  handleExitStaging() {
    this.setState({
      open: false
    });
    this.props.onStructuredFieldExited("staging");
  }

  handleEnterDataCapture() {
    this.setState({
      open: false
    });
    this.props.onStructuredFieldEntered("dataCapture");
  }

  handleExitDataCapture() {
    this.setState({
      open: false
    });
    this.props.onStructuredFieldExited("dataCapture");
  }

  render() {
    return (
      <div>
        <AppBar
          className="navbar"
          onLeftIconButtonTouchTap={this.toggleDrawer.bind(this)}
          title="Flux Notes"/>
        <Drawer
          containerStyle={{'top': '64px'}}
          open={this.state.open}
         >
          <MenuItem onTouchTap={this.handleEnterStaging.bind(this)}>Enter Staging</MenuItem>
          <MenuItem onTouchTap={this.handleExitStaging.bind(this)}>Exit Staging</MenuItem>
          <MenuItem onTouchTap={this.handleEnterDataCapture.bind(this)}>Enter Data Capture</MenuItem>
          <MenuItem onTouchTap={this.handleExitDataCapture.bind(this)}>Exit Data Capture</MenuItem>
        </Drawer>
      </div>
    );
  }
}

export default NavBar;<commit_msg>Removed data capture form from menu bar because it's being triggered by text highlighting<commit_after>import React, { Component } from 'react';
import Drawer from 'material-ui/Drawer';
import MenuItem from 'material-ui/MenuItem';

import AppBar from 'material-ui/AppBar';

import './NavBar.css';

class NavBar extends Component {

  constructor(props) {
    super(props);
    this.state = {
      open: false
    };
  }

  toggleDrawer() {
    this.setState({
      open: !this.state.open
    })
  }

  handleEnterStaging() {
    this.setState({
      open: false
    });
    this.props.onStructuredFieldEntered("staging");
  }

  handleExitStaging() {
    this.setState({
      open: false
    });
    this.props.onStructuredFieldExited("staging");
  }

  render() {
    return (
      <div>
        <AppBar
          className="navbar"
          onLeftIconButtonTouchTap={this.toggleDrawer.bind(this)}
          title="Flux Notes"/>
        <Drawer
          containerStyle={{'top': '64px'}}
          open={this.state.open}
         >
          <MenuItem onTouchTap={this.handleEnterStaging.bind(this)}>Enter Staging</MenuItem>
          <MenuItem onTouchTap={this.handleExitStaging.bind(this)}>Exit Staging</MenuItem>
        </Drawer>
      </div>
    );
  }
}

export default NavBar;
{'fraction_non_alphanumeric': 0.1327284946236559, 'fraction_numerical': 0.0013440860215053765, 'mean_word_length': 2.7493702770780857, 'pattern_counts': {'":': 0, '<': 25, '<?xml version=': 0, '>': 25, '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': '5787894', 'n_tokens_mistral': 932, 'n_tokens_neox': 920, 'n_words': 160}