<commit_before>import update from 'immutability-helper';

const initialSearchParams = {
  project: null,
  search: '',
  type: null,
  limit: 5,
  offset: 0,
};

export default function searchParams(state = initialSearchParams, action = null) {
  switch (action.type) {
    case 'updateSearchParams': {
      const updateSpec = Object.keys(action.payload).reduce(
        (spec, key) => {
          spec[key] = {$set: action.payload[key]}; // eslint-disable-line no-param-reassign
          return spec;
        }, {},
      );
      return update(state, updateSpec);
    }
    default:
      return state;
  }
};
<commit_msg>Update default search limit back to something more reasonable than 5<commit_after>import update from 'immutability-helper';

const initialSearchParams = {
  project: null,
  search: '',
  type: null,
  limit: 30,
  offset: 0,
};

export default function searchParams(state = initialSearchParams, action = null) {
  switch (action.type) {
    case 'updateSearchParams': {
      const updateSpec = Object.keys(action.payload).reduce(
        (spec, key) => {
          spec[key] = {$set: action.payload[key]}; // eslint-disable-line no-param-reassign
          return spec;
        }, {},
      );
      return update(state, updateSpec);
    }
    default:
      return state;
  }
};

{'fraction_non_alphanumeric': 0.12996941896024464, 'fraction_numerical': 0.0045871559633027525, 'mean_word_length': 2.8613569321533925, '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': '6522911', 'n_tokens_mistral': 395, 'n_tokens_neox': 388, 'n_words': 98}