<commit_before>import React from 'react';

class InputArea extends React.Component {
  constructor(props){
  	super(props);
    this.state = {
      beerQuery: ''
    }
    this.handleChange = this.handleChange.bind(this);
    this.handleSubmit = this.handleSubmit.bind(this);
  }

  handleChange(e) {
    e.preventDefault();
    this.setState({
      beerQuery: e.target.value
    });
  }

  handleSubmit(e) {
    e.preventDefault();
    let beer = this.state.beerQuery;
    this.props.handleBeerSearch(beer);
  }

  render(){
  	return(
  	  <div>
        <form onSubmit={this.handleSubmit}>
  	      <input type="text" value={this.state.beerQuery} onChange={this.handleChange}></input>
        </form>
  	  </div>
  	)
  }
}


export default InputArea;<commit_msg>Add submit button<commit_after>import React from 'react';

class InputArea extends React.Component {
  constructor(props){
  	super(props);
    this.state = {
      beerQuery: ''
    }
    this.handleChange = this.handleChange.bind(this);
    this.handleSubmit = this.handleSubmit.bind(this);
  }

  handleChange(e) {
    e.preventDefault();
    this.setState({
      beerQuery: e.target.value
    });
  }

  handleSubmit(e) {
    e.preventDefault();
    let beer = this.state.beerQuery;
    this.props.handleBeerSearch(beer);
  }

  render(){
  	return(
  	  <div>
        <form onSubmit={this.handleSubmit}>
  	      <input type="text" value={this.state.beerQuery} onChange={this.handleChange}></input>
          <input type='submit' value='Search'/>
        </form>
  	  </div>
  	)
  }
}


export default InputArea;
{'fraction_non_alphanumeric': 0.14312736443883986, 'fraction_numerical': 0.0, 'mean_word_length': 2.824096385542169, 'pattern_counts': {'":': 0, '<': 16, '<?xml version=': 0, '>': 16, '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': '4530698', 'n_tokens_mistral': 532, 'n_tokens_neox': 534, 'n_words': 86}