<commit_before>import React, { PropTypes } from 'react'

import Menu from './menu-items'

const Navbar = props => {
  const { blocks, editable } = props

  const onlyVisibleBlocks = blocks.filter(
    block => editable ? !block.hidden : !block.hidden && !block.menu_hidden
  )
  const menuProps = { ...props, blocks: onlyVisibleBlocks }

  return (
    <div className='absolute col-12 z3'>
      <Menu {...menuProps} />
      <Menu {...menuProps} mobile={true} />
    </div>
  )
}

Navbar.propTypes = {
  editable: PropTypes.bool.isRequired,
  mobilization: PropTypes.object.isRequired,
  blocks: PropTypes.array,
  blockUpdate: PropTypes.func
}

Navbar.defaultProps = {
  editable: false,
  blocks: []
}

export default Navbar<commit_msg>Fix standardjs linting warning #500<commit_after>import React, { PropTypes } from 'react'

import Menu from './menu-items'

const Navbar = props => {
  const { blocks, editable } = props

  const onlyVisibleBlocks = blocks.filter(
    block => editable ? !block.hidden : !block.hidden && !block.menu_hidden
  )
  const menuProps = { ...props, blocks: onlyVisibleBlocks }

  return (
    <div className='absolute col-12 z3'>
      <Menu {...menuProps} />
      <Menu {...menuProps} mobile />
    </div>
  )
}

Navbar.propTypes = {
  editable: PropTypes.bool.isRequired,
  mobilization: PropTypes.object.isRequired,
  blocks: PropTypes.array,
  blockUpdate: PropTypes.func
}

Navbar.defaultProps = {
  editable: false,
  blocks: []
}

export default Navbar
{'fraction_non_alphanumeric': 0.13529805760214333, 'fraction_numerical': 0.006028131279303416, 'mean_word_length': 3.4070796460176993, 'pattern_counts': {'":': 0, '<': 11, '<?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': '6429363', 'n_tokens_mistral': 478, 'n_tokens_neox': 479, 'n_words': 115}