<commit_before>import React, { Component } from 'react';
import PropTypes from 'prop-types';
import idgen from './idgen';
import Icon from './Icon';
import cx from 'classnames';

class Textarea extends Component {
  componentDidUpdate() {
    M.textareaAutoResize(this._textarea);
  }

  renderIcon(icon) {
    return <Icon className="material-icons prefix">{icon}</Icon>;
  }

  render() {
    const { className, iconClassName, icon, label, id, onChange, ...other } = this.props;

    const computedId = id || idgen();

    return (
      <div className="input-field">
        {icon && this.renderIcon(icon, iconClassName)}
        <textarea
          ref={input => {
            this._textarea = input;
          }}
          onChange={onChange}
          id={computedId}
          className={cx('materialize-textarea', className)}
          {...other}
        />
        <label htmlFor={computedId}>{label}</label>
      </div>
    );
  }
}

Textarea.propTypes = {
  /*
   * render icon next to input
   */
  icon: PropTypes.string,
  /*
   * icon classname
   */
  iconClassName: PropTypes.string,
  /*
   * textarea label
   */
  label: PropTypes.string,
  /*
   * onChange callback
   */
  onChange: PropTypes.func,
  /*
   * override id
   * @default idgen()
   */
  id: PropTypes.string,
  /*
   * disabled input
   */
  disabled: PropTypes.bool,
  /*
  * predefined value
  */
  value: PropTypes.string
};

export default Textarea;
<commit_msg>Add className to proptypes of textarea component<commit_after>import React, { Component } from 'react';
import PropTypes from 'prop-types';
import idgen from './idgen';
import Icon from './Icon';
import cx from 'classnames';

class Textarea extends Component {
  componentDidUpdate() {
    M.textareaAutoResize(this._textarea);
  }

  renderIcon(icon) {
    return <Icon className="material-icons prefix">{icon}</Icon>;
  }

  render() {
    const {
      className,
      iconClassName,
      icon,
      label,
      id,
      onChange,
      ...other
    } = this.props;

    const computedId = id || idgen();

    return (
      <div className="input-field">
        {icon && this.renderIcon(icon, iconClassName)}
        <textarea
          ref={input => {
            this._textarea = input;
          }}
          onChange={onChange}
          id={computedId}
          className={cx('materialize-textarea', className)}
          {...other}
        />
        <label htmlFor={computedId}>{label}</label>
      </div>
    );
  }
}

Textarea.propTypes = {
  /*
   * render icon next to input
   */
  icon: PropTypes.string,
  /*
   * icon classname
   */
  iconClassName: PropTypes.string,
  /*
   * textarea label
   */
  label: PropTypes.string,
  /*
   * onChange callback
   */
  onChange: PropTypes.func,
  /*
   * override id
   * @default idgen()
   */
  id: PropTypes.string,
  /*
   * disabled input
   */
  disabled: PropTypes.bool,
  /*
  * predefined value
  */
  value: PropTypes.string,
  className: PropTypes.string
};

export default Textarea;

{'fraction_non_alphanumeric': 0.13684559310801855, 'fraction_numerical': 0.0, 'mean_word_length': 2.3322295805739515, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 19, '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': '4499734', 'n_tokens_mistral': 918, 'n_tokens_neox': 925, 'n_words': 210}