<commit_before>import React from 'react'
import Fluxxor from 'fluxxor'
var FluxMixin = Fluxxor.FluxMixin(React)

export default React.createClass({
  mixins: [FluxMixin],

  getInitialState: function(){
    return {
      value: ""
    }
  },

  handleChange: function(event) {
    this.setState({value: event.target.value});
    this.props.onChange(this.state.value);
  },

  handleKeyDown: function(event) {
    if (event.which == 13) {
      this.getFlux().actions.addKeyword(this.props.chartID, this.state.value)
    }<commit_msg>Text field now clears when new keyword is entered<commit_after>import React from 'react'
import Fluxxor from 'fluxxor'
var FluxMixin = Fluxxor.FluxMixin(React)

export default React.createClass({
  mixins: [FluxMixin],

  getInitialState: function(){
    return {
      value: ""
    }
  },

  handleChange: function(event) {
    this.setState({value: event.target.value});
    this.props.onChange(this.state.value);
  },

  handleKeyDown: function(event) {
    if (event.which == 13) {
      this.getFlux().actions.addKeyword(this.props.chartID, this.state.value)
      this.setState({value: ""})
    }
{'fraction_non_alphanumeric': 0.13720316622691292, 'fraction_numerical': 0.003518029903254178, 'mean_word_length': 3.7416666666666667, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '1752168', 'n_tokens_mistral': 394, 'n_tokens_neox': 381, 'n_words': 73}