<commit_before>import React, {PropTypes} from 'react'
import {connect} from 'react-redux'
import {bindActionCreators} from 'redux'

import SideNav from 'src/side_nav'
import Notifications from 'shared/components/Notifications'

import {publishNotification} from 'shared/actions/notifications'

const {func, node} = PropTypes

const App = React.createClass({
  propTypes: {
    children: node.isRequired,
    notify: func.isRequired,
  },

  handleAddFlashMessage({type, text}) {
    const {notify} = this.props

    notify(type, text)
  },

  render() {
    return (
      <div className="chronograf-root">
        <SideNav />
        <Notifications />
        {this.props.children &&
          React.cloneElement(this.props.children, {
            addFlashMessage: this.handleAddFlashMessage,
          })}
      </div>
    )
  },
})<commit_msg>Fix z-index failure caused by Notifications being below SideNav in DOM<commit_after>import React, {PropTypes} from 'react'
import {connect} from 'react-redux'
import {bindActionCreators} from 'redux'

import SideNav from 'src/side_nav'
import Notifications from 'shared/components/Notifications'

import {publishNotification} from 'shared/actions/notifications'

const {func, node} = PropTypes

const App = React.createClass({
  propTypes: {
    children: node.isRequired,
    notify: func.isRequired,
  },

  handleAddFlashMessage({type, text}) {
    const {notify} = this.props

    notify(type, text)
  },

  render() {
    return (
      <div className="chronograf-root">
        <Notifications />
        <SideNav />
        {this.props.children &&
          React.cloneElement(this.props.children, {
            addFlashMessage: this.handleAddFlashMessage,
          })}
      </div>
    )
  },
})
{'fraction_non_alphanumeric': 0.11949685534591195, 'fraction_numerical': 0.0, 'mean_word_length': 3.206730769230769, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '3984071', 'n_tokens_mistral': 529, 'n_tokens_neox': 518, 'n_words': 120}