<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 injectTapEventPlugin from 'react-tap-event-plugin';
injectTapEventPlugin();

class AppTopWithDrawer 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 
          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 AppTopWithDrawer;<commit_msg>removed unnecessary tapontouch obj<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'

class AppTopWithDrawer 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 
          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 AppTopWithDrawer;
{'fraction_non_alphanumeric': 0.1327579120427456, 'fraction_numerical': 0.0016440608302507192, 'mean_word_length': 2.8944, 'pattern_counts': {'":': 0, '<': 21, '<?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': '1326173', 'n_tokens_mistral': 786, 'n_tokens_neox': 778, 'n_words': 131}