<commit_before>import PropTypes from 'prop-types'
import React, { Component } from 'react'
import ReactDOM from 'react-dom'

export default class SubNav extends Component {

	static propTypes = {
		subnavElemId: PropTypes.string.Required,
	}

	constructor(props) {
		super(props)

		this.state = {
			subnavElem: document.getElementById(this.props.subnavElemId),
		}
	}

	componentDidMount() {
		const elem = document.getElementById(this.props.subnavElemId)
		if (elem !== this.state.subnavElem) {
			this.setState({subnavElem: elem})
		}
	}

	render() {
		return (this.state.subnavElem &&
			ReactDOM.createPortal(
				this.props.children,
				this.state.subnavElem
			)
		)<commit_msg>NCI-Agency/anet#915: Fix warning on organization show page<commit_after>import PropTypes from 'prop-types'
import React, { Component } from 'react'
import ReactDOM from 'react-dom'

export default class SubNav extends Component {

	static propTypes = {
		subnavElemId: PropTypes.string.isRequired,
	}

	constructor(props) {
		super(props)

		this.state = {
			subnavElem: document.getElementById(this.props.subnavElemId),
		}
	}

	componentDidMount() {
		const elem = document.getElementById(this.props.subnavElemId)
		if (elem !== this.state.subnavElem) {
			this.setState({subnavElem: elem})
		}
	}

	render() {
		return (this.state.subnavElem &&
			ReactDOM.createPortal(
				this.props.children,
				this.state.subnavElem
			)
		)
{'fraction_non_alphanumeric': 0.11681914144968332, 'fraction_numerical': 0.00211118930330753, 'mean_word_length': 4.096774193548387, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '3843869', 'n_tokens_mistral': 520, 'n_tokens_neox': 468, 'n_words': 92}