<commit_before>import { GET_BUDGET } from '../actions/budgetView.action';

const budgetReducer = (state = null, action) => {
  switch (action.type) {
    case GET_BUDGET:
      
      return action.payload.val();
    default:
      return state;
  }
}

export default budgetReducer;<commit_msg>feat(set budget): added an update budget case to the budget reducer<commit_after>import { GET_BUDGET, UPDATE_BUDGET } from '../actions/budgetView.action';

const budgetReducer = (state = null, action) => {
  switch (action.type) {
    case GET_BUDGET:
      return action.payload.val();
    case UPDATE_BUDGET:
      return action.newBudget;
    default:
      return state;
  }
}

export default budgetReducer;
{'fraction_non_alphanumeric': 0.11205673758865248, 'fraction_numerical': 0.0, 'mean_word_length': 3.4125, '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': '6879485', 'n_tokens_mistral': 232, 'n_tokens_neox': 221, 'n_words': 56}