<commit_before>var React = require('react');
var debounce = require('debounce');

var noop = require('./noop.js');

var SearchBar = React.createClass({
    getDefaultProps: function() {
        return {
            timeout: 20,
            onChange: noop
        };
    },
    render: function() {
        return <input
            className='json-inspector__search'
            type='search'
            placeholder='Search'
            ref='query'
            onChange={ debounce(this.update, this.props.timeout) } />;
    },
    update: function() {
        this.props.onChange(this.refs.query.getDOMNode().value);
    }
});

module.exports = SearchBar;<commit_msg>Increase default timeout to 100ms<commit_after>var React = require('react');
var debounce = require('debounce');

var noop = require('./noop.js');

var SearchBar = React.createClass({
    getDefaultProps: function() {
        return {
            timeout: 100,
            onChange: noop
        };
    },
    render: function() {
        return <input
            className='json-inspector__search'
            type='search'
            placeholder='Search'
            ref='query'
            onChange={ debounce(this.update, this.props.timeout) } />;
    },
    update: function() {
        this.props.onChange(this.refs.query.getDOMNode().value);
    }
});

module.exports = SearchBar;
{'fraction_non_alphanumeric': 0.13854089904200442, 'fraction_numerical': 0.0058953574060427415, 'mean_word_length': 2.210401891252955, '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': '4966726', 'n_tokens_mistral': 394, 'n_tokens_neox': 379, 'n_words': 73}