<commit_before>import React from 'react';

const CommenterWorkCircle = React.createClass({

	propTypes: {
		toggleVisibleWork: React.PropTypes.func.isRequired,
		workTitle: React.PropTypes.string.isRequired,
		workSlug: React.PropTypes.string.isRequired,
		workLevel: React.PropTypes.number.isRequired,
		nComments: React.PropTypes.number.isRequired,
	},

	render() {
		return (
			<div className="commenter-work-circle">
				<div
					className={`circle-inner circle-level-${this.props.workLevel}`}
					onClick={this.props.toggleVisibleWork.bind(null, this.props.workSlug)}
				>
					<span className="work-title">{this.props.workTitle}</span>
					<span className="work-count">{this.props.nComments}</span>
					<div className="grow-border" />
				</div>
			</div>
		);
	},
});

export default CommenterWorkCircle;<commit_msg>update CommenterWorkCircle to stateless functional component<commit_after>import React from 'react';

const CommenterWorkCircle = (props) => {

	return (
		<div className="commenter-work-circle">
			<div
				className={`circle-inner circle-level-${props.workLevel}`}
				onClick={props.toggleVisibleWork.bind(null, props.workSlug)}
			>
				<span className="work-title">{props.workTitle}</span>
				<span className="work-count">{props.nComments}</span>
				<div className="grow-border" />
			</div>
		</div>
	);
};

CommenterWorkCircle.propTypes = {
	toggleVisibleWork: React.PropTypes.func.isRequired,
	workTitle: React.PropTypes.string.isRequired,
	workSlug: React.PropTypes.string.isRequired,
	workLevel: React.PropTypes.number.isRequired,
	nComments: React.PropTypes.number.isRequired,
};

export default CommenterWorkCircle;
{'fraction_non_alphanumeric': 0.14354644149577805, 'fraction_numerical': 0.0, 'mean_word_length': 4.841549295774648, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 22, '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': '5631059', 'n_tokens_mistral': 604, 'n_tokens_neox': 534, 'n_words': 79}