<commit_before>import React, { Component, PropTypes } from 'react';
import { connect } from 'react-redux';
import Paper from 'material-ui/Paper';
import Avatar from 'material-ui/Avatar';
import {  push } from 'react-router-redux'
import FlatButton from 'material-ui/FlatButton';
import IconButton from 'material-ui/IconButton';
import ActionHome from 'material-ui/svg-icons/action/home';
import ActionLock from 'material-ui/svg-icons/action/lock';
import RaisedButton from 'material-ui/RaisedButton';

import HardwareKeyboardArrowDown from 'material-ui/svg-icons/hardware/keyboard-arrow-down';

import IconMenu from 'material-ui/IconMenu';
import MenuItem from 'material-ui/MenuItem';
import MoreVertIcon from 'material-ui/svg-icons/navigation/more-vert';

import {setSignInDialogOpen, setSignInErrorText} from '../../actions/signIn';
import {logout} from '../../actions/auth';
import SignIn from '../../containers/Auth/SignIn';

import {
blue300,
indigo900,
orange200,
deepOrange300,
pink400,
purple500,
} from 'material-ui/styles/colors';


const styles = {
  button: {
	  
	marginTop: 45,
    marginLeft: 65,
  },
};

class AppNavDrawerHeader extends Component {
  constructor(props) {
    super(props);
  }
  

  render() {
	  
	 const {to ,logout, auth , appStyle, setSignInDialogOpen } = this.props;
	    
	 const style={

		  backgroundColor:appStyle.theme.source.palette.primary2Color,
		  color: appStyle.theme.source.palette.alternateTextColor,
		  padding: '6px',
		  height: 150,

 
	};
	
	function handleSignIn(){
		to('/signin');	
	}
	
	function handleSignOut(){
		logout();
		to('/signin');	
	}
	
	let headerContent=<div></div>;
	
	if(auth.apiToken===undefined){
		headerContent=
				<div>

					<RaisedButton
					  label="Sign in"
					  labelPosition="after"
					  secondary={true}
					  icon={<ActionLock />}
					  style={styles.button}
					  onClick={handleSignIn}
					/>
				</div>;
	}else{
		headerContent=<commit_msg>NavDrawer Header updated<commit_after>import React, { Component, PropTypes } from 'react';
import { connect } from 'react-redux';
import Paper from 'material-ui/Paper';
import Avatar from 'material-ui/Avatar';
import {  push } from 'react-router-redux'
import FlatButton from 'material-ui/FlatButton';
import IconButton from 'material-ui/IconButton';
import ActionHome from 'material-ui/svg-icons/action/home';
import ActionLock from 'material-ui/svg-icons/action/lock';
import RaisedButton from 'material-ui/RaisedButton';

import HardwareKeyboardArrowDown from 'material-ui/svg-icons/hardware/keyboard-arrow-down';

import IconMenu from 'material-ui/IconMenu';
import MenuItem from 'material-ui/MenuItem';
import MoreVertIcon from 'material-ui/svg-icons/navigation/more-vert';

import {setSignInDialogOpen, setSignInErrorText} from '../../actions/signIn';
import {logout} from '../../actions/auth';
import SignIn from '../../containers/Auth/SignIn';

import {
blue300,
indigo900,
orange200,
deepOrange300,
pink400,
purple500,
} from 'material-ui/styles/colors';


const styles = {
  button: {
	  
	marginTop: 45,
    marginLeft: 65,
  },
};

class AppNavDrawerHeader extends Component {
  constructor(props) {
    super(props);
  }
  

  render() {
	  
	 const {to ,logout, auth , appStyle, setSignInDialogOpen } = this.props;
	    
	 const style={

		  backgroundColor:appStyle.theme.source.palette.primary2Color,
		  color: appStyle.theme.source.palette.alternateTextColor,
		  padding: '6px',
		  height: 150,

 
	};
	
	function handleSignIn(){
		to('signin');	
	}
	
	function handleSignOut(){
		logout();
		to('signin');	
	}
	
	let headerContent=<div></div>;
	
	if(auth.apiToken===undefined){
		headerContent=
				<div>

					<RaisedButton
					  label="Sign in"
					  labelPosition="after"
					  secondary={true}
					  icon={<ActionLock />}
					  style={styles.button}
					  onClick={handleSignIn}
					/>
				</div>;
	}else{
		headerContent=
{'fraction_non_alphanumeric': 0.1369581944088228, 'fraction_numerical': 0.013849705052577583, 'mean_word_length': 3.9056603773584904, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, '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': '1079473', 'n_tokens_mistral': 1435, 'n_tokens_neox': 1242, 'n_words': 267}