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

var ExampleSource = React.createClass({
	fixIndentation (children) {
		if (typeof children !== 'string') return children;
		var lines = children.split('\n').filter(l => l);
		if (!lines.length) return children;
		var indent = /^\t+/.exec(lines[0]);
		if (indent) {
			indent = indent[0].length;
			lines = lines.map(s => s.substr(indent));
		}
		return lines.join('\n');
	},
	render () {
		return (
			<pre className="code-example__pre">
				<code className="code-example__code language-markup">
					{this.fixIndentation(this.props.children)}
				</code>
			</pre>
		);
	}
});

module.exports = ExampleSource;
<commit_msg>ExampleSource: declare children as a propType<commit_after>var React = require('react');

var ExampleSource = React.createClass({
	propTypes: {
		children: React.PropTypes.string.isRequired
	},
	fixIndentation (children) {
		if (typeof children !== 'string') return children;
		var lines = children.split('\n').filter(l => l);
		if (!lines.length) return children;
		var indent = /^\t+/.exec(lines[0]);
		if (indent) {
			indent = indent[0].length;
			lines = lines.map(s => s.substr(indent));
		}
		return lines.join('\n');
	},
	render () {
		return (
			<pre className="code-example__pre">
				<code className="code-example__code language-markup">
					{this.fixIndentation(this.props.children)}
				</code>
			</pre>
		);
	}
});

module.exports = ExampleSource;

{'fraction_non_alphanumeric': 0.17503486750348676, 'fraction_numerical': 0.002789400278940028, 'mean_word_length': 3.880952380952381, 'pattern_counts': {'":': 0, '<': 11, '<?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': '7232102', 'n_tokens_mistral': 530, 'n_tokens_neox': 478, 'n_words': 100}