<commit_before>import {GET_INBOX_SUCCESS, GET_INBOX_FAIL} from 'actions/inbox'
import {LOCATION_CHANGE} from 'actions/common'

const initialState = {
    isDataLoading: true,
    errorLoadingConversations: false,
    conversations: []
}

export function inbox(state = initialState, action) {
    switch (action.type) {
        case GET_INBOX_SUCCESS:
            return {
                ...state,
                conversations: action.result
            }
        case GET_INBOX_FAIL:
            return {
                ...state,
                errorLoadingConversations: true,
                conversations: []
            }
        case LOCATION_CHANGE: {
            if (action.payload.pathname !== 'inbox') {
                return initialState
            }
            return state
        }
        default:
            return state
    }
}
<commit_msg>fix path inbox -> /inbox in reducers/inbox<commit_after>import {GET_INBOX_SUCCESS, GET_INBOX_FAIL} from 'actions/inbox'
import {LOCATION_CHANGE} from 'actions/common'

const initialState = {
    isDataLoading: true,
    errorLoadingConversations: false,
    conversations: []
}

export function inbox(state = initialState, action) {
    switch (action.type) {
        case GET_INBOX_SUCCESS:
            return {
                ...state,
                conversations: action.result
            }
        case GET_INBOX_FAIL:
            return {
                ...state,
                errorLoadingConversations: true,
                conversations: []
            }
        case LOCATION_CHANGE: {
            if (action.payload.pathname !== '/inbox') {
                return initialState
            }
            return state
        }
        default:
            return state
    }
}

{'fraction_non_alphanumeric': 0.08361774744027303, 'fraction_numerical': 0.0, 'mean_word_length': 1.5982274741506648, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '2609146', 'n_tokens_mistral': 470, 'n_tokens_neox': 468, 'n_words': 101}