<commit_before>const matches = (state = {}, action) => {
  switch (action.type) {

    case 'UNMOUNT_MATCH':
      var newMatches = [];
      state.forEach((match) => {
        if (match.id === action.id) {
          newMatches.push(Object.assign(
            {},
            match,
            { willUnmount: true }
          ));
        } else {
          newMatches.push(match);
        }
      });
      return Object.assign({}, state, {values: newMatches});

    case 'REMOVE_MATCH':
      var newMatches = [];
      state.forEach((match) => {
        if (match.id !== action.id) {
          newMatches.push(match);<commit_msg>Bug fix in matches reducer<commit_after>const matches = (state = {}, action) => {
  switch (action.type) {

    case 'UNMOUNT_MATCH':
      var newMatches = [];
      state.values.forEach((match) => {
        if (match.id === action.id) {
          newMatches.push(Object.assign(
            {},
            match,
            { willUnmount: true }
          ));
        } else {
          newMatches.push(match);
        }
      });
      return Object.assign({}, state, {values: newMatches});

    case 'REMOVE_MATCH':
      var newMatches = [];
      state.values.forEach((match) => {
        if (match.id !== action.id) {
          newMatches.push(match);
{'fraction_non_alphanumeric': 0.15646785437645236, 'fraction_numerical': 0.0, 'mean_word_length': 1.8026030368763557, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '1358403', 'n_tokens_mistral': 395, 'n_tokens_neox': 385, 'n_words': 71}