<commit_before>import React, {Component, PropTypes} from 'react';
import {connect} from 'react-redux';
import {StyleSheet, css} from 'aphrodite';
import {Container, Row} from 'react-grid-system';
import Avatar from 'material-ui/Avatar';
import IconMenu from 'material-ui/IconMenu';
import IconButton from 'material-ui/IconButton';
import MenuItem from 'material-ui/MenuItem';
import FontIcon from 'material-ui/FontIcon';
import colors from '~/utils/colors';
import {fromJS} from 'immutable';
import classNames from 'classNames';

class Header extends Component {
  static proptypes = {
	user: PropTypes.object
  };

  render () {
  	const { user } = this.props;
    return (
      <header>
	      <Container>
	        <Row>
	          <div className={css(styles.wrapper)}>
	           <div className={css(styles.userProfile)}>
	             <Avatar src={user.getIn(['picture', 'data', 'url'])} 
              	  size={50} />
              	 <span className={css(styles.userName)}>{user.get('first_name')}</span>
              	 <IconMenu iconButtonElement={
              	 	<IconButton style={{padding: '0px', width: '24px', height: '24px'}}>
              	 	<FontIcon className={classNames("material-icons", css(styles.iconStyle))} 
              	 	color={colors.primary1Color}>expand_more</FontIcon></IconButton>}>
              	 	<MenuItem>
              	 	 <FontIcon className={classNames("material-icons", css(styles.iconMenuStyle))} 
              	 	  color={colors.primary1Color}>person</FontIcon>
              	 	 Profile
              	 	</MenuItem>
              	 	<MenuItem>
              	 	 <FontIcon className={classNames("material-icons", css(styles.iconMenuStyle))} <commit_msg>Added Link component to dropdown<commit_after>import React, {Component, PropTypes} from 'react';
import {connect} from 'react-redux';
import {StyleSheet, css} from 'aphrodite';
import {Container, Row} from 'react-grid-system';
import Avatar from 'material-ui/Avatar';
import IconMenu from 'material-ui/IconMenu';
import IconButton from 'material-ui/IconButton';
import MenuItem from 'material-ui/MenuItem';
import FontIcon from 'material-ui/FontIcon';
import colors from '~/utils/colors';
import {fromJS} from 'immutable';
import classNames from 'classNames';
import {Link} from 'react-router';

class Header extends Component {
  static proptypes = {
	user: PropTypes.object
  };

  render () {
  	const { user } = this.props;
    return (
      <header>
	      <Container>
	        <Row>
	          <div className={css(styles.wrapper)}>
	           <div className={css(styles.userProfile)}>
	             <Avatar src={user.getIn(['picture', 'data', 'url'])} 
              	  size={50} />
              	 <span className={css(styles.userName)}>{user.get('first_name')}</span>
              	 <IconMenu iconButtonElement={
              	 	<IconButton style={{padding: '0px', width: '24px', height: '24px'}}>
              	 	<FontIcon className={classNames("material-icons", css(styles.iconStyle))} 
              	 	color={colors.primary1Color}>expand_more</FontIcon></IconButton>}>
              	 	<MenuItem containerElement={<Link to="/profile" />}>
              	 	 <FontIcon className={classNames("material-icons", css(styles.iconMenuStyle))} 
              	 	  color={colors.primary1Color}>person</FontIcon>
              	 	 Profile
              	 	</MenuItem>
              	 	<MenuItem>
              	 	 <FontIcon className={classNames("material-icons", css(styles.iconMenuStyle))} 
{'fraction_non_alphanumeric': 0.13885714285714285, 'fraction_numerical': 0.005142857142857143, 'mean_word_length': 2.809575625680087, 'pattern_counts': {'":': 0, '<': 42, '<?xml version=': 0, '>': 40, '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': '4904931', 'n_tokens_mistral': 1032, 'n_tokens_neox': 1008, 'n_words': 216}