<commit_before>var Container = require('react-container');
var Link = require('touchstonejs').Link;
var React = require('react');
var Tappable = require('react-tappable');
var Timers = require('react-timers');

const PEOPLE = require('../../data/people');

var SimpleListItem = React.createClass({
	render () {
		return (
			<Link to="details" transition="show-from-right" viewProps={{ user: this.props.user, prevView: 'component-simple-list' }} className="list-item is-tappable" component="div">
				<div className="item-inner">
					<div className="item-title">{this.props.user.name}</div>
				</div>
			</Link>
		);
	}
});

var Search = React.createClass({
	mixins: [Timers()],

	propTypes: {
		searchString: React.PropTypes.string,
		onChange: React.PropTypes.func.isRequired
	},

	componentDidMount: function () {
		var self = this;

		this.setTimeout(function () {
			self.refs.input.getDOMNode().focus();
		}, 1000);
	},

	handleChange (event) {
		this.props.onChange(event.target.value);
	},

	reset () {<commit_msg>remove auto focus on simple list<commit_after>var Container = require('react-container');
var Link = require('touchstonejs').Link;
var React = require('react');
var Tappable = require('react-tappable');
var Timers = require('react-timers');

const PEOPLE = require('../../data/people');

var SimpleListItem = React.createClass({
	render () {
		return (
			<Link to="details" transition="show-from-right" viewProps={{ user: this.props.user, prevView: 'component-simple-list' }} className="list-item is-tappable" component="div">
				<div className="item-inner">
					<div className="item-title">{this.props.user.name}</div>
				</div>
			</Link>
		);
	}
});

var Search = React.createClass({
	mixins: [Timers()],

	propTypes: {
		searchString: React.PropTypes.string,
		onChange: React.PropTypes.func.isRequired
	},

	handleChange (event) {
		this.props.onChange(event.target.value);
	},

	reset () {
{'fraction_non_alphanumeric': 0.17888715548621945, 'fraction_numerical': 0.0020800832033281333, 'mean_word_length': 4.512893982808023, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, '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': '2105481', 'n_tokens_mistral': 682, 'n_tokens_neox': 623, 'n_words': 121}