<commit_before>import cx from 'classnames';
import React from 'react';
import Icon from '../Icon';

export default class TextField extends React.Component {
  static propTypes = {
    className: React.PropTypes.string,
    type: React.PropTypes.string,
    icon: React.PropTypes.string
  };

  static defaultProps = {
    type: 'text'
  };

  get value() {
    return React.findDOMNode(this.refs.input).value;
  }

  render() {
    const { type, icon, className, ...props } = this.props;
    return (
      <div className={cx('TextField', className)}>
        <input
           ref="input"
           className="TextField-input"
           type={type}
           {...props}
         />
        <Icon className="TextField-icon" name={icon} />
      </div>
    );
  }
}<commit_msg>form: fix deprecation warning<commit_after>import cx from 'classnames';
import React from 'react';
import Icon from '../Icon';

export default class TextField extends React.Component {
  static propTypes = {
    className: React.PropTypes.string,
    type: React.PropTypes.string,
    icon: React.PropTypes.string
  };

  static defaultProps = {
    type: 'text'
  };

  get value() {
    return this.refs.input.value;
  }

  render() {
    const { type, icon, className, ...props } = this.props;
    return (
      <div className={cx('TextField', className)}>
        <input
           ref="input"
           className="TextField-input"
           type={type}
           {...props}
         />
        <Icon className="TextField-icon" name={icon} />
      </div>
    );
  }
}
{'fraction_non_alphanumeric': 0.14019292604501607, 'fraction_numerical': 0.0, 'mean_word_length': 2.346236559139785, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '2538308', 'n_tokens_mistral': 463, 'n_tokens_neox': 452, 'n_words': 111}