<commit_before>import { LOAD_REBATES_REQUEST, LOAD_REBATES_SUCCESS, LOAD_REBATES_FAILURE } from '../../constants'

export function loadRebates () {
  return (dispatch, getState, { axios }) => {
    const { protocol, host } = getState().sourceRequest
    dispatch({ type: LOAD_REBATES_REQUEST })
    return axios.get(`${protocol}://${host}/api/v0/rebates`)
      .then(res => {
        console.log(res)
        dispatch({
          type: LOAD_REBATES_SUCCESS,
          payload: res.data,
          meta: {
            lastFetched: Date.now()
          }
        })
      })
      .catch(error => {
        console.error(`Error in reducer that handles ${LOAD_REBATES_SUCCESS}: `, error)
        dispatch({
          type: LOAD_REBATES_FAILURE,
          payload: error,
          error: true
        })
      })
  }
}
<commit_msg>Hide debug info<commit_after>import { LOAD_REBATES_REQUEST, LOAD_REBATES_SUCCESS, LOAD_REBATES_FAILURE } from '../../constants'

export function loadRebates () {
  return (dispatch, getState, { axios }) => {
    const { protocol, host } = getState().sourceRequest
    dispatch({ type: LOAD_REBATES_REQUEST })
    return axios.get(`${protocol}://${host}/api/v0/rebates`)
      .then(res => {
        // console.log(res)
        dispatch({
          type: LOAD_REBATES_SUCCESS,
          payload: res.data,
          meta: {
            lastFetched: Date.now()
          }
        })
      })
      .catch(error => {
        console.error(`Error in reducer that handles ${LOAD_REBATES_SUCCESS}: `, error)
        dispatch({
          type: LOAD_REBATES_FAILURE,
          payload: error,
          error: true
        })
      })
  }
}

{'fraction_non_alphanumeric': 0.13349368610944076, 'fraction_numerical': 0.0012026458208057728, 'mean_word_length': 2.139622641509434, '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': '3292821', 'n_tokens_mistral': 530, 'n_tokens_neox': 525, 'n_words': 96}