<commit_before>import React from 'react'

import { Navbar, Nav, NavItem, NavDropdown, MenuItem } from 'react-bootstrap'

export default class NavigationBar extends React.Component {

  constructor (props) {
    super(props)
  }

  render () {

    var userControl;
    if (!this.props.profile) {
      userControl = <NavItem onClick={this.props.logIn} href="#">Log In</NavItem>
    } else {
      userControl =
        <NavDropdown title={this.props.profile.email} id="basic-nav-dropdown">
          <MenuItem>Settings..</MenuItem>
          <MenuItem onClick={this.props.logOut}>Log Out</MenuItem>
        </NavDropdown>
    }

    return (
      <Navbar inverse>
        <Navbar.Header>
          <Navbar.Brand>
            <a href="#">{this.props.title}</a>
          </Navbar.Brand>
        </Navbar.Header>
        <Nav pullRight>
          <NavItem href="#">Admin</NavItem>
          <NavItem href="#">Documentation</NavItem>
          {userControl}
        </Nav>
      </Navbar>
    )
  }
}
<commit_msg>Navbar layout<commit_after>import React from 'react'

import { Navbar, Nav, NavItem, NavDropdown, MenuItem, Glyphicon } from 'react-bootstrap'

export default class NavigationBar extends React.Component {

  constructor (props) {
    super(props)
  }

  render () {

    var userControl;
    if (!this.props.profile) {
      userControl = <NavItem onClick={this.props.logIn} href="#">Log In</NavItem>
    } else {
      userControl =
        <NavDropdown title={this.props.profile.email} id="basic-nav-dropdown">
          <MenuItem>Settings..</MenuItem>
          <MenuItem onClick={this.props.logOut}>Log Out</MenuItem>
        </NavDropdown>
    }

    return (
      <Navbar>
        <Navbar.Header>
          <Navbar.Brand>
            <a href="#">{this.props.title}</a>
          </Navbar.Brand>
        </Navbar.Header>
        <Nav>
          <NavItem href="http://localhost:9000">Manager</NavItem>
          <NavItem href="http://localhost:9001">Editor</NavItem>
          <NavItem href="#" active>Users</NavItem>
        </Nav>
        <Nav pullRight>
          <NavItem href="#"><Glyphicon glyph="question-sign" /> Guide</NavItem>
          {userControl}
        </Nav>
      </Navbar>
    )
  }
}

{'fraction_non_alphanumeric': 0.1472972972972973, 'fraction_numerical': 0.0036036036036036037, 'mean_word_length': 2.3398496240601503, 'pattern_counts': {'":': 0, '<': 54, '<?xml version=': 0, '>': 54, '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': '6834291', 'n_tokens_mistral': 696, 'n_tokens_neox': 670, 'n_words': 128}