<commit_before>import React from 'react'
import { Link } from 'react-router'

import NavbarActions from '../actions/NavbarActions'
import NavbarStore from '../stores/NavbarStore'

import NavbarUserMenu from './user/NavbarUserMenu'

export default class Navbar extends React.Component {
  constructor (props) {
    super(props)

    this.state = NavbarStore.getState()

    this.onChange = this.onChange.bind(this)
  }

  onChange (state) {
    this.setState(state)
  }

  componentDidMount () {
    NavbarStore.listen(this.onChange)

    $(document).ajaxStart(() => NavbarActions.updateAjaxAnimation('fadeIn'))
    $(document).
      ajaxComplete(() => NavbarActions.updateAjaxAnimation('fadeOut'))
  }

  componentWillUnmount () {
    NavbarStore.unlisten(this.onChange)
  }

  render () {

    return (
      <nav className='navbar navbar-default navbar-static-top'>
        <div className='navbar-header'>
          <button type='button'
                  className='navbar-toggle collapsed'
                  data-toggle='collapse'
                  data-target='#navbar'>
            <span className='sr-only'>Toggle navigation</span>
            <span className='icon-bar'/>
            <span className='icon-bar'/>
            <span className='icon-bar'/>
          </button>
          <Link to='/' className='navbar-brand'>
                        <span
                          ref='triangles'
                          className={'triangles animated ' +
                          this.state.ajaxAnimationClass}>
                            <div className='tri invert'/>
                            <div className='tri invert'/>
                            <div className='tri'/>
                            <div className='tri invert'/>
                            <div className='tri invert'/>
                            <div className='tri'/>
                            <div className='tri invert'/>
                            <div className='tri'/>
                            <div className='tri invert'/>
                        </span>
            MDB
          </Link>
        </div>
        <div id='navbar' className='navbar-collapse collapse'>
          <ul className='nav navbar-nav'>
            <li>
              <Link to='/'>Home</Link>
            </li>
            <li>
              <Link to='/category/add'>Add Category</Link>
            </li>
            <li>
              <Link to='/article/add'>Add Article</Link>
            </li>
          </ul>
          <NavbarUserMenu userData={ this.props.userData }/>
        </div>
      </nav>
    )
  }
}<commit_msg>updated navbar info<commit_after>import React from 'react'
import { Link } from 'react-router'

import NavbarActions from '../actions/NavbarActions'
import NavbarStore from '../stores/NavbarStore'

import NavbarUserMenu from './user/NavbarUserMenu'

export default class Navbar extends React.Component {
  constructor (props) {
    super(props)

    this.state = NavbarStore.getState()

    this.onChange = this.onChange.bind(this)
  }

  onChange (state) {
    this.setState(state)
  }

  componentDidMount () {
    NavbarStore.listen(this.onChange)

    $(document).ajaxStart(() => NavbarActions.updateAjaxAnimation('fadeIn'))
    $(document).
      ajaxComplete(() => NavbarActions.updateAjaxAnimation('fadeOut'))
  }

  componentWillUnmount () {
    NavbarStore.unlisten(this.onChange)
  }

  render () {

    return (
      <nav className='navbar navbar-default navbar-static-top'>
        <div className='navbar-header'>
          <button type='button'
                  className='navbar-toggle collapsed'
                  data-toggle='collapse'
                  data-target='#navbar'>
            <span className='sr-only'>Toggle navigation</span>
            <span className='icon-bar'/>
            <span className='icon-bar'/>
            <span className='icon-bar'/>
          </button>
          <Link to='/' className='navbar-brand'>
                        <span
                          ref='triangles'
                          className={'triangles animated ' +
                          this.state.ajaxAnimationClass}>
                            <div className='tri invert'/>
                            <div className='tri invert'/>
                            <div className='tri'/>
                            <div className='tri invert'/>
                            <div className='tri invert'/>
                            <div className='tri'/>
                            <div className='tri invert'/>
                            <div className='tri'/>
                            <div className='tri invert'/>
                        </span>
            CPG
          </Link>
        </div>
        <div id='navbar' className='navbar-collapse collapse'>
          <ul className='nav navbar-nav'>
            <li>
              <Link to='/'>Home</Link>
            </li>
            <li>
              <Link to='/category/add'>Add Category</Link>
            </li>
            <li>
              <Link to='/article/add'>Add Article</Link>
            </li>
          </ul>
          <NavbarUserMenu userData={this.props.userData} />
        </div>
      </nav>
    )
  }
}
{'fraction_non_alphanumeric': 0.12805229763507017, 'fraction_numerical': 0.0, 'mean_word_length': 1.5179090029041626, 'pattern_counts': {'":': 0, '<': 85, '<?xml version=': 0, '>': 89, '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': '4209316', 'n_tokens_mistral': 1388, 'n_tokens_neox': 1334, 'n_words': 265}