<commit_before>/**
  * ValidateValuesTreemapHelp.jsx
  * Created by <NAME> 6/20/16
  **/

import React from 'react';

const defaultProps = {
	rule: 'Unspecified',
	description: '',
	detail: null,
	count: 0,
	type: 'error'
};

export default class ValidateValuesTreemapHelp extends React.Component {
	render() {
		let detail = ' hide';
		if (this.props.detail) {
			detail = '';
		}
		return (
			<div className="usa-da-treemap-help-wrap">
				<div className="treemap-help-title">
					
				</div>
				<div className="treemap-help-description">
					<b>Field:</b> {this.props.field}<br />
					<b>{this.props.type}:</b> {this.props.description}<br />
					<b>Occurrences: </b>{this.props.count}
				</div>
				<div className={"treemap-help-detail" + detail}>
					<b>More information:</b><br />
					{this.props.detail}
				</div>
			</div>
		)
	}
}

ValidateValuesTreemapHelp.defaultProps = defaultProps;<commit_msg>Hide header instead of remove<commit_after>/**
  * ValidateValuesTreemapHelp.jsx
  * Created by <NAME> 6/20/16
  **/

import React from 'react';

const defaultProps = {
	rule: 'Unspecified',
	description: '',
	detail: null,
	count: 0,
	type: 'error'
};

export default class ValidateValuesTreemapHelp extends React.Component {
	render() {
		let detail = ' hide';
		if (this.props.detail) {
			detail = '';
		}
		return (
			<div className="usa-da-treemap-help-wrap">
				<div className="treemap-help-title hide">
					Rule {this.props.rule}
				</div>
				<div className="treemap-help-description">
					<b>Field:</b> {this.props.field}<br />
					<b>{this.props.type}:</b> {this.props.description}<br />
					<b>Occurrences: </b>{this.props.count}
				</div>
				<div className={"treemap-help-detail" + detail}>
					<b>More information:</b><br />
					{this.props.detail}
				</div>
			</div>
		)
	}
}

ValidateValuesTreemapHelp.defaultProps = defaultProps;
{'fraction_non_alphanumeric': 0.17493333333333333, 'fraction_numerical': 0.0064, 'mean_word_length': 3.3126436781609194, 'pattern_counts': {'":': 0, '<': 43, '<?xml version=': 0, '>': 43, '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': '2146091', 'n_tokens_mistral': 798, 'n_tokens_neox': 675, 'n_words': 124}