<commit_before>import React from 'react'
import './style'

export default class Pager extends React.Component {
	static propTypes = {
		title: React.PropTypes.object,
		handleChange: React.PropTypes.func.isRequired,
		canPrev: React.PropTypes.bool.isRequired,
		canNext: React.PropTypes.bool.isRequired,
	}

	static defaultProps = {
		title: {
			prev: '上一页',
			next: '下一页',
		},
	}

	render() {
		const { title, handleChange, canPrev, canNext } = this.props
		const { prev, next } = title
		const prevComponent = canPrev ? (
			<button href="#" onClick={ e => { handleChange('prev')} }>
				{ prev }
			</button>
		) : null
		const nextComponent = canNext ? (
			<button href="#" onClick={ e => { handleChange('next')} }>
				{ next }
			</button>
		) : null

		return (
			<ideal-pager>
				<ul>
					<li>
						{ prevComponent }
					</li>
					<li>
						{ nextComponent }
					</li>
				</ul>
			</ideal-pager>
		)
	}
}<commit_msg>format<commit_after>import React from 'react'
import './style'

export default class Pager extends React.Component {
	static propTypes = {
		title: React.PropTypes.object,
		handleChange: React.PropTypes.func.isRequired,
		canPrev: React.PropTypes.bool.isRequired,
		canNext: React.PropTypes.bool.isRequired,
	}

	static defaultProps = {
		title: {
			prev: '上一页',
			next: '下一页',
		},
	}

	render() {
		const { title, handleChange, canPrev, canNext } = this.props
		const { prev, next } = title
		const prevComponent = canPrev ? (
			<button href="#" onClick={ e => { handleChange('prev')} }>
				{ prev }
			</button>
		) : null
		const nextComponent = canNext ? (
			<button href="#" onClick={ e => { handleChange('next')} }>
				{ next }
			</button>
		) : null

		return (
			<ideal-pager>
				<ul>
					<li>{ prevComponent }</li>
					<li>{ nextComponent }</li>
				</ul>
			</ideal-pager>
		)
	}
}
{'fraction_non_alphanumeric': 0.15860945138511678, 'fraction_numerical': 0.0, 'mean_word_length': 2.894291754756871, 'pattern_counts': {'":': 0, '<': 27, '<?xml version=': 0, '>': 31, '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': '3081236', 'n_tokens_mistral': 773, 'n_tokens_neox': 647, 'n_words': 146}