<commit_before>import { handleActions } from 'redux-actions';

const initialState = {
  query: {
    carMake: 'cadillac',
    modelIndex: 3,
    value: 0,
    sliderLeft:1990,
    sliderRight:2017,
    minPrice:1000,
    maxPrice:150000,
    zipcode:'',
    model: ''
  },
  loading: true,
};


export default handleActions({
  GET_CARDATA: (state, { payload }) => ({
    ...state,
    carMake: payload.carmake || 'cadillac',
    modelIndex: payload.modelIndex || 3,
    value: payload.value || 0,
    sliderLeft: payload.sliderLeft || 1990,
    sliderRight: payload.sliderRight || 2017,
    minPrice: payload.minPrice || 1000,
    maxPrice: payload.maxPrice || 150000,
    zipcode: payload.zipcode || '',
    model: payload.model || ''
  })
}, initialState);<commit_msg>updated reducer with more actions<commit_after>import { handleActions } from 'redux-actions';

const initialState = {
  query: {
    carMake: 'cadillac',
    modelIndex: 3,
    value: 0,
    sliderLeft:1990,
    sliderRight:2017,
    minPrice:1000,
    maxPrice:150000,
    zipcode:'',
    model: ''
  },
  loading: true,
};


export default handleActions({
  GET_CARDATA: (state, { payload }) => ({
    ...state,
    carMake: payload.carmake || 'cadillac',
    modelIndex: payload.modelIndex || 3,
    value: payload.value || 0,
    sliderLeft: payload.sliderLeft || 1990,
    sliderRight: payload.sliderRight || 2017,
    minPrice: payload.minPrice || 1000,
    maxPrice: payload.maxPrice || 150000,
    zipcode: payload.zipcode || '',
    model: payload.model || ''
  }),
  SET_QUERY: (state, { payload }) => ({ ...state, ...payload })
}, initialState);
{'fraction_non_alphanumeric': 0.1524277811923786, 'fraction_numerical': 0.049170251997541485, 'mean_word_length': 3.2506527415143602, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 6, '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': '5794870', 'n_tokens_mistral': 607, 'n_tokens_neox': 520, 'n_words': 116}