<commit_before>const initialState = {
  name: null,
  page: null
}

export default function update (state = initialState, action) {
  switch (action.type) {
    case 'RECEIVE_TOKEN_FROM_AMODAHL':
      return Object.assign({}, state, {
        name: action.name
      })
    case 'RECEIVE_TOKEN_FROM_LOCAL_STORAGE':
      return Object.assign({}, state, {
        name: action.name
      })
    case 'REQUEST_TOKEN_FAILED':
      return Object.assign({}, state, {
        name: null
      })
    case '@@me/DELETE_TOKEN':
      return Object.assign({}, state, {
        name: null
      })
    case '@@login/DELETE_TOKEN':
      return Object.assign({}, state, {
        name: null
      })
    case '@@router/LOCATION_CHANGE':
      {
        return Object.assign({}, state, {
          page: action.payload.pathname
        })
      }
    default:
      return state
  }
}
<commit_msg>Forgot to change action names<commit_after>const initialState = {
  name: null,
  page: null
}

export default function update (state = initialState, action) {
  switch (action.type) {
    case 'RECEIVE_AMODAHL_TOKEN':
      return Object.assign({}, state, {
        name: action.name
      })
    case '@@me/DELETE_AMODAHL_TOKEN':
      return Object.assign({}, state, {
        name: null
      })
    case '@@login/DELETE_AMODAHL_TOKEN':
      return Object.assign({}, state, {
        name: null
      })
    case '@@router/LOCATION_CHANGE':
      {
        return Object.assign({}, state, {
          page: action.payload.pathname
        })
      }
    default:
      return state
  }
}

{'fraction_non_alphanumeric': 0.12721518987341773, 'fraction_numerical': 0.0, 'mean_word_length': 2.226530612244898, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '629396', 'n_tokens_mistral': 491, 'n_tokens_neox': 500, 'n_words': 110}