<commit_before>import { fromJS } from 'immutable'


const INITIAL_TERMINAL = fromJS([])


export const terminalReducer = (state = INITIAL_TERMINAL, action) => {
	
	return state
}<commit_msg>Handled the COMMAND_ENTERED reducer<commit_after>import { fromJS } from 'immutable'
import * as types from 'actions/types'

const INITIAL_TERMINAL = fromJS([])


export const terminalReducer = (state = INITIAL_TERMINAL, action) => {

	if(action.type === `${types.COMMAND_ENTERED}_ERROR`){
		return state.push(fromJS(action.payload.data))
	}

	if(action.type === `${types.COMMAND_ENTERED}_SUCCESS`){
		return state.push(fromJS(action.payload.data))
	}

	return state
}
{'fraction_non_alphanumeric': 0.1339421613394216, 'fraction_numerical': 0.0, 'mean_word_length': 5.646464646464646, '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': '1182672', 'n_tokens_mistral': 234, 'n_tokens_neox': 224, 'n_words': 46}