<commit_before>/** @jsx React.DOM */

var React = require('react'),
	Tappable = require('../../touchstone/tappable');

module.exports = React.createClass({
	displayName: 'RadioList',

	propTypes: {
		options: React.PropTypes.array,
		value: React.PropTypes.string,
		onChange: React.PropTypes.func
	},

	onChange: function(value) {
		this.props.onChange(value);
	},

	render: function() {

		var options = this.props.options.map(function(op, i) {
			var className = 'form-item' + (i === 0 ? ' is-first' : '');
			var checkMark = op.value === this.props.value ? (
					<div className="form-tap-button is-primary">
						<div className="form-tap-button-icon ion-checkmark" />
					</div>
				) : null;
			return (
				<Tappable key={'option-' + op.value} onTap={this.onChange.bind(this, op.value)} className={className}>
					<div className="form-tap">
						{op.label}
						{checkMark}
					</div>
				</Tappable>
			);
		}.bind(this));

		return <div className="form-items">{options}</div>;

	}

});<commit_msg>Bring into line with new styles<commit_after>/** @jsx React.DOM */

var React = require('react'),
	Tappable = require('../../touchstone/tappable');

module.exports = React.createClass({
	displayName: 'RadioList',

	propTypes: {
		options: React.PropTypes.array,
		value: React.PropTypes.string,
		onChange: React.PropTypes.func
	},

	onChange: function(value) {
		this.props.onChange(value);
	},

	render: function() {

		var options = this.props.options.map(function(op, i) {
			var className = 'list-item' + (i === 0 ? ' is-first' : '');
			var checkMark = op.value === this.props.value ? (
					<div className="list-item-note is-primary">
						<div className="list-item-note-icon ion-checkmark" />
					</div>
				) : null;
			return (
				<Tappable key={'option-' + op.value} onTap={this.onChange.bind(this, op.value)} className={className}>
					{op.label}
					{checkMark}
				</Tappable>
			);
		}.bind(this));

		return <div>{options}</div>;

	}

});
{'fraction_non_alphanumeric': 0.18822932521562658, 'fraction_numerical': 0.0010147133434804667, 'mean_word_length': 3.334065934065934, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 19, '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': '6119668', 'n_tokens_mistral': 799, 'n_tokens_neox': 680, 'n_words': 127}