<commit_before>import React, { PropTypes } from 'react';
import AppBar from 'material-ui/AppBar';
import FlatButton from 'material-ui/FlatButton';
import IconMenu from 'material-ui/IconMenu';
import IconButton from 'material-ui/IconButton';
import MoreVertIcon from 'material-ui/svg-icons/navigation/more-vert';
import MenuItem from 'material-ui/MenuItem';
import Link from 'react-router/lib/Link';

const styles = {
  container: {
    paddingTop: '60px',
  },
  appBar: {
    position: 'fixed',
    top: 0,
  },
  title: {
    textDecoration: 'none',
    color: 'inherit',
  },
};

const Layout = ({ auth, children }) => (
  <div style={styles.container}>
    <AppBar
      title={<Link to="/" style={styles.title}>Geekplanet</Link>}
      showMenuIconButton={false}
      iconElementRight={auth.loggedIn() ?
        <IconMenu
          iconButtonElement={<IconButton><MoreVertIcon /></IconButton>}
          anchorOrigin={{ horizontal: 'right', vertical: 'top' }}
          targetOrigin={{ horizontal: 'right', vertical: 'top' }}
        >
          <MenuItem primaryText="Forms" containerElement={<Link to="/forms">Forms</Link>} />
        </IconMenu>
        :<commit_msg>add logout option<commit_after>import React, { PropTypes } from 'react';
import AppBar from 'material-ui/AppBar';
import FlatButton from 'material-ui/FlatButton';
import IconMenu from 'material-ui/IconMenu';
import IconButton from 'material-ui/IconButton';
import MoreVertIcon from 'material-ui/svg-icons/navigation/more-vert';
import MenuItem from 'material-ui/MenuItem';
import Link from 'react-router/lib/Link';

const styles = {
  container: {
    paddingTop: '60px',
  },
  appBar: {
    position: 'fixed',
    top: 0,
  },
  title: {
    textDecoration: 'none',
    color: 'inherit',
  },
};

const Layout = ({ auth, children }) => (
  <div style={styles.container}>
    <AppBar
      title={<Link to="/" style={styles.title}>Geekplanet</Link>}
      showMenuIconButton={false}
      iconElementRight={auth.loggedIn() ?
        <IconMenu
          iconButtonElement={<IconButton><MoreVertIcon /></IconButton>}
          anchorOrigin={{ horizontal: 'right', vertical: 'top' }}
          targetOrigin={{ horizontal: 'right', vertical: 'top' }}
        >
          <MenuItem primaryText="Forms" containerElement={<Link to="/forms">Forms</Link>} />
          <MenuItem primaryText="Logout" onClick={() => auth.logout()} />
        </IconMenu>
        :
{'fraction_non_alphanumeric': 0.15720164609053497, 'fraction_numerical': 0.0024691358024691358, 'mean_word_length': 3.510204081632653, 'pattern_counts': {'":': 0, '<': 28, '<?xml version=': 0, '>': 29, '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': '3788936', 'n_tokens_mistral': 733, 'n_tokens_neox': 732, 'n_words': 162}