<commit_before>import React, { PropTypes } from 'react'
import NavLink from '../containers/NavLink'
import NavIndexLink from '../containers/NavIndexLink'
import {
  Nav,
  Navbar,
  NavDropdown
} from 'react-bootstrap'

const MyNavbar = ({ name, page }) => {
  const userSpecific = name === null
  ? <NavLink eventKey={4} to={{ pathname: '/login' }}>Log in</NavLink>
  : <NavLink eventKey={4} to={{ pathname: '/me' }}>{name}</NavLink>

  return (
    <Navbar
      style={{margin: '0', borderRadius: '0', border: '0'}}
      inverse collapseOnSelect>

      <Navbar.Header>
        <Navbar.Brand>
          <a href='/'>amodahl.no</a>
        </Navbar.Brand>
        <Navbar.Toggle />
      </Navbar.Header>
      <Navbar.Collapse>
        <Nav>
          <NavIndexLink eventKey={1} to={{ pathname: '/' }}>Home</NavIndexLink>
          <NavDropdown id='MyProjectsDrowndown' eventKey={2} title='My projects'>
            <NavLink eventKey={2.1} to={{ pathname: '/amodahl-no' }}>amodahl.no</NavLink>
            <NavLink eventKey={2.2} to={{ pathname: '/chess-project' }}>Chess</NavLink>

          </NavDropdown>
          <NavLink eventKey={3} to={{ pathname: '/about' }}>About me</NavLink>

        </Nav>
        <Nav pullRight>
          {userSpecific}
        </Nav>

      </Navbar.Collapse>
    </Navbar>
  )<commit_msg>More text on login button<commit_after>import React, { PropTypes } from 'react'
import NavLink from '../containers/NavLink'
import NavIndexLink from '../containers/NavIndexLink'
import {
  Nav,
  Navbar,
  NavDropdown
} from 'react-bootstrap'

const MyNavbar = ({ name, page }) => {
  const userSpecific = name === null
  ? <NavLink eventKey={4} to={{ pathname: '/login' }}>Log in</NavLink>
  : <NavLink eventKey={4} to={{ pathname: '/me' }}>Logged in: {name}</NavLink>

  return (
    <Navbar
      style={{margin: '0', borderRadius: '0', border: '0'}}
      inverse collapseOnSelect>

      <Navbar.Header>
        <Navbar.Brand>
          <a href='/'>amodahl.no</a>
        </Navbar.Brand>
        <Navbar.Toggle />
      </Navbar.Header>
      <Navbar.Collapse>
        <Nav>
          <NavIndexLink eventKey={1} to={{ pathname: '/' }}>Home</NavIndexLink>
          <NavDropdown id='MyProjectsDrowndown' eventKey={2} title='My projects'>
            <NavLink eventKey={2.1} to={{ pathname: '/amodahl-no' }}>amodahl.no</NavLink>
            <NavLink eventKey={2.2} to={{ pathname: '/chess-project' }}>Chess</NavLink>

          </NavDropdown>
          <NavLink eventKey={3} to={{ pathname: '/about' }}>About me</NavLink>

        </Nav>
        <Nav pullRight>
          {userSpecific}
        </Nav>

      </Navbar.Collapse>
    </Navbar>
  )
{'fraction_non_alphanumeric': 0.17620650953984288, 'fraction_numerical': 0.008978675645342313, 'mean_word_length': 2.658002735978112, 'pattern_counts': {'":': 0, '<': 61, '<?xml version=': 0, '>': 63, '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': '7119574', 'n_tokens_mistral': 917, 'n_tokens_neox': 912, 'n_words': 198}