<commit_before>import { Constants as ApplicationConstants } from '../actions/application';

const defaultPage = 1;
const initialState = () => ({ matchingUsers: [], currentPage: defaultPage });

export default (state = initialState(), action) => {
  switch (action.type) {

    case ApplicationConstants.SEARCH_FOR_ACCOUNT_USERS: {
      const currentPage = action.params.page || defaultPage;

      return { ...state, ...{ currentPage } };
    }

    case ApplicationConstants.SEARCH_FOR_ACCOUNT_USERS_DONE: {
      const {
        matching_users:matchingUsers,
        previous_page_available:previousPageAvailable,
        next_page_available:nextPageAvailable,
      } = action.payload;

      return { ...state, ...{ matchingUsers, previousPageAvailable, nextPageAvailable } };
    }

    default:
      return state;
  }
};<commit_msg>refactor: Improve some syntax<commit_after>import { Constants as ApplicationConstants } from '../actions/application';

const defaultPage = 1;
const initialState = () => ({ matchingUsers: [], currentPage: defaultPage });

export default (state = initialState(), action) => {
  switch (action.type) {

    case ApplicationConstants.SEARCH_FOR_ACCOUNT_USERS: {
      const currentPage = action.params.page || defaultPage;

      return { ...state, currentPage };
    }

    case ApplicationConstants.SEARCH_FOR_ACCOUNT_USERS_DONE: {
      const {
        matching_users:matchingUsers,
        previous_page_available:previousPageAvailable,
        next_page_available:nextPageAvailable,
      } = action.payload;

      return {
        ...state,
        matchingUsers,
        previousPageAvailable,
        nextPageAvailable
      };
    }

    default:
      return state;
  }
};
{'fraction_non_alphanumeric': 0.10872093023255813, 'fraction_numerical': 0.0011627906976744186, 'mean_word_length': 3.1975609756097563, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '6262135', 'n_tokens_mistral': 473, 'n_tokens_neox': 457, 'n_words': 93}