<commit_before>import React, { PureComponent } from 'react';
import PropTypes from 'prop-types';
import MaskedInput from 'react-text-mask';

export default class Input extends PureComponent {
  static propTypes = {
    mask: PropTypes.any,
  }

  static defaultProps = {
    mask: undefined,
  }

  render() {
    return (
      this.props.mask
        ? <MaskedInput {...this.props} />
        : <input {...this.props} />
    );
  }
}
<commit_msg>pass inputRef as ref prop in MaskedInput to avoid errors<commit_after>import React, { PureComponent } from 'react';
import PropTypes from 'prop-types';
import MaskedInput from 'react-text-mask';

export default class Input extends PureComponent {
  static propTypes = {
    mask: PropTypes.any,
  }

  static defaultProps = {
    mask: undefined,
  }

  render() {
    const { inputRef, ...props } = this.props;
    return (
      this.props.mask
        ? <MaskedInput {...props} ref={inputRef} />
        : <input {...props} ref={inputRef} />
    );
  }
}

{'fraction_non_alphanumeric': 0.13220675944333996, 'fraction_numerical': 0.0, 'mean_word_length': 2.7715355805243447, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '4416974', 'n_tokens_mistral': 314, 'n_tokens_neox': 309, 'n_words': 83}