<commit_before>import React from 'react';
import ReactDOM from 'react-dom';
import { floor } from 'lodash';
import moment from 'moment';

export default class HistoryTooltip extends React.Component {
	static propTypes = {
		type: React.PropTypes.string,
		payload: React.PropTypes.array,
		label: React.PropTypes.string || React.PropTypes.number
	}
	render() {
		if (this.props.active) {
			return (
				<div className="history-tooltip">
					<p className="label">{moment(this.props.payload[0].payload.captured).calendar()}</p>
					<p className="value">{floor(this.props.payload[0].payload.pageSupport, 2)}%</p>
				</div>
			);
		}
		return null;
	}
}
<commit_msg>fix in proptype of tooltip<commit_after>import React from 'react';
import ReactDOM from 'react-dom';
import { floor } from 'lodash';
import moment from 'moment';

export default class HistoryTooltip extends React.Component {
	static propTypes = {
		type: React.PropTypes.string,
		payload: React.PropTypes.array,
		label: React.PropTypes.oneOfType([ React.PropTypes.number, React.PropTypes.string ])
	}
	render() {
		if (this.props.active) {
			return (
				<div className="history-tooltip">
					<p className="label">{moment(this.props.payload[0].payload.captured).calendar()}</p>
					<p className="value">{floor(this.props.payload[0].payload.pageSupport, 2)}%</p>
				</div>
			);
		}
		return null;
	}
}

{'fraction_non_alphanumeric': 0.15356622998544395, 'fraction_numerical': 0.004366812227074236, 'mean_word_length': 4.329457364341085, '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': '1998612', 'n_tokens_mistral': 499, 'n_tokens_neox': 446, 'n_words': 95}