<commit_before>
import { connectedReduxRedirect } from 'redux-auth-wrapper/history3/redirect'
import { routerActions } from 'react-router-redux'

const userIsAuthenticated = connectedReduxRedirect({
  // The url to redirect user to if they fail
  redirectPath: '/signin',
  // Determine if the user is authenticated or not
  authenticatedSelector: (state) => state.getIn(['auth', 'username']) !== null,
  // A nice display name for this check
  wrapperDisplayName: 'UserIsAuthenticated',
  redirectAction: routerActions.replace
})

export default userIsAuthenticated
<commit_msg>fix error user auth to upload materials<commit_after>
import { connectedReduxRedirect } from 'redux-auth-wrapper/history3/redirect'
import { routerActions } from 'react-router-redux'

const userIsAuthenticated = connectedReduxRedirect({
  // The url to redirect user to if they fail
  redirectPath: '/signin',
  // Determine if the user is authenticated or not
  authenticatedSelector: (state) => !!state.getIn(['auth', 'accessToken']),
  // A nice display name for this check
  wrapperDisplayName: 'UserIsAuthenticated',
  redirectAction: routerActions.replace
})

export default userIsAuthenticated

{'fraction_non_alphanumeric': 0.09745762711864407, 'fraction_numerical': 0.001694915254237288, 'mean_word_length': 5.248677248677248, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '6297063', 'n_tokens_mistral': 331, 'n_tokens_neox': 324, 'n_words': 105}