<commit_before>import { INCREMENT, DECREMENT } from './actions.js';

const count = (state = 0, action) => {
  switch (action.type) {
    case INCREMENT:
      return state + 1;
    case DECREMENT:
      return state - 1;
    default:
      return state;
  }
};

export default count; <commit_msg>adds a reset reducer to handle the reset actions<commit_after>import { INCREMENT, DECREMENT } from './actions.js';

const count = (state = 0, action) => {
  switch (action.type) {
    case INCREMENT:
      return state + 1;
    case DECREMENT:
      return state - 1;
    case 'RESET':
      return action.state;
    default:
      return state;
  }
};

export default count; 
{'fraction_non_alphanumeric': 0.11458333333333333, 'fraction_numerical': 0.008928571428571428, 'mean_word_length': 2.657608695652174, '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': '4067337', 'n_tokens_mistral': 221, 'n_tokens_neox': 214, 'n_words': 68}