<commit_before>import React from 'react'
import { connect } from 'react-redux'

import DatatoolsNavbar from 'datatools-navbar'

import { login, logout, resetPassword } from '../actions/user'

const mapStateToProps = (state, ownProps) => {
  return {
    auth0: state.user.state,
    title: state.config.title,
    managerUrl: '#',
    editorUrl: state.config.editorUrl,
    userAdminUrl: state.config.editorUrl,
    username: state.user.profile ? state.user.profile.email : null
  }
}

const mapDispatchToProps = (dispatch, ownProps) => {
  return {
    loginHandler: () => { dispatch(login()) },
    logoutHandler: () => { dispatch(logout()) },
    resetPasswordHandler: () => { dispatch(resetPassword()) }
  }
}

var ManagerNavbar = connect(
  mapStateToProps,
  mapDispatchToProps
)(DatatoolsNavbar)

export default ManagerNavbar
<commit_msg>quick fix for user admin link<commit_after>import React from 'react'
import { connect } from 'react-redux'

import DatatoolsNavbar from 'datatools-navbar'

import { login, logout, resetPassword } from '../actions/user'

const mapStateToProps = (state, ownProps) => {
  return {
    auth0: state.user.state,
    title: state.config.title,
    managerUrl: '#',
    editorUrl: state.config.editorUrl,
    userAdminUrl: '#/admin',
    username: state.user.profile ? state.user.profile.email : null
  }
}

const mapDispatchToProps = (dispatch, ownProps) => {
  return {
    loginHandler: () => { dispatch(login()) },
    logoutHandler: () => { dispatch(logout()) },
    resetPasswordHandler: () => { dispatch(resetPassword()) }
  }
}

var ManagerNavbar = connect(
  mapStateToProps,
  mapDispatchToProps
)(DatatoolsNavbar)

export default ManagerNavbar

{'fraction_non_alphanumeric': 0.13467217956290609, 'fraction_numerical': 0.0011813349084465446, 'mean_word_length': 4.180428134556575, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 13, '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': '1876775', 'n_tokens_mistral': 531, 'n_tokens_neox': 528, 'n_words': 117}