<commit_before>import { loadingState } from '../actions/actions'
import { initialState } from './initialState'

import fetch from 'isomorphic-fetch'

//
//  reducers helpers
//

function requestAroundMe(state, action, meters, coors) {
  fetch('secret-depths-4660.herokuapp/paradas?lt=' + coors.latitude + '&ln=' + coors.longitude '&r=' + meters)
    .then(function(){
      loadingState = true
    })
    .then(function(response) {
      if (response.status >= 400) {
          Object.assign({}, state, {
          loading: loadingState.HIDE,
          error: {
            type: response.status,
            msg: response.message
          }
        })
      }
      loadingState = false
      return Object.assign({}, state, {
        loading: loadingState.HIDE,
        aroundMe: response.json()
      })
    })
  })
}

//
//  reducers case by action
//

export function geolocalize(state = initialState, action) {
  switch (action.type) {
    case REQUEST_BUS_STOPS_AROUND_ME:
      return requestAroundMe()
    default:
      return state
  }
}
<commit_msg>combine reducers<commit_after>import { loadingState } from '../actions/actions'
import { initialState } from './initialState'

import fetch from 'isomorphic-fetch'

//
//  reducers helpers
//

function requestAroundMe(state, action, meters, coors) {
  fetch('secret-depths-4660.herokuapp/paradas?lt=' + coors.latitude + '&ln=' + coors.longitude '&r=' + meters)
    .then(function(){
      loadingState = true
    })
    .then(function(response) {
      if (response.status >= 400) {
          Object.assign({}, state, {
          loading: loadingState.HIDE,
          error: {
            type: response.status,
            msg: response.message
          }
        })
      }
      loadingState = false
      return Object.assign({}, state, {
        loading: loadingState.HIDE,
        aroundMe: response.json()
      })
    })
  })
}

//
//  reducers case by action
//

function geolocalize(state = initialState, action) {
  switch (action.type) {
    case REQUEST_BUS_STOPS_AROUND_ME:
      return requestAroundMe()
    default:
      return state
  }
}

//
//  Combine reducers
//

const katangapp = combineReducers({
  geolocalize
})

export default katangapp

{'fraction_non_alphanumeric': 0.12971274685816875, 'fraction_numerical': 0.0062836624775583485, 'mean_word_length': 2.3926940639269407, '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': '4193962', 'n_tokens_mistral': 708, 'n_tokens_neox': 689, 'n_words': 145}