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

class NavbarUserInfo extends React.Component {
  constructor(props) {
    super(props);
  }
  logOut() {

  }
  render() {
    if (!this.props.secret) {
      return (
        <ul className="nav navbar-nav navbar-right">
          <li>
            <Link to='/login'>
              Log in
            </Link>
          </li>
        </ul>
      );
    }
    return (
      <span>
        <ul className="nav navbar-nav navbar-right">
          <li>
            <Link to='/add_book'>Add Book</Link>
          </li>
          <li>
            <Link to='/admin'>Admin</Link>
          </li>
          <li>
            <a href="/books" onClick={this.props.logOut}>Logout</a>
          </li>
        </ul>
        <p className="nav navbar-nav navbar-right navbar-text">Signed in as 
          <a className="navbar-link"> {this.props.signum}</a>
        </p>
      </span>
    );
  }
}

export default NavbarUserInfo;
<commit_msg>Add Navbar dropdown menu. Under username there are Settings and Log out<commit_after>import React from 'react';
import {Link} from 'react-router-dom';
import {NavDropdown} from 'react-bootstrap';

class NavbarUserInfo extends React.Component {
  constructor(props) {
    super(props);
  }
  logOut() {

  }
  render() {
    if (!this.props.secret) {
      return (
        <ul className="nav navbar-nav navbar-right">
          <li>
            <Link to='/login'>
              Log in
            </Link>
          </li>
        </ul>
      );
    }
    return (
      <span>
        <ul className="nav navbar-nav navbar-right">
          <li>
            <Link to='/add_book'>Add Book</Link>
          </li>
          <li>
            <Link to='/admin'>Admin</Link>
          </li>
          <NavDropdown eventKey={3} title={this.props.signum} id="basic-nav-dropdown">
            <li>
              <Link to='/settings'>Settings</Link>
              <a href="/books" onClick={this.props.logOut}>Log out</a>
            </li>
          </NavDropdown>
        </ul>
      </span>
    );
  }
}

export default NavbarUserInfo;

{'fraction_non_alphanumeric': 0.1503053076561766, 'fraction_numerical': 0.0004697040864255519, 'mean_word_length': 1.6591760299625469, 'pattern_counts': {'":': 0, '<': 55, '<?xml version=': 0, '>': 55, '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': '3739476', 'n_tokens_mistral': 675, 'n_tokens_neox': 669, 'n_words': 146}