<commit_before>import React, {Component, PropTypes} from 'react'
import FormField from './FormField'

class TextInput extends Component {
  static propTypes = {
    field: PropTypes.object.isRequired
  }

  static defaultProps = {
    field: {},
    inputProps: {}
  }

  render() {
    const {id, field, label, inputProps} = this.props
    return <FormField id={id} field={field} inputProps={inputProps} label={label}>
      <input name={id} {...inputProps} />
    </FormField>
  }
}

export default TextInput<commit_msg>Modifies TextInputs to assign id instead of name<commit_after>import React, {Component, PropTypes} from 'react'
import FormField from './FormField'

class TextInput extends Component {
  static propTypes = {
    field: PropTypes.object.isRequired
  }

  static defaultProps = {
    field: {},
    inputProps: {}
  }

  render() {
    const {id, field, label, inputProps} = this.props
    return <FormField id={id} field={field} inputProps={inputProps} label={label}>
      <input id={id} {...inputProps} />
    </FormField>
  }
}

export default TextInput
{'fraction_non_alphanumeric': 0.12999071494893222, 'fraction_numerical': 0.0, 'mean_word_length': 3.6869565217391305, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '6510981', 'n_tokens_mistral': 324, 'n_tokens_neox': 324, 'n_words': 90}