<commit_before>import React, { PropTypes } from 'react';
import classNames from 'classnames';

export default React.createClass({
  propTypes : {
    collectionName : PropTypes.string.isRequired,
    query: PropTypes.string.isRequired,
    onChange: PropTypes.func.isRequired,
    error: PropTypes.bool.isRequired
  },

  handleChange: function(e) {
    this.props.onChange(this.props.collectionName, e.target.value);
  },

  render () {
    let inputClass = classNames('minimongo-input',
      {'error' : this.props.error}
    );

    return (
      <textarea 
        className={inputClass} 
        onChange={this.handleChange}
        rows={1}
        value={this.props.query}
      />
    )
  }
});<commit_msg>disable spellcheck in the mongo query editor<commit_after>import React, { PropTypes } from 'react';
import classNames from 'classnames';

export default React.createClass({
  propTypes : {
    collectionName : PropTypes.string.isRequired,
    query: PropTypes.string.isRequired,
    onChange: PropTypes.func.isRequired,
    error: PropTypes.bool.isRequired
  },

  handleChange: function(e) {
    this.props.onChange(this.props.collectionName, e.target.value);
  },

  render () {
    let inputClass = classNames('minimongo-input',
      {'error' : this.props.error}
    );

    return (
      <textarea 
        className={inputClass}
        onChange={this.handleChange}
        rows={1}
        spellCheck={false}
        value={this.props.query}
      />
    )
  }
});
{'fraction_non_alphanumeric': 0.12575655682582382, 'fraction_numerical': 0.0013449899125756557, 'mean_word_length': 2.968, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '1366809', 'n_tokens_mistral': 447, 'n_tokens_neox': 450, 'n_words': 81}