<commit_before>import React, {PropTypes} from 'react';
import cx from 'classnames';
import {Map} from 'immutable';
import './styles.scss';


export default class Search extends React.Component {

  static propTypes = {
    className: PropTypes.string,
    currentData: PropTypes.instanceOf(Map),
    inputClassName: PropTypes.string,
    sendToServer: PropTypes.bool,
    filterData: PropTypes.object,
    filter: PropTypes.func,
  }


  constructor(props) {
    super(props);
    this.state = {
      filterText: '',
      oldData: '',
      typeDictionary: {
        'channels': 'CHANNELS',
        'people': 'USERS',
      },
    };
  }


  render() {
    const {inputClassName} = this.props;
    const classes = cx('search', this.props.className);
    return (
      <div className={classes}>
        <div
          className='search__icon'
        >{'⚲'}</div>
        <input
          placeholder='Search...'
          type='text'
          onChange={this.props.currentData ? this.props.filter : null}
          {...this.props}
          className={cx('search__input', inputClassName)}
        />
      </div>
    );
  }
}<commit_msg>style(search): remove extra code from search component<commit_after>import React, {PropTypes} from 'react';
import cx from 'classnames';
import './styles.scss';


export default class Search extends React.Component {

  static propTypes = {
    className: PropTypes.string,
    inputClassName: PropTypes.string,
    filter: PropTypes.func,
  }


  render() {
    const {inputClassName} = this.props;
    const classes = cx('search', this.props.className);
    return (
      <div className={classes}>
        <div
          className='search__icon'
        >{'⚲'}</div>
        <input
          placeholder='Search...'
          type='text'
          onChange={this.props.filter}
          {...this.props}
          className={cx('search__input', inputClassName)}
        />
      </div>
    );
  }
}
{'fraction_non_alphanumeric': 0.13969072164948454, 'fraction_numerical': 0.0, 'mean_word_length': 2.429328621908127, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, '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': '3286343', 'n_tokens_mistral': 557, 'n_tokens_neox': 557, 'n_words': 122}