<commit_before>import * as types from './constants';

export const initialState = {
  openFeedbackModal: false,
};

const feedbackReducer =
(state = initialState, action) => {
  switch (action.type) {
    case types.OPEN_FEEDBACK_MODAL:
      return {
        ...state,
        openFeedbackModal: true,
      };
    default:
      return state;
  }
};

export default feedbackReducer;<commit_msg>Update: Update the name of state being updated<commit_after>import * as types from './constants';

export const initialState = {
  isAddingFeedback: false,
};

const feedbackReducer =
(state = initialState, action) => {
  switch (action.type) {
    case types.OPEN_FEEDBACK_MODAL:
      return {
        ...state,
        isAddingFeedback: !state.isAddingFeedback,
      };
    default:
      return state;
  }
};

export default feedbackReducer;
{'fraction_non_alphanumeric': 0.10807600950118765, 'fraction_numerical': 0.0, 'mean_word_length': 3.072463768115942, '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': '3825349', 'n_tokens_mistral': 260, 'n_tokens_neox': 253, 'n_words': 64}